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>;
33 /* use "ubi_rootfs" volume in "ubi" partition as rootfs */
34 bootargs = "ubi.block=0,1 root=/dev/ubiblock0_1 rootfstype=squashfs";
38 compatible = "gpio-leds";
39 pinctrl-0 = <&led_pins>;
40 pinctrl-names = "default";
43 label = "wxr-2533dhp:green:usb";
44 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
45 linux,default-trigger = "usbport";
46 trigger-sources = <&hub_port0 &hub_port1>;
50 label = "wxr-2533dhp:green:guestport";
51 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
55 label = "wxr-2533dhp:orange:diag";
56 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
60 label = "wxr-2533dhp:orange:internet";
61 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
65 label = "wxr-2533dhp:white:internet";
66 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
70 label = "wxr-2533dhp:orange:wireless";
71 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
75 label = "wxr-2533dhp:white:wireless";
76 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
80 label = "wxr-2533dhp:orange:router";
81 gpios = <&qcom_pinmux 25 GPIO_ACTIVE_HIGH>;
85 label = "wxr-2533dhp:white:router";
86 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
90 label = "wxr-2533dhp:white:power";
91 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
96 compatible = "gpio-keys";
97 pinctrl-0 = <&button_pins>;
98 pinctrl-names = "default";
102 gpios = <&qcom_pinmux 58 GPIO_ACTIVE_LOW>;
103 linux,code = <KEY_POWER>;
108 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
109 linux,code = <KEY_RESTART>;
114 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
115 linux,code = <KEY_WPS_BUTTON>;
120 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
121 linux,code = <KEY_EJECTCD>;
126 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
127 linux,code = <BTN_0>;
132 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_LOW>;
133 linux,code = <BTN_1>;
134 linux,input-type = <EV_SW>;
139 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_LOW>;
140 linux,code = <BTN_1>;
141 linux,input-type = <EV_SW>;
146 gpios = <&qcom_pinmux 57 GPIO_ACTIVE_LOW>;
147 linux,code = <BTN_1>;
148 linux,input-type = <EV_SW>;
156 pinctrl-0 = <&nand_pins>;
157 pinctrl-names = "default";
161 compatible = "qcom,nandcs";
163 nand-ecc-strength = <4>;
164 nand-bus-width = <8>;
165 nand-ecc-step-size = <512>;
168 compatible = "fixed-partitions";
169 #address-cells = <1>;
174 reg = <0x0000000 0x4000000>;
179 reg = <0x4000000 0x4000000>;
192 pinctrl-0 = <&mdio0_pins>;
193 pinctrl-names = "default";
197 qca,ar8327-initvals = <
198 0x00004 0x07600000 /* PAD0_MODE */
199 0x00008 0x01000000 /* PAD5_MODE */
200 0x0000c 0x00000080 /* PAD6_MODE */
201 0x00050 0xcc35cc35 /* LED_CTRL0 */
202 0x00054 0xca35ca35 /* LED_CTRL1 */
203 0x00058 0xc935c935 /* LED_CTRL2 */
204 0x0005c 0x03ffff00 /* LED_CTRL3 */
205 0x000e4 0x0006a545 /* MAC_POWER_SEL */
206 0x000e0 0xc74164de /* SGMII_CTRL */
207 0x0007c 0x0000007e /* PORT0_STATUS */
208 0x00094 0x0000007e /* PORT6_STATUS */
223 pinctrl-0 = <&rgmii2_pins>;
224 pinctrl-names = "default";
226 mtd-mac-address = <&ART 6>;
240 mtd-mac-address = <&ART 0>;
250 qcom,mode = <GSBI_PROT_I2C_UART>;
256 pinctrl-0 = <&uart0_pins>;
257 pinctrl-names = "default";
262 qcom,mode = <GSBI_PROT_SPI>;
267 pinctrl-0 = <&spi_pins>;
268 pinctrl-names = "default";
270 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
273 compatible = "jedec,spi-nor";
274 spi-max-frequency = <50000000>;
278 compatible = "fixed-partitions";
279 #address-cells = <1>;
290 reg = <0x10000 0x20000>;
296 reg = <0x30000 0x30000>;
302 reg = <0x60000 0x30000>;
308 reg = <0x90000 0x10000>;
314 reg = <0xa0000 0x10000>;
320 reg = <0xb0000 0x30000>;
326 reg = <0xe0000 0x20000>;
332 reg = <0x100000 0x70000>;
338 reg = <0x170000 0x10000>;
344 reg = <0x180000 0x40000>;
349 label = "BOOTCONFIG";
350 reg = <0x1c0000 0x10000>;
356 reg = <0x1d0000 0x70000>;
367 pinctrl-0 = <&usb_pwr_en_pins>;
368 pinctrl-names = "default";
376 #address-cells = <1>;
381 #trigger-source-cells = <0>;
386 #address-cells = <1>;
391 #trigger-source-cells = <0>;
405 button_pins: button_pins {
407 pins = "gpio6", "gpio54", "gpio55", "gpio56", "gpio57",
408 "gpio58", "gpio64", "gpio65";
410 drive-strength = <2>;
417 pins = "gpio7", "gpio8", "gpio9", "gpio16", "gpio22",
418 "gpio23", "gpio24", "gpio25", "gpio26", "gpio53";
420 drive-strength = <2>;
425 uart0_pins: uart0_pins {
427 pins = "gpio10", "gpio11";
429 drive-strength = <12>;
436 pins = "gpio18", "gpio19", "gpio21";
442 pins = "gpio18", "gpio19";
443 drive-strength = <10>;
448 drive-strength = <10>;
454 drive-strength = <12>;
458 usb_pwr_en_pins: usb_pwr_en_pins {
462 drive-strength = <2>;