Usage of General Purpose Timer (GPT) on User-Space at Linux on i.MX8M Mini

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

Usage of General Purpose Timer (GPT) on User-Space at Linux on i.MX8M Mini

1,256 Views
andrecurvello-tx
Contributor II

Hello, I'd like to know if it's possible to expose the GPT in the i.MX8M Mini for a user-space application on Linux side.

 

I know that there is an MCUXpresso API (https://mcuxpresso.nxp.com/api_doc/dev/320/group__gpt.html) for GPT usage through the Microcontroller, but there is a way to expose this resource directly to Linux?

 

Thanks for your attention.

 

Best regards, André Curvello

0 Kudos
4 Replies

1,215 Views
andrecurvello-tx
Contributor II

This helps you @edcloudcycle ?

0 Kudos

1,212 Views
edcloudcycle
Contributor III

I don't think so, the device tree was not the problem it was accessing the driver under linux. Do you know how to do it?

0 Kudos

1,238 Views
andrecurvello-tx
Contributor II

Ok! Thanks for the feedback, @igorpadykov!

0 Kudos

1,252 Views
igorpadykov
NXP Employee
NXP Employee

Hi André

 

gpt dts can be as below, also additional patches were sent via mail

&gpt1 {
assigned-clock-parents = <&clk IMX8MM_CLK_EXT1>;
assigned-clocks = <&clk IMX8MM_CLK_GPT1>;
pinctrl-0 = <&pinctrl_gpt1>;
pinctrl-names = "default";
status = "okay";
};

 

Best regards
igor