All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Paul Menzel" <pmenzel@molgen.mpg.de>
Cc: linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 1/3] dt-bindings: watchdog: samsung-wdt: Add Exynos7885 compatible
Date: Fri, 04 Dec 2026 18:05:48 +0000	[thread overview]
Message-ID: <sashiko-outbox-250369@kernel.org> (raw)
In-Reply-To: <20261204174814.453359-2-pmenzel@molgen.mpg.de>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] dt-bindings: watchdog: exynos7885 forbids cluster-index
  despite dual WDT
--

commit c0788fce14e9a6f4b2ea477b02adbddd730042ad
Author: Paul Menzel <pmenzel@molgen.mpg.de>

dt-bindings: watchdog: samsung-wdt: Add Exynos7885 compatible

This commit adds the samsung,exynos7885-wdt compatible to the Samsung
watchdog DT binding schema, requiring samsung,syscon-phandle and two
clocks while disallowing samsung,cluster-index.

> diff --git a/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml b/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml
> index 37d9fc9b68f47..15314824c0703 100644
> --- a/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml
> +++ b/Documentation/devicetree/bindings/watchdog/samsung-wdt.yaml

[ ... ]

> @@ -102,6 +103,7 @@ allOf:
>            contains:
>              enum:
>                - samsung,exynos5515-wdt
> +              - samsung,exynos7885-wdt
>      then:
>        properties:
>          clocks:

[Severity: Medium]
Should samsung,exynos7885-wdt require samsung,cluster-index instead of
forbidding it?

This branch sets samsung,cluster-index: false for single-cluster
Exynos5515.  Exynos7885 has two CPU clusters in exynos7885.dtsi, and
drivers/clk/samsung/clk-exynos7885.c defines two per-cluster watchdog
gate clocks:

drivers/clk/samsung/clk-exynos7885.c:peri_gate_clks:
	GATE(CLK_GOUT_WDT0_PCLK, "gout_wdt0_pclk", "mout_peri_bus_user",
	     CLK_CON_GAT_GOUT_PERI_WDT_CLUSTER0_PCLK, 21, 0, 0),
	GATE(CLK_GOUT_WDT1_PCLK, "gout_wdt1_pclk", "mout_peri_bus_user",
	     CLK_CON_GAT_GOUT_PERI_WDT_CLUSTER1_PCLK, 21, 0, 0),

The PMU bit difference noted in the commit message (24 instead of 23)
also matches the dual-cluster layout in drivers/watchdog/s3c2410_wdt.c,
where cluster 0 uses bit 24 and cluster 1 uses bit 23.

Forbidding samsung,cluster-index prevents describing both watchdog
instances without failing dtbs_check, and making it required later would
break DT ABI compatibility.  Unless Exynos7885 truly has only one
watchdog, samsung,exynos7885-wdt belongs in the dual-cluster allOf branch.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204174814.453359-1-pmenzel@molgen.mpg.de?part=1

  reply	other threads:[~2026-12-04 18:05 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 [this message]
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
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=sashiko-outbox-250369@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=pmenzel@molgen.mpg.de \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.