[PATCH 0/2] hw/i2c/dw: Add DesignWare I2C controller emulator

AlanoSong@163.com posted 2 patches 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260106131253.16192-1-AlanoSong@163.com
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, Peter Maydell <peter.maydell@linaro.org>, "Michael S. Tsirkin" <mst@redhat.com>, Igor Mammedov <imammedo@redhat.com>, Ani Sinha <anisinha@redhat.com>, Shannon Zhao <shannon.zhaosl@gmail.com>
There is a newer version of this series
hw/arm/Kconfig           |   1 +
hw/arm/virt-acpi-build.c |  32 +++
hw/arm/virt.c            |  38 ++-
hw/i2c/Kconfig           |   4 +
hw/i2c/dw_i2c.c          | 517 +++++++++++++++++++++++++++++++++++++++
hw/i2c/meson.build       |   1 +
hw/i2c/trace-events      |   4 +
include/hw/arm/virt.h    |   1 +
include/hw/i2c/dw_i2c.h  | 151 ++++++++++++
9 files changed, 748 insertions(+), 1 deletion(-)
create mode 100644 hw/i2c/dw_i2c.c
create mode 100644 include/hw/i2c/dw_i2c.h
[PATCH 0/2] hw/i2c/dw: Add DesignWare I2C controller emulator
Posted by AlanoSong@163.com 1 month ago
Hi all,

This series try to add DesignWare I2C controller
according to DesignWare I2C databook v2.01a.

Cause DesignWare I2C controller is commonly used
on arm soc chip, I add it onto arm virt board,
and also an at24c eeprom for r/w operation.

I also add the I2C controller and at24c eeprom into
the acpi table of arm virt board.

The code above has been confirmed with i2c-tools under
linux v6.18 kernel driver.

Thanks for your review!
Alano Song.

Alano Song (2):
  hw/i2c/dw: Add DesignWare I2C controller emulator
  hw/arm/virt: Add DesignWare I2C controller

 hw/arm/Kconfig           |   1 +
 hw/arm/virt-acpi-build.c |  32 +++
 hw/arm/virt.c            |  38 ++-
 hw/i2c/Kconfig           |   4 +
 hw/i2c/dw_i2c.c          | 517 +++++++++++++++++++++++++++++++++++++++
 hw/i2c/meson.build       |   1 +
 hw/i2c/trace-events      |   4 +
 include/hw/arm/virt.h    |   1 +
 include/hw/i2c/dw_i2c.h  | 151 ++++++++++++
 9 files changed, 748 insertions(+), 1 deletion(-)
 create mode 100644 hw/i2c/dw_i2c.c
 create mode 100644 include/hw/i2c/dw_i2c.h

-- 
2.43.0