Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Rob Herring (Arm)" <robh@kernel.org>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH] dt-bindings: power: Convert mediatek,mt2701-scpsys to DT schema
Date: Fri, 25 Sep 2026 16:10:50 +0000	[thread overview]
Message-ID: <20260925161051.511721F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260925155927.1707560-1-robh@kernel.org>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dt-bindings: missing if-then conditionals for clock constraints per compatible
--

commit 58363c1987ec9c749cc55c9a540860ff57ed2f23
Author: Rob Herring (Arm) <robh@kernel.org>

    dt-bindings: power: Convert mediatek,mt2701-scpsys to DT schema
    
    Convert the mediatek,mt2701-scpsys binding to DT schema. The mt6735 and
    mt6765 don't exist anywhere. The mt8183 is covered by
    mediatek,mt8195-scpsys.yaml schema. With those dropped, the clock-names
    are trimmed to drop mm-*, isp-*, cam-*, and venc_lt. The venc_lt and
    mfg_2d supplies are dropped as well.

> diff --git a/Documentation/devicetree/bindings/power/mediatek,mt2701-scpsys.yaml b/Documentation/devicetree/bindings/power/mediatek,mt2701-scpsys.yaml
> new file mode 100644
> index 0000000000000..d991b8a008eba
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/power/mediatek,mt2701-scpsys.yaml

[ ... ]

> +  clocks:
> +    minItems: 1
> +    maxItems: 20
> +
> +  clock-names:
> +    minItems: 1
> +    maxItems: 6
> +    items:
> +      enum:
> +        - mm
> +        - mfg
> +        - ethif
> +        - venc
> +        - jpgdec
> +        - audio
> +        - vdec
> +        - hif_sel

[Severity: Medium]
Does this generic definition omit the hardware-specific constraints from the
original text binding?

The original text binding required specific clock combinations based on the SoC
(for example, MT2712 explicitly required "mm", "mfg", "venc", "jpgdec",
"audio", and "vdec").

This new schema generically allows any device tree to provide 1 to 6 clocks
from the enum in any order, which would allow invalid configurations missing
required clocks to silently pass `dt_binding_check` validation.

Should there be `allOf` and `if-then` conditional blocks to enforce the correct
clocks and clock-names constraints per compatible string?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260925155927.1707560-1-robh@kernel.org?part=1

      reply	other threads:[~2026-09-25 16:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-25 15:59 [PATCH] dt-bindings: power: Convert mediatek,mt2701-scpsys to DT schema Rob Herring (Arm)
2026-09-25 16:10 ` sashiko-bot [this message]

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=20260925161051.511721F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox