Skip to contentSkip to conversation

arm64: ARM: dts: exynos: Remove double SD card detect pin inversion on TM2

RFT Krzysztof Kozlowski 2 participants 2 messages Sep 21, 2018 – Sep 24, 2018

Subsystems (2)
lore
Share & tools
lore

Krzysztof Kozlowski

author maintainer
#0 lore raw

The SDHCI standard, MMC host controller bindings and MMC core defines card detect pin as active low. Therefore there is no point to invert it twice.

---
 arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi +1 -2
index a1e3194b7483..86d8ddc3288a 100644
@@ -939,8 +939,7 @@
 	status = "okay";
 	cap-sd-highspeed;
 	disable-wp;
-	cd-gpios = <&gpa2 4 GPIO_ACTIVE_HIGH>;
-	cd-inverted;
+	cd-gpios = <&gpa2 4 GPIO_ACTIVE_LOW>;
 	card-detect-delay = <200>;
 	samsung,dw-mshc-ciu-div = <3>;
 	samsung,dw-mshc-sdr-timing = <0 4>;
Signature · 1 line
2.17.1
#1 lore raw

Hi Krzysztof,

Quoted 5 lines · Krzysztof Kozlowski

The SDHCI standard, MMC host controller bindings and MMC core defines card detect pin as active low. Therefore there is no point to invert it twice.

Works fine on TM2 and TM2e. However I'm not sure if it makes sense to refer to the SDHCI standard, as Exynos5433 has only DWMMC host controllers.

Quoted 9 lines
---
  arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi +0 -0
index a1e3194b7483..86d8ddc3288a 100644

arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi line 945

Quoted 9 lines
arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi +1 -2
@@ -939,8 +939,7 @@
  	status = "okay";
  	cap-sd-highspeed;
  	disable-wp;
-	cd-gpios = <&gpa2 4 GPIO_ACTIVE_HIGH>;
-	cd-inverted;
+	cd-gpios = <&gpa2 4 GPIO_ACTIVE_LOW>;
  	card-detect-delay = <200>;
  	samsung,dw-mshc-ciu-div = <3>;
  	samsung,dw-mshc-sdr-timing = <0 4>;

Best regards

Signature · 2 lines
Marek Szyprowski, PhD
Samsung R&D Institute Poland