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