ramips: add support for TL-WA801ND v5
[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         gpio-keys-polled {
13                 compatible = "gpio-keys-polled";
14                 #address-cells = <1>;
15                 #size-cells = <0>;
16                 poll-interval = <20>;
17
18                 reset {
19                         label = "reset";
20                         gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
21                         linux,code = <KEY_RESTART>;
22                 };
23         };
24
25         gpio-leds {
26                 compatible = "gpio-leds";
27
28                 power {
29                         label = "tl-wa801nd-v5:green:power";
30                         gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
31                 };
32
33                 lan {
34                         label = "tl-wa801nd-v5:green:lan";
35                         gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
36                 };
37
38                 wlan {
39                         label = "tl-wa801nd-v5:green:wlan";
40                         gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
41                 };
42
43                 wps {
44                         label = "tl-wa801nd-v5:orange:wps";
45                         gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
46                 };
47         };
48 };
49
50 &pinctrl {
51         state_default: pinctrl0 {
52                 gpio {
53                         ralink,group = "p0led_an", "perst", "refclk", "wdt", "wled_an";
54                         ralink,function = "gpio";
55                 };
56         };
57 };