ath79: use gpios for switch management in WZR-HP-G300NH variants
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9341_tplink_tl-wa850re-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9341_tplink_tl-wa.dtsi"
4
5 / {
6 model = "TP-Link TL-WA850RE v1";
7 compatible = "tplink,tl-wa850re-v1", "qca,ar9341";
8
9 aliases {
10 led-boot = &led_re;
11 led-failsafe = &led_re;
12 led-running = &led_re;
13 led-upgrade = &led_re;
14 };
15
16 keys {
17 compatible = "gpio-keys";
18
19 reset {
20 label = "Reset";
21 linux,code = <KEY_RESTART>;
22 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
23 debounce-interval = <60>;
24 };
25
26 wps {
27 label = "WPS";
28 linux,code = <KEY_WPS_BUTTON>;
29 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
30 debounce-interval = <60>;
31 };
32 };
33
34 leds {
35 compatible = "gpio-leds";
36
37 lan {
38 label = "blue:lan";
39 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
40 };
41
42 wlan {
43 label = "blue:wlan";
44 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
45 linux,default-trigger = "phy0tpt";
46 };
47
48 led_re: re {
49 label = "blue:re";
50 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
51 };
52
53 signal1 {
54 label = "blue:signal1";
55 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
56 };
57
58 signal2 {
59 label = "blue:signal2";
60 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
61 };
62
63 signal3 {
64 label = "blue:signal3";
65 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
66 };
67
68 signal4 {
69 label = "blue:signal4";
70 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
71 };
72
73 signal5 {
74 label = "blue:signal5";
75 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
76 };
77 };
78 };