arm64: dts: qcom: sm6125-seine: Configure SD Card slot on SDHCI 2
authorMarijn Suijten <marijn.suijten@somainline.org>
Thu, 22 Dec 2022 20:36:35 +0000 (21:36 +0100)
committerBjorn Andersson <andersson@kernel.org>
Thu, 29 Dec 2022 16:59:47 +0000 (10:59 -0600)
Sony's seine board features an SD Card slot on SDHCI 2, that is to be
powered by l5 and l22.  The card detect pin is already biased via
updates on the generic sdc2_*_state pinctrl nodes.

As usual regulator voltages are decreased to the maximum voted by the
downstream driver for safety.  SDHCI 2 is the only hardware block
feeding off of these.

Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221222203636.250190-5-marijn.suijten@somainline.org
arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts

index 4bca74ce2f1467bf90192acbe877d8bd045da4e7..ba2abfe2a6fa15f7eb85afe9362954a8d4634c2f 100644 (file)
 
                pm6125_l5: l5 {
                        regulator-min-microvolt = <1648000>;
-                       regulator-max-microvolt = <3104000>;
+                       regulator-max-microvolt = <2950000>;
+                       regulator-allow-set-load;
                };
 
                pm6125_l6: l6 {
 
                pm6125_l22: l22 {
                        regulator-min-microvolt = <2944000>;
-                       regulator-max-microvolt = <3304000>;
+                       regulator-max-microvolt = <2950000>;
+                       regulator-allow-set-load;
                };
 
                pm6125_l23: l23 {
        status = "okay";
 };
 
+&sdhc_2 {
+       cd-gpios = <&tlmm 98 GPIO_ACTIVE_HIGH>;
+       vmmc-supply = <&pm6125_l22>;
+       vqmmc-supply = <&pm6125_l5>;
+       no-sdio;
+       no-mmc;
+       status = "okay";
+};
+
 &tlmm {
        gpio-reserved-ranges = <22 2>, <28 6>;
 };