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>
This commit is contained in:
Lech Perczak 2020-06-20 18:16:11 +02:00 committed by Adrian Schmutzler
parent 3a8d65010d
commit 708c6772f6

View File

@ -77,12 +77,14 @@
sw1 { sw1 {
label = "Mode switch 1"; label = "Mode switch 1";
linux,input-type = <EV_SW>;
linux,code = <BTN_0>; linux,code = <BTN_0>;
gpios = <&gpio 17 GPIO_ACTIVE_LOW>; gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
}; };
sw2 { sw2 {
label = "Mode switch 2"; label = "Mode switch 2";
linux,input-type = <EV_SW>;
linux,code = <BTN_1>; linux,code = <BTN_1>;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
}; };