SD Card issue with Nano L4T 32.2.1

Hello,

I’m working on our Nano carrier, L4T 32.2.1.

I’ve used the suggestion from the thread below to get SD card working but it times out during detection.

https://devtalk.nvidia.com/default/topic/1062120/jetson-nano/microsd-card-not-detected-on-jetson-nano-production-module/

I’ve this in the device tree

sdhci@700b0600 { /* SDMMC4 for EMMC */
	status = "okay";
};

sdhci@700b0000 { 
	status = "disabled";
};

sdhci@700b0400 {
	status = "okay";
	/delete-property/ keep-power-in-suspend;
	/delete-property/ non-removable;
	mmc-ddr-1_8v;
	mmc-ocr-mask = <3>;
	uhs-mask = <0x0>;
	max-clk-limit = <400000>;
	tap-delay = <3>;
};

I’ve checked with scope that the clock is present and observed activity on the data lines. But the clock is no longer present after the
detection phase.

I’ve attached the dmesg log, any idea on how to debug further or am I missing anything in the
device tree?

Thanks,
Hakim
dmesg.txt (57.4 KB)
tegra210-nano-sdcard-issue.zip (36.7 KB)

Hi hj-ca,

We are still checking your log. Could you also share your full dtb too?

I’ve attached full dtb.

The “mmc1: CMD CRC or end bit error, int mask 0xc0000” is resolved after CD GPIO entry added in the device tree. But the driver failed to load since we don’t have VDD regulator on our carrier so we bypassed it in the driver. After these changes, SD card worked.

Sorry for late reply. Our team also suggests to add below in the DT.

no-sdio;
no-mmc;
mmc-ocr-mask=<0>;
sd-uhs-sdr104;
sd-uhs-sdr50;
sd-uhs-sdr25;
sd-uhs-sdr12;

Anyway, glad it is working.