[openwrt/openwrt] ath79: fix input type for TP-Link TL-WR902AC v1 mode switch

LEDE Commits lede-commits at lists.infradead.org
Sun Jun 21 15:32:45 EDT 2020


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/708c6772f629a857a7d13a0ca65d6093746da8c3

commit 708c6772f629a857a7d13a0ca65d6093746da8c3
Author: Lech Perczak <lech.perczak at gmail.com>
AuthorDate: Sat Jun 20 18:16:11 2020 +0200

    ath79: fix input type for TP-Link TL-WR902AC v1 mode switch
    
    Inputs assigned to "mode select" switch on the side of the device
    were missing linux,input-type property.
    This would cause them do incorrectly generate EV_KEY events.
    Fix this by setting the linux,input-type = <EV_SW> property on them.
    
    Signed-off-by: Lech Perczak <lech.perczak at gmail.com>
---
 target/linux/ath79/dts/qca9531_tplink_tl-wr902ac-v1.dts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/target/linux/ath79/dts/qca9531_tplink_tl-wr902ac-v1.dts b/target/linux/ath79/dts/qca9531_tplink_tl-wr902ac-v1.dts
index 9eca13d82b..4f5a29cfa0 100644
--- a/target/linux/ath79/dts/qca9531_tplink_tl-wr902ac-v1.dts
+++ b/target/linux/ath79/dts/qca9531_tplink_tl-wr902ac-v1.dts
@@ -77,12 +77,14 @@
 
 		sw1 {
 			label = "Mode switch 1";
+			linux,input-type = <EV_SW>;
 			linux,code = <BTN_0>;
 			gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
 		};
 
 		sw2 {
 			label = "Mode switch 2";
+			linux,input-type = <EV_SW>;
 			linux,code = <BTN_1>;
 			gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
 		};



More information about the lede-commits mailing list