diff options
author | Dong Aisheng <aisheng.dong@freescale.com> | 2015-07-22 08:53:03 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-07-24 04:18:36 -0400 |
commit | cf75eb15be2bdd054a76aeef6458beaa4a6ab770 (patch) | |
tree | d62347c6a363c600ff7dc45f47ace8690f049413 | |
parent | 89c1a8cf63f8c69dfddb6e377c04df8b25ab1c88 (diff) |
dts: imx25: fix sd card gpio polarity specified in device tree
cd-gpios polarity should be changed to GPIO_ACTIVE_LOW and wp-gpios
should be changed to GPIO_ACTIVE_HIGH.
Otherwise, the SD may not work properly due to wrong polarity inversion
specified in DT after switch to common parsing function mmc_of_parse().
Signed-off-by: Dong Aisheng <aisheng.dong@freescale.com>
Acked-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r-- | arch/arm/boot/dts/imx25-pdk.dts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/boot/dts/imx25-pdk.dts b/arch/arm/boot/dts/imx25-pdk.dts index dd45e6971bc3..9351296356dc 100644 --- a/arch/arm/boot/dts/imx25-pdk.dts +++ b/arch/arm/boot/dts/imx25-pdk.dts | |||
@@ -10,6 +10,7 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | /dts-v1/; | 12 | /dts-v1/; |
13 | #include <dt-bindings/gpio/gpio.h> | ||
13 | #include <dt-bindings/input/input.h> | 14 | #include <dt-bindings/input/input.h> |
14 | #include "imx25.dtsi" | 15 | #include "imx25.dtsi" |
15 | 16 | ||
@@ -114,8 +115,8 @@ | |||
114 | &esdhc1 { | 115 | &esdhc1 { |
115 | pinctrl-names = "default"; | 116 | pinctrl-names = "default"; |
116 | pinctrl-0 = <&pinctrl_esdhc1>; | 117 | pinctrl-0 = <&pinctrl_esdhc1>; |
117 | cd-gpios = <&gpio2 1 0>; | 118 | cd-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; |
118 | wp-gpios = <&gpio2 0 0>; | 119 | wp-gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>; |
119 | status = "okay"; | 120 | status = "okay"; |
120 | }; | 121 | }; |
121 | 122 | ||