ath79: enable UART in SoC DTSI files
[openwrt/staging/jow.git] / target / linux / ath79 / dts / qca9561_tplink_archer-c6x.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
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 = "green:power";
38 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
39 default-state = "on";
40 };
41
42 wlan2g {
43 label = "green:wlan2g";
44 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
45 linux,default-trigger = "phy1tpt";
46 };
47
48 wlan5g {
49 label = "green:wlan5g";
50 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
51 linux,default-trigger = "phy0tpt";
52 };
53
54 wan_green {
55 label = "green:wan";
56 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
57 };
58
59 lan {
60 label = "green:lan";
61 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
62 };
63 };
64 };
65
66 &pcie {
67 status = "okay";
68 };
69
70 &eth0 {
71 status = "okay";
72
73 phy-handle = <&swphy4>;
74
75 mtd-mac-address = <&info 0x8>;
76 mtd-mac-address-increment = <1>;
77 };
78
79 &eth1 {
80 status = "okay";
81
82 mtd-mac-address = <&info 0x8>;
83 };
84
85 &wmac {
86 status = "okay";
87
88 mtd-cal-data = <&art 0x1000>;
89 mtd-mac-address = <&info 0x8>;
90 };