mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] ARM: soc: ti: k3: Provide reset cause information
@ 2026-03-09 10:07 A. Sverdlin
  2026-03-09 10:07 ` [PATCH 1/3] dt-bindings: soc/reset: ti: add binding for k3 platforms reset module A. Sverdlin
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: A. Sverdlin @ 2026-03-09 10:07 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Alexander Sverdlin, Philipp Zabel, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Nishanth Menon,
	Vignesh Raghavendra, Tero Kristo, Santosh Shilimkar,
	Andrew Davis, Jayesh Choudhary, Siddharth Vadapalli, Abraham I,
	Roger Quadros, devicetree, linux-kernel

From: Alexander Sverdlin <alexander.sverdlin@siemens.com>

Newer TI SoCs from K3 family (AM64x and newer) provide a detailed reset
cause information in RST_SRC register in the reset module within memory
mapped control registers. To make this information available in user space:

- provide the DT bindings for the reset module
- add the rest module to the device trees of the corresponding SoCs
- conditionally add custom SYSFS attribute group (if particular SoC
  supports it) with "reset_reason" attribute providing the textual
  form of the reset cause as documented in AM62x Processors Technical
  Reference Manual.

The location for the newly provided information was inspired by
drivers/soc/tegra/pmc.c.

The series has been tested on AM623 (relevant DT is k3-am62-wakeup.dtsi).
Interestingly, K3 can have multiple bits asserted, for instance in case of
WDT-triggered reset:

$ cat /sys/bus/soc/devices/soc0/reset_reason
Reset Caused by MCU ESM Error
Reset Caused by Main ESM Error

Alexander Sverdlin (3):
  dt-bindings: soc/reset: ti: add binding for k3 platforms reset module
  arm64: dts: ti: k3-*: Add am64x and newer reset module
  soc: ti: k3-socinfo: Provide reset reason information

 .../bindings/reset/ti,am64-rst.yaml           | 39 ++++++++
 .../soc/ti/ti,j721e-system-controller.yaml    | 11 +++
 arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi    |  5 ++
 arch/arm64/boot/dts/ti/k3-am62a-wakeup.dtsi   |  5 ++
 arch/arm64/boot/dts/ti/k3-am64-main.dtsi      |  5 ++
 drivers/soc/ti/k3-socinfo.c                   | 88 +++++++++++++++++++
 6 files changed, 153 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/reset/ti,am64-rst.yaml

-- 
2.52.0


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

end of thread, other threads:[~2026-03-09 11:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-09 10:07 [PATCH 0/3] ARM: soc: ti: k3: Provide reset cause information A. Sverdlin
2026-03-09 10:07 ` [PATCH 1/3] dt-bindings: soc/reset: ti: add binding for k3 platforms reset module A. Sverdlin
2026-03-09 10:39   ` Philipp Zabel
2026-03-09 10:51   ` Krzysztof Kozlowski
2026-03-09 11:23     ` Sverdlin, Alexander
2026-03-09 10:07 ` [PATCH 2/3] arm64: dts: ti: k3-*: Add am64x and newer " A. Sverdlin
2026-03-09 10:07 ` [PATCH 3/3] soc: ti: k3-socinfo: Provide reset reason information A. Sverdlin

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

all inboxes | Powered by JetHome®