bmips: dts: nand: add missing address/size cells
[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 led-dsl = &led_dsl_green;
16 led-ethernet = &led_ethernet_green;
17 led-internet = &led_internet_green;
18 led-usb = &led_usb1_green;
19 led-usb2 = &led_usb2_green;
20 };
21
22 keys {
23 compatible = "gpio-keys-polled";
24 poll-interval = <20>;
25
26 wlan {
27 label = "wlan";
28 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_WLAN>;
30 debounce-interval = <60>;
31 };
32
33 wps {
34 label = "wps";
35 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_WPS_BUTTON>;
37 debounce-interval = <60>;
38 };
39
40 reset {
41 label = "reset";
42 gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
44 debounce-interval = <60>;
45 };
46 };
47
48 leds {
49 compatible = "gpio-leds";
50
51 led_dsl_green: led@28 {
52 label = "green:dsl";
53 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
54 };
55
56 led_power_red: led@34 {
57 label = "red:power";
58 gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
59 };
60 };
61 };
62
63 &ehci {
64 status = "okay";
65 };
66
67 &ethernet {
68 status = "okay";
69
70 nvmem-cells = <&macaddr_cferom_6a0>;
71 nvmem-cell-names = "mac-address";
72 };
73
74 &leds {
75 status = "okay";
76
77 brcm,serial-leds;
78 brcm,serial-dat-low;
79 brcm,serial-shift-inv;
80 brcm,serial-mux;
81
82 pinctrl-names = "default";
83 pinctrl-0 = <&pinctrl_leds &pinctrl_serial_led>;
84
85 led_internet_green: led@1 {
86 reg = <1>;
87 active-low;
88 label = "green:internet";
89 };
90
91 led_power_green: led@8 {
92 reg = <8>;
93 label = "green:power";
94 };
95
96 led@9 {
97 reg = <9>;
98 active-low;
99 label = "green:wps";
100 };
101
102 led_usb1_green: led@10 {
103 reg = <10>;
104 active-low;
105 label = "green:usb1";
106 };
107
108 led_usb2_green: 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_ethernet_green: 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 label = "cpu";
190
191 phy-mode = "rgmii";
192 ethernet = <&switch0port4>;
193
194 fixed-link {
195 speed = <1000>;
196 full-duplex;
197 };
198 };
199 };
200 };
201 };
202
203 &nflash {
204 status = "okay";
205
206 nandcs@0 {
207 compatible = "brcm,nandcs";
208 reg = <0>;
209 nand-ecc-step-size = <512>;
210 nand-ecc-strength = <15>;
211 nand-on-flash-bbt;
212
213 #address-cells = <1>;
214 #size-cells = <1>;
215
216 partitions {
217 compatible = "fixed-partitions";
218 #address-cells = <1>;
219 #size-cells = <1>;
220
221 cferom: partition@0 {
222 label = "cferom";
223 reg = <0x0000000 0x0004000>;
224 read-only;
225 };
226
227 partition@4000 {
228 compatible = "brcm,wfi";
229 label = "wfi";
230 reg = <0x0004000 0x1c7c000>;
231 };
232
233 partition@1c80000 {
234 label = "flag";
235 reg = <0x1c80000 0x0040000>;
236 read-only;
237 };
238
239 partition@1cc0000 {
240 label = "pcbasn";
241 reg = <0x1cc0000 0x0040000>;
242 read-only;
243 };
244
245 partition@1d00000 {
246 label = "xxx";
247 reg = <0x1d00000 0x0080000>;
248 read-only;
249 };
250
251 partition@1d80000 {
252 label = "language_dev";
253 reg = <0x1d80000 0x0040000>;
254 read-only;
255 };
256
257 partition@1dc0000 {
258 label = "scnvram";
259 reg = <0x1dc0000 0x0100000>;
260 read-only;
261 };
262 };
263 };
264 };
265
266 &ohci {
267 status = "okay";
268 };
269
270 &pcie {
271 status = "okay";
272 };
273
274 &pinctrl {
275 pinctrl_leds: leds {
276 function = "led";
277 pins = "gpio1";
278 };
279 };
280
281 &switch0 {
282 dsa,member = <0 0>;
283
284 ports {
285 switch0port4: port@4 {
286 reg = <4>;
287 label = "extsw";
288
289 phy-mode = "rgmii";
290
291 fixed-link {
292 speed = <1000>;
293 full-duplex;
294 };
295 };
296 };
297 };
298
299 &uart0 {
300 status = "okay";
301 };
302
303 &usbh {
304 status = "okay";
305 };
306
307 &cferom {
308 compatible = "nvmem-cells";
309 #address-cells = <1>;
310 #size-cells = <1>;
311
312 macaddr_cferom_6a0: macaddr@6a0 {
313 reg = <0x6a0 0x6>;
314 };
315 };