ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9561_tplink_archer-c6x.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 wifi {
21 label = "WiFi button";
22 linux,code = <KEY_RFKILL>;
23 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
24 };
25
26 reset {
27 label = "Reset button";
28 linux,code = <KEY_RESTART>;
29 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
30 };
31 };
32
33 leds: leds {
34 compatible = "gpio-leds";
35
36 led_power: power {
37 function = LED_FUNCTION_POWER;
38 color = <LED_COLOR_ID_GREEN>;
39 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
40 default-state = "on";
41 };
42
43 wlan2g {
44 label = "green:wlan2g";
45 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy1tpt";
47 };
48
49 wlan5g {
50 label = "green:wlan5g";
51 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy0tpt";
53 };
54
55 wan_green {
56 function = LED_FUNCTION_WAN;
57 color = <LED_COLOR_ID_GREEN>;
58 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
59 };
60
61 lan {
62 function = LED_FUNCTION_LAN;
63 color = <LED_COLOR_ID_GREEN>;
64 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
65 };
66 };
67 };
68
69 &pcie {
70 status = "okay";
71 };
72
73 &eth0 {
74 status = "okay";
75
76 phy-handle = <&swphy4>;
77 };
78
79 &eth1 {
80 status = "okay";
81 };
82
83 &wmac {
84 status = "okay";
85 };