aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>2020-10-29 14:28:58 +0530
committerBjorn Andersson <bjorn.andersson@linaro.org>2020-11-24 10:30:25 -0800
commitd994d6b3a7b093676e88bd9ddc1d8565463d5576 (patch)
tree626e12a528bcd0880a27dd2d4b70b451b771eccb
parentf6d75f9c031e4be85edcbe1d59ddb7b131c63263 (diff)
ARM: dts: qcom: sdx55-mtp: Enable SDHCI controller
Enable SDHCI controller on the Qualcomm SDX55 MTP board. TODO: Remove fixed regulators and source the actual regulators. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
-rw-r--r--arch/arm/boot/dts/qcom-sdx55-mtp.dts53
1 files changed, 53 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/qcom-sdx55-mtp.dts b/arch/arm/boot/dts/qcom-sdx55-mtp.dts
index 8c39db4ae792..01d8812cca5c 100644
--- a/arch/arm/boot/dts/qcom-sdx55-mtp.dts
+++ b/arch/arm/boot/dts/qcom-sdx55-mtp.dts
@@ -6,6 +6,7 @@
/dts-v1/;
+#include <dt-bindings/gpio/gpio.h>
#include "qcom-sdx55.dtsi"
/ {
@@ -20,8 +21,60 @@
chosen {
stdout-path = "serial0:115200n8";
};
+
+ vreg_sd_vdd: sd-vdd {
+ compatible = "regulator-fixed";
+ regulator-name = "vreg_sd_vdd";
+ regulator-min-microvolt = <2950000>;
+ regulator-max-microvolt = <2950000>;
+ };
+
+ vreg_vddpx_2: vddpx-2 {
+ compatible = "regulator-fixed";
+ regulator-name = "vreg_vddpx_2";
+ regulator-min-microvolt = <2850000>;
+ regulator-max-microvolt = <2850000>;
+ };
};
&blsp1_uart3 {
status = "ok";
};
+
+&sdhc_1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&sdc1_default_state &sdc1_card_det_n>;
+ vmmc-supply = <&vreg_sd_vdd>;
+ vqmmc-supply = <&vreg_vddpx_2>;
+ bus-width = <4>;
+ cd-gpios = <&tlmm 99 GPIO_ACTIVE_LOW>;
+ status = "ok";
+};
+
+&tlmm {
+ sdc1_default_state: sdc1-default {
+ clk {
+ pins = "sdc1_clk";
+ bias-disable;
+ drive-strength = <16>;
+ };
+
+ cmd {
+ pins = "sdc1_cmd";
+ bias-pull-up;
+ drive-strength = <10>;
+ };
+
+ data {
+ pins = "sdc1_data";
+ bias-pull-up;
+ drive-strength = <10>;
+ };
+ };
+
+ sdc1_card_det_n: sd-card-det-n {
+ pins = "gpio99";
+ function = "gpio";
+ bias-pull-up;
+ };
+};