i.MX8M Mini i2c clock debug

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

i.MX8M Mini i2c clock debug

跳至解决方案
1,274 次查看
m_c
Senior Contributor I

Customer would like to change i2c clock by modify device tree, but seems not work.

So we want to debug it by dump related register.

Is it right to dump below register for i2c1 clock because memtool return zero?

pastedImage_1.png

pastedImage_2.png

root@imx8mmevk:~# /unit_tests/memtool -32 0x3038AD00 1

E

Reading 0x1 count starting at address 0x3038AD00

 

0x3038AD00:  00000000

 

root@imx8mmevk:~# /unit_tests/memtool -32 0x3038AD80 1

E

Reading 0x1 count starting at address 0x3038AD80

 

0x3038AD80:  00000000

 

root@imx8mmevk:~# /unit_tests/memtool -32 0x3038AE00 1

E

Reading 0x1 count starting at address 0x3038AE00

 

0x3038AE00:  00000000

 

root@imx8mmevk:~# /unit_tests/memtool -32 0x3038AE80 1

E

Reading 0x1 count starting at address 0x3038AE80

 

0x3038AE80:  00000000

i2c-1

pastedImage_1.png

i2c-2

pastedImage_2.png

标签 (1)
0 项奖励
1 解答
1,068 次查看
igorpadykov
NXP Employee
NXP Employee

Hi m.c.

seems you successfully used memtool with i.MX8M Mini on https://community.nxp.com/message/1175392 

For clock change with dts one can look at examples on:

i.MX7D 24MHz clock output to CCM_CLK1_P pin 

Where pll4_bypass_src is set to choose osc 24MHz or CLK2_N/P as source in linux BSP code? 


Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
1 回复
1,069 次查看
igorpadykov
NXP Employee
NXP Employee

Hi m.c.

seems you successfully used memtool with i.MX8M Mini on https://community.nxp.com/message/1175392 

For clock change with dts one can look at examples on:

i.MX7D 24MHz clock output to CCM_CLK1_P pin 

Where pll4_bypass_src is set to choose osc 24MHz or CLK2_N/P as source in linux BSP code? 


Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励