How to know the speed of i2c?

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

How to know the speed of i2c?

1,317 次查看
linhsun
Contributor III

Dear all

My board is sabresd. I have some questions about i2c speed.

The dtsi sets  clock-frequency is 100k, but the result from cat /d/clk/clk_summary is 66000000.

 

Could  you tell me how speed i2c is?

My dtsi is as follows:

&i2c1 {
   clock-frequency = <100000>;
   pinctrl-names = "default";
   pinctrl-0 = <&pinctrl_i2c1>;

cat /d/clk/clk_summary is as follows:

sabresd_6dq:/ # cat /d/clk/clk_summary | grep i2c
i2c3 0 0 66000000 0 0
i2c2 0 0 66000000 0 0
i2c1 0 0 66000000 0 0

标签 (4)
标记 (1)
0 项奖励
回复
1 回复

1,137 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Lin

PERCLK_CLK_ROOT/IPG_CLK_ROOT is used for i2c according to
Figure 18-2. Clock Tree - Part 1 i.MX6DQ Reference Manual  
and one can check with oscilloscope that clock on CLKO1,2 pins (use Table 4-1
Pin Assignments) using CCM_CCOSR register.

http://www.nxp.com/docs/en/reference-manual/IMX6DQRM.pdf

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

0 项奖励
回复