Xavier NX external SD card hot plug in/out on custom board (JetPack 4.6)

Thanks!
I didn’t thought that I need to add node.
I did added a new node to hardware/nvidia/platform/t19x/jakku/kernel-dts/common/tegra194-p3668-common.dtsi
Now it’s looks like this:

type osdhci_sd: sdhci@3400000 {
                mmc-ocr-mask = <0x0>;
                cd-inverted;
                cd-gpios = <&tegra_main_gpio TEGRA194_MAIN_GPIO(G, 7) 0>;
                nvidia,cd-wakeup-capable;
                mmc-ocr-mask = <0>;
                cd-inverted;
                vmmc-supply = <&p3668_vdd_sdmmc1_sw>;
                status = "okay";
        };

        sdhci_sd1: sdhci@3440000 { //added this node
                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_sdmmc1_sw>;
                status = "okay";
        };
r paste code here

Now I have a working SDCARD with working hot plug in/out.

Thank you for your support!

3 Likes