diff options
author | Anson Huang <b20788@freescale.com> | 2014-01-20 20:02:38 +0800 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2014-02-10 16:27:42 +0800 |
commit | 22724cf1467137c32f6f2ba70e517f2e1c514991 (patch) | |
tree | 6a4bad092c02ca897e061c5d46c294805f93fc76 /arch/arm/boot/dts/imx6qdl-sabresd.dtsi | |
parent | 69144bd74456ede4a92a4f6be5782c96dc569737 (diff) |
ARM: dts: imx6qdl-sabresd: correct gpio key's active state
From schematic, the power, vol+/- key's active state is low,
so we need to set the gpio flag to active low.
Signed-off-by: Anson Huang <b20788@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts/imx6qdl-sabresd.dtsi')
-rw-r--r-- | arch/arm/boot/dts/imx6qdl-sabresd.dtsi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/boot/dts/imx6qdl-sabresd.dtsi b/arch/arm/boot/dts/imx6qdl-sabresd.dtsi index bbe2ee15dee..0d816d3be4b 100644 --- a/arch/arm/boot/dts/imx6qdl-sabresd.dtsi +++ b/arch/arm/boot/dts/imx6qdl-sabresd.dtsi @@ -10,6 +10,7 @@ * http://www.gnu.org/copyleft/gpl.html */ +#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/input/input.h> / { @@ -58,21 +59,21 @@ power { label = "Power Button"; - gpios = <&gpio3 29 0>; + gpios = <&gpio3 29 GPIO_ACTIVE_LOW>; gpio-key,wakeup; linux,code = <KEY_POWER>; }; volume-up { label = "Volume Up"; - gpios = <&gpio1 4 0>; + gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; gpio-key,wakeup; linux,code = <KEY_VOLUMEUP>; }; volume-down { label = "Volume Down"; - gpios = <&gpio1 5 0>; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; gpio-key,wakeup; linux,code = <KEY_VOLUMEDOWN>; }; |