Jetson_Xavier_NX SDMMC3(SD card) not found

hi
We use sdmmc3 on the carrier board, but we cannot see this device,
Some similar problems were found from forums, but none of them can solve the problem of not being able to catch SDCard.
How can we use the sdcard on sdmmc3?

Best Regards

1 Like

Hi,

This patch in tegra194-p3668-common.dtsi should make your sdmmc3 work. Please modify cd-gpios and vmmc-supply to match your board design.

mmc-ocr-mask = <0x0>;
 cd-inverted;
 cd-gpios = <&tegra_main_gpio TEGRA194_MAIN_GPIO(G, 7) 0>;
 nvidia,cd-wakeup-capable;
  mmc-ocr-mask = <0>;
cd-inverted;
vmmc-supply = <&p3668_vdd_sdmmc1_sw>;
status = "okay";

If it does not work, please attach your dmesg.

1 Like

hi Wayne
cannot see this sdcard device.
dmesg : mmc.log (1.7 KB)

Hi,

Could you always share the full log?

Hi Wayne
full dmesg : [dmesg.log|attachment](95.4 KB)

Best Regards

Could you go to /proc/device-tree/ and check if you really set the sdhci controller to “okay”?

1 Like

Hi Wayne
sdhci 3400000/3460000 status okay/00 , only 3440000 disabled,

Best Regards

Which release are you using? rel-32.4.3?

If you hotplug the sdcard, will you see new log showing in dmesg?

1 Like

hi Wayne
L4T r32_Release_v4.3, Hot plugging is the same result, the carrier board & sdcard can be used on the NANO platform.

Best Regards

1 Like

Hi,

What is the power supply for the sdmmc controller (p3668_vdd_sdmmc3_sw) here?

1 Like

Hi Wayne
p3668_vdd_sdmmc3_sw, is the hardware power supply? or ?
We have confirmed that the power supply of the hardware is normal.
sdcard connector VDD pin 3.3v.

Best Regards

Hi,

We don’t have such node so it is added by you… Need to check this node in dts.

When sdhci controller is set to “okay”, but it has no response in log, it is probably hardware design problem.

1 Like

hi Wayne
We have confirmed that the carrier board and sdcard (including format) are normal when tested on the NANO platform.
It means that the hardware circuit is also normal, unless Xavier NX and NANO pin definition are incompatible and cause problems.

Best Regards

1 Like

Hi,

Oh, sorry. I didn’t get this point from previous comment.
Do you mean when Nano module is connected to this carrier board, sdcard can work fine but when NX module is connected, it cannot work?

1 Like

Ok… my fault… didn’t notice this one either…

sdhci 3400000/3460000 status okay/00 , only 3440000 disabled,

sdhci 3440000 should be enabled… because it is for sdmmc3.

The patch needs to be added to 3440000 node.

Hi Wayne
NANO module ok, change NX moudule fail. ok, we will try 3440000.

Best Regards

Hi Wayne
As a result, the sdcard is still the same.

only change:
cd-gpios = <&tegra_main_gpio TEGRA194_MAIN_GPIO(Q, 2) 0>;
vmmc-supply = <&p3668_vdd_sdmmc3_sw>;

Best Regards

Hi Tom.

Could you give more description…?

What do you mean “still the same”? If it cannot work, could you say “still cannot work”?

As a result, the sdcard is still the same.

And what does that mean only change that two lines? You have to enable sdhci@3440000.

only change:
cd-gpios = <&tegra_main_gpio TEGRA194_MAIN_GPIO(Q, 2) 0>;
vmmc-supply = <&p3668_vdd_sdmmc3_sw>;

1 Like

please always attach a dmesg when you did some patching and not work.

1 Like

hi Wayne
still cannot work. dmesg: [dmesg20200724-01.log|attachment] (117.7 KB)
We added the following:

1 Like