Xavier default software enableI2C clock stretching or not?

Dear,

As we know Xavier’s master I2C support clock stretching, is it enabled default by software?

Thanks.

Hi,

I2C clock stretching is supported by HW.
Sw has a timeout set to 10 sec. If that time is crossed, master will reset the bus. Otherwise clock stretching will work.
As of now, the mechanism to configure timeout for clock stretching and reporting to slave is not implemented.
That is done by I2C_TLOW_SEXT register setting.

Note that, you need to disable multi-packet mode as clock stretch can be created with single-packet mode. DT property for the same is:

nvidia,disable-multi-pkt-mode;

Thanks,
Shubhi

Dear shgarg,

Thanks for your information.

BTW, “nvidia,disable-multi-pkt-mode” add to which DTS node to disable multi-packet mode as clock stretch ?

Hi,

You can add it under any i2c-bus you are using. For ex. Xavier: If you are using I2C bus 8 then add it under
i2c@31e0000

Dear shgarg,

Thanks for your information.