arm64: dts: qcom: sm6350-lena: Provide power to SDHCI 2 (SDCard slot)
authorMarijn Suijten <marijn.suijten@somainline.org>
Sun, 30 Oct 2022 07:32:29 +0000 (08:32 +0100)
committerBjorn Andersson <andersson@kernel.org>
Mon, 7 Nov 2022 23:25:47 +0000 (17:25 -0600)
Without power the SDCard slot / hardware remains dormant.

Like many other platforms these regulators are used exclusively by
SDHCI, and have their maximum voltage decreased to what downstream sets
on the consumer side.  Additionally the SDHCI driver supports setting a
load, for which the regulator definition is extended much the same.

Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221030073232.22726-8-marijn.suijten@somainline.org
arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts

index 1aaa9612b061f22b4478a9804b3219d70a1b3076..5cb76026ef676c380d3843d42bf2710345b46f4e 100644 (file)
 
                pm6150l_l6: ldo6 {
                        regulator-min-microvolt = <1700000>;
-                       regulator-max-microvolt = <3544000>;
+                       regulator-max-microvolt = <2950000>;
                        regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+                       regulator-allow-set-load;
+                       regulator-allowed-modes =
+                           <RPMH_REGULATOR_MODE_LPM
+                            RPMH_REGULATOR_MODE_HPM>;
+
                };
 
                pm6150l_l7: ldo7 {
 
                pm6150l_l9: ldo9 {
                        regulator-min-microvolt = <2700000>;
-                       regulator-max-microvolt = <3544000>;
+                       regulator-max-microvolt = <2960000>;
                        regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+                       regulator-allow-set-load;
+                       regulator-allowed-modes =
+                           <RPMH_REGULATOR_MODE_LPM
+                            RPMH_REGULATOR_MODE_HPM>;
+
                };
 
                pm6150l_l10: ldo10 {
 &sdhc_2 {
        status = "okay";
 
+       vmmc-supply = <&pm6150l_l9>;
+       vqmmc-supply = <&pm6150l_l6>;
+
        cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>;
 };