thanks for the reply briselec! so setting bit 5 enables the pin to be both
an output pin and an input pin. The pins themselves could obviously only be
either an input or output pin at any one time depending on the value in the
GPIO_OE reg.

And the sysfs interface likely sets/clears the GPIO_OE register depending
on what value ("out" or "in") is written in the GPIO's 'direction' file.

Does this sound about right ?

For generic GPIO, does that mean that writing a value of 0x2F in the GPIO's
control module register via device tree overlays will enable the GPIO as a
bidirectional pin? Are there any recommendations for the pull-up/down
settings for bi-directional I/Os? I know that they come in handy for inputs
configurations, not sure about the bidirectional/output configurations
though.

0x2F => 0010 1111

bits 0-2 (111) Mode 7
bit 3      (1)     Pull up/down Disabled
bit 4       (x)    Pull up/down type (bit 3 is disabled hence this doesn't
matter)
bit 5      (1)     Receiver enabled
bit 6      (0)     Fast slew rate

Thanks!
Hussam


On Sat, Apr 12, 2014 at 7:17 PM, <[email protected]> wrote:

> Bit 5 in the control module register controls whether the pin can be used
> as a input as well as an output.
> Its the GPIO_OE register that controls whether it is configured as an
> input or an output.
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/beagleboard/l7y23bwkzTE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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