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