ramips: move dts-v1 statement to top-level DTSI files
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7628an_tplink_tl-wa801nd-v5.dts
1 #include "mt7628an_tplink_8m.dtsi"
2
3 / {
4 compatible = "tplink,tl-wa801nd-v5", "mediatek,mt7628an-soc";
5 model = "TP-Link TL-WA801ND v5";
6
7 aliases {
8 led-boot = &led_power;
9 led-failsafe = &led_power;
10 led-running = &led_power;
11 led-upgrade = &led_power;
12 };
13
14 keys {
15 compatible = "gpio-keys";
16
17 reset {
18 label = "reset";
19 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
20 linux,code = <KEY_RESTART>;
21 };
22
23 wps {
24 label = "wps";
25 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_WPS_BUTTON>;
27 };
28 };
29
30 leds {
31 compatible = "gpio-leds";
32
33 led_power: power {
34 label = "tl-wa801nd-v5:green:power";
35 gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
36 };
37
38 lan {
39 label = "tl-wa801nd-v5:green:lan";
40 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
41 };
42
43 wlan {
44 label = "tl-wa801nd-v5:green:wlan";
45 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy0tpt";
47 };
48
49 wps_red {
50 label = "tl-wa801nd-v5:red:wps";
51 gpios = <&gpio 43 GPIO_ACTIVE_HIGH>;
52 };
53
54 wps_green {
55 label = "tl-wa801nd-v5:green:wps";
56 gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
57 };
58 };
59 };
60
61 &state_default {
62 gpio {
63 groups = "p0led_an", "p1led_an", "perst", "refclk",
64 "uart1", "wdt", "wled_an";
65 function = "gpio";
66 };
67 };