From: sashiko-bot@kernel.org
To: "Nikolai Burov" <nikolai.burov@jolla.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v3 1/3] dt-bindings: power: Add MediaTek MT6858 power domain controller
Date: Mon, 20 Jul 2026 20:55:38 +0000 [thread overview]
Message-ID: <20260720205539.52D4C1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260720-mt6858-pmdomain-v3-1-8966d8de93c8@jolla.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] Relaxing the global maxItems for access-controllers weakens validation for older SoCs, and the MT6858 block lacks min/max constraints.
- [Medium] The parent SCPSYS compatible string for MT6858 is undocumented in the related MFD binding.
--
--- Patch [1]: [PATCH v3 1/3] dt-bindings: power: Add MediaTek MT6858 power domain controller ---
commit 2af17e3001f2b4860c3cbd850866a2a03694b597
Author: Nikolai Burov <nikolai.burov@jolla.com>
dt-bindings: power: Add MediaTek MT6858 power domain controller
Add a new compatible and document bindings for the power domain
controller of the MT6858 SoC.
> diff --git a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml
> index 070c6e5666dc0..d03e4a9251635 100644
> --- a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml
> +++ b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml
> @@ -25,6 +25,7 @@ properties:
> enum:
> - mediatek,mt6735-power-controller
> - mediatek,mt6795-power-controller
> + - mediatek,mt6858-power-controller
[Severity: Medium]
Since this power controller is a child of the SCPSYS system controller,
shouldn't the corresponding parent compatible string (e.g.
mediatek,mt6858-scpsys) be added to the parent MFD binding as well?
Without it, a complete Device Tree declaring the MT6858 SCPSYS parent node
might fail schema validation when checked against
Documentation/devicetree/bindings/mfd/mediatek,mt8195-scpsys.yaml.
[ ... ]
> @@ -56,7 +57,7 @@ properties:
> faults while enabling or disabling a power domain.
> For example, this may hold phandles to INFRACFG and SMI.
> minItems: 1
> - maxItems: 3
> + maxItems: 6
[Severity: Medium]
Does relaxing the global maxItems constraint unintentionally weaken schema
validation for older hardware generations?
Previous SoCs relied on this global maxItems: 3 because they lack their own
specific if-then blocks for access-controllers. Now they will be permitted to
have up to 6 without triggering a validation error.
[ ... ]
> @@ -156,6 +158,23 @@ required:
> - compatible
>
> allOf:
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - mediatek,mt6858-power-controller
> + then:
> + properties:
> + access-controllers:
> + items:
> + - description: handle to INFRACFG register block
> + - description: handle to IMG_SUB0 register block
> + - description: handle to CAM_SUB1 register block
> + - description: handle to CAM_SUB0 register block
> + - description: handle to IPE_SUB0 register block
> + - description: handle to VLPCFG register block
[Severity: Medium]
Does this block also need explicit minItems: 6 and maxItems: 6 constraints?
Without them, JSON schema will fall back to the global minItems: 1, allowing
incomplete MT6858 device tree nodes specifying fewer than 6 access controllers
to bypass strict validation.
> +
> - if:
> properties:
> compatible:
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260720-mt6858-pmdomain-v3-0-8966d8de93c8@jolla.com?part=1
next prev parent reply other threads:[~2026-07-20 20:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-20 20:46 [PATCH v3 0/3] pmdomain: mediatek: Add MT6858 support Nikolai Burov via B4 Relay
2026-07-20 20:46 ` [PATCH v3 1/3] dt-bindings: power: Add MediaTek MT6858 power domain controller Nikolai Burov via B4 Relay
2026-07-20 20:55 ` sashiko-bot [this message]
2026-07-20 20:46 ` [PATCH v3 2/3] pmdomain: mediatek: Add support for secure modem power domain control Nikolai Burov via B4 Relay
2026-07-20 20:58 ` sashiko-bot
2026-07-21 9:19 ` AngeloGioacchino Del Regno
2026-07-21 10:04 ` Matthias Brugger
2026-07-20 20:46 ` [PATCH v3 3/3] pmdomain: mediatek: Add support for MT6858 SoC Nikolai Burov via B4 Relay
2026-07-21 10:04 ` Matthias Brugger
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=20260720205539.52D4C1F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=nikolai.burov@jolla.com \
--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