On Mon, Aug 17, 2015 at 2:17 AM, Mehmet Özgür Bayhan
<[email protected]> wrote:
> Hi. I am using Robert C. Nelson's kernel on my Beagle Board Rev-C
>
> I want to use mmc2 ports as GPIO.
>
> There is 8 pins in mmc and the default configuration in device tree is  =
>
>> mmc2: mmc@480b4000 {
>> compatible = "ti,omap3-hsmmc";
>> reg = <0x480b4000 0x200>;
>> interrupts = <86>;
>> ti,hwmods = "mmc2";
>> dmas = <&sdma 47>, <&sdma 48>;
>> dma-names = "tx", "rx";
>> };
>
>
> but disbled default in omap3-beagle.dts. So how should i use these ports as
> GPIO(not as mmc2) and pull them HIGH and direction > out during sturtup?
>
> I am a newbie, I've tried many things but still can't solve.

See this example of the "eMMC" reset gpio on the black, pick the
correct gpio on the xm and it'll work the same..

Step 1: define the pins a pinmux..

mmc1_pins: pinmux_mmc1_pins {
     pinctrl-single,pins = <
          0x160 (PIN_INPUT | MUX_MODE7) /* GPIO0_6 */
     >;
};

Step 2: gpio-hog...

&gpio1 {
     emmc_rst {
          gpio-hog;
          gpios = <20 0>;
          output-high;
          line-name = "EMMC ResetN";
     };
};

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to