I'm happy to leave the pinmux alone, but if all I'm doing is reading or 
writing to the GPIO can I do so from /dev/mem?

According to this post, it's about 1000x faster: 
http://chiragnagpal.com/examples.html

It's also how hal_bb_gpio is implemented: 
https://github.com/machinekit/machinekit-hal/blob/master/src/hal/drivers/hal_bb_gpio/hal_bb_gpio.c

If necessary, it could be rewritten to use sysfs, but if it means being 
1000x slower, that's not ideal.

On Thursday, March 26, 2020 at 9:31:37 AM UTC-6, RobertCNelson wrote:
>
> On Thu, Mar 26, 2020 at 9:32 AM John Allwine <[email protected] 
> <javascript:>> wrote: 
> > 
> > Thanks Robert! 
> > 
> > Can you clarify why it's a bad idea on the am57xx when it seems to be 
> the fastest way to do it on the am335x? 
>
> I'm still waiting for an official Application Note from TI for the 
> am57xx, but the short answer, don't touch the pinmux registers from 
> linux. 
>
> > What is the fastest way to read/write to the GPIO on the am57xx? 
>
> Define them in the device tree, toggle them from userspace, just like 
> the am335x, just don't TOUCH the pinmux... 
>
> 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/230415f7-c639-4a4c-8838-ba6c6efcdcd1%40googlegroups.com.

Reply via email to