Skip to content

hw/i2c: Adds pca954x i2c mux switch device

Patrick Venture qemu-arm qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 2 repliesIn review
  2. v34 patches 0 repliesSuperseded
  3. v24 patches 9 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches8 repliesSuperseded

Changes in v4 from the cover letter

- Fixed up bug where the i2c_scan_bus wasn't parameterizing the current_devs list.
- Minor consistency changes in the i2c mux pca954x.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4hw/i2c: name I2CNode list in I2CBusinclude/hw/i2c/i2c.h+3 -10 replies
2/4hw/i2c: add match method for device searchhw/i2c/core.c include/hw/i2c/i2c.h+30 -40 replies
3/4hw/i2c: move search to i2c_scan_bus methodhw/i2c/core.c include/hw/i2c/i2c.h+28 -120 replies
4/4hw/i2c: add pca954x i2c-mux switchMAINTAINERS hw/i2c/Kconfig hw/i2c/i2c_mux_pca954x.c +3 more+325 -00 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchHao WuPhilippe Mathieu-DaudéHavard Skinnemoen
1/4R-b R-b
2/4R-b
3/4R-b
4/4R-b R-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 3 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/4] hw/i2c: Adds pca954x i2c mux switch device

The i2c mux device pca954x implements two devices:
- the pca9546 and pca9548.

v4:
- Fixed up bug where the i2c_scan_bus wasn't parameterizing the current_devs list.
- Minor consistency changes in the i2c mux pca954x.

v3:
- fixup comment with missing end parenthesis.
- removed superfluous object cast.

v2:
- the core i2c bus now calls a match method on each i2c child, which by default will only check for a match against itself.
- the pca954x device overrides the i2c device match method to search the children for each of its buses that are active.
- the pca954x device now owns an i2c bus for each channel, allowing the normal device model to attach devices to the channels.

Patrick Venture (4):
hw/i2c: name I2CNode list in I2CBus
hw/i2c: add match method for device search
hw/i2c: move search to i2c_scan_bus method
hw/i2c: add pca954x i2c-mux switch

 MAINTAINERS                      |   6 +
 hw/i2c/Kconfig                   |   4 +
 hw/i2c/core.c                    |  55 ++++--
 hw/i2c/i2c_mux_pca954x.c         | 290 +++++++++++++++++++++++++++++++
 hw/i2c/meson.build               |   1 +
 hw/i2c/trace-events              |   5 +
 include/hw/i2c/i2c.h             |  17 +-
 include/hw/i2c/i2c_mux_pca954x.h |  19 ++
 8 files changed, 383 insertions(+), 14 deletions(-)
 create mode 100644 hw/i2c/i2c_mux_pca954x.c
 create mode 100644 include/hw/i2c/i2c_mux_pca954x.h
Signature · 1 line
2.31.1.295.g9ea45b61b8-goog