9e3844d110e159115262facea5607c7d74c181ef
[oweals/openwrt.git] / target / linux / ramips / dts / TL-WA801NDV5.dts
1 /dts-v1/;
2
3 #include "TPLINK-8M.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "tplink,tl-wa801nd-v5", "mediatek,mt7628an-soc";
10         model = "TP-Link TL-WA801ND v5";
11
12         aliases {
13                 led-status = &led_power;
14         };
15
16         gpio-keys-polled {
17                 compatible = "gpio-keys-polled";
18                 poll-interval = <20>;
19
20                 reset {
21                         label = "reset";
22                         gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
23                         linux,code = <KEY_RESTART>;
24                 };
25         };
26
27         gpio-leds {
28                 compatible = "gpio-leds";
29
30                 led_power: power {
31                         label = "tl-wa801nd-v5:green:power";
32                         gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
33                 };
34
35                 lan {
36                         label = "tl-wa801nd-v5:green:lan";
37                         gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
38                 };
39
40                 wlan {
41                         label = "tl-wa801nd-v5:green:wlan";
42                         gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
43                 };
44
45                 wps {
46                         label = "tl-wa801nd-v5:orange:wps";
47                         gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
48                 };
49         };
50 };
51
52 &pinctrl {
53         state_default: pinctrl0 {
54                 gpio {
55                         ralink,group = "p0led_an", "perst", "refclk", "wdt", "wled_an";
56                         ralink,function = "gpio";
57                 };
58         };
59 };