how to configure I2C SCL to 400KHZ

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

how to configure I2C SCL to 400KHZ

Jump to solution
336 Views
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 Kudos
1 Solution
316 Views
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

View solution in original post

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