2018-06-26 23:24:39 +00:00
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include "TPLINK-8M.dtsi"
|
|
|
|
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "tplink,tl-wa801nd-v5", "mediatek,mt7628an-soc";
|
|
|
|
model = "TP-Link TL-WA801ND v5";
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
aliases {
|
2018-08-28 04:54:27 +00:00
|
|
|
led-boot = &led_power;
|
|
|
|
led-failsafe = &led_power;
|
|
|
|
led-running = &led_power;
|
|
|
|
led-upgrade = &led_power;
|
2018-07-16 08:27:22 +00:00
|
|
|
};
|
|
|
|
|
2018-12-30 11:17:25 +00:00
|
|
|
keys {
|
2018-06-26 23:24:39 +00:00
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
poll-interval = <20>;
|
|
|
|
|
|
|
|
reset {
|
|
|
|
label = "reset";
|
|
|
|
gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
};
|
2020-01-15 20:12:33 +00:00
|
|
|
|
|
|
|
wps {
|
|
|
|
label = "wps";
|
|
|
|
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
|
|
};
|
2018-06-26 23:24:39 +00:00
|
|
|
};
|
|
|
|
|
2018-12-30 11:42:53 +00:00
|
|
|
leds {
|
2018-06-26 23:24:39 +00:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
led_power: power {
|
2018-06-26 23:24:39 +00:00
|
|
|
label = "tl-wa801nd-v5:green:power";
|
|
|
|
gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
lan {
|
|
|
|
label = "tl-wa801nd-v5:green:lan";
|
|
|
|
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wlan {
|
|
|
|
label = "tl-wa801nd-v5:green:wlan";
|
|
|
|
gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
|
2020-01-30 14:23:51 +00:00
|
|
|
linux,default-trigger = "phy0tpt";
|
2018-06-26 23:24:39 +00:00
|
|
|
};
|
|
|
|
|
2020-01-15 20:12:33 +00:00
|
|
|
wps_red {
|
|
|
|
label = "tl-wa801nd-v5:red:wps";
|
|
|
|
gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wps_green {
|
|
|
|
label = "tl-wa801nd-v5:green:wps";
|
|
|
|
gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
|
2018-06-26 23:24:39 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&pinctrl {
|
|
|
|
state_default: pinctrl0 {
|
|
|
|
gpio {
|
2020-01-15 20:12:33 +00:00
|
|
|
ralink,group = "p0led_an", "p1led_an", "perst",
|
|
|
|
"refclk", "uart1", "wdt", "wled_an";
|
2018-06-26 23:24:39 +00:00
|
|
|
ralink,function = "gpio";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|