ramips: mt76x8: fix bogus mediatek,portmap
[openwrt/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-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 wps {
30 label = "wps";
31 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_WPS_BUTTON>;
33 };
34 };
35
36 leds {
37 compatible = "gpio-leds";
38
39 led_power: power {
40 label = "tl-wa801nd-v5:green:power";
41 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
42 };
43
44 lan {
45 label = "tl-wa801nd-v5:green:lan";
46 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
47 };
48
49 wlan {
50 label = "tl-wa801nd-v5:green:wlan";
51 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
52 };
53
54 wps_red {
55 label = "tl-wa801nd-v5:red:wps";
56 gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
57 };
58
59 wps_green {
60 label = "tl-wa801nd-v5:green:wps";
61 gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
62 };
63 };
64 };
65
66 &pinctrl {
67 state_default: pinctrl0 {
68 gpio {
69 ralink,group = "p0led_an", "p1led_an", "perst",
70 "refclk", "uart1", "wdt", "wled_an";
71 ralink,function = "gpio";
72 };
73 };
74 };