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";
40 compatible = "gpio-leds";
41 pinctrl-0 = <&led_pins>;
42 pinctrl-names = "default";
45 label = "wxr-2533dhp:green:usb";
46 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
47 linux,default-trigger = "usbport";
48 trigger-sources = <&hub_port0 &hub_port1>;
52 label = "wxr-2533dhp:green:guestport";
53 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
57 label = "wxr-2533dhp:orange:diag";
58 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
62 label = "wxr-2533dhp:orange:internet";
63 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
67 label = "wxr-2533dhp:white:internet";
68 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
72 label = "wxr-2533dhp:orange:wireless";
73 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
77 label = "wxr-2533dhp:white:wireless";
78 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
82 label = "wxr-2533dhp:orange:router";
83 gpios = <&qcom_pinmux 25 GPIO_ACTIVE_HIGH>;
87 label = "wxr-2533dhp:white:router";
88 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
92 label = "wxr-2533dhp:white:power";
93 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
98 compatible = "gpio-keys";
99 pinctrl-0 = <&button_pins>;
100 pinctrl-names = "default";
104 gpios = <&qcom_pinmux 58 GPIO_ACTIVE_LOW>;
105 linux,code = <KEY_POWER>;
110 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
111 linux,code = <KEY_RESTART>;
116 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
117 linux,code = <KEY_WPS_BUTTON>;
122 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
123 linux,code = <KEY_EJECTCD>;
128 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
129 linux,code = <BTN_0>;
134 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_LOW>;
135 linux,code = <BTN_1>;
136 linux,input-type = <EV_SW>;
141 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_LOW>;
142 linux,code = <BTN_1>;
143 linux,input-type = <EV_SW>;
148 gpios = <&qcom_pinmux 57 GPIO_ACTIVE_LOW>;
149 linux,code = <BTN_1>;
150 linux,input-type = <EV_SW>;
158 pinctrl-0 = <&nand_pins>;
159 pinctrl-names = "default";
163 compatible = "qcom,nandcs";
165 nand-ecc-strength = <4>;
166 nand-bus-width = <8>;
167 nand-ecc-step-size = <512>;
170 compatible = "fixed-partitions";
171 #address-cells = <1>;
176 reg = <0x0000000 0x4000000>;
181 reg = <0x4000000 0x4000000>;
194 pinctrl-0 = <&mdio0_pins>;
195 pinctrl-names = "default";
199 qca,ar8327-initvals = <
200 0x00004 0x07600000 /* PAD0_MODE */
201 0x00008 0x01000000 /* PAD5_MODE */
202 0x0000c 0x00000080 /* PAD6_MODE */
203 0x00050 0xcc35cc35 /* LED_CTRL0 */
204 0x00054 0xca35ca35 /* LED_CTRL1 */
205 0x00058 0xc935c935 /* LED_CTRL2 */
206 0x0005c 0x03ffff00 /* LED_CTRL3 */
207 0x000e4 0x0006a545 /* MAC_POWER_SEL */
208 0x000e0 0xc74164de /* SGMII_CTRL */
209 0x0007c 0x0000007e /* PORT0_STATUS */
210 0x00094 0x0000007e /* PORT6_STATUS */
225 pinctrl-0 = <&rgmii2_pins>;
226 pinctrl-names = "default";
228 mtd-mac-address = <&ART 6>;
242 mtd-mac-address = <&ART 0>;
252 qcom,mode = <GSBI_PROT_I2C_UART>;
258 pinctrl-0 = <&uart0_pins>;
259 pinctrl-names = "default";
264 qcom,mode = <GSBI_PROT_SPI>;
269 pinctrl-0 = <&spi_pins>;
270 pinctrl-names = "default";
272 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
275 compatible = "jedec,spi-nor";
276 spi-max-frequency = <50000000>;
280 compatible = "fixed-partitions";
281 #address-cells = <1>;
292 reg = <0x10000 0x20000>;
298 reg = <0x30000 0x30000>;
304 reg = <0x60000 0x30000>;
310 reg = <0x90000 0x10000>;
316 reg = <0xa0000 0x10000>;
322 reg = <0xb0000 0x30000>;
328 reg = <0xe0000 0x20000>;
334 reg = <0x100000 0x70000>;
340 reg = <0x170000 0x10000>;
346 reg = <0x180000 0x40000>;
351 label = "BOOTCONFIG";
352 reg = <0x1c0000 0x10000>;
358 reg = <0x1d0000 0x70000>;
369 pinctrl-0 = <&usb_pwr_en_pins>;
370 pinctrl-names = "default";
378 #address-cells = <1>;
383 #trigger-source-cells = <0>;
388 #address-cells = <1>;
393 #trigger-source-cells = <0>;
407 button_pins: button_pins {
409 pins = "gpio6", "gpio54", "gpio55", "gpio56", "gpio57",
410 "gpio58", "gpio64", "gpio65";
412 drive-strength = <2>;
419 pins = "gpio7", "gpio8", "gpio9", "gpio16", "gpio22",
420 "gpio23", "gpio24", "gpio25", "gpio26", "gpio53";
422 drive-strength = <2>;
427 uart0_pins: uart0_pins {
429 pins = "gpio10", "gpio11";
431 drive-strength = <12>;
438 pins = "gpio18", "gpio19", "gpio21";
444 pins = "gpio18", "gpio19";
445 drive-strength = <10>;
450 drive-strength = <10>;
456 drive-strength = <12>;
460 usb_pwr_en_pins: usb_pwr_en_pins {
464 drive-strength = <2>;