Hello,
On my custom board hosting a Xavier NX module, I have implemented an SD Card using the SDMMC3 slot. For the SD card detection signal, I used the GPIO08. For the enable of the voltage regulator, I took the GPIO09.
I am modifying the following dtsi files:
-
kernel/hardware/nvidia/platform/t19x/jakku/kernel-dts/common/tegra194-p3509-0000-a00.dtsi
added :
sdhci_sd: sdhci@3440000 {
mmc-ocr-mask = <0x0>;
cd-inverted;
cd-gpios = <&tegra_main_gpio TEGRA194_MAIN_GPIO(Q, 2) 0>;
nvidia,cd-wakeup-capable;
mmc-ocr-mask = <0>;
cd-inverted;
vmmc-supply = <&p3668_vdd_sdmmc3_sw>;
status = “okay”;
}; -
kernel/hardware/nvidia/platform/t19x/jakku/kernel-dts/common/tegra194-fixed-regulator-p3668.dtsi
p3668_vdd_sdmmc3_sw: regulator@106 {
compatible = “regulator-fixed”;
reg = <106>;
regulator-name = “vdd-sdmmc3-sw”;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&tegra_main_gpio TEGRA194_MAIN_GPIO(S, 4) 0>;
enable-active-high;
};
kernel/hardware/nvidia/platform/t19x/jakku/kernel-dts/common/tegra194-power-tree-p3668.dtsi
sdhci@3440000 {
vmmc-supply = <&p3668_vdd_sdmmc3_sw>;
};
I have two questions:
-
in the file tegra194-fixed-regulator-p3668.dtsi, I have an already regulator p3668_vdd_sdmmc1_sw with the option “reg 106” (which is useful for powering the SD card on the Xavier module). Is there an address pool available or not?
-
Should I make the modification in the file tegra194-power-tree-p3668.dtsi because I saw this on one of the Nvidia forums but not in the others talking about the installation of an SD card on SDMMC3…
Thanks for your feedback!