ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_tplink_tl-wr1043n.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 #include <dt-bindings/leds/common.h>
8
9 / {
10 aliases {
11 led-boot = &led_system;
12 led-failsafe = &led_system;
13 led-running = &led_system;
14 led-upgrade = &led_system;
15 };
16
17 leds: leds {
18 compatible = "gpio-leds";
19
20 led_system: system {
21 label = "green:system";
22 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
23 linux,default-trigger = "heartbeat";
24 };
25
26 wifi_green {
27 function = LED_FUNCTION_WLAN;
28 color = <LED_COLOR_ID_GREEN>;
29 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
30 linux,default-trigger = "phy0tpt";
31 };
32
33 wifi_wps {
34 function = LED_FUNCTION_WPS;
35 color = <LED_COLOR_ID_GREEN>;
36 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
37 };
38
39 wan {
40 function = LED_FUNCTION_WAN;
41 color = <LED_COLOR_ID_GREEN>;
42 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
43 };
44
45 wan_fail {
46 function = LED_FUNCTION_WAN;
47 color = <LED_COLOR_ID_ORANGE>;
48 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
49 };
50
51 lan1 {
52 label = "green:lan1";
53 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
54 };
55
56 lan2 {
57 label = "green:lan2";
58 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
59 };
60
61 lan3 {
62 label = "green:lan3";
63 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
64 };
65
66 lan4 {
67 label = "green:lan4";
68 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
69 };
70 };
71
72 keys {
73 compatible = "gpio-keys";
74
75 reset {
76 label = "Reset button";
77 linux,code = <KEY_RESTART>;
78 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
79 debounce-interval = <60>;
80 };
81
82 wifi {
83 label = "RFKILL button";
84 linux,code = <KEY_RFKILL>;
85 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
86 debounce-interval = <60>;
87 };
88 };
89 };
90
91 &mdio0 {
92 status = "okay";
93
94 phy0: ethernet-phy@0 {
95 reg = <0>;
96 phy-mode = "sgmii";
97 qca,mib-poll-interval = <500>;
98
99 qca,ar8327-initvals = <
100 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
101 0x7c 0x0000007e /* PORT0_STATUS */
102 >;
103 };
104 };
105
106 &eth0 {
107 status = "okay";
108
109 phy-mode = "sgmii";
110 phy-handle = <&phy0>;
111 };
112
113 &wmac {
114 status = "okay";
115 };