On 24/08/2026 01:19, Jeff Rizzo wrote: > For reasons not entirely clear to me :) I just picked up a VisionFive 2 to hack around on. > As a way to ease myself in, I wrote a driver for the watchdog timer - does this (attached) look OK to commit? Be gentle, it's my first NetBSD driver in a few years... > I don't want to step on anyone's toes, but I'm hoping to make at least some minor improvements to the support of this board. How about the attached? Main things are - don’t always expect 2 resets. The binding spec says 1 or 2, but this version will just enable however many there are - lock the registers after jh7110_wdt_start The rest is mostly stylistic and consistency with other drivers. Thanks for working on this.
Attachment:
jh7110_wdt.c
Description: Binary data