aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorCatrinel Catrinescu <cc@80211.de>2020-03-11 10:10:00 +0100
committerJohn Crispin <john@phrozen.org>2020-03-11 11:26:06 +0100
commit68351990dc328608f1657232fe4629cc41f56143 (patch)
tree3ba5d8f522b0a6674c8a95fd96886965fb0d41f4 /target/linux
parent6e4453aecc22aa88c68c1e5d4cf01b2e880bd59e (diff)
downloadupstream-68351990dc328608f1657232fe4629cc41f56143.tar.gz
upstream-68351990dc328608f1657232fe4629cc41f56143.tar.bz2
upstream-68351990dc328608f1657232fe4629cc41f56143.zip
ar71xx/ath79: ew-dorin, fix the trigger level for WPS button
Because the WPS button had the wrong trigger level, the failsafe mode was triggered quite often, after this commit: https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=27f3f493de Signed-off-by: Catrinel Catrinescu <cc@80211.de> (cherry picked from commit 3e03b7ac4ada4966d058871d0a1f67f1f0f408d4)
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-ew-dorin.c2
-rw-r--r--target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts2
2 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-ew-dorin.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-ew-dorin.c
index 575a976aec..5544596f91 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-ew-dorin.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-ew-dorin.c
@@ -47,7 +47,7 @@ static struct gpio_keys_button dorin_gpio_keys[] __initdata = {
.code = KEY_WPS_BUTTON,
.debounce_interval = DORIN_KEYS_DEBOUNCE_INTERVAL,
.gpio = DORIN_GPIO_BTN_JUMPSTART,
- .active_low = 1,
+ .active_low = 0,
},
{
.desc = "reset button",
diff --git a/target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts b/target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts
index d0e0169f1b..88b48faf89 100644
--- a/target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts
+++ b/target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts
@@ -34,7 +34,7 @@
wps {
label = "wps";
linux,code = <KEY_WPS_BUTTON>;
- gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
};
reset {