aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts
diff options
context:
space:
mode:
authorJan Alexander <jan@nalx.net>2020-01-15 21:12:33 +0100
committerDavid Bauer <mail@david-bauer.net>2020-01-17 20:12:19 +0100
commit26105974e7f9758cd4bc443ce0322983f818acd5 (patch)
tree0c727064eec47e10be43f6d964692dbdd5fa3050 /target/linux/ramips/dts
parentd4009d7985500b0f4ec26dee9b91bdeb3ea16da5 (diff)
downloadupstream-26105974e7f9758cd4bc443ce0322983f818acd5.tar.gz
upstream-26105974e7f9758cd4bc443ce0322983f818acd5.tar.bz2
upstream-26105974e7f9758cd4bc443ce0322983f818acd5.zip
ramips: fix wps leds/btn for TP-Link TL-WA801ND v5
- fix color and active mode for existing wps led - add green wps led - add wps button Signed-off-by: Jan Alexander <jan@nalx.net> [wrap line] Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux/ramips/dts')
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts20
1 files changed, 16 insertions, 4 deletions
diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts
index b4c004b955..d2cb271efb 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts
+++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wa801nd-v5.dts
@@ -24,6 +24,12 @@
gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
+
+ wps {
+ label = "wps";
+ gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
+ };
};
leds {
@@ -44,16 +50,22 @@
gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
};
- wps {
- label = "tl-wa801nd-v5:orange:wps";
- gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
+ 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>;
};
};
};
&state_default {
gpio {
- ralink,group = "p0led_an", "perst", "refclk", "wdt", "wled_an";
+ ralink,group = "p0led_an", "p1led_an", "perst", "refclk",
+ "uart1", "wdt", "wled_an";
ralink,function = "gpio";
};
};