beaglebone GPIO read speed limit with linux?

Hi, I would like to read 8 GPIO pins at 5MHz. I wonder if beaglebone can handle?

Also should l read the file location /sys/…/gpioBlah or better to make a develop a kernel driver?

Thanks

You would have to experiment, I would recommend a kernel driver for higher precision.

No, the GPIO pins can only be updated about every 240 ns, it varies
a bit depending on system clock speed. On the Bone, you have the PRUSS,
which can access a GPIO pin without that overhead.

Jon

The following link may help you get in right direction. It is for beagleboard but the data and observations there may help.

http://veter-project.blogspot.in/2011/09/real-time-enough-about-pwms-and-shaky.html