From 41d72bd1ceedcf01790cd3a13d9c45ce835926db Mon Sep 17 00:00:00 2001 From: Alexander Holler <holler@ahsoftware.de> Date: Thu, 12 Sep 2013 20:35:32 +0200 Subject: [PATCH 27/58] ARM: dts: am335x-bone: add CD for mmc1 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 | 14 ++++++++++++++ arch/arm/boot/dts/am335x-bone.dts | 1 - 2 files changed, 14 insertions(+), 1 deletion(-) @ arch/arm/boot/dts/am335x-bone-common.dtsi:110 @ 0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7) >; }; + + mmc1_pins: pinmux_mmc1_pins { + pinctrl-single,pins = < + 0x160 (PIN_INPUT | MUX_MODE7) /* GPIO0_6 */ + >; + }; }; ocp { @ arch/arm/boot/dts/am335x-bone-common.dtsi:269 @ 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; +}; @ arch/arm/boot/dts/am335x-bone.dts:20 @ }; &mmc1 { - status = "okay"; vmmc-supply = <&ldo3_reg>; }; -- 1.8.4.rc3