Hello,
we need to use the time stamping functionality to implement a pll in order to synchronize to an external clock (e.g.1kHz) with precisions better than 200 ns. The ecap functionality in the pwmss is predestinated for such application. However, there is no kernel driver available to access this function. A way to access the registers could be the uio-module-driver. I am able to open and access the pruss1 registers and memory regions (adding am57xx-idk-pru-uio-swissQprint.dtsi to the am57xx-idk.dts). Adding similar entries for the pwmss register map I am able to open and map the registers to memory (according to example in the extra-driver uio-module-drv-2.2.1.0). However, when reading I get a 'bus error' exception.
Do you have any hints for me? Or do you know of a kernel driver which supports capturing events?
Thanks a lot for your help,
Bernd