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,480件の閲覧回数
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,411件の閲覧回数
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,464件の閲覧回数
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,450件の閲覧回数
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,436件の閲覧回数
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,430件の閲覧回数
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,442件の閲覧回数
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,412件の閲覧回数
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,403件の閲覧回数
shaot
Contributor II

Thank you. I understand the influence.

0 件の賞賛
返信