]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: qcom: x1e001de-devkit: Enable SD card support
authorSibi Sankar <quic_sibis@quicinc.com>
Fri, 25 Oct 2024 12:35:50 +0000 (18:05 +0530)
committerBjorn Andersson <andersson@kernel.org>
Sat, 21 Dec 2024 03:54:04 +0000 (21:54 -0600)
The SD card slot found on the X1E001DE Snapdragon Devkit for windows
board is controlled by SDC2 instance, so enable it.

Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20241025123551.3528206-3-quic_sibis@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/x1e001de-devkit.dts

index c3ec0bb2c42dfed9f5e9f56f18874b4ae6c0632c..abf18f730b8764b64690e624dc3141b5cde61e81 100644 (file)
        status = "okay";
 };
 
+&sdhc_2 {
+       cd-gpios = <&tlmm 71 GPIO_ACTIVE_LOW>;
+       pinctrl-0 = <&sdc2_default &sdc2_card_det_n>;
+       pinctrl-1 = <&sdc2_sleep &sdc2_card_det_n>;
+       pinctrl-names = "default", "sleep";
+       vmmc-supply = <&vreg_l9b_2p9>;
+       vqmmc-supply = <&vreg_l6b_1p8>;
+       bus-width = <4>;
+       no-sdio;
+       no-mmc;
+       status = "okay";
+};
+
 &smb2360_0 {
        status = "okay";
 };
                bias-disable;
        };
 
+       sdc2_card_det_n: sdc2-card-det-state {
+               pins = "gpio71";
+               function = "gpio";
+               drive-strength = <2>;
+               bias-pull-up;
+       };
+
        wcd_default: wcd-reset-n-active-state {
                pins = "gpio191";
                function = "gpio";