All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] hw/i2c: Adds pca954x i2c mux switch device
@ 2021-04-09 20:14 Patrick Venture
  2021-04-09 20:14 ` [PATCH v3 1/4] hw/i2c: name I2CNode list in I2CBus Patrick Venture
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Patrick Venture @ 2021-04-09 20:14 UTC (permalink / raw)
  To: cminyard, wuhaotsh, hskinnemoen, f4bug
  Cc: qemu-devel, qemu-arm, Patrick Venture

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

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         | 289 +++++++++++++++++++++++++++++++
 hw/i2c/meson.build               |   1 +
 hw/i2c/trace-events              |   5 +
 include/hw/i2c/i2c.h             |  16 +-
 include/hw/i2c/i2c_mux_pca954x.h |  19 ++
 8 files changed, 381 insertions(+), 14 deletions(-)
 create mode 100644 hw/i2c/i2c_mux_pca954x.c
 create mode 100644 include/hw/i2c/i2c_mux_pca954x.h

-- 
2.31.1.295.g9ea45b61b8-goog


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-04-09 20:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-09 20:14 [PATCH v3 0/4] hw/i2c: Adds pca954x i2c mux switch device Patrick Venture
2021-04-09 20:14 ` [PATCH v3 1/4] hw/i2c: name I2CNode list in I2CBus Patrick Venture
2021-04-09 20:14 ` [PATCH v3 2/4] hw/i2c: add match method for device search Patrick Venture
2021-04-09 20:14 ` [PATCH v3 3/4] hw/i2c: move search to i2c_scan_bus method Patrick Venture
2021-04-09 20:14 ` [PATCH v3 4/4] hw/i2c: add pca954x i2c-mux switch Patrick Venture

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.