From 0ce013b84591eba850544fa6feb35e5506c16a92 Mon Sep 17 00:00:00 2001 From: Torben Hohn <torbenh@linutronix.de> Date: Tue, 18 Mar 2014 15:49:56 +0100 Subject: [PATCH 47/51] am335x-pcm051: add card detect gpio and pinctrl for mmc --- arch/arm/boot/dts/am335x-pcm051.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) @ arch/arm/boot/dts/am335x-pcm051.dts:108 @ 0x1a0 (PIN_INPUT_PULLUP | MUX_MODE7) /* mcasp0_aclkr.gpio3_18 */ >; }; + + mmc0_pins: pinmux_mmc0_pins { + pinctrl-single,pins = < + 0x0f0 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat3.mmc0_dat3 */ + 0x0f4 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat2.mmc0_dat2 */ + 0x0f8 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat1.mmc0_dat1 */ + 0x0fc (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_dat0.mmc0_dat0 */ + 0x100 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_clk.mmc0_clk */ + 0x104 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc0_cmd.mmc0_cmd */ + 0x160 (PIN_INPUT_PULLUP | MUX_MODE7) /* spi0_cs1.mmc0_sdcd */ + >; + }; }; ocp { @ arch/arm/boot/dts/am335x-pcm051.dts:335 @ &mmc1 { status = "okay"; vmmc-supply = <&ldo3_reg>; + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins>; + cd-gpios = <&gpio0 6 0>; }; &lcdc { -- 1.7.10.4