mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-09-03 10:33:11 +02:00

Introduce a list of generic reset sources and use them to export the power on reason through sysfs. Update the ABI documentation to describe this new interface. Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> [Miquel Raynal: Follow-up on Kamel's work, 4 years later] Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
468 B
468 B
What: /sys/devices/platform/.../power_on_reason Date: June 2023 KernelVersion: 6.5 Contact: Kamel Bouhara kamel.bouhara@bootlin.com Description: Shows system power on reason. The following strings/reasons can be read (the list can be extended): "regular power-up", "RTC wakeup", "watchdog timeout", "software reset", "reset button action", "CPU clock failure", "crystal oscillator failure", "brown-out reset", "unknown reason".
The file is read only.