mt7628an_tplink_tl-wa801nd-v5.dts 1.29 KB
Newer Older
1
2
/dts-v1/;

3
#include "mt7628an_tplink_8m.dtsi"
4
5
6
7
8
9
10
11

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

/ {
	compatible = "tplink,tl-wa801nd-v5", "mediatek,mt7628an-soc";
	model = "TP-Link TL-WA801ND v5";

12
	aliases {
13
14
15
16
		led-boot = &led_power;
		led-failsafe = &led_power;
		led-running = &led_power;
		led-upgrade = &led_power;
17
18
	};

19
	keys {
20
		compatible = "gpio-keys";
21
22
23
24
25
26

		reset {
			label = "reset";
			gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_RESTART>;
		};
27
28
29
30
31
32

		wps {
			label = "wps";
			gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_WPS_BUTTON>;
		};
33
34
	};

35
	leds {
36
37
		compatible = "gpio-leds";

38
		led_power: power {
39
40
41
42
43
44
45
46
47
48
49
50
			label = "tl-wa801nd-v5:green:power";
			gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
		};

		lan {
			label = "tl-wa801nd-v5:green:lan";
			gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
		};

		wlan {
			label = "tl-wa801nd-v5:green:wlan";
			gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
51
			linux,default-trigger = "phy0tpt";
52
53
		};

54
55
56
57
58
59
60
61
		wps_red {
			label = "tl-wa801nd-v5:red:wps";
			gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
		};

		wps_green {
			label = "tl-wa801nd-v5:green:wps";
			gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
62
63
64
65
		};
	};
};

66
67
&state_default {
	gpio {
68
69
		ralink,group = "p0led_an", "p1led_an", "perst", "refclk",
				"uart1", "wdt", "wled_an";
70
		ralink,function = "gpio";
71
72
	};
};