[PATCH v2 0/3] ARM: soc: ti: k3: Provide reset cause information
From: A. Sverdlin
Date: Mon Mar 16 2026 - 03:06:04 EST
From: Alexander Sverdlin <alexander.sverdlin@xxxxxxxxxxx>
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