Devicetree
 help / color / mirror / Atom feed
From: David Virag <virag.david003@gmail.com>
To: Guenter Roeck <linux@roeck-us.net>,
	Paul Menzel <pmenzel@molgen.mpg.de>,
	Wim Van Sebroeck <wim@linux-watchdog.org>
Cc: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>,
	Peter Griffin <peter.griffin@linaro.org>,
	Alim Akhtar	 <alim.akhtar@samsung.com>,
	Umer Uddin <umer.uddin@mentallysanemainliners.org>,
	 linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org,
	 linux-arm-kernel@lists.infradead.org,
	linux-samsung-soc@vger.kernel.org
Subject: Re: [PATCH 0/3] Add the Exynos7885 watchdog
Date: Sat, 05 Dec 2026 19:26:29 +0100	[thread overview]
Message-ID: <7f802c3616cbb958f3f0442df9b9eb5f375a49e5.camel@gmail.com> (raw)
In-Reply-To: <9255c16e-0f61-49d6-97c2-a2cc5a3bb59d@roeck-us.net>

On Sat, 2026-12-05 at 10:08 -0800, Guenter Roeck wrote:
> Hi,
> 
> On 12/5/26 08:44, David Virag wrote:
> > On Fri, 2026-12-04 at 18:48 +0100, Paul Menzel wrote:
> > > The Exynos7885 has the usual Samsung watchdog at 0x10060000,
> > > controlled
> > > through the PMU like on Exynos7, but with bit 24 in DISABLE_WDT,
> > > MASK_WDT_RESET and RST_STAT. Add the compatible, the driver
> > > variant
> > > and
> > > the SoC node (disabled).
> > > 
> > > The values come from Samsung’s kernel source for the SM-T510
> > > (Linux
> > > 4.4) [1]: the samsung,exynos8-wdt variant of s3c2410_wdt.c, which
> > > the
> > > SoC uses, with mask and reset status bit 24 [2], and the watchdog
> > > node
> > > of the SoC device tree [3].
> > > 
> > > Patches 1 and 2 are for the watchdog tree, patch 3 for the
> > > Samsung
> > > SoC
> > > tree.
> > > 
> > > Tested on the Samsung Galaxy Tab A 10.1 (2019, Wi-Fi, SM-T510)
> > > with a
> > > board device tree that enables the node (not upstream yet – it is
> > > meant
> > > to share a dtsi with the SM-T515, exynos7885-gta3xllte): the
> > > timer
> > > runs
> > > and is petted through /dev/watchdog, an unexpected close resets
> > > the
> > > SoC
> > > after the 60 s margin, and RST_STAT bit 24 shows the watchdog
> > > reset
> > > in
> > > the next boot. dt_binding_check, and dtbs_check of the Exynos7885
> > > boards with the node enabled, report nothing.
> > > 
> > > I found no other work on this watchdog on the lists.
> > > 
> > > Claude Code (claude-opus-5-5) helped with this series: it looked
> > > up
> > > the
> > > values in Samsung’s kernel source and device tree for the SM-
> > > T510,
> > > wrote the changes and commit messages, ran the checks, and ran
> > > the
> > > tests
> > > on the tablet. Each patch carries a note saying so.
> > > 
> > > [1]:
> > > https://github.com/gta3xlwifi-dev/android_kernel_gta3xlwifi/tree/00e4b9481434f9b0b644925a9bb2feaf3940219d
> > > [2]:
> > > https://github.com/gta3xlwifi-dev/android_kernel_gta3xlwifi/blob/00e4b9481434f9b0b644925a9bb2feaf3940219d/drivers/watchdog/s3c2410_wdt.c#L181-L200
> > > [3]:
> > > https://github.com/gta3xlwifi-dev/android_kernel_gta3xlwifi/blob/00e4b9481434f9b0b644925a9bb2feaf3940219d/arch/arm64/boot/dts/exynos/dtbo/exynos7885.dts#L1976-L1984
> > > 
> > > Paul Menzel (3):
> > >    dt-bindings: watchdog: samsung-wdt: Add Exynos7885 compatible
> > >    watchdog: s3c2410_wdt: Add Exynos7885 support
> > >    arm64: dts: exynos: exynos7885: Add the watchdog
> > > 
> > >   .../devicetree/bindings/watchdog/samsung-wdt.yaml    |  4 +++-
> > >   arch/arm64/boot/dts/exynos/exynos7885.dtsi           | 11
> > > +++++++++++
> > >   drivers/watchdog/s3c2410_wdt.c                       | 12
> > > ++++++++++++
> > >   3 files changed, 26 insertions(+), 1 deletion(-)
> > > 
> > > 
> > > base-commit: 0b5bb03d26a268f2606e3f574b277a1105136328
> > 
> > For the whole set:
> > 
> > Exynos7885 has two watchdogs. The other one is present at
> > 0x10050000
> > like on the Exynos850. The IRQ I haven't tested but I suspect it to
> > be
> > 232. As for the PMU registers, I currently have no information.
> > 
> > This is the reason I haven't submitted WDT patches so far, as the
> > other
> > WDT is kind of undocumented currently.
> > 
> > If information on this gets discovered, then at least the DT
> > bindings
> > will probably be wrong, as samsung,cluster-index will be needed.
> > 
> Sorry, I don't immediately see the point you are trying to make.
> Does the existence of another watchdog in the hardware in any way
> prevent, impact, or even influence adding support for _this_ watchdog
> ?

Kind of.. The DT bindings for multi-watchdog Exynos SoCs have a
samsung,cluster-index property, that is there so that the driver can
differentiate between the two (since it has to due to the PMU
registers).

This set (as I understand) instead describes the DT bindings to not
have this value, which is a mistake, since it has an other WDT, and I
have now tested it to be 100% functional. Without that property, it
will be more of a mess to add support for the other WDT, since
requiring it later on would break the old DTS.

Of course, the driver can be made backwards compatible and so on, but
why go through all that trouble when we can just do everything properly
from the beginning?

> 
> Thanks,
> Guenter

Best regards,
David

  reply	other threads:[~2026-12-05 18:26 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 17:48 [PATCH 0/3] Add the Exynos7885 watchdog Paul Menzel
2026-12-04 17:48 ` [PATCH 1/3] dt-bindings: watchdog: samsung-wdt: Add Exynos7885 compatible Paul Menzel
2026-12-04 18:05   ` sashiko-bot
2026-12-04 17:48 ` [PATCH 2/3] watchdog: s3c2410_wdt: Add Exynos7885 support Paul Menzel
2026-12-04 18:11   ` sashiko-bot
2026-12-05 18:27     ` Guenter Roeck
2026-12-04 17:48 ` [PATCH 3/3] arm64: dts: exynos: exynos7885: Add the watchdog Paul Menzel
2026-12-04 18:10   ` sashiko-bot
2026-12-05 16:44 ` [PATCH 0/3] Add the Exynos7885 watchdog David Virag
2026-12-05 18:08   ` Guenter Roeck
2026-12-05 18:26     ` David Virag [this message]
2026-12-05 18:22   ` David Virag
2026-12-05 18:31     ` 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=7f802c3616cbb958f3f0442df9b9eb5f375a49e5.camel@gmail.com \
    --to=virag.david003@gmail.com \
    --cc=alim.akhtar@samsung.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=peter.griffin@linaro.org \
    --cc=pmenzel@molgen.mpg.de \
    --cc=robh@kernel.org \
    --cc=umer.uddin@mentallysanemainliners.org \
    --cc=wim@linux-watchdog.org \
    /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