From: sashiko-bot@kernel.org
To: "Thierry Reding" <thierry.reding@kernel.org>
Cc: robh@kernel.org, conor+dt@kernel.org, lee@kernel.org,
devicetree@vger.kernel.org, mfd@lists.linux.dev
Subject: Re: [PATCH v2 2/3] dt-bindings: sound: tegra-ahub: Convert to json-schema
Date: Wed, 30 Sep 2026 14:17:09 +0000 [thread overview]
Message-ID: <20260930141710.529FB1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260930-as3722-bindings-v2-2-a3bba649ebf9@nvidia.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dt-bindings: schema bypass for tegra132 due to const instead of contains
--
commit cc353b75e1127a04e8bb3722f63443c9ec2f2daf
Author: Thierry Reding <treding@nvidia.com>
dt-bindings: sound: tegra-ahub: Convert to json-schema
Convert Tegra AHUB bindings from the free-form text format to
json-schema.
> diff --git a/Documentation/devicetree/bindings/sound/nvidia,tegra30-ahub.yaml b/Documentation/devicetree/bindings/sound/nvidia,tegra30-ahub.yaml
> new file mode 100644
> index 0000000000000..4a7f5c74125c2
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/nvidia,tegra30-ahub.yaml
> @@ -0,0 +1,288 @@
[ ... ]
> +properties:
> + compatible:
> + oneOf:
> + - const: nvidia,tegra30-ahub
> + - const: nvidia,tegra114-ahub
> + - const: nvidia,tegra124-ahub
> + - items:
> + - const: nvidia,tegra132-ahub
> + - const: nvidia,tegra124-ahub
[ ... ]
> + - if:
> + properties:
> + compatible:
> + const: nvidia,tegra124-ahub
[Severity: Medium]
Will this exact match condition fail when evaluated against the tegra132
compatible sequence array?
Since JSON Schema const requires exact equality, this condition evaluates to
false when checking the device tree array ["nvidia,tegra132-ahub",
"nvidia,tegra124-ahub"].
This causes hardware constraints (such as reg, resets, and dmas properties
requirements) defined for tegra124-ahub to be silently skipped for
tegra132-ahub device tree nodes, allowing incomplete configurations to pass
schema validation.
Should this use contains: enum: or contains: const: instead of const:
to correctly match fallback sequences?
> + then:
> + properties:
> + reg:
> + items:
> + - description: APBIF registers
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260930-as3722-bindings-v2-0-a3bba649ebf9@nvidia.com?part=2
next prev parent reply other threads:[~2026-09-30 14:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-30 14:01 [PATCH v2 0/3] arm64: tegra: Fix DT validation issues for Tegra132 Thierry Reding
2026-09-30 14:01 ` [PATCH v2 1/3] dt-bindings: mfd: as3722: Convert to json-schema Thierry Reding
2026-09-30 14:12 ` sashiko-bot
2026-10-01 19:55 ` Rob Herring (Arm)
2026-09-30 14:01 ` [PATCH v2 2/3] dt-bindings: sound: tegra-ahub: " Thierry Reding
2026-09-30 14:17 ` sashiko-bot [this message]
2026-10-01 18:19 ` Mark Brown
2026-10-01 19:56 ` Rob Herring (Arm)
2026-09-30 14:01 ` [PATCH v2 3/3] arm64: tegra: Add Tegra132 specific compatible for AHUB Thierry Reding
2026-09-30 14:17 ` 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=20260930141710.529FB1F000FF@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox