[PATCH 0/3] watchdog: starfive: Add jhb100 support

From: Henry Qin

Date: Fri Dec 04 2026 - 08:54:37 EST


JHB100 is a StarFive RISC-V SoC for datacenter BMC (Baseboard
Management Controller). This series adds support for its watchdog to
the starfive-wdt driver.

Patch 1 removes the jh8100 compatible from the binding. There is no
JH8100 hardware available, no device tree uses it and the driver has no
match entry for it.

Patch 2 adds the jhb100 compatible. The JHB100 watchdog has an APB and a
core clock like the other variants, but only a single core reset.

Patch 3 adds the driver support. Compared to JH7110, the JHB100 watchdog
uses a different register layout and lock key, and restarts the counter
by writing a key to a RESTART register.

The series is based on watchdog-next. The JHB100 device tree nodes for
the watchdog will be sent separately on top of the JHB100 base device
tree series [1].

Testing:

- JHB100 EVB, with CONFIG_PM=y and CONFIG_PM=n. Tested start/stop,
ping, changing the timeout while running and while stopped, timeleft,
magic close, nowayout, early_enable, reboot with the watchdog running
and the system reset on timeout. With CONFIG_PM=y the watchdog clocks
are gated while the watchdog is stopped.

The JHB100 clock drivers and device tree are not upstream yet, so
this was tested on a 6.18 based vendor kernel. The driver is the one
from this series, except that devm_kzalloc_obj() is replaced by
devm_kzalloc(), which is what 6.18 provides. The 6.18 watchdog core
does not have the core changes queued in watchdog-next. In particular,
without commit 7ad760b1be33 ("watchdog: core: Don't report time left
for a stopped watchdog") reading timeleft of a stopped watchdog with
CONFIG_PM=y accesses the clock gated registers and hangs the bus, so
timeleft was only read while the watchdog was running there.

- VisionFive 2 (JH7110): watchdog-next with this series, CONFIG_PM=y.
Same tests plus unbind/bind while running, no regression seen.

[1] https://lore.kernel.org/all/20260806122553.182449-1-changhuang.liang@xxxxxxxxxxxxxxxx/

Henry Qin (3):
dt-bindings: watchdog: starfive,jh7100-wdt: Remove jh8100
dt-bindings: watchdog: starfive,jh7100-wdt: Add jhb100 support
watchdog: starfive: Add jhb100 support

.../watchdog/starfive,jh7100-wdt.yaml | 17 +++---
drivers/watchdog/Kconfig | 4 +-
drivers/watchdog/starfive-wdt.c | 53 ++++++++++++++++++-
3 files changed, 60 insertions(+), 14 deletions(-)


base-commit: df146790ce61af674924e65a80b71a98484cfc7a
--
2.43.0