ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9531_alfa-network_r36a.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "qca9531_alfa-network_r36a.dtsi"
6
7 / {
8 model = "ALFA Network R36A";
9 compatible = "alfa-network,r36a", "qca,qca9531";
10
11 aliases {
12 led-boot = &led_status;
13 led-failsafe = &led_status;
14 led-running = &led_status;
15 led-upgrade = &led_status;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 pinctrl-names = "default";
22 pinctrl-0 = <&enable_gpio4 &enable_gpio16>;
23
24 lan {
25 function = LED_FUNCTION_LAN;
26 color = <LED_COLOR_ID_BLUE>;
27 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
28 };
29
30 led_status: status {
31 function = LED_FUNCTION_STATUS;
32 color = <LED_COLOR_ID_BLUE>;
33 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
34 };
35
36 usb {
37 function = LED_FUNCTION_USB;
38 color = <LED_COLOR_ID_BLUE>;
39 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
40 trigger-sources = <&hub_port0>;
41 linux,default-trigger = "usbport";
42 };
43
44 wan {
45 function = LED_FUNCTION_WAN;
46 color = <LED_COLOR_ID_BLUE>;
47 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
48 };
49
50 wlan {
51 function = LED_FUNCTION_WLAN;
52 color = <LED_COLOR_ID_BLUE>;
53 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "phy0tpt";
55 };
56 };
57 };
58
59 &eth0 {
60 nvmem-cells = <&macaddr_art_1002 (-2)>;
61 nvmem-cell-names = "mac-address";
62 };
63
64 &eth1 {
65 /* Workaround: keep the Ethernet interfaces order/mapping correct
66 * (GMAC0 -> eth0, GMAC1 -> eth1, same as in old ar71xx target) */
67 compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
68
69 nvmem-cells = <&macaddr_art_1002 (-1)>;
70 nvmem-cell-names = "mac-address";
71 };
72
73 &gpio_export {
74 usb-power {
75 gpio-export,name = "usb-power";
76 gpio-export,output = <1>;
77 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
78 };
79 };
80
81 &keys {
82 rfkill {
83 label = "rfkill";
84 linux,code = <KEY_RFKILL>;
85 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
86 debounce-interval = <60>;
87 };
88 };