d8ee2bbcad0ed8863daf741d2c6400567eac8042
[openwrt/staging/wigyori.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-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 keys {
20 compatible = "gpio-keys-polled";
21 poll-interval = <20>;
22
23 reset {
24 label = "reset";
25 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
27 };
28 };
29
30 gpio-leds {
31 compatible = "gpio-leds";
32
33 led_power: power {
34 label = "tl-wa801nd-v5:green:power";
35 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
36 };
37
38 lan {
39 label = "tl-wa801nd-v5:green:lan";
40 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
41 };
42
43 wlan {
44 label = "tl-wa801nd-v5:green:wlan";
45 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
46 };
47
48 wps {
49 label = "tl-wa801nd-v5:orange:wps";
50 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
51 };
52 };
53 };
54
55 &pinctrl {
56 state_default: pinctrl0 {
57 gpio {
58 ralink,group = "p0led_an", "perst", "refclk", "wdt", "wled_an";
59 ralink,function = "gpio";
60 };
61 };
62 };