[openwrt/openwrt] ramips: fix logic level for DIR-645 buttons
LEDE Commits
lede-commits at lists.infradead.org
Wed Nov 11 11:34:33 EST 2020
adrian pushed a commit to openwrt/openwrt.git, branch openwrt-19.07:
https://git.openwrt.org/84ae2383244d4624c29ea3d471e9ef386402b28f
commit 84ae2383244d4624c29ea3d471e9ef386402b28f
Author: David Bauer <mail at david-bauer.net>
AuthorDate: Wed Aug 26 15:39:54 2020 +0200
ramips: fix logic level for DIR-645 buttons
The D-Link DIR-645 currently uses an incorrect logic level for its
buttons.
Correct them in order to prevent unintentional activation of failsafe
mode.
Reported-by: Perry Melange <isprotejesvalkata at gmail.com>
Signed-off-by: David Bauer <mail at david-bauer.net>
(cherry picked from commit 929e8f0f553637076f2612fb1c2225c5cee1f7ab)
---
target/linux/ramips/dts/DIR-645.dts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/linux/ramips/dts/DIR-645.dts b/target/linux/ramips/dts/DIR-645.dts
index 35d011ebba..40e5cd13ab 100644
--- a/target/linux/ramips/dts/DIR-645.dts
+++ b/target/linux/ramips/dts/DIR-645.dts
@@ -29,13 +29,13 @@
reset {
label = "reset";
- gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
+ gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
- gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
+ gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
};
More information about the lede-commits
mailing list