[openwrt/openwrt] ramips: yuncore_g720: fix buttons
LEDE Commits
lede-commits at lists.infradead.org
Tue Jun 25 12:43:05 PDT 2024
dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/646ebbd32ca4d776c64c31e85c08dc72fec25d7d
commit 646ebbd32ca4d776c64c31e85c08dc72fec25d7d
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Tue Jun 25 20:40:59 2024 +0100
ramips: yuncore_g720: fix buttons
Turns out the device got two buttons, while the currently listed on is
actually WPS, and the other (will hidden) button is intended as RESET.
Update DT accordingly.
Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
target/linux/ramips/dts/mt7621_yuncore_g720.dts | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/target/linux/ramips/dts/mt7621_yuncore_g720.dts b/target/linux/ramips/dts/mt7621_yuncore_g720.dts
index 2170bc83ec..e5a484d469 100644
--- a/target/linux/ramips/dts/mt7621_yuncore_g720.dts
+++ b/target/linux/ramips/dts/mt7621_yuncore_g720.dts
@@ -33,9 +33,15 @@
keys {
compatible = "gpio-keys";
+ wps {
+ label = "wps";
+ gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
+ };
+
reset {
label = "reset";
- gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
More information about the lede-commits
mailing list