From 06ca196d567e7cd605d53febcff3c63d40f6baf4 Mon Sep 17 00:00:00 2001 From: "Javier Alonso (Javinator9889)" Date: Sat, 1 Aug 2026 11:29:17 +0200 Subject: [PATCH] docs: Add new watchdog functionality The watchdog documentation includes the new functionality of the driver's char device: When reading from it, it emits information about the watchdog status including flags, timeout and timeleft as milliseconds. An example has been included as well. Signed-off-by: Javier Alonso --- .../components/drivers/character/timers/watchdog.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/components/drivers/character/timers/watchdog.rst b/Documentation/components/drivers/character/timers/watchdog.rst index 94b689811df..ffd85385164 100644 --- a/Documentation/components/drivers/character/timers/watchdog.rst +++ b/Documentation/components/drivers/character/timers/watchdog.rst @@ -120,6 +120,18 @@ a parameter (where x is the timer number): nsh> wdog -i /dev/watchdogx +Additionally, the watchdog driver can be read by using standard commands such as ``cat``. +It will emit relevant information about the watchdog and its current status, including the +flags bitset, timeout and timeleft from the current slice as milliseconds: + +.. code-block:: console + + nsh> cat /dev/watchdogx + Status : + flags : 0x00000000 + timeout : 30000 + timeleft : 9889 + Application Level Interface ----------------------------