How to enable SDMMC3 in u-boot on TX2-NX

Hi All,

We has customize carrier board with SD slot, and we would like to enable SD function in u-boot.

add settings into dts as fellow:

sdhci@3440000 {
		compatible = "nvidia,tegra186-sdhci";
		reg = <0x0 0x03440000 0x0 0x200>;
		resets = <&bpmp TEGRA186_RESET_SDMMC3>;
		reset-names = "sdhci";
		clocks = <&bpmp TEGRA186_CLK_SDMMC3>;
		interrupts = <GIC_SPI 62 0x04>;

		cd-inverted;
		cd-gpios = <&gpio_main TEGRA_MAIN_GPIO(X, 4) GPIO_ACTIVE_LOW>;
		bus-width = <4>;
		disable-wp;
		status = "okay";
	};

I think pmic setting is needed, but didn’t know how to enable sdmmc3 power.
Any idea???

Hi,

Here is one example from another user who tries to enable this on nano 2gb.

Please make similar change to your TX2-NX.

3433665_fb302d6542_diff (1).txt (9.9 KB)

Hi WayneeWWW,

without patch, we enable SDMMC3 function in u-boot on nano-4g works fine,
only need to add sdhci@700b0400 in devicetree and turn on pmic power in pin_mux_mmc function
val = 0xF2;
ret = dm_i2c_write(dev, MAX77620_CNFG1_L6_REG, &val, 1);
if (ret) {
printf(“i2c_write 0 0x3c 0x2f failed: %d\n”, ret);
}

With TX2-NX , we also add sdhci into devicetree ,
but I don’t think SDMMC3 use the same LDO6 as nano does.
To measure SDMMC3 bus , there is no voltage on sdio (all at low voltage status).
Do anything missing on porting sdmmc3 on TX2-NX u-boot?

Sorry for the late response, have you managed to get issue resolved or still need the support? Thanks

Hi kayccc,
issue still not resolved. uboot boot sequence can not boot from SD card.

Hi kayccc,

Do nvidia has any update ??

Which gpio are you using on your custom board for sdmmc3 3v3?

Hi WayneWWW,

sdmmc3 3v3 is system power, didn’t controlled by GPIO.

Sorry for the late response, is this still an issue to support? Thanks

Hi kayccc,
yes, still an issue, need nvidia support.

Hi,

For TX2NX, it is LDO7.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.