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