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

dts: imx51: 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
aca45c0e 8e91125f

+1 -1
+1 -1
arch/arm/boot/dts/imx51-apf51dev.dts
··· 98 98 &esdhc1 { 99 99 pinctrl-names = "default"; 100 100 pinctrl-0 = <&pinctrl_esdhc1>; 101 - cd-gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>; 101 + cd-gpios = <&gpio2 29 GPIO_ACTIVE_LOW>; 102 102 bus-width = <4>; 103 103 status = "okay"; 104 104 };