Dear all:
- After update Jetpack to 5.0.2 and modify dtb to enable sd-card
hardware/nvidia/platform/t19x/jakku/kernel-dts/common/tegra194-p3668-common.dtsi
- sdhci_sd: sdhci@3400000 {
+ sdhci_sd: sdhci@3440000 {
mmc-ocr-mask = <0x0>;
cd-inverted;
- cd-gpios = <&tegra_main_gpio TEGRA194_MAIN_GPIO(G, 7) 0>;
+ cd-gpios = <&tegra_main_gpio TEGRA194_MAIN_GPIO(Q, 2) 0>;
nvidia,cd-wakeup-capable;
mmc-ocr-mask = <0>;
cd-inverted;
@@ -365,7 +365,7 @@
output-high;
gpio-suspend;
suspend-output-low;
- gpios = <TEGRA194_AON_GPIO(CC, 1) GPIO_ACTIVE_HIGH>;
+ gpios = <TEGRA194_AON_GPIO(CC, 1) GPIO_ACTIVE_LOW>;
label = "suspend-led-gpio";
status = "okay";
};
hardware/nvidia/soc/t19x/kernel-dts/tegra194-soc/tegra194-soc-sdhci.dtsi
sdmmc3: sdhci@3440000 {
- compatible = "nvidia,tegra194-sdhci", "nvidia,tegra186-sdhci";
+ compatible = "nvidia,tegra194-sdhci";
reg = <0x0 0x3440000 0x0 0x00020000>;
interrupts = < 0 TEGRA194_IRQ_SDMMC3 0x04>;
iommus = <&smmu TEGRA_SID_SDMMC3A>;
@@ -154,7 +154,7 @@
<&bpmp_clks TEGRA194_CLK_SDMMC_LEGACY_TM>;
clock-names = "sdmmc", "pll_p", "pll_c4_muxed", "sdmmc_legacy_tm", "tmclk";
uhs-mask = <0x08>;
- status = "disabled";
+ status = "okay";
};
- sd card can work, but show follow message:
> dmesg:
[ 436.076140] mmc1: Applying tuning correction
[ 436.076163] mmc1: Tap value after applying correction 63
[ 441.964667] mmc1: Applying tuning correction
[ 441.964689] mmc1: Tap value after applying correction 62
[ 479.389062] mmc1: Applying tuning correction
[ 479.389084] mmc1: Tap value after applying correction 63
- Full dmesg information is below
dmesg.log (102.8 KB)
- in Jetpack 4.6 Without these hints, sdcard work normal.
So, do I still need to adjust devicetree of sdhci@3440000?