Skip to content

Commit e0cec36

Browse files
NXP-CarlosSongAndi Shyti
authored andcommitted
i2c: imx: add imx7d compatible string for applying erratum ERR007805
Compatible string "fsl,imx7d-i2c" is not exited at i2c-imx driver compatible string table, at the result, "fsl,imx21-i2c" will be matched, but it will cause erratum ERR007805 not be applied in fact. So Add "fsl,imx7d-i2c" compatible string in i2c-imx driver to apply the erratum ERR007805(https://www.nxp.com/docs/en/errata/IMX7DS_3N09P.pdf). " ERR007805 I2C: When the I2C clock speed is configured for 400 kHz, the SCL low period violates the I2C spec of 1.3 uS min Description: When the I2C module is programmed to operate at the maximum clock speed of 400 kHz (as defined by the I2C spec), the SCL clock low period violates the I2C spec of 1.3 uS min. The user must reduce the clock speed to obtain the SCL low time to meet the 1.3us I2C minimum required. This behavior means the SoC is not compliant to the I2C spec at 400kHz. Workaround: To meet the clock low period requirement in fast speed mode, SCL must be configured to 384KHz or less. " "fsl,imx7d-i2c" already is documented in binding doc. This erratum fix has been included in imx6_i2c_hwdata and it is the same in all I.MX6/7/8, so just reuse it. Fixes: 39c0257 ("i2c: imx: Implement errata ERR007805 or e7805 bus frequency limit") Cc: stable@vger.kernel.org # v5.18+ Signed-off-by: Carlos Song <carlos.song@nxp.com> Signed-off-by: Haibo Chen <haibo.chen@nxp.com> Reviewed-by: Frank Li <Frank.Li@nxp.com> Fixes: 39c0257 ("i2c: imx: Implement errata ERR007805 or e7805 bus frequency limit") Acked-by: Oleksij Rempel <o.rempel@pengutronix.de> Link: https://lore.kernel.org/r/20241218044238.143414-1-carlos.song@nxp.com Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
1 parent 768776d commit e0cec36

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/i2c/busses/i2c-imx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ static const struct of_device_id i2c_imx_dt_ids[] = {
335335
{ .compatible = "fsl,imx6sll-i2c", .data = &imx6_i2c_hwdata, },
336336
{ .compatible = "fsl,imx6sx-i2c", .data = &imx6_i2c_hwdata, },
337337
{ .compatible = "fsl,imx6ul-i2c", .data = &imx6_i2c_hwdata, },
338+
{ .compatible = "fsl,imx7d-i2c", .data = &imx6_i2c_hwdata, },
338339
{ .compatible = "fsl,imx7s-i2c", .data = &imx6_i2c_hwdata, },
339340
{ .compatible = "fsl,imx8mm-i2c", .data = &imx6_i2c_hwdata, },
340341
{ .compatible = "fsl,imx8mn-i2c", .data = &imx6_i2c_hwdata, },

0 commit comments

Comments
 (0)