aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts/ar9341_tplink_tl-wa860re-v1.dts
blob: 237a40d693c6586b15657b72923f0f4c98eb30bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;

#include "ar9341_tplink_tl-wa.dtsi"

/ {
	model = "TP-Link TL-WA860RE v1";
	compatible = "tplink,tl-wa860re-v1", "qca,ar9341";

	aliases {
		led-boot = &led_power_green;
		led-failsafe = &led_power_orange;
		led-running = &led_power_green;
		led-upgrade = &led_power_orange;
	};

	keys {
		compatible = "gpio-keys";

		reset {
			label = "Reset";
			linux,code = <KEY_RESTART>;
			gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
			debounce-interval = <60>;
		};

		wps {
			label = "WPS";
			linux,code = <KEY_WPS_BUTTON>;
			gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
			debounce-interval = <60>;
		};

		onoff {
			label = "ONOFF";
			linux,code = <BTN_1>;
			gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
			debounce-interval = <60>;
		};
	};

	leds {
		compatible = "gpio-leds";

		lan {
			label = "tp-link:green:lan";
			gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
		};

		led_power_green: power_green {
			label = "tp-link:green:power";
			gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
			default-state = "on";
		};

		led_power_orange: power_orange {
			label = "tp-link:orange:power";
			gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
		};

		wlan_green {
			label = "tp-link:green:wlan";
			gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
			linux,default-trigger = "phy0tpt";
		};

		wlan_orange {
			label = "tp-link:orange:wlan";
			gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
		};
	};
};