how to configure I2C SCL to 400KHZ

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

how to configure I2C SCL to 400KHZ

跳至解决方案
1,010 次查看
cotway
Contributor II

I changed bitrate (100000 to 400000),but SCL can't up to 400khz.now I don't know where need to configure.

0 项奖励
回复
1 解答
990 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @cotway,

I hope you are doing well.

One should change the value of clock frequency into the respective device tree on the i2c node at a particular address.

I've shared one example for reference, please take a look at it.

i2c@70038000 { /* HS-I2C on i.MX51 */
       compatible = "fsl,imx51-i2c", "fsl,imx21-i2c";
       reg = <0x70038000 0x4000>;
       interrupts = <64>;
       clock-frequency = <400000>;
};


Thanks & Regards,
Dhruvit Vasavada

在原帖中查看解决方案

0 项奖励
回复
1 回复
991 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @cotway,

I hope you are doing well.

One should change the value of clock frequency into the respective device tree on the i2c node at a particular address.

I've shared one example for reference, please take a look at it.

i2c@70038000 { /* HS-I2C on i.MX51 */
       compatible = "fsl,imx51-i2c", "fsl,imx21-i2c";
       reg = <0x70038000 0x4000>;
       interrupts = <64>;
       clock-frequency = <400000>;
};


Thanks & Regards,
Dhruvit Vasavada

0 项奖励
回复