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>
Fri, 9 Aug 2019 22:48:01 +0000 (00:48 +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>
target/linux/lantiq/files/arch/mips/boot/dts/FRITZ7412.dts

index baf3d69fb5537b2f402d61af0022a998ece33441..97817595e9ad89ba7b0c65ea56cf43e5d2a0e0f3 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>;
                };
        };