[openwrt/openwrt] ath79: correctly define WiFi switch for TL-WR841ND v8

LEDE Commits lede-commits at lists.infradead.org
Thu Jul 23 11:42:32 EDT 2020


adrian pushed a commit to openwrt/openwrt.git, branch openwrt-19.07:
https://git.openwrt.org/a2c9fc9ff062df95de65d4d3d05dff48c53554ea

commit a2c9fc9ff062df95de65d4d3d05dff48c53554ea
Author: Adrian Schmutzler <freifunk at adrianschmutzler.de>
AuthorDate: Wed Jul 8 20:48:57 2020 +0200

    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 at adrianschmutzler.de>
    (backported from commit 5e86877f36b0d95127dcef8ed3abf78ecd78061d)
---
 target/linux/ath79/dts/ar9341_tplink_tl-wr841-v8.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/linux/ath79/dts/ar9341_tplink_tl-wr841-v8.dts b/target/linux/ath79/dts/ar9341_tplink_tl-wr841-v8.dts
index ccc0c195ca..a66c86f731 100644
--- a/target/linux/ath79/dts/ar9341_tplink_tl-wr841-v8.dts
+++ b/target/linux/ath79/dts/ar9341_tplink_tl-wr841-v8.dts
@@ -32,6 +32,7 @@
 		rfkill {
 			label = "WiFi";
 			linux,code = <KEY_RFKILL>;
+			linux,input-type = <EV_SW>;
 			gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
 			debounce-interval = <60>;
 		};



More information about the lede-commits mailing list