ath79: fix input type for TP-Link TL-WR902AC v1 mode switch
authorLech Perczak <lech.perczak@gmail.com>
Sat, 20 Jun 2020 16:16:11 +0000 (18:16 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 21 Jun 2020 19:29:51 +0000 (21:29 +0200)
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>
target/linux/ath79/dts/qca9531_tplink_tl-wr902ac-v1.dts

index 9eca13d82b6a80a5b85732b5286897978bda0e74..4f5a29cfa01eaf80c1bce7872ddb274dc366b2b3 100644 (file)
 
                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>;
                };