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