]> git.ipfire.org Git - thirdparty/u-boot.git/commit
i2c: rzg2l: Add I2C driver for RZ/G2L family
authorPaul Barker <paul.barker.ct@bp.renesas.com>
Tue, 27 Feb 2024 20:40:30 +0000 (20:40 +0000)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 28 Feb 2024 17:42:27 +0000 (18:42 +0100)
commit266e36f7ec6a5520fd459bb736a0c7c6174280a5
treeaf0050a0ee805a118e3c2b2c257c1c5312dd9cab
parentd4f0ff93c8a7ef743eeea38f9782aad7bcd6fcf5
i2c: rzg2l: Add I2C driver for RZ/G2L family

This driver supports the I2C module on the Renesas RZ/G2L (R9A07G044)
SoC, also known as the RIIC module.

This patch is based on both the u-boot driver in the Renesas RZ BSP
3.0.5 release [1] (commit 7fcc1fdc2534), and the Linux v6.7 driver
(commit 0dd3ee311255).

Support for deblocking the I2C bus is included as this may be needed
after triggering a reset via the Power Management IC (PMIC) over I2C
(the PMIC asserts the reset line before the SoC completes the I2C write
transaction with obvious bus locking effects). If the SDA line is
observed to be low during initialisation, we automatically attempt to
deblock.

[1]: https://github.com/renesas-rz/renesas-u-boot-cip

Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com>
Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
arch/arm/mach-rmobile/Kconfig
configs/renesas_rzg2l_smarc_defconfig
drivers/i2c/Kconfig
drivers/i2c/Makefile
drivers/i2c/rz_riic.c [new file with mode: 0644]