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,367 次查看
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,326 次查看
andrecurvello-tx
Contributor II

This helps you @edcloudcycle ?

0 项奖励
回复

1,323 次查看
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,349 次查看
andrecurvello-tx
Contributor II

Ok! Thanks for the feedback, @igorpadykov!

0 项奖励
回复

1,363 次查看
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