[openwrt/openwrt] ramips: fix input type for TL-MR3020 v3
LEDE Commits
lede-commits at lists.infradead.org
Fri Aug 27 16:32:08 PDT 2021
blocktrron pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/161ee85bbe6d27166cee87be0c02a48384e818bf
commit 161ee85bbe6d27166cee87be0c02a48384e818bf
Author: David Bauer <mail at david-bauer.net>
AuthorDate: Thu Aug 19 23:31:41 2021 +0200
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 at david-bauer.net>
---
target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts | 2 ++
1 file changed, 2 insertions(+)
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>;
};
};
More information about the lede-commits
mailing list