BeagleBone GPIO
Damjan Marion
dmarion at freebsd.org
Thu Jul 19 16:40:26 UTC 2012
Hi David,
GPIO driver works for 1st 32 GPIOs, and gpioctl is right tool but you
cannot list GPIOs, you can just toggle them.
You can see list of gpios in sys/arm/ti/am335x/am335x_scm_padconf.c
and might be that you will need to change settings in sys/boot/fdt/dts/beaglebone.dts.
For a proper support gpioctl tool needs complete rewrite, as it currently
assumes that there is no more that 32 gpios available.
Cheers,
Damjan
On Jul 19, 2012, at 6:29 PM, David Kalliecharan <davidkallie at gmail.com> wrote:
> Hi Damjan,
>
> I am attempting to do some work on the BeagleBone and am curious about
> the GPIO driver, I was directed to you by Tim Kientzle, who has helped
> me get a working system and am going to attempt to help him in any way
> I can. I attempted to list off the available pins using the gpioctl
> command and got the error:
>
> # gpioctl -f /dev/gpioc0 -l
> ioctl(GPIOGET): Invalid argument
>
> Not sure if I am using the correct userland tool, as Tim informed me
> that there was a tool to use and a driver you were working on and had
> assumed it to be 'gpioctl'. If I can help with testing or anything let
> me know (I am trying to get my feet wet with this stuff), again thanks
> for taking the time to help, I really appreciate it!
>
> Cheers,
>
> Dave
More information about the freebsd-arm
mailing list