imx8mp I2C4 - 96.7KHz is measured frequency instead of 100KHz

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

imx8mp I2C4 - 96.7KHz is measured frequency instead of 100KHz

1,068 次查看
ankitpanchal167
Contributor III

Hi 

We set i2c 4 frequency on imx8mp 100 khz frequency but when we measured frequency it's getting 96.7 khz. 

on other i2c1,i2c2 and i2c3 it's perfectly generate 100 khz. 

why 96.7KHz is measured frequency instead of 100KHz ? 

0 项奖励
回复
2 回复数

1,058 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Ankit

 

reason may be that parent clock can not be divided evenly for producing exact 100KHz,

one can at information about clocks using clocks unit test and driver

https://source.codeaurora.org/external/imx/imx-test/tree/test/mxc_clock_test/README_clocks?h=lf-5.10...

https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/clk/imx/clk-imx8mp.c?h=lf-5.10.y

 

Best regards
igor

0 项奖励
回复

1,051 次查看
ankitpanchal167
Contributor III

Hi 

We try run dump-clocks scripts not running successfully it's showing below logs,   

root@imx8mp:/unit_tests/Power_Management# ./dump-clocks-dot.sh

 

---- Running < dump-clocks-dot.sh > test ----
deprecated!please check /sys/kernel/debug/clk/clk_summary for detailed info
root@imx8mp:/unit_tests/Power_Management# ./dump-clocks.sh

 

---- Running < dump-clocks.sh > test ----
deprecated!please check /sys/kernel/debug/clk/clk_summary for detailed info

0 项奖励
回复