i.MX8M Mini i2c clock debug

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX8M Mini i2c clock debug

Jump to solution
1,474 Views
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

Labels (1)
0 Kudos
Reply
1 Solution
1,268 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
1 Reply
1,269 Views
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 Kudos
Reply