watchdog: xilinx_wwdt: Add Versal window watchdog support
authorSrinivas Neeli <srinivas.neeli@amd.com>
Thu, 20 Apr 2023 10:42:30 +0000 (16:12 +0530)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 26 Jun 2023 12:30:06 +0000 (14:30 +0200)
commit12984cea1b8c54104f8ac7f5609dfcc0752ad741
tree8423bdd7add5df585cf282dbf5edcf4b8f364f99
parentbe0d0ab1c704c8f93ee6c6d4b13a1e54ae927e3a
watchdog: xilinx_wwdt: Add Versal window watchdog support

Versal watchdog driver uses window watchdog mode. Window watchdog
timer(WWDT) contains closed(first) and open(second) window with
32 bit width. Write to the watchdog timer within predefined window
periods of time. This means a period that is not too soon and a
period that is not too late. The WWDT has to be restarted within
the open window time. If software tries to restart WWDT outside of
the open window time period, it generates a reset.

Signed-off-by: Srinivas Neeli <srinivas.neeli@amd.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lkml.kernel.org/r/20230420104231.2243079-4-srinivas.neeli@amd.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/Kconfig
drivers/watchdog/Makefile
drivers/watchdog/xilinx_wwdt.c [new file with mode: 0644]