Hi Nvidia
Sorry,I’m a new user of Jetson
SDMMC_CD is GPIO8 GPIO3_PX.04 #define TEGRA_MAIN_GPIO_PORT_X 19
SDIO_VDD_EN is GPIO14 GPIO3_PV.06 #define TEGRA_AON_GPIO_PORT_V 2
I modify Two dtsi file
Add code in tegra186-p3636-0001-a00-power-tree.dtsi
p3636_vdd_sdmmc3_sw:regulator@205 {
compatible = "regulator-fixed";
reg = <205>;
regulator-name = "vdd-sdmmc3-sw";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&tegra_aon_gpio TEGRA_AON_GPIO(V, 6) 0>;
enable-active-high;
};
sdhci@3440000 {
/* vqmmc-supply = <&spmic_ldo5>; */
vmmc-supply = <&p3636_vdd_sdmmc3_sw>;
};
Modify code in tegra186-p3636-0001-a00-comms.dtsi
sdmmc3: sdhci@3440000 {
cd-gpios = <&tegra_main_gpio TEGRA_MAIN_GPIO(X, 4) 0>;
vmmc-supply = <&p3636_vdd_sdmmc3_sw>;
cd-inverted;
mmc-ocr-mask = <0>;
uhs-mask = <0x8>;
status = "okay";
sd-uhs-sdr104;
sd-uhs-sdr50;
sd-uhs-sdr25;
sd-uhs-sdr12;
mmc-ddr-1_8v;
mmc-hs200-1_8v;
nvidia,always-on;
/delete-property/ non-removable;
/delete-property/ force-non-removable-rescan;
};
I have tried referring to other posts.
kernel log as follows:
[ 5.972480] mmc1: CMD CRC or end bit error, int mask 0xc0000
[ 5.980024] mmc1: CMD CRC or end bit error, int mask 0x40000
[ 5.986989] mmc1: CMD CRC or end bit error, int mask 0x40000
[ 5.993906] mmc1: CMD CRC or end bit error, int mask 0x40000
[ 6.000844] mmc1: CMD CRC or end bit error, int mask 0x40000
[ 6.007791] mmc1: CMD CRC or end bit error, int mask 0xc0000
[ 6.014725] mmc1: CMD CRC or end bit error, int mask 0xc0000
[ 6.021668] mmc1: CMD CRC or end bit error, int mask 0xc0000
[ 6.028612] mmc1: CMD CRC or end bit error, int mask 0xc0000
[ 6.035628] mmc1: CMD CRC or end bit error, int mask 0x40000
I refer to this revision log of Xavier NX.
sd_card_dts.log (2.0 KB)
Did I make a mistake at any step?
What should I do next step.
Start.log (47.8 KB)
tegra186-p3636-0001-a00-power-tree.dtsi (10.8 KB)
tegra186-p3636-0001-a00-comms.dtsi (1.5 KB)
No change anything in tegra186-p3636-0001-p3509-0000-a01.dts
tegra186-p3636-0001-p3509-0000-a01.dts (4.4 KB)
https://forums.developer.nvidia.com/t/tx2-nx-platform-sd-card-on-sdmmc3-is-not-work/179090/1
https://forums.developer.nvidia.com/t/tx2-nx-platform-sd-card-on-sdmmc3-is-not-work/179090