All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] power: reset: sc27xx: Add SC2730 and reboot support
@ 2025-09-26 16:23 Otto Pflüger
  2025-09-26 16:23 ` [PATCH 1/5] dt-bindings: power: reset: Add SC27xx series PMIC poweroff Otto Pflüger
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Otto Pflüger @ 2025-09-26 16:23 UTC (permalink / raw)
  To: Sebastian Reichel, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Orson Zhai, Baolin Wang, Chunyan Zhang, Lee Jones
  Cc: linux-pm, devicetree, linux-kernel, Otto Pflüger

Implement poweroff and reboot support for the SC2730 PMIC in the
existing driver for the SC27xx series. Add missing device tree bindings
and compatibles.

For some reason, a reboot implementation for SC2731 already exists in
the SPI driver used for communicating with the PMIC
(drivers/spi/spi-sprd-adi.c). This obviously does not belong there, but
it appears that SC2731 has no dedicated reboot registers and requires
triggering the PMIC watchdog for a reboot. Since there is no driver for
the PMIC watchdog yet, keep that code unmodified and only implement
reboot for SC2730 here. Once a watchdog driver is implemented, the
duplicate code for setting the reboot mode can be removed from the SPI
driver.

Signed-off-by: Otto Pflüger <otto.pflueger@abscue.de>
---
Otto Pflüger (5):
      dt-bindings: power: reset: Add SC27xx series PMIC poweroff
      dt-bindings: mfd: sc2731: Reference sprd,sc2731-poweroff
      power: reset: sc27xx: Use devm_register_sys_off_handler
      power: reset: sc27xx: Add support for SC2730 and OF match table
      power: reset: sc27xx: Add reboot support for SC2730

 .../devicetree/bindings/mfd/sprd,sc2731.yaml       |   8 +
 .../bindings/power/reset/sprd,sc2731-poweroff.yaml |  22 +++
 drivers/power/reset/sc27xx-poweroff.c              | 170 +++++++++++++++++++--
 3 files changed, 188 insertions(+), 12 deletions(-)
---
base-commit: 8e2755d7779a95dd61d8997ebce33ff8b1efd3fb
change-id: 20250926-sc2730-reboot-7f39a025547d

Best regards,
-- 
Otto Pflüger <otto.pflueger@abscue.de>


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

end of thread, other threads:[~2025-10-14  6:11 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-26 16:23 [PATCH 0/5] power: reset: sc27xx: Add SC2730 and reboot support Otto Pflüger
2025-09-26 16:23 ` [PATCH 1/5] dt-bindings: power: reset: Add SC27xx series PMIC poweroff Otto Pflüger
2025-09-26 16:23 ` [PATCH 2/5] dt-bindings: mfd: sc2731: Reference sprd,sc2731-poweroff Otto Pflüger
2025-10-02  2:53   ` Rob Herring
2025-09-26 16:23 ` [PATCH 3/5] power: reset: sc27xx: Use devm_register_sys_off_handler Otto Pflüger
2025-09-30  3:23   ` Baolin Wang
2025-09-26 16:23 ` [PATCH 4/5] power: reset: sc27xx: Add support for SC2730 and OF match table Otto Pflüger
2025-09-30  3:30   ` Baolin Wang
2025-09-30  5:30     ` Otto Pflüger
2025-10-14  1:44       ` Baolin Wang
2025-10-14  6:10         ` Otto Pflüger
2025-09-26 16:23 ` [PATCH 5/5] power: reset: sc27xx: Add reboot support for SC2730 Otto Pflüger

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.