Linux Watchdog driver development
 help / color / mirror / Atom feed
* [PATCH 0/3] watchdog: starfive: Add jhb100 support
@ 2026-12-04 13:53 Henry Qin
  2026-12-04 13:53 ` [PATCH 1/3] dt-bindings: watchdog: starfive,jh7100-wdt: Remove jh8100 Henry Qin
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Henry Qin @ 2026-12-04 13:53 UTC (permalink / raw)
  To: Wim Van Sebroeck, Guenter Roeck, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Xingyu Wu, Ziv Xu
  Cc: Henry Qin, linux-watchdog, devicetree, linux-kernel

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@starfivetech.com/

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-12-04 18:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 13:53 [PATCH 0/3] watchdog: starfive: Add jhb100 support Henry Qin
2026-12-04 13:53 ` [PATCH 1/3] dt-bindings: watchdog: starfive,jh7100-wdt: Remove jh8100 Henry Qin
2026-12-04 13:53 ` [PATCH 2/3] dt-bindings: watchdog: starfive,jh7100-wdt: Add jhb100 support Henry Qin
2026-12-04 13:53 ` [PATCH 3/3] watchdog: starfive: " Henry Qin
2026-12-04 14:35   ` sashiko-bot
2026-12-04 18:55 ` [PATCH 0/3] " Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox