diff options
author | Konrad Dybcio <konrad.dybcio@linaro.org> | 2022-11-14 13:50:43 +0300 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2022-12-06 20:05:30 +0300 |
commit | ecbdcbcd6f78fcf1c50e804b9baf065a36b61d26 (patch) | |
tree | 2ddb301223266054fa31d25ebaed41598fb979b3 /arch/arm64/boot | |
parent | 51ed312aa5072c920f86c308565232e98e4d9079 (diff) | |
download | linux-ecbdcbcd6f78fcf1c50e804b9baf065a36b61d26.tar.xz |
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: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221114105043.36698-4-konrad.dybcio@linaro.org
Diffstat (limited to 'arch/arm64/boot')
-rw-r--r-- | arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts b/arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts index 004a4d2f7099..5d4fc17e2fc4 100644 --- a/arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts +++ b/arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts @@ -191,7 +191,8 @@ pm6125_l5: l5 { regulator-min-microvolt = <1650000>; - regulator-max-microvolt = <3050000>; + regulator-max-microvolt = <2960000>; + regulator-allow-set-load; }; pm6125_l6: l6 { @@ -273,7 +274,8 @@ pm6125_l22: l22 { regulator-min-microvolt = <2704000>; - regulator-max-microvolt = <3544000>; + regulator-max-microvolt = <2960000>; + regulator-allow-set-load; }; pm6125_l23: l23 { @@ -332,6 +334,33 @@ }; }; +&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 { gpio-reserved-ranges = <13 4>; |