2024-02-07 22:59:33 +00:00
|
|
|
#include <dt-bindings/leds/common.h>
|
|
|
|
|
2019-07-03 21:22:31 +00:00
|
|
|
#include "mt7628an_tplink_8m.dtsi"
|
2018-06-26 23:24:39 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
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 {
|
2019-09-20 12:03:02 +00:00
|
|
|
compatible = "gpio-keys";
|
2018-06-26 23:24:39 +00:00
|
|
|
|
|
|
|
reset {
|
|
|
|
label = "reset";
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
|
2018-06-26 23:24:39 +00:00
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
};
|
2020-01-15 20:12:33 +00:00
|
|
|
|
|
|
|
wps {
|
|
|
|
label = "wps";
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
|
2020-01-15 20:12:33 +00:00
|
|
|
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 {
|
2024-02-07 13:48:43 +00:00
|
|
|
function = LED_FUNCTION_POWER;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
|
2018-06-26 23:24:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
lan {
|
2024-02-07 13:48:43 +00:00
|
|
|
function = LED_FUNCTION_LAN;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
|
2018-06-26 23:24:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
wlan {
|
2024-02-07 13:48:43 +00:00
|
|
|
function = LED_FUNCTION_WLAN;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
|
2020-01-29 14:03:18 +00:00
|
|
|
linux,default-trigger = "phy0tpt";
|
2018-06-26 23:24:39 +00:00
|
|
|
};
|
|
|
|
|
2020-01-15 20:12:33 +00:00
|
|
|
wps_red {
|
2024-02-07 13:48:43 +00:00
|
|
|
function = LED_FUNCTION_WPS;
|
|
|
|
color = <LED_COLOR_ID_RED>;
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 43 GPIO_ACTIVE_HIGH>;
|
2020-01-15 20:12:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
wps_green {
|
2024-02-07 13:48:43 +00:00
|
|
|
function = LED_FUNCTION_WPS;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
|
2018-06-26 23:24:39 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-12-01 13:48:41 +00:00
|
|
|
&ehci {
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ohci {
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
2020-04-12 12:58:29 +00:00
|
|
|
groups = "p0led_an", "p1led_an", "perst", "refclk",
|
2020-01-15 20:12:33 +00:00
|
|
|
"uart1", "wdt", "wled_an";
|
2020-04-12 12:58:29 +00:00
|
|
|
function = "gpio";
|
2018-06-26 23:24:39 +00:00
|
|
|
};
|
|
|
|
};
|
2023-11-24 02:59:35 +00:00
|
|
|
|
|
|
|
&wmac {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
nvmem-cells = <&eeprom_factory_20000>, <&macaddr_factory_f100 0>;
|
|
|
|
nvmem-cell-names = "eeprom", "mac-address";
|
|
|
|
};
|