Setup for 24 bit parallel input to PRU0 (AI-64)

I need help setting up 24 pins for input to a PRU on the AI-64. I’ve done this previously on the Beaglebone Black with the config-pin utility. I may have also used a device tree overlay a long way back. Also, I need to know the mapping from the pin to the PRU input register bit.

Any help and an example would be great. I’m not sure where to look.

Thanks.
Chris

I’m not totally sure, but I guess BBB and AI pins are egual.

Find the BBB PRU-IN pins (R31) at libpruio: Tips and Tricks.

Regards