]> Git Repo - linux.git/commitdiff
ARM: dts: imx53-qsb: Fix gpio button polarity
authorSascha Hauer <[email protected]>
Tue, 1 Mar 2016 07:14:02 +0000 (08:14 +0100)
committerShawn Guo <[email protected]>
Tue, 1 Mar 2016 13:40:50 +0000 (21:40 +0800)
The polarity of the gpio buttons is defined to '0' which is
active high. The buttons are active low though which has been verified by
testing it and by looking into the schematics. While at it use
defines rathers than numbers for the key codes.

Signed-off-by: Sascha Hauer <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
arch/arm/boot/dts/imx53-qsb-common.dtsi

index 368ccd0a053ee6dee4eef00f106e6cf7ede5630c..c05e7cfd0cbcb2bd7b76920bc1cb0fd7913649f3 100644 (file)
 
                power {
                        label = "Power Button";
-                       gpios = <&gpio1 8 0>;
-                       linux,code = <116>; /* KEY_POWER */
+                       gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_POWER>;
                };
 
                volume-up {
                        label = "Volume Up";
-                       gpios = <&gpio2 14 0>;
-                       linux,code = <115>; /* KEY_VOLUMEUP */
+                       gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_VOLUMEUP>;
                        wakeup-source;
                };
 
                volume-down {
                        label = "Volume Down";
-                       gpios = <&gpio2 15 0>;
-                       linux,code = <114>; /* KEY_VOLUMEDOWN */
+                       gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_VOLUMEDOWN>;
                        wakeup-source;
                };
        };
This page took 0.070332 seconds and 4 git commands to generate.