Beaglebone and GPIO

Emmanuel Vadot elbarto at megadrive.org
Mon Jan 28 09:36:24 UTC 2013


On Mon, 28 Jan 2013 10:28:14 +0100
Damjan Marion <damjan.marion at gmail.com> wrote:

> 
> On Jan 28, 2013, at 6:34 AM, Emmanuel Vadot <elbarto at megadrive.org> wrote:
> 
> > On Mon, 28 Jan 2013 04:45:11 +0100
> > Emmanuel Vadot <elbarto at megadrive.org> wrote:
> > 
> >> 
> >> Hello,
> >> 
> >> I've filled the missings pads on am335x_scm_padconf.c so every GPIO pin is now accessible (if, of course, they are in GPIO mode).
> >> 
> >> I've also corrected/enhanced an error on ti_gpio.c, in the ti_gpio_pin_get function then code was testing if the pin was in output mode and if it was return EINVAL but in fact it was returning EINVAL if the pin was in input mode.
> >> Now the function return the value of the pin despite of it's an input or output. (seems more logical to me but I'm open to discuss this).
> >> 
> >> I've also patched gpioctl(1), it now test if the pin is in GPIO mode (according to the pin mux setting) and print either the value or "Not in GPIO mode".
> >> 
> >> Cheers,
> > 
> > Attached is the coorect patch with the correct case for some signals names.
> 
> Hell, Thanks for diffs.
> 
> padconf stuff is committed. For gpio changes would like to have blessing from gonzo.
> 
> Gonzo, are you fine with gpio changes?
> 
> Damjan
> 

 Thanks,

 Attached is the patch for the DTS of the beaglebone so every pins of the headers are setup like the beaglebone SRM said.

-- 
Emmanuel Vadot <elbarto at megadrive.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: beaglebone.dts.patch
Type: text/x-diff
Size: 2804 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20130128/44c1dafc/attachment.patch>


More information about the freebsd-arm mailing list