ath79: qca955x: remove redundant phy-mode
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar1022_iodata_wn-ag300dgr.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "iodata,wn-ag300dgr", "qca,ar9344";
10 model = "I-O DATA WN-AG300DGR";
11
12 aliases {
13 led-boot = &led_router;
14 led-failsafe = &led_router;
15 led-running = &led_router;
16 led-upgrade = &led_router;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 led_router: router {
23 label = "green:router";
24 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
25 default-state = "on";
26 };
27
28 children {
29 label = "green:children";
30 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
31 };
32
33 eco {
34 label = "green:eco";
35 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
36 };
37
38 notification {
39 label = "amber:notification";
40 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
41 };
42
43 wlan2g {
44 label = "green:wlan2g";
45 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy0tpt";
47 };
48
49 wlan5g {
50 label = "green:wlan5g";
51 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy1tpt";
53 };
54 };
55
56 keys {
57 compatible = "gpio-keys";
58
59 eco {
60 label = "eco";
61 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
62 linux,code = <BTN_1>;
63 debounce-interval = <60>;
64 };
65
66 router {
67 label = "router";
68 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
69 linux,code = <BTN_0>;
70 linux,input-type = <EV_SW>;
71 debounce-interval = <60>;
72 };
73
74 auto {
75 label = "auto";
76 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
77 linux,code = <BTN_0>;
78 linux,input-type = <EV_SW>;
79 debounce-interval = <60>;
80 };
81
82 wps {
83 label = "wps";
84 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
85 linux,code = <KEY_WPS_BUTTON>;
86 debounce-interval = <60>;
87 };
88
89 reset {
90 label = "reset";
91 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_RESTART>;
93 debounce-interval = <60>;
94 };
95
96 children {
97 label = "children";
98 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
99 linux,code = <BTN_1>;
100 debounce-interval = <60>;
101 };
102 };
103 };
104
105 &ref {
106 clock-frequency = <25000000>;
107 };
108
109 &spi {
110 status = "okay";
111
112 flash@0 {
113 compatible = "jedec,spi-nor";
114 reg = <0>;
115 spi-max-frequency = <25000000>;
116
117 partitions {
118 compatible = "fixed-partitions";
119 #address-cells = <1>;
120 #size-cells = <1>;
121
122 partition@0 {
123 label = "u-boot";
124 reg = <0x000000 0x030000>;
125 read-only;
126 };
127
128 partition@30000 {
129 label = "u-boot-env";
130 reg = <0x030000 0x010000>;
131 read-only;
132 };
133
134 partition@40000 {
135 compatible = "denx,uimage";
136 label = "firmware";
137 reg = <0x040000 0xf10000>;
138 };
139
140 partition@f50000 {
141 label = "manufacture";
142 reg = <0xf50000 0x40000>;
143 read-only;
144 };
145
146 partition@f90000 {
147 label = "backup";
148 reg = <0xf90000 0x10000>;
149 read-only;
150 };
151
152 partition@fa0000 {
153 label = "storage";
154 reg = <0xfa0000 0x50000>;
155 read-only;
156 };
157
158 partition@ff0000 {
159 label = "art";
160 reg = <0xff0000 0x010000>;
161 read-only;
162 };
163 };
164 };
165 };
166
167 &mdio0 {
168 status = "okay";
169
170 phy0: ethernet-phy@0 {
171 reg = <0>;
172 phy-mode = "rgmii";
173
174 qca,ar8327-initvals = <
175 0x04 0x07a00000 /* PORT0 PAD MODE CTRL */
176 0x7c 0x000000fe /* PORT0_STATUS */
177 >;
178 };
179 };
180
181 &eth0 {
182 status = "okay";
183
184 pll-data = <0x06000000 0x00000101 0x00001616>;
185
186 phy-mode = "rgmii";
187 phy-handle = <&phy0>;
188
189 gmac-config {
190 device = <&gmac>;
191 rgmii-gmac0 = <1>;
192 };
193 };
194
195 &pcie {
196 status = "okay";
197 };
198
199 &uart {
200 status = "okay";
201 };
202
203 &usb {
204 status = "okay";
205 };
206
207 &usb_phy {
208 status = "okay";
209 };
210
211 &wmac {
212 status = "okay";
213
214 qca,no-eeprom;
215 };