How to initialize SD card's power regulator in PetaLinux?

For Versal Edge AI VE2302 SOM custom PetaLinux build, please ensure that system-user.dtsi includes the SD voltage regulator definition and that it is properly connected to the sdhci1 node through the vqmmc-supply property.

regulators {
compatible = “simple-bus”;
#address-cells = <1>;
#size-cells = <0>;
reg_ssd_vqmmc: regulator_ssd_vqmmc {
compatible = “regulator-gpio”;
regulator-name = “ssd_vqmmc”;
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>;
regulator-type = “voltage”;
gpios = <&gpio1 27 0>;
gpios-states = <0>;
states = <3300000 0
1800000 1>;
};
};

&sdhci1 {
clock-frequency = <200000000>;
xlnx,has-cd = <0x1>;
xlnx,mio-bank = <1>;
bus-width = <4>;
vqmmc-supply = <&reg_ssd_vqmmc>;
};

For further product inquiries, please get in touch with our sales team at mktg@iwave-global.com

Please find the detailed product information here:
Versal™ AI Edge System on Module