ath79: replace generic button node names
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9561_tplink_archer-c6x.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "qca956x.dtsi"
8
9 / {
10         chosen {
11                 bootargs = "console=ttyS0,115200n8";
12         };
13
14         aliases {
15                 led-boot = &led_power;
16                 led-failsafe = &led_power;
17                 led-running = &led_power;
18                 led-upgrade = &led_power;
19                 label-mac-device = &eth0;
20         };
21
22         keys {
23                 compatible = "gpio-keys";
24
25                 wifi {
26                         label = "WiFi button";
27                         linux,code = <KEY_RFKILL>;
28                         gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
29                 };
30
31                 reset {
32                         label = "Reset button";
33                         linux,code = <KEY_RESTART>;
34                         gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
35                 };
36         };
37
38         leds {
39                 compatible = "gpio-leds";
40
41                 led_power: power {
42                         label = "tp-link:green:power";
43                         gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
44                         default-state = "on";
45                 };
46
47                 wlan2g {
48                         label = "tp-link:green:wlan2g";
49                         gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
50                         linux,default-trigger = "phy1tpt";
51                 };
52
53                 wlan5g {
54                         label = "tp-link:green:wlan5g";
55                         gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
56                         linux,default-trigger = "phy0tpt";
57                 };
58
59                 wan_green {
60                         label = "tp-link:green:wan";
61                         gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
62                 };
63
64                 wan_amber {
65                         label = "tp-link:amber:wan";
66                         gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
67                 };
68
69                 lan {
70                         label = "tp-link:green:lan";
71                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
72                 };
73
74                 wps {
75                         label = "tp-link:green:wps";
76                         gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
77                 };
78         };
79 };
80
81 &uart {
82         status = "okay";
83 };
84
85 &pcie {
86         status = "okay";
87 };
88
89 &eth0 {
90         status = "okay";
91
92         phy-mode = "mii";
93         phy-handle = <&swphy4>;
94
95         mtd-mac-address = <&mac 0x8>;
96 };
97
98 &eth1 {
99         status = "okay";
100
101         mtd-mac-address = <&mac 0x8>;
102         mtd-mac-address-increment = <1>;
103 };
104
105 &wmac {
106         status = "okay";
107
108         mtd-cal-data = <&art 0x1000>;
109         mtd-mac-address = <&mac 0x8>;
110 };