lantiq: correct Fritz!Box 7412 button logic level
authorDavid Bauer <mail@david-bauer.net>
Fri, 9 Aug 2019 22:45:49 +0000 (00:45 +0200)
committerDavid Bauer <mail@david-bauer.net>
Sun, 11 Aug 2019 10:54:57 +0000 (12:54 +0200)
The AVM FRITZ!Box 7412 buttons are both active low, which is currently
incorrectly defined in the device-tree.

This leads to the device booting directly into failsafe.

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit c12947b39e96c82974cbe0fc3557259713f37770)

target/linux/lantiq/files-4.14/arch/mips/boot/dts/FRITZ7412.dts

index 3059c1285879c98a428ad9b0b1e645d5d5078a38..14a4bf77b922e9bbc9ca306d05669495a3a0d8aa 100644 (file)
                
                wps {
                        label = "wps";
-                       gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
                
                dect {
                        label = "dect";
-                       gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_PHONE>;
                };
        };