public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RESEND][PATCH v5] mfd: simple-mfd-i2c: add a reboot cell for the SpacemiT P1 chip
@ 2026-04-01 16:50 Aurelien Jarno
  2026-04-06  9:46 ` Vincent Legoll
  0 siblings, 1 reply; 5+ messages in thread
From: Aurelien Jarno @ 2026-04-01 16:50 UTC (permalink / raw)
  To: linux-kernel, Lee Jones, Yixun Lan,
	open list:RISC-V SPACEMIT SoC Support:Keyword:spacemit,
	open list:RISC-V SPACEMIT SoC Support:Keyword:spacemit
  Cc: Aurelien Jarno

Add a "spacemit-p1-reboot" cell for the SpacemiT P1 chip.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
---
 drivers/mfd/simple-mfd-i2c.c | 1 +
 1 file changed, 1 insertion(+)

Note that the spacemit-p1-reboot driver requires PIO support in the
spacemit i2C driver [1]. This hasn't been merged despite being ready for
weeks.

That said it's not a hard dependency, in most cases reboot will just
work, which is an improvement over no reboot driver. The PIO supports
just makes the reboot driver reliable.

[1] https://lore.kernel.org/lkml/20260207-b4-k3-i2c-pio-v7-2-626942d94d91@linux.spacemit.com/

diff --git a/drivers/mfd/simple-mfd-i2c.c b/drivers/mfd/simple-mfd-i2c.c
index 7315fad618e44..52c81b18750e1 100644
--- a/drivers/mfd/simple-mfd-i2c.c
+++ b/drivers/mfd/simple-mfd-i2c.c
@@ -105,6 +105,7 @@ static const struct regmap_config spacemit_p1_regmap_config = {
 };
 
 static const struct mfd_cell spacemit_p1_cells[] = {
+	{ .name = "spacemit-p1-reboot", },
 	{ .name = "spacemit-p1-regulator", },
 	{ .name = "spacemit-p1-rtc", },
 };
-- 
2.51.0


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

end of thread, other threads:[~2026-04-08  2:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-01 16:50 [RESEND][PATCH v5] mfd: simple-mfd-i2c: add a reboot cell for the SpacemiT P1 chip Aurelien Jarno
2026-04-06  9:46 ` Vincent Legoll
2026-04-06 15:42   ` Aurelien Jarno
2026-04-06 21:55     ` Vincent Legoll
2026-04-08  2:48       ` Troy Mitchell

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