What is the impact of MLK-13801-02 ARM: dts: Correct the gpt timer clock source on imx6ul/ull/sll

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

What is the impact of MLK-13801-02 ARM: dts: Correct the gpt timer clock source on imx6ul/ull/sll

跳至解决方案
1,345 次查看
shaot
Contributor II

Hi, I use imx6ull and Yocto.

 

The past product uses imx6ull.dtsi before this commit.

MLK-13801-02 ARM: dts: Correct the gpt timer clock source on imx6ul/ull/sll
The GPT timer counter clock should be sourced from GPT_3M clock to avoid counter clock frequency changed due to system bus clock changes. Signed-off-by: Bai Ping <ping.bai@nxp.com> (cherry picked from commit 3f85257a0ab3471f2574d5a34a311d4ef4483f7d)

imx6ull_gpt_change.png

https://github.com/varigit/linux-2.6-imx/commit/41aad2ae5da3fe1212ef833481d90796b43b2687#diff-93407b...

 

1. What will occur if we do not change to IMX6UL_CLK_GPT_3M ? System hangs? If so, when or what condition causes this?

2. What is GPT timer counter used for ? Linux Kernel uses it?

 

Best regards

0 项奖励
1 解答
1,276 次查看
joanxie
NXP TechSupport
NXP TechSupport

900M should be ok, you can see the detailed information from the source code as below:

 on i.MX6ULL, when entering low bus mode, the ARM core
 * can run at 24MHz to support the low power run mode per
 * to design team.

"https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/mach-imx/busfreq-imx.c?h=imx_4.14..."

在原帖中查看解决方案

0 项奖励
7 回复数
1,329 次查看
shaot
Contributor II

From this https://community.nxp.com/t5/i-MX-Processors/iMX6-GPT-linux-kernel-3-0-35/td-p/241982,

it seems Linux Kernel uses GPT. Is it right?

Would you tell me what is the concern if we do not change to IMX6UL_CLK_GPT_3M ?

 

Best regards 

0 项奖励
1,315 次查看
joanxie
NXP TechSupport
NXP TechSupport

Original gpt per clk parent is from ipg_per clk which may be scaled when system enter low bus mode, as ipg clk will be lower in low bus mode, to keep system clk NOT drift, select gpt per clk parent from OSC which is at fixed freq always

 

0 项奖励
1,301 次查看
joanxie
NXP TechSupport
NXP TechSupport

this patch is already included in the latest bsp, why don't you apply this? don't you  want to use this patch?

0 项奖励
1,295 次查看
shaot
Contributor II

I know it.

The product which is not applied this patch was already shipped.

So I would like to understand the influence of this change.

0 项奖励
1,307 次查看
shaot
Contributor II

Thank you.

Does "low bus mode" mean low frequency mode?

Our products work in fixed 900MHz (max frequency), so it does not affect anything?

 

0 项奖励
1,277 次查看
joanxie
NXP TechSupport
NXP TechSupport

900M should be ok, you can see the detailed information from the source code as below:

 on i.MX6ULL, when entering low bus mode, the ARM core
 * can run at 24MHz to support the low power run mode per
 * to design team.

"https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/mach-imx/busfreq-imx.c?h=imx_4.14..."

0 项奖励
1,268 次查看
shaot
Contributor II

Thank you. I understand the influence.

0 项奖励