UHS 1 SD card not detected on nano

Hi ,
We have developed a custom base board based on nano SOM . In which we haveSD card as a peripheral , normal class 4 high speed sd card is detected properly .But when we connect an UHS 1 SD card , we are getting and error stated below and the card is not even detected.
mmc1: error -110 whilst initialising SD card
I have added below the the dtb properties I have used.Please let me know If I have missed something.

sdhci@700b0400 {
status = “okay”;
cd-gpios = <&gpio TEGRA_GPIO(Z, 2) 0>;
nvidia,cd-wakeup-capable;
cd-inverted;
sd-uhs-sdr104;
sd-uhs-sdr50;
sd-uhs-sdr25;
sd-uhs-sdr12;
//uhs-mask=<0x10>;
mmc-ddr-1_8v;
mmc-hs200-1_8v;
// max-clk-limit = <400000>;
nvidia,voltage-switch-gpio = <&gpio TEGRA_GPIO(C, 4) 0>;
mmc-ocr-mask = <0x03>;
};

Thanks In Advance,
Vikaash.K.B

Hi,

Which release are you using? Could you try rel-32.4.3?

@WayneWWW , No I am using L4T 32.2.1 , should I upgrade it , Is there any issues in SD with the version I am using?

Hi,

Or you could reply the question and try below patch

Does the custom carrier board support power cycling for SD slot supply on warm boot? I mean is there an extra gpio working a sdmmc_vdd_en here?

image
If not, are you sure your build has

  1. the WAR to bypass CMD11 in kernel image (Jetson Nano SD card enters back to high speed mode instead of uhs mode after soft reboot)
  2. has “nvidia,vmmc-always-on” in the dt?

Hi wayne,
The board doesnt have a SDMMC_VDD_EN .But the same base board detects UHS card with the folloing spec with xavier nx SOM,
clock: 208000000 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: 6 (sd uhs SDR104)
signal voltage: 1 (1.80 V)
driver type: 0 (driver type B)
However the read and write speeds are low in NX,

WRITE_SPEED : 28.7 MB/s
READ_SPEED : 27.0 MB/s

But the UHS SD is not even detected in Nano, whereas the other high speed class 4 sd cards are detcted.I tried with rel-32.4.3, as you suggested and that doesn’t work out .And also I tried the patch and dtb change you mentioned , that too doesnt work out.
Also I would like to add that I get these prints in u-boot in nano .Pllease check if it could help you,

MMC: no card present
** Bad device mmc 1 **

I have two questions,
1)The speed of UHS card I mentioned in NX is low .I need to know if this is the normal behaviour or not
2)I have wired for SDMMC_VDD_EN.What change should I do in dtb for that.Where should I mention the gpio that I have wired.

Please do the needful

2)I have wired for SDMMC_VDD_EN.What change should I do in dtb for that.Where should I mention the gpio that I have wired.

I think you could refer to this topic. Actually this one almost resolved every sdcard image we’ve met.

And I think you should summarize how many issues you have here and what platforms they are using. Looks like you have issue on Nano and again on NX.

For the UHS-I case on Nano, please also check the speed info as you pasted for NX here.

will definitely try the patch that you have mentioned.But it looks like the patch is for NX.
As you have asked to summarize the issues,
1)UHS1 SD not detected in Nano.
2)UHS1 SD detected with SD104 in NX, but the speeds are low ,as I have mentioned earlier.(nearly 25 MBps)
Both the SOMs are tested on version of same base board designed by us.

Hi,

  1. the WAR to bypass CMD11 in kernel image (Jetson Nano SD card enters back to high speed mode instead of uhs mode after soft reboot)
  2. has “nvidia,vmmc-always-on” in the dt?

These two patches are for both Nano and NX. This should resolve the low speed issue.

As for the “1)UHS1 SD not detected in Nano.” issue, please try different cards and add vmmc-supply to the gpio you are using.

Hi ,
I currently dont have access to xavier Nx SOM , will check that on monday.
Regd., the card not detected issue on UHS Nano, I have tried with different cards and could you please show a sample of dtb with vmmc-supply added one.I am asking this because I tried this and didn’t work.

This is how it was added in NX dtb,
vmmc-supply = <&p3668_vdd_sdmmc1_sw>;
and p3668_vdd_sdmmc1_sw has its defenition in hardware/nvidia/platform/t19x/jakku/kernel-dts/common/tegra194-fixed-regulator-p3668.dtsi
Should I add a similar entry in nano too ?

Should I add a similar entry in nano too ?

Yes, you have to. You have to write a similar regulator and assign this regulator to the vmmc-supply.
If this is still not clear to you, try to search keyword “p3448_vdd_3v3_sd” in the device tree folder and write similar one.

Hi ,
I have tried the kernel and dtb patch in nano and xavier nx and there were no improvements.
I have added the code snippet of the dtb in nano,

sdhci@700b0400 {
status = “okay”;
/delete-property/ keep-power-in-suspend;
/delete-property/ non-removable;
cd-gpios = <&gpio TEGRA_GPIO(Z, 2) 0>;
nvidia,cd-wakeup-capable;
nvidia,vmmc-always-on;
// nvidia,update-pinctrl-settings;
// nvidia,pmc-wakeup = <&tegra_pmc PMC_WAKE_TYPE_GPIO 35
// PMC_TRIGGER_TYPE_NONE>;
mmc-ddr-1_8v;
mmc-ocr-mask = <3>;
uhs-mask = <0x0>;
sd-uhs-sdr104;
sd-uhs-sdr50;
sd-uhs-sdr25;
sd-uhs-sdr12;
// max-clk-limit = <400000>;
tap-delay = <3>;
vmmc-supply = <&p3448_vdd_3v3_sd>;
};

                   p3448_vdd_3v3_sd: regulator@3 {
                    compatible = "regulator-fixed-sync";
                    reg = <3>;
                    regulator-name = "vdd-3v3-sd";
                    regulator-min-microvolt = <3300000>;
                    regulator-max-microvolt = <3300000>;
                    gpio = <&gpio TEGRA_GPIO(C, 4) 0>;
                    enable-active-high;
                    regulator-boot-on;
                    vin-supply = <&p3448_vdd_3v3_sys>;
            };

I have added the gpio C,4 in p3448_vdd_3v3_sd which I have wired . We are using a sandisk UHS-1 card.Please let us know if it is a problem with the a specific card vendor.Also we get a debug message
“mmc1: error -110 whilst initialising SD card”
Please check if this could help in any way in debugging.

Hi,

Please attach the full dmesg.

Hi ,
Please find the attached full dmesg logs after applying the patchdmesg-after-patch.txt (53.4 KB)

Hi,

We don’t know whether Sandisk UHS-I card has problem or not. But still suggest you to find other UHS-I cards and do the test.