ath79: enable SGMII workaround for affected boards
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9556_avm_fritz-repeater.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "qca955x.dtsi"
8
9 / {
10 chosen {
11 bootargs = "console=ttyS0,115200n8";
12 };
13
14 keys {
15 compatible = "gpio-keys";
16
17 wps {
18 label = "wps";
19 linux,code = <KEY_WPS_BUTTON>;
20 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
21 };
22 };
23 };
24
25 &uart {
26 status = "okay";
27 };
28
29 &spi {
30 status = "okay";
31 num-cs = <1>;
32
33 flash@0 {
34 compatible = "jedec,spi-nor";
35 reg = <0>;
36 spi-max-frequency = <25000000>;
37
38 partitions {
39 compatible = "fixed-partitions";
40 #address-cells = <1>;
41 #size-cells = <1>;
42
43 partition@0 {
44 label = "urlader";
45 reg = <0x0 0x20000>;
46 read-only;
47 };
48
49 partition@20000 {
50 compatible = "avm,eva-firmware";
51 label = "firmware";
52 reg = <0x20000 0xee0000>;
53 };
54
55 partition@f00000 {
56 label = "tffs (1)";
57 reg = <0xf00000 0x80000>;
58 read-only;
59 };
60
61 partition@f80000 {
62 label = "tffs (2)";
63 reg = <0xf80000 0x80000>;
64 read-only;
65 };
66 };
67 };
68 };
69
70 &wmac {
71 status = "okay";
72 qca,no-eeprom;
73 };
74
75 &eth1 {
76 status = "okay";
77
78 phy-handle = <&phy0>;
79 pll-data = <0x3000000 0x101 0x1313>;
80
81 qca955x-sgmii-fixup;
82
83 gmac-config {
84 device = <&gmac>;
85 ge0-sgmii = <0>;
86 };
87 };
88
89 &mdio1 {
90 status = "okay";
91
92 phy0: ethernet-phy@0 {
93 reg = <0>;
94 at803x-override-sgmii-link-check;
95 };
96 };