[IMX6DL/Q] I2c clock frequency not matching theoretical/configured value

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

[IMX6DL/Q] I2c clock frequency not matching theoretical/configured value

777 次查看
shreeharsha_ind
Contributor II

Hi All,

I have configured I2C2 clock frequency to: 400KHz in dts file as follows

&i2c2 {
+ clock-frequency = <400000>;
pinctrl-0 = <&pinctrl_i2c2>;
};

The same is read from sysfs entry as below.

root@toyotacy20-t077:/sys/firmware/devicetree/base/soc/aips-bus@02100000/i2c@021a4000# od -bc clock-frequency

0000000  000 006 032 200

          \0 006 032 200

Theoretically the above value is configured to produce 400KHz.

However when the same clock line is probed we are seeing clock frequency of 337KHz as below

Capture_I2C2_clock.JPG

Is the above behaviour expected? If not kindly let us know how to get the clock value close to 400KHz practically.

 

Regards,
shree

标签 (2)
0 项奖励
回复
1 回复

772 次查看
igorpadykov
NXP Employee
NXP Employee

Hi shreeharsha_ind

 

reason may be due to ERR007805 : I2C: When the I2C clock speed is configured for 400 kHz,

the SCL low period violates the I2C specification

Chip Errata for the i.MX 6Dual/6Quad and i.MX 6DualPlus/6QuadPlus - IMX6DQCE

 

Best regards
igor

0 项奖励
回复