Linux Watchdog driver development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Janne Grunau" <j@jannau.net>
Cc: linux-watchdog@vger.kernel.org
Subject: Re: [PATCH v3 2/5] dt-bindings: watchdog: apple,wdt: Add t8122 compatible
Date: Thu, 07 May 2026 20:20:12 +0000	[thread overview]
Message-ID: <20260507202013.1184CC2BCB2@smtp.kernel.org> (raw)
In-Reply-To: <20260507-apple-m3-initial-devicetrees-v3-2-ca07c81b5dc7@jannau.net>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The watchdog driver will fail to bind because it only matches 'apple,wdt', which is missing from both the DT schema and the new DT node.
--

commit 1d69bd3e024c70ab83ba6b193a047aaf6e2baef9
Author: Janne Grunau <j@jannau.net>

dt-bindings: watchdog: apple,wdt: Add t8122 compatible

This commit adds "apple,t8122-wdt" as a SoC-specific compatible string for
the Apple t8122 (M3) SoC watchdog. It specifies "apple,t8103-wdt" as its
fallback string in the device tree bindings.

>     The watchdog on the Apple silicon t8122 (M3) SoC is compatible with the
>     existing driver. Add "apple,t8122-wdt" as SoC specific compatible under
>     "apple,t8103-wdt" used by the driver.

Is the statement that the driver uses "apple,t8103-wdt" accurate?

Looking at drivers/watchdog/apple_wdt.c, the driver's of_match_table
exclusively matches the generic "apple,wdt" string, rather than
"apple,t8103-wdt":

static const struct of_device_id apple_wdt_of_match[] = {
	{ .compatible = "apple,wdt" },
	{},
};
MODULE_DEVICE_TABLE(of, apple_wdt_of_match);

> diff --git a/Documentation/devicetree/bindings/watchdog/apple,wdt.yaml b/Documentation/devicetree/bindings/watchdog/apple,wdt.yaml
> index 05602678c070d..845b5e8b5abc3 100644
> --- a/Documentation/devicetree/bindings/watchdog/apple,wdt.yaml
> +++ b/Documentation/devicetree/bindings/watchdog/apple,wdt.yaml
> @@ -16,7 +16,9 @@ properties:
>    compatible:
>      oneOf:
>        - items:
> -          - const: apple,t6020-wdt
> +          - enum:
> +              - apple,t6020-wdt
> +              - apple,t8122-wdt
>            - const: apple,t8103-wdt

Will this configuration prevent the watchdog driver from binding?

Since this block limits the compatible array to exactly two items, the
generic "apple,wdt" string will be omitted from the device tree node.

Because the driver exclusively matches "apple,wdt", does this schema need
to be updated to include "apple,wdt" as a third fallback string, or should
the driver be updated to match "apple,t8103-wdt"?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260507-apple-m3-initial-devicetrees-v3-0-ca07c81b5dc7@jannau.net?part=2

  reply	other threads:[~2026-05-07 20:20 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-07  7:33 [PATCH v3 0/5] Initial Apple silicon M3 device trees and dt-bindings Janne Grunau
2026-05-07  7:33 ` [PATCH v3 1/5] dt-bindings: power: apple,pmgr-pwrstate: Add t8122 compatible Janne Grunau
2026-05-07 19:23   ` sashiko-bot
2026-05-07  7:33 ` [PATCH v3 2/5] dt-bindings: watchdog: apple,wdt: " Janne Grunau
2026-05-07 20:20   ` sashiko-bot [this message]
2026-05-10 15:29   ` Guenter Roeck
2026-05-11  8:50     ` Janne Grunau
2026-05-11 14:07       ` Guenter Roeck
2026-05-11 14:06   ` Guenter Roeck
2026-05-07  7:33 ` [PATCH v3 3/5] dt-bindings: pwm: apple,s5l-fpwm: " Janne Grunau
2026-05-07  7:33 ` [PATCH v3 4/5] dt-bindings: arm: apple: Add M3 based devices Janne Grunau
2026-05-07  7:33 ` [PATCH v3 5/5] arm64: dts: apple: Initial t8122 (M3) device trees Janne Grunau
2026-05-07 20:59   ` sashiko-bot

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=20260507202013.1184CC2BCB2@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=j@jannau.net \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=sashiko@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox