Re: [EXT] I2C_IMX support for i.MX8MP

Richard Leitner
2022-08-18T08:40:49Z

On Wed, Aug 17, 2022 at 02:14:53PM +0000, Shenwei Wang wrote:
>
> The support for imx8mp-evk board has already pushed to mainline. That includes the usage of i2c-imx.
> For example, a GPIO expander is connected to I2C3 on evk board.

Thanks again. It now works with linux v6.0-rc1.

The missing piece was setting the 0x40000000 bit in the SW_PAD_CTL
registers of SCL and SDA.
Unfortunately this bit seems to be undocumented in the RefManual and
also the driver documentation doesn't state anything about it.

Can you please shed some light in this "magic" bit? Would be really
helpful, thanks!

Furthermore I guess documenting it somewhere in the driver or setting it
implicitely (if that's possible) would be a good idea?

regards;rl