aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79
diff options
context:
space:
mode:
authorLech Perczak <lech.perczak@gmail.com>2020-06-20 18:16:11 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-06-21 21:29:51 +0200
commit708c6772f629a857a7d13a0ca65d6093746da8c3 (patch)
treef0ea99d545266838fd0a7dc668a91c0d8874a330 /target/linux/ath79
parent3a8d65010d999275a583c42064b60ab9a3cdce84 (diff)
downloadupstream-708c6772f629a857a7d13a0ca65d6093746da8c3.tar.gz
upstream-708c6772f629a857a7d13a0ca65d6093746da8c3.tar.bz2
upstream-708c6772f629a857a7d13a0ca65d6093746da8c3.zip
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@gmail.com>
Diffstat (limited to 'target/linux/ath79')
-rw-r--r--target/linux/ath79/dts/qca9531_tplink_tl-wr902ac-v1.dts2
1 files changed, 2 insertions, 0 deletions
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>;
};