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";
23 /* use "ubi_rootfs" volume in "ubi" partition as rootfs */
24 bootargs = "ubi.block=0,1 root=/dev/ubiblock0_1 rootfstype=squashfs";
28 compatible = "gpio-leds";
29 pinctrl-0 = <&led_pins>;
30 pinctrl-names = "default";
34 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
35 linux,default-trigger = "usbport";
36 trigger-sources = <&hub_port0 &hub_port1>;
40 label = "green:guestport";
41 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
45 label = "orange:diag";
46 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
50 label = "orange:internet";
51 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
55 label = "white:internet";
56 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
60 label = "orange:wireless";
61 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
65 label = "white:wireless";
66 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
70 label = "orange:router";
71 gpios = <&qcom_pinmux 25 GPIO_ACTIVE_HIGH>;
75 label = "white:router";
76 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
80 label = "white:power";
81 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
86 compatible = "gpio-keys";
87 pinctrl-0 = <&button_pins>;
88 pinctrl-names = "default";
92 gpios = <&qcom_pinmux 58 GPIO_ACTIVE_LOW>;
93 linux,code = <KEY_POWER>;
94 debounce-interval = <60>;
100 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
101 linux,code = <KEY_RESTART>;
102 debounce-interval = <60>;
108 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
109 linux,code = <KEY_WPS_BUTTON>;
110 debounce-interval = <60>;
116 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
117 linux,code = <KEY_EJECTCD>;
118 debounce-interval = <60>;
124 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
125 linux,code = <BTN_0>;
126 debounce-interval = <60>;
132 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_LOW>;
133 linux,code = <BTN_1>;
134 linux,input-type = <EV_SW>;
135 debounce-interval = <60>;
141 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_LOW>;
142 linux,code = <BTN_1>;
143 linux,input-type = <EV_SW>;
144 debounce-interval = <60>;
150 gpios = <&qcom_pinmux 57 GPIO_ACTIVE_LOW>;
151 linux,code = <BTN_1>;
152 linux,input-type = <EV_SW>;
153 debounce-interval = <60>;
162 pinctrl-0 = <&nand_pins>;
163 pinctrl-names = "default";
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";
203 qca,ar8327-initvals = <
204 0x00004 0x07600000 /* PAD0_MODE */
205 0x00008 0x01000000 /* PAD5_MODE */
206 0x0000c 0x00000080 /* PAD6_MODE */
207 0x00050 0xcc35cc35 /* LED_CTRL0 */
208 0x00054 0xca35ca35 /* LED_CTRL1 */
209 0x00058 0xc935c935 /* LED_CTRL2 */
210 0x0005c 0x03ffff00 /* LED_CTRL3 */
211 0x000e4 0x0006a545 /* MAC_POWER_SEL */
212 0x000e0 0xc74164de /* SGMII_CTRL */
213 0x0007c 0x0000007e /* PORT0_STATUS */
214 0x00094 0x0000007e /* PORT6_STATUS */
229 pinctrl-0 = <&rgmii2_pins>;
230 pinctrl-names = "default";
232 nvmem-cells = <&macaddr_ART_6>;
233 nvmem-cell-names = "mac-address";
247 nvmem-cells = <&macaddr_ART_0>;
248 nvmem-cell-names = "mac-address";
257 pinctrl-0 = <&uart0_pins>;
258 pinctrl-names = "default";
263 qcom,mode = <GSBI_PROT_SPI>;
268 pinctrl-0 = <&spi_pins>;
269 pinctrl-names = "default";
271 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
274 compatible = "jedec,spi-nor";
275 spi-max-frequency = <50000000>;
279 compatible = "fixed-partitions";
280 #address-cells = <1>;
291 reg = <0x10000 0x20000>;
297 reg = <0x30000 0x30000>;
303 reg = <0x60000 0x30000>;
309 reg = <0x90000 0x10000>;
315 reg = <0xa0000 0x10000>;
321 reg = <0xb0000 0x30000>;
327 reg = <0xe0000 0x20000>;
333 reg = <0x100000 0x70000>;
339 reg = <0x170000 0x10000>;
345 reg = <0x180000 0x40000>;
348 compatible = "nvmem-cells";
349 #address-cells = <1>;
352 macaddr_ART_0: macaddr@0 {
356 macaddr_ART_6: macaddr@6 {
360 macaddr_ART_18: macaddr@18 {
364 macaddr_ART_1e: macaddr@1e {
368 precal_ART_1000: precal@1000 {
369 reg = <0x1000 0x2f20>;
372 precal_ART_5000: precal@5000 {
373 reg = <0x5000 0x2f20>;
378 label = "BOOTCONFIG";
379 reg = <0x1c0000 0x10000>;
385 reg = <0x1d0000 0x70000>;
396 pinctrl-0 = <&usb_pwr_en_pins>;
397 pinctrl-names = "default";
405 #address-cells = <1>;
410 #trigger-source-cells = <0>;
415 #address-cells = <1>;
420 #trigger-source-cells = <0>;
428 reg = <0x00000000 0 0 0 0>;
429 #address-cells = <3>;
434 compatible = "pci168c,0040";
435 reg = <0x00010000 0 0 0 0>;
437 nvmem-cells = <&macaddr_ART_1e>, <&precal_ART_1000>;
438 nvmem-cell-names = "mac-address", "pre-calibration";
445 max-link-speed = <1>;
448 reg = <0x00000000 0 0 0 0>;
449 #address-cells = <3>;
454 compatible = "pci168c,0040";
455 reg = <0x00010000 0 0 0 0>;
457 nvmem-cells = <&macaddr_ART_18>, <&precal_ART_5000>;
458 nvmem-cell-names = "mac-address", "pre-calibration";
464 button_pins: button_pins {
466 pins = "gpio6", "gpio54", "gpio55", "gpio56", "gpio57",
467 "gpio58", "gpio64", "gpio65";
469 drive-strength = <2>;
476 pins = "gpio7", "gpio8", "gpio9", "gpio16", "gpio22",
477 "gpio23", "gpio24", "gpio25", "gpio26", "gpio53";
479 drive-strength = <2>;
484 uart0_pins: uart0_pins {
486 pins = "gpio10", "gpio11";
488 drive-strength = <12>;
495 pins = "gpio18", "gpio19", "gpio21";
501 pins = "gpio18", "gpio19";
502 drive-strength = <10>;
507 drive-strength = <10>;
513 drive-strength = <12>;
517 usb_pwr_en_pins: usb_pwr_en_pins {
521 drive-strength = <2>;