1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca953x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 model = "ALFA Network R36A";
10 compatible = "alfa-network,r36a", "qca,qca9531";
13 label-mac-device = &wmac;
14 led-boot = &led_status;
15 led-failsafe = &led_status;
16 led-running = &led_status;
17 led-upgrade = &led_status;
21 compatible = "gpio-export";
25 gpio-export,name = "usb-power";
26 gpio-export,output = <1>;
27 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
31 gpio-export,name = "watchdog-enable";
32 gpio-export,output = <1>;
33 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
38 compatible = "gpio-keys";
42 linux,code = <KEY_RESTART>;
43 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
44 debounce-interval = <60>;
49 linux,code = <KEY_RFKILL>;
50 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
51 debounce-interval = <60>;
56 compatible = "gpio-leds";
58 pinctrl-names = "default";
59 pinctrl-0 = <&enable_gpio4 &enable_gpio16>;
62 label = "r36a:blue:lan";
63 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
67 label = "r36a:blue:status";
68 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
72 label = "r36a:blue:usb";
73 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
74 trigger-sources = <&hub_port0>;
75 linux,default-trigger = "usbport";
79 label = "r36a:blue:wan";
80 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
84 label = "r36a:blue:wlan";
85 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
86 linux,default-trigger = "phy0tpt";
91 compatible = "linux,wdt-gpio";
92 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
94 hw_margin_ms = <25000>;
102 phy-handle = <&swphy4>;
103 mtd-mac-address = <&art 0x0>;
107 /* Workaround: keep the Ethernet interfaces order/mapping correct
108 * (GMAC0 -> eth0, GMAC1 -> eth1, same as in old ar71xx target) */
109 compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
111 mtd-mac-address = <&art 0x6>;
115 enable_gpio4: pinmux_enable_gpio4 {
116 pinctrl-single,bits = <0x04 0x0 0xff>;
119 enable_gpio16: pinmux_enable_gpio16 {
120 pinctrl-single,bits = <0x10 0x0 0xff>;
130 compatible = "jedec,spi-nor";
132 spi-max-frequency = <50000000>;
136 compatible = "fixed-partitions";
137 #address-cells = <1>;
142 reg = <0x000000 0x060000>;
147 label = "u-boot-env";
148 reg = <0x060000 0x010000>;
151 art: partition@70000 {
153 reg = <0x070000 0x010000>;
158 compatible = "denx,uimage";
160 reg = <0x080000 0xf80000>;
173 #address-cells = <1>;
178 #trigger-source-cells = <0>;
189 mtd-cal-data = <&art 0x1000>;