Devicetree
 help / color / mirror / Atom feed
From: Henry Qin <henry.qin@starfivetech.com>
To: Wim Van Sebroeck <wim@linux-watchdog.org>,
	Guenter Roeck <linux@roeck-us.net>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Xingyu Wu <xingyu.wu@starfivetech.com>,
	Ziv Xu <ziv.xu@starfivetech.com>
Cc: Henry Qin <henry.qin@starfivetech.com>,
	linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 0/3] watchdog: starfive: Add jhb100 support
Date: Fri,  4 Dec 2026 13:53:33 +0000	[thread overview]
Message-ID: <20261204135336.632-1-henry.qin@starfivetech.com> (raw)

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


             reply	other threads:[~2026-12-04 13:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 13:53 Henry Qin [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261204135336.632-1-henry.qin@starfivetech.com \
    --to=henry.qin@starfivetech.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=robh@kernel.org \
    --cc=wim@linux-watchdog.org \
    --cc=xingyu.wu@starfivetech.com \
    --cc=ziv.xu@starfivetech.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox