{hw/i2c,docs/system/arm}: Allwinner TWI/I2C Emulation
authorStrahinja Jankovic <strahinjapjankovic@gmail.com>
Mon, 26 Dec 2022 22:02:59 +0000 (23:02 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 12 Jan 2023 16:50:19 +0000 (16:50 +0000)
commit9be8a82c0ebb94b864dfe280603dcc2c7a0e3543
treee2850b6fe8920d9163897eff005b9a513e174133
parentedd3a59d5b98964ed72265346cb4dc7e9ffccd27
{hw/i2c,docs/system/arm}: Allwinner TWI/I2C Emulation

This patch implements Allwinner TWI/I2C controller emulation. Only
master-mode functionality is implemented.

The SPL boot for Cubieboard expects AXP209 PMIC on TWI0/I2C0 bus, so this is
first part enabling the TWI/I2C bus operation.

Since both Allwinner A10 and H3 use the same module, it is added for
both boards.

Docs are also updated for Cubieboard and Orangepi-PC board to indicate
I2C availability.

Signed-off-by: Strahinja Jankovic <strahinja.p.jankovic@gmail.com>
Reviewed-by: Niek Linnenbank <nieklinnenbank@gmail.com>
Message-id: 20221226220303.14420-4-strahinja.p.jankovic@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
12 files changed:
docs/system/arm/cubieboard.rst
docs/system/arm/orangepi.rst
hw/arm/Kconfig
hw/arm/allwinner-a10.c
hw/arm/allwinner-h3.c
hw/i2c/Kconfig
hw/i2c/allwinner-i2c.c [new file with mode: 0644]
hw/i2c/meson.build
hw/i2c/trace-events
include/hw/arm/allwinner-a10.h
include/hw/arm/allwinner-h3.h
include/hw/i2c/allwinner-i2c.h [new file with mode: 0644]