From 708c6772f629a857a7d13a0ca65d6093746da8c3 Mon Sep 17 00:00:00 2001 From: Lech Perczak Date: Sat, 20 Jun 2020 18:16:11 +0200 Subject: [PATCH] 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 = property on them. Signed-off-by: Lech Perczak --- 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 = ; linux,code = ; gpios = <&gpio 17 GPIO_ACTIVE_LOW>; }; sw2 { label = "Mode switch 2"; + linux,input-type = ; linux,code = ; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; }; -- 2.25.1