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)
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>;
};
};