Hi @igorpadykov @Bio_TICFSL @stevelongerbeam,
Could we get a better response on how to use IMX8MM GPT under Linux? Seems like we are all stuck on the same step. Driver looks present and like it should work, is there a guide somewhere for how to locate the userspace interface to the driver code?
Looks like this is a reasonably popular topic, questions from @magicarrow98, @andyli and @nirgeller all on the same subject.
https://community.nxp.com/t5/i-MX-Processors/GPT-input-Capture-in-I-MX8M-Mini/m-p/1044403
https://community.nxp.com/t5/i-MX-Processors/GPT-on-i-MX-8M-Mini/m-p/1206969
https://community.nxp.com/t5/i-MX-Processors/imx8mm-evk-gpt-driver/m-p/1203437
Kernel patch seems to be discussed here:
Hi,
Please refer to the case I opened with regard to GPT on kernel 5.4.47.
https://community.nxp.com/t5/i-MX-Processors/GPT-on-i-MX-8M-Mini/td-p/1206969
I'm able to get the driver compiled and invoked, but getting the clocks fails in the init function.
Can you please provide support for kernel 5.4.47?
Thanks,
Nir.
Hi @igorpadykov, @Bio_TICFSL, is it possible to get an answer to this?
Thanks
Ed
Thanks, that sounds like just what I want but how do I locate the user space interface for it?
Hello edcloudcycle,
The driver is on yocto drivers/clocksource/timer-imx-gpt.c
The timer module utilizes four hardware timers, to implement clock source and clock event objects.
This is done with the clocksource_mxc structure of struct clocksource type and clockevent_mxc structure of struct clockevent_device type. Both structures provide routines required for reading current timer values and scheduling the next timer event.
The driver works well if you want to change it you can do it.
Regards
Thanks, that sounds like just what I want but how do I locate the user space interface for it?