[PATCH 19/22] ARM: k3: BeaglePlay: Work around non working SD card

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The upstream dts file configures the SD card detect pin as GPIO.
With this our SD driver currently doesn't work. Until the reasons
are found out let's configure the pin as native card detect for now.

Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
---
 arch/arm/dts/k3-am625-beagleplay.dts | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/arch/arm/dts/k3-am625-beagleplay.dts b/arch/arm/dts/k3-am625-beagleplay.dts
index 6efc178777..b4606ff129 100644
--- a/arch/arm/dts/k3-am625-beagleplay.dts
+++ b/arch/arm/dts/k3-am625-beagleplay.dts
@@ -7,3 +7,24 @@ chosen {
 		stdout-path = &main_uart0;
 	};
 };
+
+&sd_pins_default {
+	pinctrl-single,pins = <
+		AM62X_IOPAD(0x023c, PIN_INPUT, 0) /* (A21) MMC1_CMD */
+		AM62X_IOPAD(0x0234, PIN_INPUT, 0) /* (B22) MMC1_CLK */
+		AM62X_IOPAD(0x0230, PIN_INPUT, 0) /* (A22) MMC1_DAT0 */
+		AM62X_IOPAD(0x022c, PIN_INPUT, 0) /* (B21) MMC1_DAT1 */
+		AM62X_IOPAD(0x0228, PIN_INPUT, 0) /* (C21) MMC1_DAT2 */
+		AM62X_IOPAD(0x0224, PIN_INPUT, 0) /* (D22) MMC1_DAT3 */
+		/*
+		 * The upstream dts configures this as MMC1_SDCD.GPIO1_48 and
+		 * uses main_gpio1 48 as card detect GPIO. With this the
+		 * MMC driver doesn't doesn't detect the card. Upstream
+		 * dts has the ti,fails-without-test-cd property which
+		 * purpose seems to be to work around this issue. This
+		 * doesn't work either in barebox. For now configure the
+		 * pin as native SDHCI card detect.
+		 */
+		AM62X_IOPAD(0x0240, PIN_INPUT, 0) /* (D17) MMC1_SDCD */
+	>;
+};
-- 
2.39.2





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux