From: sashiko-bot@kernel.org
To: "Thierry Reding" <thierry.reding@kernel.org>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org,
mfd@lists.linux.dev, robh@kernel.org, lee@kernel.org
Subject: Re: [PATCH v3 1/3] dt-bindings: mfd: as3722: Convert to json-schema
Date: Fri, 02 Oct 2026 09:14:40 +0000 [thread overview]
Message-ID: <20261002091441.26F141F00893@smtp.kernel.org> (raw)
In-Reply-To: <20261002-as3722-bindings-v3-1-21c179b72a95@nvidia.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] dt-bindings: as3722: regex pattern for pinmux nodes rejects existing hyphens
- [Low] dt-bindings: as3722: ams,enable-tracking missing restriction to ldo3
--
commit d71712428dc3759a032b4331de89438e39e0ee5b
Author: Thierry Reding <treding@nvidia.com>
dt-bindings: mfd: as3722: Convert to json-schema
Convert the AMS AS3722 PMIC bindings from the free-form text format to
json-schema.
> diff --git a/Documentation/devicetree/bindings/mfd/ams,as3722.yaml b/Documentation/devicetree/bindings/mfd/ams,as3722.yaml
> new file mode 100644
> index 0000000000000..51910042c6216
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/ams,as3722.yaml
[ ... ]
> @@ -0,0 +1,293 @@
[ ... ]
> + pinmux:
> + description:
> + Device has 8 GPIO pins which can be configured as GPIO as well as the
> + special IO functions.
> +
> + type: object
> + additionalProperties: false
> +
> + patternProperties:
> + "^gpio[0-7_]+$":
[Severity: Medium]
Will this strict regex exclude the hyphen character and cause validation to
fail for existing in-tree device trees?
Existing device trees like arch/arm/boot/dts/nvidia/tegra124-apalis.dtsi use
hyphens in their node names, such as gpio0-1-3-4-5-6. Because these valid
names contain hyphens, do they fail to match the pattern, fall through to
additionalProperties: false, and trigger a schema violation error?
[ ... ]
> + patternProperties:
> + "^(sd[0-6]|ldo[0-7]|ldo9|ldo10|ldo11)$":
> + description:
> + These sub-nodes must be named after one of the regulators found on
> + the AS3277. Each sub-node should contain the constraints and
> + initialization information for that regulator.
> +
> + $ref: /schemas/regulator/regulator.yaml#
> + unevaluatedProperties: false
> + type: object
> +
> + properties:
[ ... ]
> + ams,enable-tracking:
> + description: Enable tracking with SD1, only supported by LDO3.
> +
> + $ref: /schemas/types.yaml#/definitions/flag
[Severity: Low]
Is the ams,enable-tracking property missing a restriction to ldo3?
The text description explicitly states it is only supported by LDO3, but it
appears to be allowed for all regulators matching the parent pattern. Without
an allOf/if-then constraint to restrict its application strictly to the ldo3
node, users could mistakenly apply ams,enable-tracking to unsupported
regulators.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261002-as3722-bindings-v3-0-21c179b72a95@nvidia.com?part=1
next prev parent reply other threads:[~2026-10-02 9:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-02 7:38 [PATCH v3 0/3] arm64: tegra: Fix DT validation issues for Tegra132 Thierry Reding
2026-10-02 7:38 ` [PATCH v3 1/3] dt-bindings: mfd: as3722: Convert to json-schema Thierry Reding
2026-10-02 9:14 ` sashiko-bot [this message]
2026-10-02 7:38 ` [PATCH v3 2/3] dt-bindings: ASoC: nvidia,tegra30-ahub: " Thierry Reding
2026-10-02 9:14 ` sashiko-bot
2026-10-07 21:10 ` Rob Herring
2026-10-07 21:10 ` Rob Herring (Arm)
2026-10-02 7:39 ` [PATCH v3 3/3] arm64: tegra: Add Tegra132 specific compatible for AHUB Thierry Reding
2026-10-02 9:14 ` 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=20261002091441.26F141F00893@smtp.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=thierry.reding@kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.