Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "AngeloGioacchino Del Regno" <angelogioacchino.delregno@collabora.com>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org,
	krzk+dt@kernel.org
Subject: Re: [PATCH v12 1/5] dt-bindings: regulator: Document MediaTek MT6373 PMIC Regulators
Date: Tue, 12 May 2026 01:40:07 +0000	[thread overview]
Message-ID: <20260512014008.8A64CC2BCB0@smtp.kernel.org> (raw)
In-Reply-To: <20260511101355.122478-2-angelogioacchino.delregno@collabora.com>

Thank you for your contribution! Sashiko AI review found 4 potential issue(s) to consider:
- [Medium] The commit message erroneously describes the MT6363 PMIC instead of the MT6373 PMIC.
- [Medium] The `maxItems` constraint for `regulator-allowed-modes` in buck regulators restricts the array to 3 items, despite 4 valid modes being defined.
- [Low] Incomplete documentation for the `vs1-ldo1-supply` property.
- [Low] Repetitive wording in the descriptions for `regulator-allowed-modes`.
--

commit c2db0db607c8ddf5d3875d65350f6abb072b3b6a
Author: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>

dt-bindings: regulator: Document MediaTek MT6373 PMIC Regulators

This commit adds device tree bindings for the regulators found in the MediaTek
MT6373 PMIC. It defines the constraints and allowed operating modes for 10
BUCK and 23 LDO regulators, along with their input supplies.

> dt-bindings: regulator: Document MediaTek MT6373 PMIC Regulators
> 
> Add bindings for the regulators found in the MediaTek MT6363 PMIC,

This isn't a bug, but should the commit message say MT6373 instead of MT6363?
The patch adds the mediatek,mt6373-regulator.yaml schema, but the body mentions
MT6363.

> diff --git a/Documentation/devicetree/bindings/regulator/mediatek,mt6373-regulator.yaml b/Documentation/devicetree/bindings/regulator/mediatek,mt6373-regulator.yaml
> new file mode 100644
> index 0000000000000..4562f291fc0ae
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/regulator/mediatek,mt6373-regulator.yaml

[ ... ]

> +  vs1-ldo1-supply:
> +    description: Input supply for vant18, vaud18, vcn18io

Since the schema also defines vrf18-aif and vrfio18-aif LDOs under the
"^vrf(09|12|13|18|io18)-aif$" pattern, and they are powered by vs1-ldo1,
could this description be updated to include them?

[ ... ]

> +  "^vbuck[0-9]$":
> +    type: object
> +    $ref: regulator.yaml#
> +    properties:
> +      regulator-allowed-modes:
> +        description: |
> +          Allowed Buck regulator operating modes allowed. Valid values below.

This isn't a bug, but the word "allowed" is repeated in this description.

[ ... ]

> +            3 - Forced Ultra Low Power mode for ultra low load, this greatly
> +                reduces the maximum output power, makes the regulator to be
> +                efficient only for ultra light load, and greatly reduces the
> +                quiescent current (Iq) of the buck.
> +        maxItems: 3
> +        items:
> +          enum: [ 0, 1, 2, 3 ]

If a board design supports and configures all four operating modes
simultaneously (e.g., <0 1 2 3>), will it fail schema validation since
maxItems is restricted to 3?

Should maxItems be updated to 4 to match the number of defined enum values?

[ ... ]

> +$defs:
> +  ldo-common:
> +    type: object
> +    $ref: regulator.yaml#
> +    unevaluatedProperties: false
> +    properties:
> +      regulator-allowed-modes:
> +        description: |
> +          Allowed LDO regulator operating modes allowed. Valid values below.

This isn't a bug, but the word "allowed" is also repeated in this description.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260511101355.122478-1-angelogioacchino.delregno@collabora.com?part=1

  parent reply	other threads:[~2026-05-12  1:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-11 10:13 [PATCH PARTIAL-RESEND v12 0/5] Add support MT6316/6363/MT6373 PMICs regulators and MFD AngeloGioacchino Del Regno
2026-05-11 10:13 ` [PATCH v12 1/5] dt-bindings: regulator: Document MediaTek MT6373 PMIC Regulators AngeloGioacchino Del Regno
2026-05-12  1:39   ` Mark Brown
2026-05-12  1:40   ` sashiko-bot [this message]
2026-05-11 10:13 ` [PATCH v12 2/5] regulator: Add support for MediaTek MT6373 SPMI " AngeloGioacchino Del Regno
2026-05-12  2:04   ` Mark Brown
2026-05-12  2:04   ` sashiko-bot
2026-05-11 10:13 ` [PATCH v12 3/5] dt-bindings: iio: adc: mt6359: Allow reg for SPMI PMICs AuxADC AngeloGioacchino Del Regno
2026-05-11 10:13 ` [PATCH v12 4/5] dt-bindings: mfd: Add binding for MediaTek MT6363 series SPMI PMIC AngeloGioacchino Del Regno
2026-05-12  2:15   ` sashiko-bot
2026-05-11 10:13 ` [PATCH v12 5/5] mfd: Add support for MediaTek SPMI PMICs and MT6363/73 AngeloGioacchino Del Regno
2026-05-12  2:44   ` sashiko-bot
2026-05-12  1:25 ` [PATCH PARTIAL-RESEND v12 0/5] Add support MT6316/6363/MT6373 PMICs regulators and MFD Mark Brown

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=20260512014008.8A64CC2BCB0@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=robh@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