Make it possible to read out the boot status from the da9052-wdt driver. Function verified with `wdctl`. root@mfoc:~# wdctl /dev/watchdog1 Device: /dev/watchdog1 Identity: DA9052 Watchdog [version 0] Timeout: 4 seconds Pre-timeout: 0 seconds FLAG DESCRIPTION STATUS BOOT-STATUS CARDRESET Card previously reset the CPU 1 1 KEEPALIVEPING Keep alive ping reply 1 0 OVERHEAT Reset due to CPU overheat 0 0 POWERUNDER Power bad/power fault 0 0 SETTIMEOUT Set timeout (in seconds) 0 0 Signed-off-by: Marcus Folkesson <marcus.folkesson@xxxxxxxxx> --- Marcus Folkesson (2): mfd: da9052: store result from fault_log watchdog: da9052_wdt: add support for bootstatus bits drivers/mfd/da9052-core.c | 26 +++++++++++++------------- drivers/watchdog/da9052_wdt.c | 13 ++++++++++++- include/linux/mfd/da9052/da9052.h | 2 ++ 3 files changed, 27 insertions(+), 14 deletions(-) --- base-commit: cdd30ebb1b9f36159d66f088b61aee264e649d7a change-id: 20241210-da9052-wdt-a7943a745987 Best regards, -- Marcus Folkesson <marcus.folkesson@xxxxxxxxx>