watchdog: max63xx_wdt: Support a WDI pin connected to a GPIO
Get series with b4
b4 am [email protected]Versions newest first
- v4 Latest3 patches 1 replyIn review
Changes in v4 from the cover letter
- Address review feedback from Rob, Tzung-Bi and Guenter.
- Fix GPIO direction handling and remove unnecessary locking.
- Rename the property in turris1x.dts.
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | dt-bindings: watchdog: maxim,max63xx: Add wdi-gpiosDocumentation/ | +6 | 0 replies | |
| 2/3 | watchdog: max63xx_wdt: Add support for specifying WDI logic via GPIOdrivers/ | +22 | 0 replies | |
| 3/3 | powerpc: dts: turris1x.dts: Use wdi-gpios for the watchdogarch/ | +1 | 1 reply |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Madhavan Srinivasan |
|---|---|
| 1/3 | |
| 2/3 | |
| 3/3 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/3] watchdog: max63xx_wdt: Support a WDI pin connected to a GPIO
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/[email protected]/
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
Signature · 1 line
2.54.0 (Apple Git-157)