The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v2 0/3]  ARM: soc: ti: k3: Provide reset cause information
@ 2026-03-16  7:04 A. Sverdlin
  2026-03-16  7:04 ` [PATCH v2 1/3] dt-bindings: mfd: syscon: add binding for TI K3 platforms reset registers A. Sverdlin
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: A. Sverdlin @ 2026-03-16  7:04 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 registers
- add the rest registrs 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

Changelog:
v2: amended mfd/syscon.yaml instead of separate reset/ti,am64-rst.yaml

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

 .../devicetree/bindings/mfd/syscon.yaml       |  1 +
 .../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, 115 insertions(+)

-- 
2.52.0


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

end of thread, other threads:[~2026-03-17  6:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-16  7:04 [PATCH v2 0/3] ARM: soc: ti: k3: Provide reset cause information A. Sverdlin
2026-03-16  7:04 ` [PATCH v2 1/3] dt-bindings: mfd: syscon: add binding for TI K3 platforms reset registers A. Sverdlin
2026-03-16  8:21   ` Rob Herring (Arm)
2026-03-16  7:04 ` [PATCH v2 2/3] arm64: dts: ti: k3-*: Add am64x and newer " A. Sverdlin
2026-03-16  7:04 ` [PATCH v2 3/3] soc: ti: k3-socinfo: Provide reset reason information A. Sverdlin
2026-03-17  5:48   ` Vignesh Raghavendra
2026-03-17  6:59     ` Sverdlin, Alexander

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