[PATCH V2 4/4] arm64: dts: qcom: Enable SD card for Glymur CRD
From: Monish Chunara
Date: Thu Jul 02 2026 - 05:59:43 EST
From: Monish Chunara <monish.chunara@xxxxxxxxxxxxxxxx>
Enable SD card for Glymur CRD platform. Configure the vmmc/vqmmc
regulators and gpio-based card detection for the platform.
Co-developed-by: Sachin Rathore <sachin.rathore@xxxxxxxxxxxxxxxx>
Signed-off-by: Sachin Rathore <sachin.rathore@xxxxxxxxxxxxxxxx>
Signed-off-by: Monish Chunara <monish.chunara@xxxxxxxxxxxxxxxx>
---
arch/arm64/boot/dts/qcom/glymur-crd.dts | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/glymur-crd.dts b/arch/arm64/boot/dts/qcom/glymur-crd.dts
index c98dfb3941fa..48407e47aaca 100644
--- a/arch/arm64/boot/dts/qcom/glymur-crd.dts
+++ b/arch/arm64/boot/dts/qcom/glymur-crd.dts
@@ -268,6 +268,22 @@ misc_3p3_reg_en: misc-3p3-reg-en-state {
};
};
+&sdhc_2 {
+ vmmc-supply = <&vreg_l9b_e0_2p9>;
+ vqmmc-supply = <&vreg_l2b_e0_2p9>;
+
+ pinctrl-0 = <&sdc2_default_state &sdc2_card_det_n>;
+ pinctrl-1 = <&sdc2_sleep_state &sdc2_card_det_n>;
+ pinctrl-names = "default", "sleep";
+
+ cd-gpios = <&tlmm 221 GPIO_ACTIVE_LOW>;
+
+ no-mmc;
+ no-sdio;
+
+ status = "okay";
+};
+
&smb2370_j_e2_eusb2_repeater {
vdd18-supply = <&vreg_l15b_e0_1p8>;
vdd3-supply = <&vreg_l7b_e0_2p79>;
@@ -319,6 +335,13 @@ reset-n-pins {
bias-disable;
};
};
+
+ sdc2_card_det_n: sd-card-det-n-state {
+ pins = "gpio221";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-disable;
+ };
};
&usb_0 {
@@ -427,3 +450,4 @@ &usb_mp_qmpphy1 {
status = "okay";
};
+
--
2.34.1