1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 #include "qcom-ipq8064-v2.0-smb208.dtsi"
4 #include <dt-bindings/input/input.h>
7 model = "Buffalo WXR-2533DHP";
8 compatible = "buffalo,wxr-2533dhp", "qcom,ipq8064";
11 reg = <0x42000000 0x1e000000>;
12 device_type = "memory";
23 /* use "ubi_rootfs" volume in "ubi" partition as rootfs */
24 bootargs = "ubi.block=0,1 root=/dev/ubiblock0_1 rootfstype=squashfs";
28 compatible = "gpio-leds";
29 pinctrl-0 = <&led_pins>;
30 pinctrl-names = "default";
34 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
35 linux,default-trigger = "usbport";
36 trigger-sources = <&hub_port0 &hub_port1>;
40 label = "green:guestport";
41 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
45 label = "orange:diag";
46 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
50 label = "orange:internet";
51 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
55 label = "white:internet";
56 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
60 label = "orange:wireless";
61 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
65 label = "white:wireless";
66 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
70 label = "orange:router";
71 gpios = <&qcom_pinmux 25 GPIO_ACTIVE_HIGH>;
75 label = "white:router";
76 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
80 label = "white:power";
81 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
86 compatible = "gpio-keys";
87 pinctrl-0 = <&button_pins>;
88 pinctrl-names = "default";
92 gpios = <&qcom_pinmux 58 GPIO_ACTIVE_LOW>;
93 linux,code = <KEY_POWER>;
94 debounce-interval = <60>;
100 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
101 linux,code = <KEY_RESTART>;
102 debounce-interval = <60>;
108 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
109 linux,code = <KEY_WPS_BUTTON>;
110 debounce-interval = <60>;
116 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
117 linux,code = <KEY_EJECTCD>;
118 debounce-interval = <60>;
124 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
125 linux,code = <BTN_0>;
126 debounce-interval = <60>;
132 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_LOW>;
133 linux,code = <BTN_1>;
134 linux,input-type = <EV_SW>;
135 debounce-interval = <60>;
141 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_LOW>;
142 linux,code = <BTN_1>;
143 linux,input-type = <EV_SW>;
144 debounce-interval = <60>;
150 gpios = <&qcom_pinmux 57 GPIO_ACTIVE_LOW>;
151 linux,code = <BTN_1>;
152 linux,input-type = <EV_SW>;
153 debounce-interval = <60>;
164 compatible = "qcom,nandcs";
166 nand-ecc-strength = <4>;
167 nand-bus-width = <8>;
168 nand-ecc-step-size = <512>;
171 compatible = "fixed-partitions";
172 #address-cells = <1>;
177 reg = <0x0000000 0x4000000>;
182 reg = <0x4000000 0x4000000>;
195 pinctrl-0 = <&mdio0_pins>;
196 pinctrl-names = "default";
199 compatible = "qca,qca8337";
200 #address-cells = <1>;
205 #address-cells = <1>;
213 tx-internal-delay-ps = <1000>;
214 rx-internal-delay-ps = <1000>;
225 phy-mode = "internal";
226 phy-handle = <&phy_port1>;
232 phy-mode = "internal";
233 phy-handle = <&phy_port2>;
239 phy-mode = "internal";
240 phy-handle = <&phy_port3>;
246 phy-mode = "internal";
247 phy-handle = <&phy_port4>;
253 phy-mode = "internal";
254 phy-handle = <&phy_port5>;
262 qca,sgmii-enable-pll;
272 #address-cells = <1>;
304 pinctrl-0 = <&rgmii2_pins>;
305 pinctrl-names = "default";
307 nvmem-cells = <&macaddr_ART_6>;
308 nvmem-cell-names = "mac-address";
322 nvmem-cells = <&macaddr_ART_0>;
323 nvmem-cell-names = "mac-address";
332 pinctrl-0 = <&uart0_pins>;
333 pinctrl-names = "default";
338 qcom,mode = <GSBI_PROT_SPI>;
343 pinctrl-0 = <&spi_pins>;
344 pinctrl-names = "default";
346 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
349 compatible = "jedec,spi-nor";
350 spi-max-frequency = <50000000>;
354 compatible = "fixed-partitions";
355 #address-cells = <1>;
366 reg = <0x10000 0x20000>;
372 reg = <0x30000 0x30000>;
378 reg = <0x60000 0x30000>;
384 reg = <0x90000 0x10000>;
390 reg = <0xa0000 0x10000>;
396 reg = <0xb0000 0x30000>;
402 reg = <0xe0000 0x20000>;
408 reg = <0x100000 0x70000>;
414 reg = <0x170000 0x10000>;
420 reg = <0x180000 0x40000>;
424 compatible = "fixed-layout";
425 #address-cells = <1>;
428 macaddr_ART_0: macaddr@0 {
432 macaddr_ART_6: macaddr@6 {
436 macaddr_ART_18: macaddr@18 {
440 macaddr_ART_1e: macaddr@1e {
444 precal_ART_1000: precal@1000 {
445 reg = <0x1000 0x2f20>;
448 precal_ART_5000: precal@5000 {
449 reg = <0x5000 0x2f20>;
455 label = "BOOTCONFIG";
456 reg = <0x1c0000 0x10000>;
462 reg = <0x1d0000 0x70000>;
481 pinctrl-0 = <&usb_pwr_en_pins>;
482 pinctrl-names = "default";
498 #address-cells = <1>;
503 #trigger-source-cells = <0>;
508 #address-cells = <1>;
513 #trigger-source-cells = <0>;
521 reg = <0x00000000 0 0 0 0>;
522 #address-cells = <3>;
527 compatible = "pci168c,0040";
528 reg = <0x00010000 0 0 0 0>;
530 nvmem-cells = <&macaddr_ART_1e>, <&precal_ART_1000>;
531 nvmem-cell-names = "mac-address", "pre-calibration";
538 max-link-speed = <1>;
541 reg = <0x00000000 0 0 0 0>;
542 #address-cells = <3>;
547 compatible = "pci168c,0040";
548 reg = <0x00010000 0 0 0 0>;
550 nvmem-cells = <&macaddr_ART_18>, <&precal_ART_5000>;
551 nvmem-cell-names = "mac-address", "pre-calibration";
557 button_pins: button_pins {
559 pins = "gpio6", "gpio54", "gpio55", "gpio56", "gpio57",
560 "gpio58", "gpio64", "gpio65";
562 drive-strength = <2>;
569 pins = "gpio7", "gpio8", "gpio9", "gpio16", "gpio22",
570 "gpio23", "gpio24", "gpio25", "gpio26", "gpio53";
572 drive-strength = <2>;
577 uart0_pins: uart0_pins {
579 pins = "gpio10", "gpio11";
581 drive-strength = <12>;
588 pins = "gpio18", "gpio19", "gpio21";
594 pins = "gpio18", "gpio19";
595 drive-strength = <10>;
600 drive-strength = <10>;
606 drive-strength = <12>;
610 usb_pwr_en_pins: usb_pwr_en_pins {
614 drive-strength = <2>;