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>
5 #include <dt-bindings/leds/common.h>
8 model = "Buffalo WXR-2533DHP";
9 compatible = "buffalo,wxr-2533dhp", "qcom,ipq8064";
12 reg = <0x42000000 0x1e000000>;
13 device_type = "memory";
24 /* use "ubi_rootfs" volume in "ubi" partition as rootfs */
25 bootargs = "ubi.block=0,1 root=/dev/ubiblock0_1 rootfstype=squashfs";
29 compatible = "gpio-leds";
30 pinctrl-0 = <&led_pins>;
31 pinctrl-names = "default";
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>;
42 label = "green:guestport";
43 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
47 label = "orange:diag";
48 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
52 label = "orange:internet";
53 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
57 label = "white:internet";
58 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
62 label = "orange:wireless";
63 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
67 label = "white:wireless";
68 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
72 label = "orange:router";
73 gpios = <&qcom_pinmux 25 GPIO_ACTIVE_HIGH>;
77 label = "white:router";
78 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
82 function = LED_FUNCTION_POWER;
83 color = <LED_COLOR_ID_WHITE>;
84 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
89 compatible = "gpio-keys";
90 pinctrl-0 = <&button_pins>;
91 pinctrl-names = "default";
95 gpios = <&qcom_pinmux 58 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_POWER>;
97 debounce-interval = <60>;
103 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
104 linux,code = <KEY_RESTART>;
105 debounce-interval = <60>;
111 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
112 linux,code = <KEY_WPS_BUTTON>;
113 debounce-interval = <60>;
119 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
120 linux,code = <KEY_EJECTCD>;
121 debounce-interval = <60>;
127 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
128 linux,code = <BTN_0>;
129 debounce-interval = <60>;
135 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_LOW>;
136 linux,code = <BTN_1>;
137 linux,input-type = <EV_SW>;
138 debounce-interval = <60>;
144 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_LOW>;
145 linux,code = <BTN_1>;
146 linux,input-type = <EV_SW>;
147 debounce-interval = <60>;
153 gpios = <&qcom_pinmux 57 GPIO_ACTIVE_LOW>;
154 linux,code = <BTN_1>;
155 linux,input-type = <EV_SW>;
156 debounce-interval = <60>;
167 compatible = "qcom,nandcs";
169 nand-ecc-strength = <4>;
170 nand-bus-width = <8>;
171 nand-ecc-step-size = <512>;
174 compatible = "fixed-partitions";
175 #address-cells = <1>;
180 reg = <0x0000000 0x4000000>;
185 reg = <0x4000000 0x4000000>;
198 pinctrl-0 = <&mdio0_pins>;
199 pinctrl-names = "default";
202 compatible = "qca,qca8337";
203 #address-cells = <1>;
208 #address-cells = <1>;
216 tx-internal-delay-ps = <1000>;
217 rx-internal-delay-ps = <1000>;
228 phy-mode = "internal";
229 phy-handle = <&phy_port1>;
235 phy-mode = "internal";
236 phy-handle = <&phy_port2>;
242 phy-mode = "internal";
243 phy-handle = <&phy_port3>;
249 phy-mode = "internal";
250 phy-handle = <&phy_port4>;
256 phy-mode = "internal";
257 phy-handle = <&phy_port5>;
265 qca,sgmii-enable-pll;
275 #address-cells = <1>;
307 pinctrl-0 = <&rgmii2_pins>;
308 pinctrl-names = "default";
310 nvmem-cells = <&macaddr_ART_6>;
311 nvmem-cell-names = "mac-address";
325 nvmem-cells = <&macaddr_ART_0>;
326 nvmem-cell-names = "mac-address";
335 pinctrl-0 = <&uart0_pins>;
336 pinctrl-names = "default";
341 qcom,mode = <GSBI_PROT_SPI>;
346 pinctrl-0 = <&spi_pins>;
347 pinctrl-names = "default";
349 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
352 compatible = "jedec,spi-nor";
353 spi-max-frequency = <50000000>;
357 compatible = "fixed-partitions";
358 #address-cells = <1>;
369 reg = <0x10000 0x20000>;
375 reg = <0x30000 0x30000>;
381 reg = <0x60000 0x30000>;
387 reg = <0x90000 0x10000>;
393 reg = <0xa0000 0x10000>;
399 reg = <0xb0000 0x30000>;
405 reg = <0xe0000 0x20000>;
411 reg = <0x100000 0x70000>;
417 reg = <0x170000 0x10000>;
423 reg = <0x180000 0x40000>;
427 compatible = "fixed-layout";
428 #address-cells = <1>;
431 macaddr_ART_0: macaddr@0 {
435 macaddr_ART_6: macaddr@6 {
439 macaddr_ART_18: macaddr@18 {
443 macaddr_ART_1e: macaddr@1e {
447 precal_ART_1000: precal@1000 {
448 reg = <0x1000 0x2f20>;
451 precal_ART_5000: precal@5000 {
452 reg = <0x5000 0x2f20>;
458 label = "BOOTCONFIG";
459 reg = <0x1c0000 0x10000>;
465 reg = <0x1d0000 0x70000>;
484 pinctrl-0 = <&usb_pwr_en_pins>;
485 pinctrl-names = "default";
501 #address-cells = <1>;
506 #trigger-source-cells = <0>;
511 #address-cells = <1>;
516 #trigger-source-cells = <0>;
524 reg = <0x00000000 0 0 0 0>;
525 #address-cells = <3>;
530 compatible = "pci168c,0040";
531 reg = <0x00010000 0 0 0 0>;
533 nvmem-cells = <&macaddr_ART_1e>, <&precal_ART_1000>;
534 nvmem-cell-names = "mac-address", "pre-calibration";
541 max-link-speed = <1>;
544 reg = <0x00000000 0 0 0 0>;
545 #address-cells = <3>;
550 compatible = "pci168c,0040";
551 reg = <0x00010000 0 0 0 0>;
553 nvmem-cells = <&macaddr_ART_18>, <&precal_ART_5000>;
554 nvmem-cell-names = "mac-address", "pre-calibration";
560 button_pins: button_pins {
562 pins = "gpio6", "gpio54", "gpio55", "gpio56", "gpio57",
563 "gpio58", "gpio64", "gpio65";
565 drive-strength = <2>;
572 pins = "gpio7", "gpio8", "gpio9", "gpio16", "gpio22",
573 "gpio23", "gpio24", "gpio25", "gpio26", "gpio53";
575 drive-strength = <2>;
580 uart0_pins: uart0_pins {
582 pins = "gpio10", "gpio11";
584 drive-strength = <12>;
591 pins = "gpio18", "gpio19", "gpio21";
597 pins = "gpio18", "gpio19";
598 drive-strength = <10>;
603 drive-strength = <10>;
609 drive-strength = <12>;
613 usb_pwr_en_pins: usb_pwr_en_pins {
617 drive-strength = <2>;