diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-03-01 08:14:41 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-03-01 08:14:49 +0100 |
commit | 3838a998c1bb3db455336257d65932007cc4503e (patch) | |
tree | fbba2e9f4fc715a99dce7441a590ffc89fa16677 /arch/arm/dts | |
parent | b731a61ab541367848c96e306f7d29e90e53f1d5 (diff) | |
download | barebox-3838a998c1bb3db455336257d65932007cc4503e.tar.gz barebox-3838a998c1bb3db455336257d65932007cc4503e.tar.xz |
ARM: i.MX53-qsb: Fix gpio button polarity
Since 253fb33 (input: gpio-keys: convert to input framework) the
gpio-buttons are registered with the input framework which has the
side effect that they are activated during boot and no longer have
to be activated manually by activating the input device console.
This reveals that the gpio-button polarities are wrong: The autoboot
is no longer running through since a gpio button press is wrongly
detected.
Fix the polarities in the barebox dts for now to get back a working
board. A proper fix has been sent upstream to the kernel. Once this
has landed and propagated back to barebox this patch can be reverted.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/dts')
-rw-r--r-- | arch/arm/dts/imx53-qsb-common.dtsi | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/dts/imx53-qsb-common.dtsi b/arch/arm/dts/imx53-qsb-common.dtsi index bf634e49d4..85e1b8bd01 100644 --- a/arch/arm/dts/imx53-qsb-common.dtsi +++ b/arch/arm/dts/imx53-qsb-common.dtsi @@ -19,6 +19,24 @@ device-path = &bareboxenv; }; }; + + /* + * The buttons are marked as active high in the upstream dts. + * Remove these once fixed upstream. + */ + gpio-keys { + power { + gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + }; + + volume-up { + gpios = <&gpio2 14 GPIO_ACTIVE_LOW>; + }; + + volume-down { + gpios = <&gpio2 15 GPIO_ACTIVE_LOW>; + }; + }; }; &esdhc1 { |