Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Wadim Mueller" <wafgo01@gmail.com>
Cc: devicetree@vger.kernel.org, mfd@lists.linux.dev, robh@kernel.org,
	conor+dt@kernel.org, lee@kernel.org
Subject: Re: [RFC PATCH 3/6] dt-bindings: mfd: brcm,twd: Add BCM47622
Date: Fri, 04 Dec 2026 15:23:30 +0000	[thread overview]
Message-ID: <sashiko-outbox-250088@kernel.org> (raw)
In-Reply-To: <20261204151052.393800-4-wafgo01@gmail.com>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] dt-bindings: mfd: brcm,twd: commit message contradicts
  standalone compatible
- [Low] dt-bindings: mfd: brcm,twd: brcm,bcm47622-twd inserted unsorted
  in enum
--

commit c6a8d54ad1a00a2d6a174f151db3e7c5dc167252
Author: Wadim Mueller <wafgo01@gmail.com>

dt-bindings: mfd: brcm,twd: Add BCM47622

This commit adds the brcm,bcm47622-twd compatible string to the Broadcom
Timer-Watchdog (TWD) devicetree binding.

> BCM47622 has the same timer/watchdog block as BCM4908.

[Severity: Low]
Should brcm,bcm47622-twd use brcm,bcm4908-twd as a fallback compatible, or
does the commit message need to explain why they are not compatible?

Per Documentation/devicetree/bindings/writing-bindings.rst, identical
hardware blocks should list the earlier SoC as a fallback compatible (which
syscon-common.yaml allows with up to 5 items), while incompatible blocks
should explain the differences in the commit message.

In commit "ARM: dts: broadcom: bcm47622: Add TWD, reboot, MDIO and
SYSTEMPORT0", BCM47622 defines a 0x100-byte TWD block with watchdog at 0x80
and reboot at 0x8c, whereas arch/arm64/boot/dts/broadcom/bcmbca/bcm4908.dtsi
uses a 0x4c-byte block with watchdog at 0x28 and reboot at 0x34.

If the register layouts differ, updating the commit message to note those
differences would justify the standalone compatible; otherwise, adding a
oneOf entry with brcm,bcm4908-twd as a fallback would match the binding
guidelines.

> diff --git a/Documentation/devicetree/bindings/mfd/brcm,twd.yaml b/Documentation/devicetree/bindings/mfd/brcm,twd.yaml
> index e5136a37b0a38..217f621fabaae 100644
> --- a/Documentation/devicetree/bindings/mfd/brcm,twd.yaml
> +++ b/Documentation/devicetree/bindings/mfd/brcm,twd.yaml
> @@ -20,6 +20,7 @@ properties:
>      items:
>        - enum:
>            - brcm,bcm4908-twd
> +          - brcm,bcm47622-twd
>            - brcm,bcm7038-twd
>        - const: simple-mfd
>        - const: syscon

[Severity: Low]
Can brcm,bcm47622-twd be placed in sorted order?  Right now it sits between
brcm,bcm4908-twd and brcm,bcm7038-twd, which is neither alphabetical nor
numerical; if kept in this enum, placing it before brcm,bcm4908-twd would
keep the list alphabetically sorted.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204151052.393800-1-wafgo01@gmail.com?part=3

  reply	other threads:[~2026-12-04 15:23 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 15:10 [RFC PATCH 0/6] ARM: bcmbca: Add BCM47622 SMP and ASUS RT-AX56U Wadim Mueller
2026-12-04 15:10 ` [RFC PATCH 1/6] dt-bindings: arm: cpus: Add brcm,bca-smp enable-method Wadim Mueller
2026-12-04 15:10 ` [RFC PATCH 2/6] ARM: bcm: " Wadim Mueller
2026-12-04 15:34   ` sashiko-bot
2026-12-04 17:29   ` William Zhang
2026-12-04 15:10 ` [RFC PATCH 3/6] dt-bindings: mfd: brcm,twd: Add BCM47622 Wadim Mueller
2026-12-04 15:23   ` sashiko-bot [this message]
2026-12-04 15:10 ` [RFC PATCH 4/6] ARM: dts: broadcom: bcm47622: Add TWD, reboot, MDIO and SYSTEMPORT0 Wadim Mueller
2026-12-04 15:34   ` sashiko-bot
2026-12-04 17:45   ` Florian Fainelli
2026-12-04 15:10 ` [RFC PATCH 5/6] dt-bindings: arm: bcmbca: Add ASUS RT-AX56U Wadim Mueller
2026-12-04 15:17   ` sashiko-bot
2026-12-04 15:10 ` [RFC PATCH 6/6] ARM: dts: broadcom: " Wadim Mueller
2026-12-04 15:25   ` sashiko-bot
2026-12-04 18:01   ` Florian Fainelli

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-250088@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=lee@kernel.org \
    --cc=mfd@lists.linux.dev \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=wafgo01@gmail.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