ARM: dts: db600c: Add eMMC and SD card support
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tue, 12 Apr 2016 09:33:55 +0000 (10:33 +0100)
committerAndy Gross <andy.gross@linaro.org>
Wed, 20 Apr 2016 20:03:12 +0000 (15:03 -0500)
This patch adds eMMC and SD card support with card detect and adding
required regulators.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm/boot/dts/qcom-apq8064-arrow-db600c-pins.dtsi [new file with mode: 0644]
arch/arm/boot/dts/qcom-apq8064-arrow-db600c.dts

diff --git a/arch/arm/boot/dts/qcom-apq8064-arrow-db600c-pins.dtsi b/arch/arm/boot/dts/qcom-apq8064-arrow-db600c-pins.dtsi
new file mode 100644 (file)
index 0000000..7339919
--- /dev/null
@@ -0,0 +1,9 @@
+&tlmm_pinmux {
+       card_detect: card-detect {
+               mux {
+                       pins = "gpio26";
+                       function = "gpio";
+                       bias-disable;
+               };
+       };
+};
index 6695b007a34f8efb17953354a84f5ee2436bb733..d92142409c43eae1b29bac835279d13d4638a8a6 100644 (file)
@@ -1,4 +1,6 @@
 #include "qcom-apq8064-v2.0.dtsi"
+#include "qcom-apq8064-arrow-db600c-pins.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 / {
        model = "Arrow Electronics, APQ8064 DB600c";
                                        regulator-max-microvolt = <1300000>;
                                        qcom,switch-mode-frequency = <3200000>;
                                 };
+
+                               l5 {
+                                       regulator-min-microvolt = <2750000>;
+                                       regulator-max-microvolt = <3000000>;
+                                       bias-pull-down;
+                                       regulator-boot-on;
+                                       regulator-always-on;
+                               };
+
+                               l6 {
+                                       regulator-min-microvolt = <2950000>;
+                                       regulator-max-microvolt = <2950000>;
+                                       bias-pull-down;
+                               };
                        };
                };
 
                                pinctrl-0 = <&gsbi7_uart_2pins>;
                        };
                };
+
+               amba {
+                       /* eMMC */
+                       sdcc@12400000 {
+                               status = "okay";
+                               vmmc-supply = <&pm8921_l5>;
+                               vqmmc-supply = <&pm8921_s4>;
+                       };
+
+                       /* External micro SD card */
+                       sdcc@12180000 {
+                               status = "okay";
+                               vmmc-supply = <&pm8921_l6>;
+                               pinctrl-names   = "default";
+                               pinctrl-0       = <&card_detect>;
+                               cd-gpios        = <&tlmm_pinmux 26 GPIO_ACTIVE_HIGH>;
+                       };
+               };
        };
 };