1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 #include "qcom-ipq8064-v2.0.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";
20 reg = <0x41200000 0x300000>;
26 serial0 = &gsbi4_serial;
35 /* use "ubi_rootfs" volume in "ubi" partition as rootfs */
36 bootargs = "ubi.block=0,1 root=/dev/ubiblock0_1 rootfstype=squashfs";
37 stdout-path = "serial0:115200n8";
44 pinctrl-0 = <&nand_pins>;
45 pinctrl-names = "default";
49 compatible = "qcom,nandcs";
51 nand-ecc-strength = <4>;
53 nand-ecc-step-size = <512>;
56 compatible = "fixed-partitions";
62 reg = <0x0000000 0x4000000>;
67 reg = <0x4000000 0x4000000>;
74 compatible = "virtual,mdio-gpio";
77 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH>,
78 <&qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
79 pinctrl-0 = <&mdio0_pins>;
80 pinctrl-names = "default";
84 qca,ar8327-initvals = <
85 0x00004 0x07600000 /* PAD0_MODE */
86 0x00008 0x01000000 /* PAD5_MODE */
87 0x0000c 0x00000080 /* PAD6_MODE */
88 0x00050 0xcc35cc35 /* LED_CTRL0 */
89 0x00054 0xca35ca35 /* LED_CTRL1 */
90 0x00058 0xc935c935 /* LED_CTRL2 */
91 0x0005c 0x03ffff00 /* LED_CTRL3 */
92 0x000e4 0x0006a545 /* MAC_POWER_SEL */
93 0x000e0 0xc74164de /* SGMII_CTRL */
94 0x0007c 0x0000007e /* PORT0_STATUS */
95 0x00094 0x0000007e /* PORT6_STATUS */
106 compatible = "gpio-leds";
107 pinctrl-0 = <&led_pins>;
108 pinctrl-names = "default";
111 label = "wxr-2533dhp:green:usb";
112 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
113 linux,default-trigger = "usbport";
114 trigger-sources = <&hub_port0 &hub_port1>;
118 label = "wxr-2533dhp:green:guestport";
119 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
123 label = "wxr-2533dhp:orange:diag";
124 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
128 label = "wxr-2533dhp:orange:internet";
129 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
133 label = "wxr-2533dhp:white:internet";
134 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
138 label = "wxr-2533dhp:orange:wireless";
139 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
143 label = "wxr-2533dhp:white:wireless";
144 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
148 label = "wxr-2533dhp:orange:router";
149 gpios = <&qcom_pinmux 25 GPIO_ACTIVE_HIGH>;
153 label = "wxr-2533dhp:white:router";
154 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
158 label = "wxr-2533dhp:white:power";
159 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
164 compatible = "gpio-keys";
165 pinctrl-0 = <&button_pins>;
166 pinctrl-names = "default";
170 gpios = <&qcom_pinmux 58 GPIO_ACTIVE_LOW>;
171 linux,code = <KEY_POWER>;
176 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
177 linux,code = <KEY_RESTART>;
182 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
183 linux,code = <KEY_WPS_BUTTON>;
188 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
189 linux,code = <KEY_EJECTCD>;
194 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
195 linux,code = <BTN_0>;
200 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_LOW>;
201 linux,code = <BTN_1>;
202 linux,input-type = <EV_SW>;
207 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_LOW>;
208 linux,code = <BTN_1>;
209 linux,input-type = <EV_SW>;
214 gpios = <&qcom_pinmux 57 GPIO_ACTIVE_LOW>;
215 linux,code = <BTN_1>;
216 linux,input-type = <EV_SW>;
231 pinctrl-0 = <&rgmii2_pins>;
232 pinctrl-names = "default";
234 mtd-mac-address = <&ART 6>;
248 mtd-mac-address = <&ART 0>;
258 qcom,mode = <GSBI_PROT_I2C_UART>;
264 pinctrl-0 = <&uart0_pins>;
265 pinctrl-names = "default";
270 qcom,mode = <GSBI_PROT_SPI>;
275 pinctrl-0 = <&spi_pins>;
276 pinctrl-names = "default";
278 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
281 compatible = "jedec,spi-nor";
282 spi-max-frequency = <50000000>;
286 compatible = "fixed-partitions";
287 #address-cells = <1>;
298 reg = <0x10000 0x20000>;
304 reg = <0x30000 0x30000>;
310 reg = <0x60000 0x30000>;
316 reg = <0x90000 0x10000>;
322 reg = <0xa0000 0x10000>;
328 reg = <0xb0000 0x30000>;
334 reg = <0xe0000 0x20000>;
340 reg = <0x100000 0x70000>;
346 reg = <0x170000 0x10000>;
352 reg = <0x180000 0x40000>;
357 label = "BOOTCONFIG";
358 reg = <0x1c0000 0x10000>;
364 reg = <0x1d0000 0x70000>;
372 &hs_phy_0 { /* USB3 port 0 HS phy */
376 &ss_phy_0 { /* USB3 port 0 SS phy */
380 &hs_phy_1 { /* USB3 port 1 HS phy */
384 &ss_phy_1 { /* USB3 port 1 SS phy */
391 pinctrl-0 = <&usb_pwr_en_pins>;
392 pinctrl-names = "default";
400 #address-cells = <1>;
405 #trigger-source-cells = <0>;
410 #address-cells = <1>;
415 #trigger-source-cells = <0>;
429 button_pins: button_pins {
431 pins = "gpio6", "gpio54", "gpio55", "gpio56", "gpio57",
432 "gpio58", "gpio64", "gpio65";
434 drive-strength = <2>;
441 pins = "gpio7", "gpio8", "gpio9", "gpio16", "gpio22",
442 "gpio23", "gpio24", "gpio25", "gpio26", "gpio53";
444 drive-strength = <2>;
449 uart0_pins: uart0_pins {
451 pins = "gpio10", "gpio11";
453 drive-strength = <12>;
460 pins = "gpio18", "gpio19", "gpio21";
466 pins = "gpio18", "gpio19";
467 drive-strength = <10>;
472 drive-strength = <10>;
478 drive-strength = <12>;
482 mdio0_pins: mdio0_pins {
484 pins = "gpio0", "gpio1";
486 drive-strength = <8>;
491 nand_pins: nand_pins {
493 pins = "gpio34", "gpio35", "gpio36",
494 "gpio37", "gpio38", "gpio39",
495 "gpio40", "gpio41", "gpio42",
496 "gpio43", "gpio44", "gpio45",
499 drive-strength = <10>;
509 pins = "gpio40", "gpio41", "gpio42",
510 "gpio43", "gpio44", "gpio45",
516 rgmii2_pins: rgmii2_pins {
518 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
519 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
521 drive-strength = <8>;
526 usb_pwr_en_pins: usb_pwr_en_pins {
530 drive-strength = <2>;