]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: lemans-evk: Enable SDHCI for SD Card
authorMonish Chunara <quic_mchunara@quicinc.com>
Tue, 16 Sep 2025 10:46:57 +0000 (16:16 +0530)
committerBjorn Andersson <andersson@kernel.org>
Tue, 16 Sep 2025 14:48:05 +0000 (09:48 -0500)
Enable the SD Host Controller Interface (SDHCI) on the lemans EVK board
to support SD card for storage. Also add the corresponding regulators.

Signed-off-by: Monish Chunara <quic_mchunara@quicinc.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Wasim Nazir <wasim.nazir@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250916-lemans-evk-bu-v5-9-53d7d206669d@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/lemans-evk.dts

index 3a0376f399e04d665d7a83bc1ea3bcdd8cd42019..0170da9362ae27cc0584455c1e8caa4f226d77c4 100644 (file)
@@ -17,6 +17,7 @@
        compatible = "qcom,lemans-evk", "qcom,qcs9100", "qcom,sa8775p";
 
        aliases {
+               mmc1 = &sdhc;
                serial0 = &uart10;
        };
 
                        };
                };
        };
+
+       vmmc_sdc: regulator-vmmc-sdc {
+               compatible = "regulator-fixed";
+
+               regulator-name = "vmmc_sdc";
+               regulator-min-microvolt = <2950000>;
+               regulator-max-microvolt = <2950000>;
+       };
+
+       vreg_sdc: regulator-vreg-sdc {
+               compatible = "regulator-gpio";
+
+               regulator-name = "vreg_sdc";
+               regulator-type = "voltage";
+               regulator-min-microvolt = <1800000>;
+               regulator-max-microvolt = <2950000>;
+
+               gpios = <&expander1 7 GPIO_ACTIVE_HIGH>;
+               states = <1800000 1>, <2950000 0>;
+
+               startup-delay-us = <100>;
+       };
 };
 
 &apps_rsc {
        status = "okay";
 };
 
+&sdhc {
+       vmmc-supply = <&vmmc_sdc>;
+       vqmmc-supply = <&vreg_sdc>;
+
+       pinctrl-0 = <&sdc_default>, <&sd_cd>;
+       pinctrl-1 = <&sdc_sleep>, <&sd_cd>;
+       pinctrl-names = "default", "sleep";
+
+       bus-width = <4>;
+       cd-gpios = <&tlmm 36 GPIO_ACTIVE_LOW>;
+       no-mmc;
+       no-sdio;
+
+       status = "okay";
+};
+
 &sleep_clk {
        clock-frequency = <32768>;
 };
                        bias-pull-up;
                };
        };
+
+       sd_cd: sd-cd-state {
+               pins = "gpio36";
+               function = "gpio";
+               bias-pull-up;
+       };
 };
 
 &uart10 {