All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/1] hw/i2c/aspeed: Introduce 'bus-label' to customize bus naming
@ 2026-01-12  8:30 ` Kane Chen via qemu development
  0 siblings, 0 replies; 21+ messages in thread
From: Kane Chen via @ 2026-01-12  8:30 UTC (permalink / raw)
  To: Cédric Le Goater, Peter Maydell, Steven Lee, Troy Lee,
	Jamin Lin, Andrew Jeffery, Joel Stanley, open list:ASPEED BMCs,
	open list:All patches CC here
  Cc: troy_lee, Kane-Chen-AS

From: Kane-Chen-AS <kane_chen@aspeedtech.com>

Currently, the Aspeed I2C controller uses a static naming convention
for its buses (e.g., "aspeed.i2c.bus.0"). This approach leads to
object name conflicts in machine models that incorporate multiple I2C
controllers, such as an Aspeed SoC paired with an external IO expander
or a co-processor like the AST1700.

This patch series introduces a 'bus-label' property to the Aspeed I2C
controller. By setting this property, higher-level platform code
(e.g., the SoC realize function) can provide a unique prefix for the
I2C buses.

Changes in v1:

Added bus-label property to AspeedI2CState.
Added bus-name property to AspeedI2CBus.
Modified aspeed_i2c_realize to generate bus names based on the label.
Updated aspeed_i2c_bus_realize to use the customized name for bus
initialization and memory region naming.

Example usage: If a controller's bus-label is set to "ioexp0", its buses
will be named "ioexp0.0", "ioexp0.1", etc., instead of the default
"aspeed.i2c.bus.0".

Any feedback or suggestions are appreciated.

Best Regards,
Kane

Kane-Chen-AS (1):
  hw/i2c/aspeed: Introduce 'bus-label' to customize bus naming

 include/hw/i2c/aspeed_i2c.h |  2 ++
 hw/i2c/aspeed_i2c.c         | 27 +++++++++++++++++++++------
 2 files changed, 23 insertions(+), 6 deletions(-)

-- 
2.43.0



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

end of thread, other threads:[~2026-01-26  8:52 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-12  8:30 [PATCH v1 0/1] hw/i2c/aspeed: Introduce 'bus-label' to customize bus naming Kane Chen via
2026-01-12  8:30 ` Kane Chen via qemu development
2026-01-12  8:30 ` [PATCH v1 1/1] " Kane Chen via
2026-01-12  8:30   ` Kane Chen via qemu development
2026-01-14 23:11   ` Nabih Estefan
2026-01-15  2:55     ` Kane Chen
2026-01-15  7:18     ` Cédric Le Goater
2026-01-15 16:37       ` Nabih Estefan
2026-01-15  7:15   ` Cédric Le Goater
2026-01-15  7:19     ` Kane Chen
2026-01-15 17:19       ` Cédric Le Goater
2026-01-15 19:47 ` [PATCH v1 0/1] " Philippe Mathieu-Daudé
2026-01-16  5:16   ` Cédric Le Goater
2026-01-19 14:25     ` Markus Armbruster
2026-01-19 17:38       ` Cédric Le Goater
2026-01-20 10:36         ` Markus Armbruster
2026-01-22 10:42           ` Cédric Le Goater
2026-01-22 13:02             ` Markus Armbruster
2026-01-22 18:58               ` Cédric Le Goater
2026-01-23  7:50                 ` Markus Armbruster
2026-01-26  8:51                   ` Cédric Le Goater

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.