Browse Source

ramips: fix input type for TL-MR3020 v3

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 <[email protected]>
David Bauer 4 years ago
parent
commit
161ee85bbe
1 changed files with 2 additions and 0 deletions
  1. 2 0
      target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts

+ 2 - 0
target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts

@@ -31,12 +31,14 @@
 			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>;
 		};
 	};