Using imx8mm-gpt driver combined question

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using imx8mm-gpt driver combined question

1,773 Views
edcloudcycle
Contributor III

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:

https://lore.kernel.org/linux-arm-kernel/20191027212121.GA3049@bogus/T/#m8d1f56a36543eaf2f9b8d41c99e...

 

 

 

Tags (2)
0 Kudos
Reply
5 Replies

1,693 Views
nirgeller
Contributor I

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.

0 Kudos
Reply

1,717 Views
edcloudcycle
Contributor III

Hi @igorpadykov@Bio_TICFSL, is it possible to get an answer to this?

Thanks
Ed

0 Kudos
Reply

1,743 Views
edcloudcycle
Contributor III

Thanks, that sounds like just what I want but how do I locate the user space interface for it?

0 Kudos
Reply

1,746 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

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

 

 

0 Kudos
Reply

1,724 Views
edcloudcycle
Contributor III

Thanks, that sounds like just what I want but how do I locate the user space interface for it?

0 Kudos
Reply