Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH 0/3] Coldfire m5441x: add RCM power-on reason driver
@ 2026-06-02  9:21 Jean-Michel Hautbois
  2026-06-02  9:21 ` [PATCH 1/3] m68k: coldfire/5441x: define RSR cause bits Jean-Michel Hautbois
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jean-Michel Hautbois @ 2026-06-02  9:21 UTC (permalink / raw)
  To: Geert Uytterhoeven, Sebastian Reichel, Greg Ungerer
  Cc: linux-m68k, linux-kernel, linux-pm, Jean-Michel Hautbois

This series adds a power_on_reason driver for the Freescale ColdFire
MCF5441x Reset Controller Module.

The MCF5441x has six documented sources of reset (power-on, external
pin, software, PLL loss-of-clock, PLL loss-of-lock and core watchdog
timeout). They are latched in the Reset Status Register (RSR) at
0xec090001. The new driver decodes that register once at probe time
and exposes the result through the power_on_reason sysfs ABI.

Patch 1 adds the missing RSR bit definitions. Patch 2 is the driver.
Patch 3 registers the platform device at the SoC level so every
MCF5441x board picks the driver up automatically.

The driver is scoped to MCF5441x. Other ColdFire variants document an
RSR at different addresses with different bit layouts; covering them
is left for follow-up patches by anyone with the relevant boards.

Tested on a MCF5441x board: after sysrq-b, the sysfs attribute
reports "software reset".

Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@yoseli.org>
---
Jean-Michel Hautbois (3):
      m68k: coldfire/5441x: define RSR cause bits
      power: reset: add MCF5441x RCM power-on reason driver
      m68k: coldfire/5441x: register mcf-rcm-reset platform device

 MAINTAINERS                         |   6 ++
 arch/m68k/coldfire/m5441x.c         |  25 +++++++++
 arch/m68k/include/asm/m5441xsim.h   |   7 +++
 drivers/power/reset/Kconfig         |  12 ++++
 drivers/power/reset/Makefile        |   1 +
 drivers/power/reset/mcf-rcm-reset.c | 109 ++++++++++++++++++++++++++++++++++++
 6 files changed, 160 insertions(+)
---
base-commit: eb3f4b7426cfd2b79d65b7d37155480b32259a11
change-id: 20260528-coldfire-rcm-power-on-reason-7a234acfdddd

Best regards,
--  
Jean-Michel Hautbois <jeanmichel.hautbois@yoseli.org>


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

end of thread, other threads:[~2026-06-04 17:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-02  9:21 [PATCH 0/3] Coldfire m5441x: add RCM power-on reason driver Jean-Michel Hautbois
2026-06-02  9:21 ` [PATCH 1/3] m68k: coldfire/5441x: define RSR cause bits Jean-Michel Hautbois
2026-06-02  9:21 ` [PATCH 2/3] power: reset: add MCF5441x RCM power-on reason driver Jean-Michel Hautbois
2026-06-04 17:01   ` Sebastian Reichel
2026-06-02  9:21 ` [PATCH 3/3] m68k: coldfire/5441x: register mcf-rcm-reset platform device Jean-Michel Hautbois

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