Skip to content
Commit 1fc45d64 authored by Paul Doelle's avatar Paul Doelle Committed by Stefan Roese
Browse files

watchdog: add pulse support to gpio watchdog driver



A common external watchdog circuit is kept alive by triggering a short
pulse on the reset pin. This patch adds support for this use case, while
making the algorithm configurable in the devicetree.

The "linux,wdt-gpio" driver being modified is based off the equivalent
driver in the Linux kernel, which provides support for this algorithm.
This patch brings parity to this driver, and is kept aligned with
the functionality and devicetree configuration in the kernel.

It should be noted that this adds a required property named 'hw_algo'
to the devicetree binding, following suit with the kernel. I'm happy to
make this backward-compatible if preferred.

Signed-off-by: default avatarPaul Doelle <paaull.git@gmail.com>
Reviewed-by: default avatarStefan Roese <sr@denx.de>
parent 818055fd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment