After successfully flashing with above modification we got the dmesg log as shown below:
[ 1.407045] mmc0: SDHCI controller on sdhci-tegra.3 [sdhci-tegra.3] using ADMA 64-bit with 64 bit addr
[ 1.411048] mmc1: SDHCI controller on sdhci-tegra.2 [sdhci-tegra.2] using ADMA 64-bit with 64 bit addr
As shown mmc1 is enabled but couldn’t detect the sd card.
We also checked by df -h and /dev/ folder also.
Thanks @WayneWWW for your reply !
In tegra210-porg-p3448-common.dtsi file I already did nvidia,vmmc-always-on;
Is it the right and only file for modification?
Kindly have a look for my changes: (I’d add diff file but here are the only changes)
May I know more about point 1 & 2 and steps to taken care for ?
For hotplug we already changed in PinMux excel i.e. SDMMC3_CD
There could be a small step we’re missing or we’re doing something wrong here; kindly help us !
The pinmux just means this pin is set to GPIO. But it does not tell which driver should use this GPIO.
Thus, you still need to tell the sdhci driver where to find the cd gpio.
For example, some users take pin Z,2 as his gpio, so he can write as
cd-gpios = <&gpio TEGRA_GPIO(Z, 2) 0>;
Modify this to match your design.
And you still need to tell the sdhci driver which regulator is for the power. Though it is a dummy one.
Try to give vdd-3v3-sd to the vmmc-supply. This is one always-on regulator from “nvidia/platform/t210/porg/kernel-dts/porg-platforms/tegra210-porg-fixed-p3448-0000-a00.dtsi”.