Data CRC Error


We have connected sd card at sdmmc3. It has successfully detected at sdmmc3 of Xavier Nx. But with this, we have also observed CRC Errors. Due to this, sd card is not able to mount on system.

$ /sys/kernel/debug# cat mmc0/ios
clock: 50000000 Hz
actual clock: 45333334 Hz
vdd: 21 (3.3 ~ 3.4 V)
bus mode: 2 (push-pull)
chip select: 0 (don’t care)
power mode: 2 (on)
bus width: 2 (4 bits)
timing spec: 2 (sd high-speed)
signal voltage: 1 (1.80 V)
driver type: 0 (driver type B)

Added new dtsi file:

sdhci_sdio: sdhci@3440000{
      mmc-ocr-mask = <0x0>;  
      bus-width = <0x4>;
      vmmc-supply = <&p3668_vdd_sdmmc3_sw>;
      tap-delay = <3>;
      mmc-ocr-mask = <0>;
      status = "okay";


Could you please let us know the reasons for this failure behavior?

the dmesg logs are attached below:
sdio_log.txt (119.3 KB)

cd-gpios, vmmc-supply are needed to match your hardware board design. only-1-8-v is not needed if your power source is 3.3v.

If you want to support hotplug, then “non-removable” cannot be added. This kind of issue has been discussed many times, checking some old post might help.

1 Like

Now I had successfully detected sd card on system at High speed mode.
I want to use sd card at ultra high speed mode (208Mz Clock) as sdmmc1. But after doing same configuration as sdmmc1, I am still getting 50 Mhz clock.

Is sdmmc3 clock limited to 50 Mhz ?

Please check if you add max-clk-limit under your sdmmc3 node.

max clock is defined as
max-clk-limit = <208000000>;

Resultant converted dts file is mentioned below…

tegra194-p3668-all-p3509-0000.dts (251.2 KB)

I’m closing this topic due to there is no update from you for a period, assuming this issue was resolved.
If still need the support, please open a new topic. Thanks

Please share the dmesg.