aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonrad Dybcio <[email protected]>2022-11-14 11:50:43 +0100
committerBjorn Andersson <[email protected]>2022-12-06 11:05:30 -0600
commitecbdcbcd6f78fcf1c50e804b9baf065a36b61d26 (patch)
tree2ddb301223266054fa31d25ebaed41598fb979b3
parent51ed312aa5072c920f86c308565232e98e4d9079 (diff)
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 <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
-rw-r--r--arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts33
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>;