ipq806x: remove mac-address-increment
[openwrt/staging/jow.git] / target / linux / ipq806x / files / arch / arm / boot / dts / qcom-ipq8064-wxr-2533dhp.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 #include "qcom-ipq8064-v2.0-smb208.dtsi"
3
4 #include <dt-bindings/input/input.h>
5
6 / {
7 model = "Buffalo WXR-2533DHP";
8 compatible = "buffalo,wxr-2533dhp", "qcom,ipq8064";
9
10 memory@42000000 {
11 reg = <0x42000000 0x1e000000>;
12 device_type = "memory";
13 };
14
15 aliases {
16 led-boot = &power;
17 led-failsafe = &diag;
18 led-running = &power;
19 led-upgrade = &power;
20 };
21
22 chosen {
23 /* use "ubi_rootfs" volume in "ubi" partition as rootfs */
24 bootargs = "ubi.block=0,1 root=/dev/ubiblock0_1 rootfstype=squashfs";
25 };
26
27 leds {
28 compatible = "gpio-leds";
29 pinctrl-0 = <&led_pins>;
30 pinctrl-names = "default";
31
32 usb {
33 label = "green:usb";
34 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
35 linux,default-trigger = "usbport";
36 trigger-sources = <&hub_port0 &hub_port1>;
37 };
38
39 guestport {
40 label = "green:guestport";
41 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
42 };
43
44 diag: diag {
45 label = "orange:diag";
46 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
47 };
48
49 internet_orange {
50 label = "orange:internet";
51 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
52 };
53
54 internet_white {
55 label = "white:internet";
56 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
57 };
58
59 wireless_orange {
60 label = "orange:wireless";
61 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
62 };
63
64 wireless_white {
65 label = "white:wireless";
66 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
67 };
68
69 router_orange {
70 label = "orange:router";
71 gpios = <&qcom_pinmux 25 GPIO_ACTIVE_HIGH>;
72 };
73
74 router_white {
75 label = "white:router";
76 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
77 };
78
79 power: power {
80 label = "white:power";
81 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
82 };
83 };
84
85 keys {
86 compatible = "gpio-keys";
87 pinctrl-0 = <&button_pins>;
88 pinctrl-names = "default";
89
90 power {
91 label = "power";
92 gpios = <&qcom_pinmux 58 GPIO_ACTIVE_LOW>;
93 linux,code = <KEY_POWER>;
94 debounce-interval = <60>;
95 wakeup-source;
96 };
97
98 reset {
99 label = "reset";
100 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
101 linux,code = <KEY_RESTART>;
102 debounce-interval = <60>;
103 wakeup-source;
104 };
105
106 wps {
107 label = "wps";
108 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
109 linux,code = <KEY_WPS_BUTTON>;
110 debounce-interval = <60>;
111 wakeup-source;
112 };
113
114 eject {
115 label = "eject";
116 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
117 linux,code = <KEY_EJECTCD>;
118 debounce-interval = <60>;
119 wakeup-source;
120 };
121
122 guest {
123 label = "guest";
124 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
125 linux,code = <BTN_0>;
126 debounce-interval = <60>;
127 wakeup-source;
128 };
129
130 ap {
131 label = "ap";
132 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_LOW>;
133 linux,code = <BTN_1>;
134 linux,input-type = <EV_SW>;
135 debounce-interval = <60>;
136 wakeup-source;
137 };
138
139 router {
140 label = "router";
141 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_LOW>;
142 linux,code = <BTN_1>;
143 linux,input-type = <EV_SW>;
144 debounce-interval = <60>;
145 wakeup-source;
146 };
147
148 auto {
149 label = "auto";
150 gpios = <&qcom_pinmux 57 GPIO_ACTIVE_LOW>;
151 linux,code = <BTN_1>;
152 linux,input-type = <EV_SW>;
153 debounce-interval = <60>;
154 wakeup-source;
155 };
156 };
157 };
158
159 &nand {
160 status = "okay";
161
162 cs@0 {
163 reg = <0>;
164 compatible = "qcom,nandcs";
165
166 nand-ecc-strength = <4>;
167 nand-bus-width = <8>;
168 nand-ecc-step-size = <512>;
169
170 partitions {
171 compatible = "fixed-partitions";
172 #address-cells = <1>;
173 #size-cells = <1>;
174
175 ubi@0 {
176 label = "ubi";
177 reg = <0x0000000 0x4000000>;
178 };
179
180 rootfs_1@4000000 {
181 label = "rootfs_1";
182 reg = <0x4000000 0x4000000>;
183 };
184 };
185 };
186 };
187
188 &adm_dma {
189 status = "okay";
190 };
191
192 &mdio0 {
193 status = "okay";
194
195 pinctrl-0 = <&mdio0_pins>;
196 pinctrl-names = "default";
197
198 switch@10 {
199 compatible = "qca,qca8337";
200 #address-cells = <1>;
201 #size-cells = <0>;
202 reg = <0x10>;
203
204 ports {
205 #address-cells = <1>;
206 #size-cells = <0>;
207
208 port@0 {
209 reg = <0>;
210 label = "cpu";
211 ethernet = <&gmac1>;
212 phy-mode = "rgmii";
213 tx-internal-delay-ps = <1000>;
214 rx-internal-delay-ps = <1000>;
215
216 fixed-link {
217 speed = <1000>;
218 full-duplex;
219 };
220 };
221
222 port@1 {
223 reg = <1>;
224 label = "lan1";
225 phy-mode = "internal";
226 phy-handle = <&phy_port1>;
227 };
228
229 port@2 {
230 reg = <2>;
231 label = "lan2";
232 phy-mode = "internal";
233 phy-handle = <&phy_port2>;
234 };
235
236 port@3 {
237 reg = <3>;
238 label = "lan3";
239 phy-mode = "internal";
240 phy-handle = <&phy_port3>;
241 };
242
243 port@4 {
244 reg = <4>;
245 label = "lan4";
246 phy-mode = "internal";
247 phy-handle = <&phy_port4>;
248 };
249
250 port@5 {
251 reg = <5>;
252 label = "wan";
253 phy-mode = "internal";
254 phy-handle = <&phy_port5>;
255 };
256
257 port@6 {
258 reg = <6>;
259 label = "cpu";
260 ethernet = <&gmac2>;
261 phy-mode = "sgmii";
262 qca,sgmii-enable-pll;
263
264 fixed-link {
265 speed = <1000>;
266 full-duplex;
267 };
268 };
269 };
270
271 mdio {
272 #address-cells = <1>;
273 #size-cells = <0>;
274
275 phy_port1: phy@0 {
276 reg = <0>;
277 };
278
279 phy_port2: phy@1 {
280 reg = <1>;
281 };
282
283 phy_port3: phy@2 {
284 reg = <2>;
285 };
286
287 phy_port4: phy@3 {
288 reg = <3>;
289 };
290
291 phy_port5: phy@4 {
292 reg = <4>;
293 };
294 };
295 };
296 };
297
298 &gmac1 {
299 status = "okay";
300
301 phy-mode = "rgmii";
302 qcom,id = <1>;
303
304 pinctrl-0 = <&rgmii2_pins>;
305 pinctrl-names = "default";
306
307 nvmem-cells = <&macaddr_ART_6>;
308 nvmem-cell-names = "mac-address";
309
310 fixed-link {
311 speed = <1000>;
312 full-duplex;
313 };
314 };
315
316 &gmac2 {
317 status = "okay";
318
319 phy-mode = "sgmii";
320 qcom,id = <2>;
321
322 nvmem-cells = <&macaddr_ART_0>;
323 nvmem-cell-names = "mac-address";
324
325 fixed-link {
326 speed = <1000>;
327 full-duplex;
328 };
329 };
330
331 &gsbi4_serial {
332 pinctrl-0 = <&uart0_pins>;
333 pinctrl-names = "default";
334 };
335
336 &gsbi5 {
337 status = "okay";
338 qcom,mode = <GSBI_PROT_SPI>;
339
340 spi@1a280000 {
341 status = "okay";
342
343 pinctrl-0 = <&spi_pins>;
344 pinctrl-names = "default";
345
346 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
347
348 flash@0 {
349 compatible = "jedec,spi-nor";
350 spi-max-frequency = <50000000>;
351 reg = <0>;
352
353 partitions {
354 compatible = "fixed-partitions";
355 #address-cells = <1>;
356 #size-cells = <1>;
357
358 SBL1@0 {
359 label = "SBL1";
360 reg = <0x0 0x10000>;
361 read-only;
362 };
363
364 MIBIB@10000 {
365 label = "MIBIB";
366 reg = <0x10000 0x20000>;
367 read-only;
368 };
369
370 SBL2@30000 {
371 label = "SBL2";
372 reg = <0x30000 0x30000>;
373 read-only;
374 };
375
376 SBL3@60000 {
377 label = "SBL3";
378 reg = <0x60000 0x30000>;
379 read-only;
380 };
381
382 DDRCONFIG@90000 {
383 label = "DDRCONFIG";
384 reg = <0x90000 0x10000>;
385 read-only;
386 };
387
388 SSD@a0000 {
389 label = "SSD";
390 reg = <0xa0000 0x10000>;
391 read-only;
392 };
393
394 TZ@b0000 {
395 label = "TZ";
396 reg = <0xb0000 0x30000>;
397 read-only;
398 };
399
400 RPM@e0000 {
401 label = "RPM";
402 reg = <0xe0000 0x20000>;
403 read-only;
404 };
405
406 APPSBL@100000 {
407 label = "APPSBL";
408 reg = <0x100000 0x70000>;
409 read-only;
410 };
411
412 APPSBLENV@170000 {
413 label = "APPSBLENV";
414 reg = <0x170000 0x10000>;
415 read-only;
416 };
417
418 ART@180000 {
419 label = "ART";
420 reg = <0x180000 0x40000>;
421 read-only;
422
423 nvmem-layout {
424 compatible = "fixed-layout";
425 #address-cells = <1>;
426 #size-cells = <1>;
427
428 macaddr_ART_0: macaddr@0 {
429 reg = <0x0 0x6>;
430 };
431
432 macaddr_ART_6: macaddr@6 {
433 reg = <0x6 0x6>;
434 };
435
436 macaddr_ART_18: macaddr@18 {
437 reg = <0x18 0x6>;
438 };
439
440 macaddr_ART_1e: macaddr@1e {
441 reg = <0x1e 0x6>;
442 };
443
444 precal_ART_1000: precal@1000 {
445 reg = <0x1000 0x2f20>;
446 };
447
448 precal_ART_5000: precal@5000 {
449 reg = <0x5000 0x2f20>;
450 };
451 };
452 };
453
454 BOOTCONFIG@1c0000 {
455 label = "BOOTCONFIG";
456 reg = <0x1c0000 0x10000>;
457 read-only;
458 };
459
460 APPSBL_1@1d0000 {
461 label = "APPSBL_1";
462 reg = <0x1d0000 0x70000>;
463 read-only;
464 };
465 };
466 };
467 };
468 };
469
470 &hs_phy_0 {
471 status = "okay";
472 };
473
474 &ss_phy_0 {
475 status = "okay";
476 };
477
478 &usb3_0 {
479 status = "okay";
480
481 pinctrl-0 = <&usb_pwr_en_pins>;
482 pinctrl-names = "default";
483 };
484
485 &hs_phy_1 {
486 status = "okay";
487 };
488
489 &ss_phy_1 {
490 status = "okay";
491 };
492
493 &usb3_1 {
494 status = "okay";
495 };
496
497 &dwc3_0 {
498 #address-cells = <1>;
499 #size-cells = <0>;
500
501 hub_port0: port@1 {
502 reg = <1>;
503 #trigger-source-cells = <0>;
504 };
505 };
506
507 &dwc3_1 {
508 #address-cells = <1>;
509 #size-cells = <0>;
510
511 hub_port1: port@1 {
512 reg = <1>;
513 #trigger-source-cells = <0>;
514 };
515 };
516
517 &pcie0 {
518 status = "okay";
519
520 bridge@0,0 {
521 reg = <0x00000000 0 0 0 0>;
522 #address-cells = <3>;
523 #size-cells = <2>;
524 ranges;
525
526 wifi@1,0 {
527 compatible = "pci168c,0040";
528 reg = <0x00010000 0 0 0 0>;
529
530 nvmem-cells = <&macaddr_ART_1e>, <&precal_ART_1000>;
531 nvmem-cell-names = "mac-address", "pre-calibration";
532 };
533 };
534 };
535
536 &pcie1 {
537 status = "okay";
538 max-link-speed = <1>;
539
540 bridge@0,0 {
541 reg = <0x00000000 0 0 0 0>;
542 #address-cells = <3>;
543 #size-cells = <2>;
544 ranges;
545
546 wifi@1,0 {
547 compatible = "pci168c,0040";
548 reg = <0x00010000 0 0 0 0>;
549
550 nvmem-cells = <&macaddr_ART_18>, <&precal_ART_5000>;
551 nvmem-cell-names = "mac-address", "pre-calibration";
552 };
553 };
554 };
555
556 &qcom_pinmux {
557 button_pins: button_pins {
558 mux {
559 pins = "gpio6", "gpio54", "gpio55", "gpio56", "gpio57",
560 "gpio58", "gpio64", "gpio65";
561 function = "gpio";
562 drive-strength = <2>;
563 bias-pull-up;
564 };
565 };
566
567 led_pins: led_pins {
568 mux {
569 pins = "gpio7", "gpio8", "gpio9", "gpio16", "gpio22",
570 "gpio23", "gpio24", "gpio25", "gpio26", "gpio53";
571 function = "gpio";
572 drive-strength = <2>;
573 bias-pull-up;
574 };
575 };
576
577 uart0_pins: uart0_pins {
578 mux {
579 pins = "gpio10", "gpio11";
580 function = "gsbi4";
581 drive-strength = <12>;
582 bias-disable;
583 };
584 };
585
586 spi_pins: spi_pins {
587 mux {
588 pins = "gpio18", "gpio19", "gpio21";
589 function = "gsbi5";
590 bias-pull-down;
591 };
592
593 data {
594 pins = "gpio18", "gpio19";
595 drive-strength = <10>;
596 };
597
598 cs{
599 pins = "gpio20";
600 drive-strength = <10>;
601 bias-pull-up;
602 };
603
604 clk {
605 pins = "gpio21";
606 drive-strength = <12>;
607 };
608 };
609
610 usb_pwr_en_pins: usb_pwr_en_pins {
611 mux{
612 pins = "gpio68";
613 function = "gpio";
614 drive-strength = <2>;
615 bias-pull-up;
616 output-high;
617 };
618 };
619 };