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>
Sat, 15 Jan 2022 21:49:28 +0000 (22:49 +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>
(cherry picked from commit 31545378641d45f5fac5ffc408a31b700b80121f)

target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz736x.dtsi

index c7e600aace204767d730d4ed17facab049228bd3..1fe2fd7296c4cb311997b755cd98d93b8dc7b16a 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>;
                };
        };