Linux-RISC-V Archive on lore.kernel.org
 help / color / mirror / Atom feed
* driver: reset: spacemit-p1: add driver for poweroff/reboot
@ 2025-09-27 22:07 Aurelien Jarno
  2025-09-27 22:07 ` [PATCH 1/2] " Aurelien Jarno
  2025-09-27 22:07 ` [PATCH 2/2] mfd: simple-mfd-i2c: add a reboot cell for the SpacemiT P1 chip Aurelien Jarno
  0 siblings, 2 replies; 9+ messages in thread
From: Aurelien Jarno @ 2025-09-27 22:07 UTC (permalink / raw)
  To: linux-kernel, Lee Jones, Sebastian Reichel, Yixun Lan,
	Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti
  Cc: Aurelien Jarno, open list:SYSTEM RESET/SHUTDOWN DRIVERS,
	open list:RISC-V SPACEMIT SoC Support,
	open list:RISC-V SPACEMIT SoC Support

This adds poweroff/reboot support for the SpacemiT P1 PMIC chip, which is
commonly paired with the SpacemiT K1 SoC.

Note: For reliable operation, this driver depends on a separate patch series
that adds atomic transfer support to the SpacemiT I2C controller driver:
https://lore.kernel.org/spacemit/48B175EBF0F1A347+aNXwqlO1mD-7BGtE@kernel.org/T/#t
The two fixes mentioned there are also required:
https://lore.kernel.org/spacemit/aNbDkn9AC4FFx-Zc@aurel32.net/

Aurelien Jarno (2):
  driver: reset: spacemit-p1: add driver for poweroff/reboot
  mfd: simple-mfd-i2c: add a reboot cell for the SpacemiT P1 chip

 drivers/mfd/simple-mfd-i2c.c             |  1 +
 drivers/power/reset/Kconfig              |  9 +++
 drivers/power/reset/Makefile             |  1 +
 drivers/power/reset/spacemit-p1-reboot.c | 88 ++++++++++++++++++++++++
 4 files changed, 99 insertions(+)
 create mode 100644 drivers/power/reset/spacemit-p1-reboot.c

-- 
2.47.2


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

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

end of thread, other threads:[~2025-09-29  6:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-27 22:07 driver: reset: spacemit-p1: add driver for poweroff/reboot Aurelien Jarno
2025-09-27 22:07 ` [PATCH 1/2] " Aurelien Jarno
2025-09-28  0:02   ` Yixun Lan
2025-09-28 18:01     ` Aurelien Jarno
2025-09-28  2:10   ` Troy Mitchell
2025-09-29  6:35   ` Troy Mitchell
2025-09-27 22:07 ` [PATCH 2/2] mfd: simple-mfd-i2c: add a reboot cell for the SpacemiT P1 chip Aurelien Jarno
2025-09-28  2:08   ` Troy Mitchell
2025-09-28 21:01     ` Aurelien Jarno

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