aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2021-08-19 23:31:41 +0200
committerDavid Bauer <mail@david-bauer.net>2021-08-28 01:31:29 +0200
commit161ee85bbe6d27166cee87be0c02a48384e818bf (patch)
treeefd139822c6a870ff5a36845a573059639f25a97 /target/linux
parentec2078e3efe645b7fd7d85b1b918b4fbe2b8f809 (diff)
downloadupstream-161ee85bbe6d27166cee87be0c02a48384e818bf.tar.gz
upstream-161ee85bbe6d27166cee87be0c02a48384e818bf.tar.bz2
upstream-161ee85bbe6d27166cee87be0c02a48384e818bf.zip
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 <mail@david-bauer.net>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts
index c90442da1f..f586b07d27 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts
+++ b/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>;
};
};