ARM: dts: am335x-bone: add CD for mmc1
authorAlexander Holler <holler@ahsoftware.de>
Thu, 12 Sep 2013 18:35:32 +0000 (20:35 +0200)
committerBenoit Cousson <bcousson@baylibre.com>
Fri, 11 Oct 2013 19:06:30 +0000 (21:06 +0200)
This enables the use of MMC cards even when no card was inserted at boot.

Signed-off-by: Alexander Holler <holler@ahsoftware.de>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Tested-by: Kevin Hilman <khilman@linaro.org>
Reviewed-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Benoit Cousson <bcousson@baylibre.com>
arch/arm/boot/dts/am335x-bone-common.dtsi
arch/arm/boot/dts/am335x-bone.dts

index 2f66deda9f5c171b4394046e14dba7b4814588df..0d95d54b6ae97880b555b3774909d26d4c1d3a7d 100644 (file)
                                0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
                        >;
                };
+
+               mmc1_pins: pinmux_mmc1_pins {
+                       pinctrl-single,pins = <
+                               0x160 (PIN_INPUT | MUX_MODE7) /* GPIO0_6 */
+                       >;
+               };
        };
 
        ocp {
        pinctrl-0 = <&davinci_mdio_default>;
        pinctrl-1 = <&davinci_mdio_sleep>;
 };
+
+&mmc1 {
+       status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&mmc1_pins>;
+       cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
+       cd-inverted;
+};
index d5f43fe2bfe13474c09805ec332f3f6d2eb1b25e..0d6334875df8073b36d504e08670ffe8a6244d3b 100644 (file)
@@ -17,6 +17,5 @@
 };
 
 &mmc1 {
-       status = "okay";
        vmmc-supply = <&ldo3_reg>;
 };