Commit ecbdcbcd authored by Konrad Dybcio's avatar Konrad Dybcio Committed by Bjorn Andersson

arm64: dts: qcom: sm6375-pdx225: Enable SD card slot

Set SDHCI VMMC/VQMMC to <=2v96 and allow load setting by the SDHCI
driver, as required by this use case.

Configure the SD Card Detect pin, enable the SDHCI2 controller and
assign it the aforementioned regulators.
Signed-off-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221114105043.36698-4-konrad.dybcio@linaro.org
parent 51ed312a
...@@ -191,7 +191,8 @@ pm6125_l4: l4 { ...@@ -191,7 +191,8 @@ pm6125_l4: l4 {
pm6125_l5: l5 { pm6125_l5: l5 {
regulator-min-microvolt = <1650000>; regulator-min-microvolt = <1650000>;
regulator-max-microvolt = <3050000>; regulator-max-microvolt = <2960000>;
regulator-allow-set-load;
}; };
pm6125_l6: l6 { pm6125_l6: l6 {
...@@ -273,7 +274,8 @@ pm6125_l21: l21 { ...@@ -273,7 +274,8 @@ pm6125_l21: l21 {
pm6125_l22: l22 { pm6125_l22: l22 {
regulator-min-microvolt = <2704000>; regulator-min-microvolt = <2704000>;
regulator-max-microvolt = <3544000>; regulator-max-microvolt = <2960000>;
regulator-allow-set-load;
}; };
pm6125_l23: l23 { pm6125_l23: l23 {
...@@ -332,6 +334,33 @@ pmr735a_l7: l7 { ...@@ -332,6 +334,33 @@ pmr735a_l7: l7 {
}; };
}; };
&sdc2_off_state {
sd-cd-pins {
pins = "gpio94";
function = "gpio";
drive-strength = <2>;
bias-disable;
};
};
&sdc2_on_state {
sd-cd-pins {
pins = "gpio94";
function = "gpio";
drive-strength = <2>;
bias-pull-up;
};
};
&sdhc_2 {
status = "okay";
vmmc-supply = <&pm6125_l22>;
vqmmc-supply = <&pm6125_l5>;
cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>;
};
&tlmm { &tlmm {
gpio-reserved-ranges = <13 4>; gpio-reserved-ranges = <13 4>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment