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";
41 compatible = "gpio-leds";
42 pinctrl-0 = <&led_pins>;
43 pinctrl-names = "default";
46 label = "wxr-2533dhp:green:usb";
47 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
48 linux,default-trigger = "usbport";
49 trigger-sources = <&hub_port0 &hub_port1>;
53 label = "wxr-2533dhp:green:guestport";
54 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
58 label = "wxr-2533dhp:orange:diag";
59 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
63 label = "wxr-2533dhp:orange:internet";
64 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
68 label = "wxr-2533dhp:white:internet";
69 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
73 label = "wxr-2533dhp:orange:wireless";
74 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
78 label = "wxr-2533dhp:white:wireless";
79 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
83 label = "wxr-2533dhp:orange:router";
84 gpios = <&qcom_pinmux 25 GPIO_ACTIVE_HIGH>;
88 label = "wxr-2533dhp:white:router";
89 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
93 label = "wxr-2533dhp:white:power";
94 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
99 compatible = "gpio-keys";
100 pinctrl-0 = <&button_pins>;
101 pinctrl-names = "default";
105 gpios = <&qcom_pinmux 58 GPIO_ACTIVE_LOW>;
106 linux,code = <KEY_POWER>;
111 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
112 linux,code = <KEY_RESTART>;
117 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
118 linux,code = <KEY_WPS_BUTTON>;
123 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
124 linux,code = <KEY_EJECTCD>;
129 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
130 linux,code = <BTN_0>;
135 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_LOW>;
136 linux,code = <BTN_1>;
137 linux,input-type = <EV_SW>;
142 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_LOW>;
143 linux,code = <BTN_1>;
144 linux,input-type = <EV_SW>;
149 gpios = <&qcom_pinmux 57 GPIO_ACTIVE_LOW>;
150 linux,code = <BTN_1>;
151 linux,input-type = <EV_SW>;
159 pinctrl-0 = <&nand_pins>;
160 pinctrl-names = "default";
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";
200 qca,ar8327-initvals = <
201 0x00004 0x07600000 /* PAD0_MODE */
202 0x00008 0x01000000 /* PAD5_MODE */
203 0x0000c 0x00000080 /* PAD6_MODE */
204 0x00050 0xcc35cc35 /* LED_CTRL0 */
205 0x00054 0xca35ca35 /* LED_CTRL1 */
206 0x00058 0xc935c935 /* LED_CTRL2 */
207 0x0005c 0x03ffff00 /* LED_CTRL3 */
208 0x000e4 0x0006a545 /* MAC_POWER_SEL */
209 0x000e0 0xc74164de /* SGMII_CTRL */
210 0x0007c 0x0000007e /* PORT0_STATUS */
211 0x00094 0x0000007e /* PORT6_STATUS */
226 pinctrl-0 = <&rgmii2_pins>;
227 pinctrl-names = "default";
229 mtd-mac-address = <&ART 6>;
243 mtd-mac-address = <&ART 0>;
253 qcom,mode = <GSBI_PROT_I2C_UART>;
259 pinctrl-0 = <&uart0_pins>;
260 pinctrl-names = "default";
265 qcom,mode = <GSBI_PROT_SPI>;
270 pinctrl-0 = <&spi_pins>;
271 pinctrl-names = "default";
273 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
276 compatible = "jedec,spi-nor";
277 spi-max-frequency = <50000000>;
281 compatible = "fixed-partitions";
282 #address-cells = <1>;
293 reg = <0x10000 0x20000>;
299 reg = <0x30000 0x30000>;
305 reg = <0x60000 0x30000>;
311 reg = <0x90000 0x10000>;
317 reg = <0xa0000 0x10000>;
323 reg = <0xb0000 0x30000>;
329 reg = <0xe0000 0x20000>;
335 reg = <0x100000 0x70000>;
341 reg = <0x170000 0x10000>;
347 reg = <0x180000 0x40000>;
352 label = "BOOTCONFIG";
353 reg = <0x1c0000 0x10000>;
359 reg = <0x1d0000 0x70000>;
370 pinctrl-0 = <&usb_pwr_en_pins>;
371 pinctrl-names = "default";
379 #address-cells = <1>;
384 #trigger-source-cells = <0>;
389 #address-cells = <1>;
394 #trigger-source-cells = <0>;
408 button_pins: button_pins {
410 pins = "gpio6", "gpio54", "gpio55", "gpio56", "gpio57",
411 "gpio58", "gpio64", "gpio65";
413 drive-strength = <2>;
420 pins = "gpio7", "gpio8", "gpio9", "gpio16", "gpio22",
421 "gpio23", "gpio24", "gpio25", "gpio26", "gpio53";
423 drive-strength = <2>;
428 uart0_pins: uart0_pins {
430 pins = "gpio10", "gpio11";
432 drive-strength = <12>;
439 pins = "gpio18", "gpio19", "gpio21";
445 pins = "gpio18", "gpio19";
446 drive-strength = <10>;
451 drive-strength = <10>;
457 drive-strength = <12>;
461 mdio0_pins: mdio0_pins {
463 pins = "gpio0", "gpio1";
465 drive-strength = <8>;
470 nand_pins: nand_pins {
472 pins = "gpio34", "gpio35", "gpio36",
475 drive-strength = <10>;
482 drive-strength = <10>;
487 pins = "gpio40", "gpio41", "gpio42",
488 "gpio43", "gpio44", "gpio45",
491 drive-strength = <10>;
496 rgmii2_pins: rgmii2_pins {
498 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
499 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
501 drive-strength = <8>;
506 usb_pwr_en_pins: usb_pwr_en_pins {
510 drive-strength = <2>;