ramips: fix input type for TL-MR3020 v3
authorDavid Bauer <mail@david-bauer.net>
Thu, 19 Aug 2021 21:31:41 +0000 (23:31 +0200)
committerDavid Bauer <mail@david-bauer.net>
Fri, 27 Aug 2021 23:31:29 +0000 (01:31 +0200)
The modec{1,2} keys are actually switches.

Add the respective DTS properties to avoid accidental activation of
failsafe mode.

Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts

index c90442da1f6c81473d2a7f4723aeed715febb94f..f586b07d277a81ceae594ea0c7514c767a5e3774 100644 (file)
                        label = "sw1";
                        gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                };
 
                modec2 {
                        label = "sw2";
                        gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_1>;
+                       linux,input-type = <EV_SW>;
                };
        };