ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.git] / target / linux / ath79 / dts / ar9341_tplink_tl-wa860re-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "ar9341_tplink_tl-wa.dtsi"
5
6 / {
7 model = "TP-Link TL-WA860RE v1";
8 compatible = "tplink,tl-wa860re-v1", "qca,ar9341";
9
10 aliases {
11 led-boot = &led_power_green;
12 led-failsafe = &led_power_orange;
13 led-running = &led_power_green;
14 led-upgrade = &led_power_orange;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 reset {
21 label = "Reset";
22 linux,code = <KEY_RESTART>;
23 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
24 debounce-interval = <60>;
25 };
26
27 wps {
28 label = "WPS";
29 linux,code = <KEY_WPS_BUTTON>;
30 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
31 debounce-interval = <60>;
32 };
33
34 onoff {
35 label = "ONOFF";
36 linux,code = <BTN_1>;
37 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
38 debounce-interval = <60>;
39 };
40 };
41
42 leds {
43 compatible = "gpio-leds";
44
45 lan {
46 label = "tp-link:green:lan";
47 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
48 };
49
50 led_power_green: power_green {
51 label = "tp-link:green:power";
52 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
53 default-state = "on";
54 };
55
56 led_power_orange: power_orange {
57 label = "tp-link:orange:power";
58 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
59 };
60
61 wlan_green {
62 label = "tp-link:green:wlan";
63 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
64 linux,default-trigger = "phy0tpt";
65 };
66
67 wlan_orange {
68 label = "tp-link:orange:wlan";
69 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
70 };
71 };
72 };