]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: sm6115-pro1x: Enable SD card slot
authorDang Huynh <danct12@riseup.net>
Wed, 31 Jul 2024 06:18:46 +0000 (13:18 +0700)
committerBjorn Andersson <andersson@kernel.org>
Thu, 1 Aug 2024 02:42:00 +0000 (21:42 -0500)
Fxtec Pro1X has two card slots and allow either 2xSIM cards or
1xSIM, 1xSD Card configuration.

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Dang Huynh <danct12@riseup.net>
Link: https://lore.kernel.org/r/20240731-qx1050-feature-expansion-v3-5-b945527fa5d2@riseup.net
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sm6115-fxtec-pro1x.dts

index e0972e1374afba61be7b83437c9bc5974e0de56f..0e2e404341db4860d9eb3e018a8c5b6d85ce9514 100644 (file)
                pm6125_l5a: l5 {
                        regulator-min-microvolt = <1648000>;
                        regulator-max-microvolt = <3056000>;
+                       regulator-allow-set-load;
                };
 
                pm6125_l6a: l6 {
        };
 };
 
+&sdc2_state_off {
+       cd-pins {
+               pins = "gpio88";
+               function = "gpio";
+               drive-strength = <2>;
+               bias-disable;
+       };
+};
+
+&sdc2_state_on {
+       cd-pins {
+               pins = "gpio88";
+               function = "gpio";
+               drive-strength = <2>;
+               bias-pull-up;
+       };
+};
+
+&sdhc_2 {
+       pinctrl-0 = <&sdc2_state_on>;
+       pinctrl-1 = <&sdc2_state_off>;
+       pinctrl-names = "default", "sleep";
+
+       cd-gpios = <&tlmm 88 GPIO_ACTIVE_LOW>;
+
+       vmmc-supply = <&pm6125_l22a>;
+       vqmmc-supply = <&pm6125_l5a>;
+
+       status = "okay";
+};
+
 &sleep_clk {
        clock-frequency = <32764>;
 };