From: Sascha Hauer Date: Tue, 1 Mar 2016 07:14:02 +0000 (+0100) Subject: ARM: dts: imx53-qsb: Fix gpio button polarity X-Git-Tag: microblaze-4.7-rc1~256^2~11^2 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=3631c597ca33df06610a5482447912d36d0a9ff2;p=linux-2.6-microblaze.git ARM: dts: imx53-qsb: Fix gpio button polarity 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 Signed-off-by: Shawn Guo --- diff --git a/arch/arm/boot/dts/imx53-qsb-common.dtsi b/arch/arm/boot/dts/imx53-qsb-common.dtsi index 368ccd0a053e..c05e7cfd0cbc 100644 --- a/arch/arm/boot/dts/imx53-qsb-common.dtsi +++ b/arch/arm/boot/dts/imx53-qsb-common.dtsi @@ -59,21 +59,21 @@ power { label = "Power Button"; - gpios = <&gpio1 8 0>; - linux,code = <116>; /* KEY_POWER */ + gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + linux,code = ; }; volume-up { label = "Volume Up"; - gpios = <&gpio2 14 0>; - linux,code = <115>; /* KEY_VOLUMEUP */ + gpios = <&gpio2 14 GPIO_ACTIVE_LOW>; + linux,code = ; wakeup-source; }; volume-down { label = "Volume Down"; - gpios = <&gpio2 15 0>; - linux,code = <114>; /* KEY_VOLUMEDOWN */ + gpios = <&gpio2 15 GPIO_ACTIVE_LOW>; + linux,code = ; wakeup-source; }; };