Skip to content

hw/i2c: Add designware i2c controller

Nicholas Piggin qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4hw/i2c: Add designware i2c controllerMAINTAINERS hw/i2c/Kconfig hw/i2c/designware_i2c.c +4 more+943 -11 reply
2/4hw/i2c/designware_i2c: Switch to Fifo8hw/i2c/designware_i2c.c include/hw/i2c/designware_i2c.h+25 -192 replies
3/4hw/i2c/designware_i2c: Switch to QEMU register APIhw/i2c/Kconfig hw/i2c/designware_i2c.c include/hw/i2c/designware_i2c.h+471 -6082 replies
4/4hw/i2c/designware_i2c: add SMBUS_INTR_MASKhw/i2c/designware_i2c.c+5 -01 reply

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchHao WuAlistair FrancisCorey MinyardPhilippe Mathieu-Daudé
SeriesA-b
1/4R-b A-b R-b
2/4
3/4
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 0/4] hw/i2c: Add designware i2c controller

Hi,

This series contains the DW I2C model written by Chris Rauer and updated for the Tenstorrent Atlantis machine recently. There was some more review comment on that submission and so we decided to take the I2C device out of that series and work on it separately, see here:

https://lore.kernel.org/qemu-devel/[email protected]/T/#mb1ef2824c2f1f37bf4574dc1ef0fb95566c3a2f2

The big thing suggested was to move to the QEMU register API. That is a big change and difficult to review, so I have split that and a some smaller changes out into their own patches. I don't expect detailed reviews on the register API patch -- it's quite mechanical and I did attempt to verify it by diff'ing register traces. But it would be good to make sure maintainers are happy to go that way.

Unfortunately the patch 1 was quite well reviewed and tested so incremental changes would be preferable, but it is painful to maintain migration compatibility across these changes.

Thanks,
Nick

Chris Rauer (1):
hw/i2c: Add designware i2c controller

Nicholas Piggin (3):
[RFC] hw/i2c/designware_i2c: Switch to Fifo8 [RFC] hw/i2c/designware_i2c: Switch to QEMU register API [RFC] hw/i2c/designware_i2c: add SMBUS_INTR_MASK

 MAINTAINERS                     |   8 +
 hw/i2c/Kconfig                  |   5 +
 hw/i2c/designware_i2c.c         | 742 ++++++++++++++++++++++++++++++++
 hw/i2c/meson.build              |   1 +
 hw/i2c/trace-events             |   4 +
 include/hw/i2c/designware_i2c.h |  56 +++
 roms/seabios-hppa               |   2 +-
 7 files changed, 817 insertions(+), 1 deletion(-)
 create mode 100644 hw/i2c/designware_i2c.c
 create mode 100644 include/hw/i2c/designware_i2c.h
Signature · 1 line
2.53.0