summaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts/ar9341_tplink_tl-mr3420-v2.dts
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-07-08 20:48:57 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-07-21 12:02:35 +0200
commit5e86877f36b0d95127dcef8ed3abf78ecd78061d (patch)
treeff1f24a55cb01619a940cfab58da95bad0d9ea7a /target/linux/ath79/dts/ar9341_tplink_tl-mr3420-v2.dts
parent42dc5c2a3fb680c481200ce8da5a772af83428f6 (diff)
downloadopenwrt-5e86877f36b0d95127dcef8ed3abf78ecd78061d.tar.gz
openwrt-5e86877f36b0d95127dcef8ed3abf78ecd78061d.tar.bz2
openwrt-5e86877f36b0d95127dcef8ed3abf78ecd78061d.zip
ath79: correctly define WiFi switch for TL-WR841ND v8
The TL-WR841ND v8 feature a WiFi switch instead of a button. This adds the corresponding input-type to prevent booting into failsafe regularly. This has been defined correctly in ar71xx, but was overlooked when migrating to ath79. In contrast, the TL-WR842ND v2, which has the key set up as switch in ar71xx, actually has a button. The TL-MR3420 v2 has a button as well and is set up correctly for both targets. (Information based on TP-Link user guide) Note: While looking into this, I found that support PR for TL-MR3420 v2 switched reset button to ACTIVE_HIGH. However, the other two device still use ACTIVE_LOW. This seems strange, but I cannot verify it lacking the affected devices. Fixes: FS#2733 Fixes: 9601d94138de ("add support for TP-Link TL-WR841N/ND v8") Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ath79/dts/ar9341_tplink_tl-mr3420-v2.dts')
-rw-r--r--target/linux/ath79/dts/ar9341_tplink_tl-mr3420-v2.dts23
1 files changed, 16 insertions, 7 deletions
diff --git a/target/linux/ath79/dts/ar9341_tplink_tl-mr3420-v2.dts b/target/linux/ath79/dts/ar9341_tplink_tl-mr3420-v2.dts
index f864381520..e6cf6ef863 100644
--- a/target/linux/ath79/dts/ar9341_tplink_tl-mr3420-v2.dts
+++ b/target/linux/ath79/dts/ar9341_tplink_tl-mr3420-v2.dts
@@ -6,14 +6,23 @@
/ {
model = "TP-Link TL-MR3420 v2";
compatible = "tplink,tl-mr3420-v2", "qca,ar9341";
-};
-&keys {
- reset {
- label = "Reset";
- linux,code = <KEY_RESTART>;
- gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
- debounce-interval = <60>;
+ keys {
+ compatible = "gpio-keys";
+
+ rfkill {
+ label = "WiFi";
+ linux,code = <KEY_RFKILL>;
+ gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
+ debounce-interval = <60>;
+ };
+
+ reset {
+ label = "Reset/WPS";
+ linux,code = <KEY_RESTART>;
+ gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
+ debounce-interval = <60>;
+ };
};
};