Linux-i3c Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] i3c: master: ast2600: Fix missing of_node for virtual I2C adapter
@ 2026-02-25  6:35 Peter Yin
  2026-02-25  6:43 ` Jeremy Kerr
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Yin @ 2026-02-25  6:35 UTC (permalink / raw)
  To: Jeremy Kerr, Alexandre Belloni, Frank Li, linux-i3c, linux-kernel

The ASPEED AST2600 I3C master driver creates a virtual I2C adapter to
provide backward compatibility with I2C devices. However, the current
implementation does not associate this virtual adapter with any
Device Tree node.

This patch propagates the of_node from the I3C master platform device
to the virtual I2C adapter's device structure. This ensures that
standard I2C aliases are correctly resolved and bus numbering remains
consistent across reboots.

Signed-off-by: Peter Yin <peteryin.openbmc@gmail.com>
---
 drivers/i3c/master/ast2600-i3c-master.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/i3c/master/ast2600-i3c-master.c b/drivers/i3c/master/ast2600-i3c-master.c
index e05e83812c71..a1c6c9d97d11 100644
--- a/drivers/i3c/master/ast2600-i3c-master.c
+++ b/drivers/i3c/master/ast2600-i3c-master.c
@@ -156,6 +156,7 @@ static int ast2600_i3c_probe(struct platform_device *pdev)
 			i3c->sda_pullup);
 
 	i3c->dw.platform_ops = &ast2600_i3c_ops;
+	i3c->dw.base.i2c.dev.of_node = np;
 	return dw_i3c_common_probe(&i3c->dw, pdev);
 }
 
-- 
2.43.0


-- 
linux-i3c mailing list
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c

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

end of thread, other threads:[~2026-02-25  9:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-25  6:35 [PATCH v1] i3c: master: ast2600: Fix missing of_node for virtual I2C adapter Peter Yin
2026-02-25  6:43 ` Jeremy Kerr
2026-02-25  9:19   ` Peter Yin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox