[PATCH v4 0/3] watchdog: max63xx_wdt: Support a WDI pin connected to a GPIO

From: Josef Schlehofer

Date: Tue Nov 24 2026 - 00:01:27 EST


This series picks up Pali's patches [1], which stopped at v3 in July
2022. Pali is on Cc.

The MAX6370 on CZ.NIC Turris 1.x routers has its SET pins connected
through a CPLD, but its WDI pin is connected to a SoC GPIO. The driver
currently cannot use this GPIO, despite turris1x.dts already describing
it.

This series adds GPIO support to the driver and binding, and updates
turris1x.dts to use the new wdi-gpios property.

Changes in v4:

- Address review feedback from Rob, Tzung-Bi and Guenter.
- Fix GPIO direction handling and remove unnecessary locking.
- Rename the property in turris1x.dts.

Tested on a Turris 1.1 running the Turris OS build of Linux 6.6.142
with patches 2 and 3 backported. The watchdog works with periodic GPIO
pings and resets the board after the pings stop. On v7.4-rc3, also
tested the binding with dt_binding_check and dtbs_check, and built the
driver for powerpc, and for arm64 with and without GPIOLIB. GPIO
behaviour was additionally tested under QEMU.

Patch 3 can go through the powerpc tree once the binding is in.

[1] https://lore.kernel.org/r/20220705001023.14660-1-pali@xxxxxxxxxx/

Josef Schlehofer (1):
powerpc: dts: turris1x.dts: Use wdi-gpios for the watchdog

Pali Rohár (2):
dt-bindings: watchdog: maxim,max63xx: Add wdi-gpios
watchdog: max63xx_wdt: Add support for specifying WDI logic via GPIO

.../bindings/watchdog/maxim,max63xx.yaml | 6 +++++
arch/powerpc/boot/dts/turris1x.dts | 2 +-
drivers/watchdog/max63xx_wdt.c | 24 +++++++++++++++++--
3 files changed, 29 insertions(+), 3 deletions(-)


base-commit: aebb7274476403040d582c61478df8f4a7bf9cd3
--
2.54.0 (Apple Git-157)