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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,313件の閲覧回数
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 件の賞賛
4 返答(返信)

1,272件の閲覧回数
andrecurvello-tx
Contributor II

This helps you @edcloudcycle ?

0 件の賞賛

1,269件の閲覧回数
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 件の賞賛

1,295件の閲覧回数
andrecurvello-tx
Contributor II

Ok! Thanks for the feedback, @igorpadykov!

0 件の賞賛

1,309件の閲覧回数
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