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