aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorDustin Gathmann <dzsoftware@posteo.org>2020-05-21 01:22:53 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-07-20 00:58:30 +0200
commit0ee30adb46a87583badd85b69e4ccd7942786374 (patch)
treedeec877a21e679eed36a1910bc628c20e1a9995f /target/linux
parenta53bf63756ef2a266ae5f3b3507eeb7382b4cdc9 (diff)
downloadupstream-0ee30adb46a87583badd85b69e4ccd7942786374.tar.gz
upstream-0ee30adb46a87583badd85b69e4ccd7942786374.tar.bz2
upstream-0ee30adb46a87583badd85b69e4ccd7942786374.zip
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@posteo.org>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/lantiq/files-4.19/arch/mips/boot/dts/lantiq/vr9_avm_fritz3370-rev2.dtsi2
-rw-r--r--target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_avm_fritz3370-rev2.dtsi2
2 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/lantiq/files-4.19/arch/mips/boot/dts/lantiq/vr9_avm_fritz3370-rev2.dtsi b/target/linux/lantiq/files-4.19/arch/mips/boot/dts/lantiq/vr9_avm_fritz3370-rev2.dtsi
index 4c4ae1a01f..2c790a488e 100644
--- a/target/linux/lantiq/files-4.19/arch/mips/boot/dts/lantiq/vr9_avm_fritz3370-rev2.dtsi
+++ b/target/linux/lantiq/files-4.19/arch/mips/boot/dts/lantiq/vr9_avm_fritz3370-rev2.dtsi
@@ -44,7 +44,7 @@
wifi {
label = "wlan";
- gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
+ gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RFKILL>;
};
};
diff --git a/target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_avm_fritz3370-rev2.dtsi b/target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_avm_fritz3370-rev2.dtsi
index 4c4ae1a01f..2c790a488e 100644
--- a/target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_avm_fritz3370-rev2.dtsi
+++ b/target/linux/lantiq/files-5.4/arch/mips/boot/dts/lantiq/vr9_avm_fritz3370-rev2.dtsi
@@ -44,7 +44,7 @@
wifi {
label = "wlan";
- gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
+ gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RFKILL>;
};
};