b1b166d89a6d0a5e0cf39b0217e0b19b1d1f2872
[oweals/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                 label-mac-device = &eth1;
19         };
20
21         keys {
22                 compatible = "gpio-keys";
23
24                 wifi {
25                         label = "WiFi button";
26                         linux,code = <KEY_RFKILL>;
27                         gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
28                 };
29
30                 reset {
31                         label = "Reset button";
32                         linux,code = <KEY_RESTART>;
33                         gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
34                 };
35         };
36
37         leds: leds {
38                 compatible = "gpio-leds";
39
40                 led_power: power {
41                         label = "tp-link:green:power";
42                         gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
43                         default-state = "on";
44                 };
45
46                 wlan2g {
47                         label = "tp-link:green:wlan2g";
48                         gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
49                         linux,default-trigger = "phy1tpt";
50                 };
51
52                 wlan5g {
53                         label = "tp-link:green:wlan5g";
54                         gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
55                         linux,default-trigger = "phy0tpt";
56                 };
57
58                 wan_green {
59                         label = "tp-link:green:wan";
60                         gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
61                 };
62
63                 lan {
64                         label = "tp-link:green:lan";
65                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
66                 };
67         };
68 };
69
70 &uart {
71         status = "okay";
72 };
73
74 &pcie {
75         status = "okay";
76 };
77
78 &eth0 {
79         status = "okay";
80
81         phy-handle = <&swphy4>;
82
83         mtd-mac-address = <&mac 0x8>;
84         mtd-mac-address-increment = <1>;
85 };
86
87 &eth1 {
88         status = "okay";
89
90         mtd-mac-address = <&mac 0x8>;
91 };
92
93 &wmac {
94         status = "okay";
95
96         mtd-cal-data = <&art 0x1000>;
97         mtd-mac-address = <&mac 0x8>;
98 };