ath79: drop and consolidate redundant chosen/bootargs
[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         aliases {
10                 led-boot = &led_power;
11                 led-failsafe = &led_power;
12                 led-running = &led_power;
13                 led-upgrade = &led_power;
14                 label-mac-device = &eth1;
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                         label = "tp-link:green:power";
38                         gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
39                         default-state = "on";
40                 };
41
42                 wlan2g {
43                         label = "tp-link:green:wlan2g";
44                         gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
45                         linux,default-trigger = "phy1tpt";
46                 };
47
48                 wlan5g {
49                         label = "tp-link:green:wlan5g";
50                         gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
51                         linux,default-trigger = "phy0tpt";
52                 };
53
54                 wan_green {
55                         label = "tp-link:green:wan";
56                         gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
57                 };
58
59                 lan {
60                         label = "tp-link:green:lan";
61                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
62                 };
63         };
64 };
65
66 &uart {
67         status = "okay";
68 };
69
70 &pcie {
71         status = "okay";
72 };
73
74 &eth0 {
75         status = "okay";
76
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 };