ARM: dts: qs600: Add SD card detect support.
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 18 Sep 2015 12:32:18 +0000 (13:32 +0100)
committerAndy Gross <agross@codeaurora.org>
Tue, 13 Oct 2015 21:40:01 +0000 (16:40 -0500)
This patch adds SD card detect support.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Andy Gross <agross@codeaurora.org>
arch/arm/boot/dts/qcom-apq8064-cm-qs600.dts

index cc9d9423a4c07ddbbcaea693fa7651e71894be10..03784f1366e593ef2b317568962d1ab17ae03363 100644 (file)
        };
 
        soc {
+               pinctrl@800000 {
+                       card_detect: card_detect {
+                               mux {
+                                       pins = "gpio26";
+                                       function = "gpio";
+                                       bias-disable;
+                               };
+                       };
+               };
+
                rpm@108000 {
                        regulators {
                                vin_lvs1_3_6-supply = <&pm8921_s4>;
                        sdcc3: sdcc@12180000 {
                                status = "okay";
                                vmmc-supply = <&v3p3_fixed>;
+                               pinctrl-names   = "default";
+                               pinctrl-0       = <&card_detect>;
+                               cd-gpios        = <&tlmm_pinmux 26 GPIO_ACTIVE_LOW>;
                        };
                        /* WLAN */
                        sdcc4: sdcc@121c0000 {