Skip to contentSkip to conversation

ARM: dts: am571x-idk: Fix GPIO polarity for MMC1 card detect

PATCH In review Kishon Vijay Abraham I 2 participants 5 messages Aug 8, 2017 – Aug 10, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ARM: dts: am571x-idk: Fix GPIO polarity for MMC1 card detect

The GPIO polarity for MMC1 card detect is set to '0' which means active-high. However the polarity should be active-low. Fix it here.

---
 arch/arm/boot/dts/am571x-idk.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/am571x-idk.dts +1 -1
index 7b207835b2d1..adc70fb091a2 100644
@@ -68,7 +68,7 @@
 	status = "okay";
 	vmmc-supply = <&ldo1_reg>;
 	bus-width = <4>;
-	cd-gpios = <&gpio6 27 0>; /* gpio 219 */
+	cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>; /* gpio 219 */
 };
 
 &omap_dwc3_2 {
Signature · 1 line
2.11.0
#1 lore raw

PATCH 2/2 ARM: dts: am572x-idk: Fix GPIO polarity for MMC1 card detect

The GPIO polarity for MMC1 card detect is set to '0' which means active-high. However the polarity should be active-low. Fix it here.

---
 arch/arm/boot/dts/am572x-idk.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/am572x-idk.dts +1 -1
index 9da6d83ca185..940fcbe5380b 100644
@@ -81,7 +81,7 @@
 	vmmc-supply = <&v3_3d>;
 	vmmc_aux-supply = <&ldo1_reg>;
 	bus-width = <4>;
-	cd-gpios = <&gpio6 27 0>; /* gpio 219 */
+	cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>; /* gpio 219 */
 };
 
 &sn65hvs882 {
Signature · 1 line
2.11.0
#2 lore raw
In reply to Kishon Vijay Abraham I
Quoted 3 lines · Kishon Vijay Abraham I

The GPIO polarity for MMC1 card detect is set to '0' which means active-high. However the polarity should be active-low. Fix it here.

Can these wait for v4.14 merge window or do these fix known issues?

Regards,

Tony

#3 lore raw

Tony,

Quoted 7 lines · Tony Lindgren
Quoted 3 lines · Kishon Vijay Abraham I

The GPIO polarity for MMC1 card detect is set to '0' which means active-high. However the polarity should be active-low. Fix it here.

Can these wait for v4.14 merge window or do these fix known issues?

These can go in the next merge window. I didn't observe any issue without this in omap_hsmmc driver.

Thanks
Kishon

#4 lore raw
Quoted 8 lines · Kishon Vijay Abraham I

Tony,

Quoted 5 lines · Tony Lindgren
Quoted 3 lines · Kishon Vijay Abraham I

The GPIO polarity for MMC1 card detect is set to '0' which means active-high. However the polarity should be active-low. Fix it here.

Quoted 5 lines
Quoted 2 lines

Can these wait for v4.14 merge window or do these fix known issues?

These can go in the next merge window. I didn't observe any issue without this in omap_hsmmc driver.

OK applying both into omap-for-v4.14/dt thanks.

Tony