2019-07-03 23:22:31 +02:00
|
|
|
#include "mt7628an_tplink_8m.dtsi"
|
2018-06-27 01:24:39 +02:00
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "tplink,tl-wa801nd-v5", "mediatek,mt7628an-soc";
|
|
|
|
model = "TP-Link TL-WA801ND v5";
|
|
|
|
|
2018-07-16 16:27:22 +08:00
|
|
|
aliases {
|
2018-08-28 06:54:27 +02:00
|
|
|
led-boot = &led_power;
|
|
|
|
led-failsafe = &led_power;
|
|
|
|
led-running = &led_power;
|
|
|
|
led-upgrade = &led_power;
|
2018-07-16 16:27:22 +08:00
|
|
|
};
|
|
|
|
|
2018-12-30 12:17:25 +01:00
|
|
|
keys {
|
2019-09-20 14:03:02 +02:00
|
|
|
compatible = "gpio-keys";
|
2018-06-27 01:24:39 +02:00
|
|
|
|
|
|
|
reset {
|
|
|
|
label = "reset";
|
2020-04-09 17:10:03 +08:00
|
|
|
gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
|
2018-06-27 01:24:39 +02:00
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
};
|
2020-01-15 21:12:33 +01:00
|
|
|
|
|
|
|
wps {
|
|
|
|
label = "wps";
|
2020-04-09 17:10:03 +08:00
|
|
|
gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
|
2020-01-15 21:12:33 +01:00
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
|
|
};
|
2018-06-27 01:24:39 +02:00
|
|
|
};
|
|
|
|
|
2018-12-30 12:42:53 +01:00
|
|
|
leds {
|
2018-06-27 01:24:39 +02:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2018-07-16 16:27:22 +08:00
|
|
|
led_power: power {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "green:power";
|
2020-04-09 17:10:03 +08:00
|
|
|
gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
|
2018-06-27 01:24:39 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
lan {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "green:lan";
|
2020-04-09 17:10:03 +08:00
|
|
|
gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
|
2018-06-27 01:24:39 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
wlan {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "green:wlan";
|
2020-04-09 17:10:03 +08:00
|
|
|
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
|
2020-01-29 15:03:18 +01:00
|
|
|
linux,default-trigger = "phy0tpt";
|
2018-06-27 01:24:39 +02:00
|
|
|
};
|
|
|
|
|
2020-01-15 21:12:33 +01:00
|
|
|
wps_red {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "red:wps";
|
2020-04-09 17:10:03 +08:00
|
|
|
gpios = <&gpio 43 GPIO_ACTIVE_HIGH>;
|
2020-01-15 21:12:33 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
wps_green {
|
2020-09-27 19:40:51 +02:00
|
|
|
label = "green:wps";
|
2020-04-09 17:10:03 +08:00
|
|
|
gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
|
2018-06-27 01:24:39 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-12-01 14:48:41 +01:00
|
|
|
&ehci {
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ohci {
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2019-12-22 21:26:01 +01:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
2020-04-12 20:58:29 +08:00
|
|
|
groups = "p0led_an", "p1led_an", "perst", "refclk",
|
2020-01-15 21:12:33 +01:00
|
|
|
"uart1", "wdt", "wled_an";
|
2020-04-12 20:58:29 +08:00
|
|
|
function = "gpio";
|
2018-06-27 01:24:39 +02:00
|
|
|
};
|
|
|
|
};
|