lantiq: flag FritzBox 7360 family buttons active-low
authorDavid Bauer <mail@david-bauer.net>
Fri, 14 Jan 2022 21:03:24 +0000 (22:03 +0100)
committerDavid Bauer <mail@david-bauer.net>
Fri, 14 Jan 2022 21:12:53 +0000 (22:12 +0100)
All buttons of the FritzBox 7360 family are active-low, not active-high.
Corrent the GPIO flag. This fixes release triggers upon push of a button.

Reported-by: Jan-Niklas Burfeind <git@aiyionpri.me>
Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz736x.dtsi

index 83ef4154236a6042594666c5bb0af535038881d2..8406539f69cd9837a013e2bd94bffd6fb07c6fce 100644 (file)
 
                dect {
                        label = "dect";
-                       gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_PHONE>;
                };
 
                wifi {
                        label = "wifi";
-                       gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RFKILL>;
                };
        };