From: Lech Perczak Date: Sat, 20 Jun 2020 16:16:11 +0000 (+0200) Subject: ath79: fix input type for TP-Link TL-WR902AC v1 mode switch X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=708c6772f629a857a7d13a0ca65d6093746da8c3;p=openwrt%2Fstaging%2Fthess.git 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 --- 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>; };