Hi,
We have a custom-made carrier board with nano(emmc),and BSP version is R32.2.1
We use GPIO06 to detect SD card
According to these links:
https://devtalk.nvidia.com/default/topic/1067459/jetson-nano/sd-card-not-detected/1
We modify dts:
diff --git a/kernel-dts/t210-common-platforms/tegra210-p2530-common.dtsi b/kernel-dts/t210-common-platforms/tegra210-p2530-common.dtsi
index 63ebabe..c0634a7
--- a/kernel-dts/t210-common-platforms/tegra210-p2530-common.dtsi
+++ b/kernel-dts/t210-common-platforms/tegra210-p2530-common.dtsi
@@ -131,7 +131,7 @@
uhs-mask = <0x1c>;
power-off-rail;
nvidia,update-pinctrl-settings;
- status = "disabled";
+ status = "okay";
};
sdhci@700b0200 {
diff --git a/kernel-dts/porg-platforms/tegra210-porg-gpio-p3448-0000-b00.dtsi b/kernel-dts/porg-platforms/tegra210-porg-gpio-p3448-0000-b00.dtsi
index d3f9ef2..cb57b1c 100755
--- a/kernel-dts/porg-platforms/tegra210-porg-gpio-p3448-0000-b00.dtsi
+++ b/kernel-dts/porg-platforms/tegra210-porg-gpio-p3448-0000-b00.dtsi
@@ -59,6 +59,7 @@
TEGRA_GPIO(H, 5)
TEGRA_GPIO(H, 6)
TEGRA_GPIO(CC, 4)
+ TEGRA_GPIO(I, 0)^M
>;
gpio-output-low = <
TEGRA_GPIO(S, 7)
@@ -68,7 +69,6 @@
TEGRA_GPIO(H, 3)
TEGRA_GPIO(H, 4)
TEGRA_GPIO(H, 7)
- TEGRA_GPIO(I, 0)
TEGRA_GPIO(I, 2)
>;
gpio-output-high = <
diff --git a/kernel-dts/porg-plugin-manager/tegra210-porg-plugin-manager.dtsi b/kernel-dts/porg-plugin-manager/tegra210-porg-plugin-manager.dtsi
old mode 100644
new mode 100755
index 67283d4..e3d0361
--- a/kernel-dts/porg-plugin-manager/tegra210-porg-plugin-manager.dtsi
+++ b/kernel-dts/porg-plugin-manager/tegra210-porg-plugin-manager.dtsi
@@ -308,6 +308,7 @@
override@1 {
target = <&sdhci2>;
_overlay_ {
+ status = "okay";
vmmc-supply = <&max77620_ldo6>;
no-sdio;
no-mmc;
diff --git a/kernel-dts/tegra210-porg-p3448-common.dtsi b/kernel-dts/tegra210-porg-p3448-common.dtsi
old mode 100644
new mode 100755
index 9ff3f7a..47ce893
--- a/kernel-dts/tegra210-porg-p3448-common.dtsi
+++ b/kernel-dts/tegra210-porg-p3448-common.dtsi
@@ -251,9 +251,22 @@
};
sdhci@700b0400 {
- status = "disabled";
+ status = "okay";
/delete-property/ keep-power-in-suspend;
/delete-property/ non-removable;
+ mmc-ddr-1_8v;
+ mmc-ocr-mask = <3>;
+ uhs-mask = <0x0>;
+ max-clk-limit = <400000>;
+ cd-gpios = <&gpio TEGRA_GPIO(I, 0) GPIO_ACTIVE_LOW>;
+ tap-delay = <3>;
+ no-sdio;
+ no-mmc;
+ mmc-ocr-mask=<0>;
+ sd-uhs-sdr104;
+ sd-uhs-sdr50;
+ sd-uhs-sdr25;
+ sd-uhs-sdr12;
};
sdhci@700b0200 { /* SDMMC2 for Wifi */
diff --git a/kernel-dts/tegra210-soc/tegra210-sdhci.dtsi b/kernel-dts/tegra210-soc/tegra210-sdhci.dtsi
old mode 100644
new mode 100755
index c65c30e..5932a1e
--- a/kernel-dts/tegra210-soc/tegra210-sdhci.dtsi
+++ b/kernel-dts/tegra210-soc/tegra210-sdhci.dtsi
@@ -93,8 +93,8 @@
cd-inverted;
wp-inverted;
pwrdet-support;
- nvidia,min-tap-delay = <106>;
- nvidia,max-tap-delay = <185>;
+ /delete-property/ nvidia,min-tap-delay;
+ /delete-property/ nvidia,max-tap-delay;
pinctrl-names = "sdmmc_schmitt_enable", "sdmmc_schmitt_disable", "sdmmc_clk_schmitt_enable", "sdmmc_clk_schmitt_disable", "sdmmc_drv_code", "sdmmc_default_drv_code", "sdmmc_e_33v_enable", "sdmmc_e_33v_disable";
pinctrl-0 = <&sdmmc3_schmitt_enable_state>;
pinctrl-1 = <&sdmmc3_schmitt_disable_state>;
and still can’t detect sd card
dmesg.txt (53.9 KB)