Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dong Aisheng and committed by
Ulf Hansson
cf75eb15 89c1a8cf

+3 -2
+3 -2
arch/arm/boot/dts/imx25-pdk.dts
··· 10 10 */ 11 11 12 12 /dts-v1/; 13 + #include <dt-bindings/gpio/gpio.h> 13 14 #include <dt-bindings/input/input.h> 14 15 #include "imx25.dtsi" 15 16 ··· 115 114 &esdhc1 { 116 115 pinctrl-names = "default"; 117 116 pinctrl-0 = <&pinctrl_esdhc1>; 118 - cd-gpios = <&gpio2 1 0>; 119 - wp-gpios = <&gpio2 0 0>; 117 + cd-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; 118 + wp-gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>; 120 119 status = "okay"; 121 120 }; 122 121