ramips/mt762x: convert devices to interrupt-driven gpio-keys
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / mt7628an_tplink_tl-wa801nd-v5.dts
1 /dts-v1/;
2
3 #include "mt7628an_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";
21
22 reset {
23 label = "reset";
24 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RESTART>;
26 };
27 };
28
29 leds {
30 compatible = "gpio-leds";
31
32 led_power: power {
33 label = "tl-wa801nd-v5:green:power";
34 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
35 };
36
37 lan {
38 label = "tl-wa801nd-v5:green:lan";
39 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
40 };
41
42 wlan {
43 label = "tl-wa801nd-v5:green:wlan";
44 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
45 };
46
47 wps {
48 label = "tl-wa801nd-v5:orange:wps";
49 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
50 };
51 };
52 };
53
54 &pinctrl {
55 state_default: pinctrl0 {
56 gpio {
57 ralink,group = "p0led_an", "perst", "refclk", "wdt", "wled_an";
58 ralink,function = "gpio";
59 };
60 };
61 };