[openwrt/openwrt] lantiq/xrx200: fix WLAN button actions for Fritzbox 3370
LEDE Commits
lede-commits at lists.infradead.org
Thu Jul 23 11:42:28 EDT 2020
adrian pushed a commit to openwrt/openwrt.git, branch openwrt-19.07:
https://git.openwrt.org/4a9d6320afec39859be0eb7aaa7f06565b0ce750
commit 4a9d6320afec39859be0eb7aaa7f06565b0ce750
Author: Dustin Gathmann <dzsoftware at posteo.org>
AuthorDate: Thu May 21 01:22:53 2020 +0200
lantiq/xrx200: fix WLAN button actions for Fritzbox 3370
The WLAN button actions are reversed, i.e. pressing the button emits a
'released' action, and vice versa.
This can easily be checked by adding
logger -t button_action "$BUTTON $ACTION"
as the second line of /etc/rc.button/rfkill, and using logread to read
the events (assuming the preceding patch has been applied).
Defining the GPIO as ACTIVE_LOW corrects this behavior.
Signed-off-by: Dustin Gathmann <dzsoftware at posteo.org>
(cherry picked from commit 0ee30adb46a87583badd85b69e4ccd7942786374)
---
target/linux/lantiq/files-4.14/arch/mips/boot/dts/FRITZ3370-REV2.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/linux/lantiq/files-4.14/arch/mips/boot/dts/FRITZ3370-REV2.dtsi b/target/linux/lantiq/files-4.14/arch/mips/boot/dts/FRITZ3370-REV2.dtsi
index f3ce0adfff..d9474755de 100644
--- a/target/linux/lantiq/files-4.14/arch/mips/boot/dts/FRITZ3370-REV2.dtsi
+++ b/target/linux/lantiq/files-4.14/arch/mips/boot/dts/FRITZ3370-REV2.dtsi
@@ -45,7 +45,7 @@
wifi {
label = "wlan";
- gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
+ gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RFKILL>;
};
};
More information about the lede-commits
mailing list