]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: dts: qcom: msm8998-mtp: Add external SD
authorJeffrey Hugo <jhugo@codeaurora.org>
Thu, 15 Nov 2018 17:18:11 +0000 (10:18 -0700)
committerAndy Gross <andy.gross@linaro.org>
Fri, 30 Nov 2018 01:30:55 +0000 (19:30 -0600)
The externally accessible SD card slot on the MTP is driven by SDCC2.
Wire it up for use.

Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi
arch/arm64/boot/dts/qcom/msm8998.dtsi

index 11fd1fe8bdb5209793c09afccff1e7893d2e4e00..50e9033aa7f637c2243a606599141f308102a89e 100644 (file)
@@ -245,3 +245,15 @@ vreg_bob: bob {
 &tlmm {
        gpio-reserved-ranges = <0 4>, <81 4>;
 };
+
+&sdhc2 {
+       status = "okay";
+       cd-gpios = <&tlmm 95 GPIO_ACTIVE_LOW>;
+
+       vmmc-supply = <&vreg_l21a_2p95>;
+       vqmmc-supply = <&vreg_l13a_2p95>;
+
+       pinctrl-names = "default", "sleep";
+       pinctrl-0 = <&sdc2_clk_on  &sdc2_cmd_on  &sdc2_data_on  &sdc2_cd_on>;
+       pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
+};
index 09deee0f76611a699b2d38197a9e04de082e7db9..82f647238071f9466b5a295c53a3c50675509493 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/clock/qcom,gcc-msm8998.h>
+#include <dt-bindings/gpio/gpio.h>
 
 / {
        interrupt-parent = <&intc>;