AnsweredAssumed Answered

DATA3/CD Card detection not working with iMx6D 4.1.15 kernel

Question asked by sijil cv on Sep 14, 2017
Latest reply on Oct 3, 2018 by David Patton

We are having a Custom board with iMX6D processor and 4.1.15 Linux kernel.
We have connected SDCard in the USDHC1 port and eMMC on USDHC3 port. But the SD card detection is not working in the board.

We have multiplexed CD with DATA3 line. We are using 4 data lines. Given below out device tree configuration for sd card.
&usdhc1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usdhc1_1>;
bus-width = <4>;
no-1-8-v;
keep-power-in-suspend;
enable-sdio-wakeup;
status = "okay";
};

We have kept the SD3 line pulled low for card detection functionality in the pinctrl as given below.
usdhc1 {
pinctrl_usdhc1_1: usdhc1grp-1 {
fsl,pins = <
MX6QDL_PAD_SD1_CMD__SD1_CMD 0x17059
MX6QDL_PAD_SD1_CLK__SD1_CLK 0x10059
MX6QDL_PAD_SD1_DAT0__SD1_DATA0 0x17059
MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x17059
MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x17059
MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x13059
>;
};
};

We have kept the DATA3 line pulled low and when the SD-Card is inserted , the line becomes high.
Is there anything more need to do for card detection.?

Outcomes