bmips: dts: improve and align device tree files
[openwrt/staging/jow.git] / target / linux / bmips / dts / bcm6362-netgear-dgnd3700-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm6362.dtsi"
4
5 / {
6 model = "Netgear DGND3700 v2";
7 compatible = "netgear,dgnd3700-v2", "brcm,bcm6362";
8
9 aliases {
10 led-boot = &led_power_green;
11 led-failsafe = &led_power_red;
12 led-running = &led_power_green;
13 led-upgrade = &led_power_green;
14 };
15
16 keys {
17 compatible = "gpio-keys-polled";
18 poll-interval = <100>;
19
20 wlan {
21 label = "wlan";
22 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_WLAN>;
24 debounce-interval = <60>;
25 };
26
27 wps {
28 label = "wps";
29 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_WPS_BUTTON>;
31 debounce-interval = <60>;
32 };
33
34 reset {
35 label = "reset";
36 gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 debounce-interval = <60>;
39 };
40 };
41
42 leds {
43 compatible = "gpio-leds";
44
45 led@28 {
46 label = "green:dsl";
47 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
48 };
49
50 led_power_red: led@34 {
51 label = "red:power";
52 gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
53 panic-indicator;
54 };
55 };
56 };
57
58 &ehci {
59 status = "okay";
60 };
61
62 &ethernet {
63 status = "okay";
64
65 nvmem-cells = <&macaddr_cferom_6a0>;
66 nvmem-cell-names = "mac-address";
67 };
68
69 &leds {
70 status = "okay";
71
72 brcm,serial-leds;
73 brcm,serial-dat-low;
74 brcm,serial-shift-inv;
75 brcm,serial-mux;
76
77 pinctrl-names = "default";
78 pinctrl-0 = <&pinctrl_leds &pinctrl_serial_led>;
79
80 led@1 {
81 reg = <1>;
82 active-low;
83 label = "green:internet";
84 };
85
86 led_power_green: led@8 {
87 reg = <8>;
88 label = "green:power";
89 };
90
91 led@9 {
92 reg = <9>;
93 active-low;
94 label = "green:wps";
95 };
96
97 led@10 {
98 reg = <10>;
99 active-low;
100 label = "green:usb1";
101 };
102
103 led@11 {
104 reg = <11>;
105 active-low;
106 label = "green:usb2";
107 };
108
109 led@12 {
110 reg = <12>;
111 active-low;
112 label = "amber:internet";
113 };
114
115 led@13 {
116 reg = <13>;
117 active-low;
118 label = "green:ethernet";
119 };
120
121 led@14 {
122 reg = <14>;
123 active-low;
124 label = "amber:dsl";
125 };
126
127 led@16 {
128 reg = <16>;
129 active-low;
130 label = "amber:usb1";
131 };
132
133 led@17 {
134 reg = <17>;
135 active-low;
136 label = "amber:usb2";
137 };
138
139 led@18 {
140 reg = <18>;
141 active-low;
142 label = "amber:ethernet";
143 };
144 };
145
146 &mdio_ext {
147 switch@1e {
148 compatible = "brcm,bcm53125";
149 reg = <30>;
150
151 dsa,member = <1 0>;
152
153 ports {
154 #address-cells = <1>;
155 #size-cells = <0>;
156
157 port@0 {
158 reg = <0>;
159 label = "lan1";
160 };
161
162 port@1 {
163 reg = <1>;
164 label = "lan2";
165 };
166
167 port@2 {
168 reg = <2>;
169 label = "lan3";
170 };
171
172 port@3 {
173 reg = <3>;
174 label = "lan4";
175 };
176
177 port@4 {
178 reg = <4>;
179 label = "wan";
180 };
181
182 port@8 {
183 reg = <8>;
184
185 phy-mode = "rgmii";
186 ethernet = <&switch0port4>;
187
188 fixed-link {
189 speed = <1000>;
190 full-duplex;
191 };
192 };
193 };
194 };
195 };
196
197 &nflash {
198 status = "okay";
199
200 nandcs@0 {
201 compatible = "brcm,nandcs";
202 reg = <0>;
203 nand-ecc-step-size = <512>;
204 nand-ecc-strength = <15>;
205 nand-on-flash-bbt;
206
207 #address-cells = <1>;
208 #size-cells = <1>;
209
210 partitions {
211 compatible = "fixed-partitions";
212 #address-cells = <1>;
213 #size-cells = <1>;
214
215 cferom: partition@0 {
216 label = "cferom";
217 reg = <0x0000000 0x0004000>;
218 read-only;
219 };
220
221 partition@4000 {
222 compatible = "brcm,wfi";
223 label = "wfi";
224 reg = <0x0004000 0x1c7c000>;
225 };
226
227 partition@1c80000 {
228 label = "flag";
229 reg = <0x1c80000 0x0040000>;
230 read-only;
231 };
232
233 partition@1cc0000 {
234 label = "pcbasn";
235 reg = <0x1cc0000 0x0040000>;
236 read-only;
237 };
238
239 partition@1d00000 {
240 label = "xxx";
241 reg = <0x1d00000 0x0080000>;
242 read-only;
243 };
244
245 partition@1d80000 {
246 label = "language_dev";
247 reg = <0x1d80000 0x0040000>;
248 read-only;
249 };
250
251 partition@1dc0000 {
252 label = "scnvram";
253 reg = <0x1dc0000 0x0100000>;
254 read-only;
255 };
256 };
257 };
258 };
259
260 &ohci {
261 status = "okay";
262 };
263
264 &pcie {
265 status = "okay";
266 };
267
268 &pinctrl {
269 pinctrl_leds: leds {
270 function = "led";
271 pins = "gpio1";
272 };
273 };
274
275 &switch0 {
276 dsa,member = <0 0>;
277
278 ports {
279 switch0port4: port@4 {
280 reg = <4>;
281 label = "extsw";
282
283 phy-mode = "rgmii";
284
285 fixed-link {
286 speed = <1000>;
287 full-duplex;
288 };
289 };
290 };
291 };
292
293 &uart0 {
294 status = "okay";
295 };
296
297 &usbh {
298 status = "okay";
299 };
300
301 &cferom {
302 compatible = "nvmem-cells";
303 #address-cells = <1>;
304 #size-cells = <1>;
305
306 macaddr_cferom_6a0: macaddr@6a0 {
307 reg = <0x6a0 0x6>;
308 };
309 };