Linux kernel and device drivers for NXP i.MX platforms
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: sashiko-reviews@lists.linux.dev
Cc: shengjiu.wang@oss.nxp.com, conor+dt@kernel.org,
	Frank.Li@kernel.org, devicetree@vger.kernel.org,
	imx@lists.linux.dev
Subject: Re: [PATCH 2/4] dt-bindings: sound: fsl,easrc: add ports binding for multiple contexts
Date: Mon, 3 Aug 2026 08:20:29 -0500	[thread overview]
Message-ID: <20260803132029.GA2108420-robh@kernel.org> (raw)
In-Reply-To: <20260720101654.3A46A1F000E9@smtp.kernel.org>

On Mon, Jul 20, 2026 at 10:16:52AM +0000, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Low] The schema fails to restrict the `ports` container to the 4 supported contexts (ports 0-3), allowing invalid extraneous ports to silently pass validation.
> --
> 
> --- Patch [2]: [PATCH 2/4] dt-bindings: sound: fsl,easrc: add ports binding for multiple contexts ---
> commit 0461b121d300fd40233634f4b977c32906d647ce
> Author: Shengjiu Wang <shengjiu.wang@nxp.com>
> 
> dt-bindings: sound: fsl,easrc: add ports binding for multiple contexts
> 
> The i.MX EASRC hardware supports up to four conversion contexts
> (A, B, C, D). Add a ports container property to the binding to allow
> each context to be represented as an individual audio-graph port.
> 
> > diff --git a/Documentation/devicetree/bindings/sound/fsl,easrc.yaml b/Documentation/devicetree/bindings/sound/fsl,easrc.yaml
> > index d5727f8bfb0b5..0f579870110d9 100644
> > --- a/Documentation/devicetree/bindings/sound/fsl,easrc.yaml
> > +++ b/Documentation/devicetree/bindings/sound/fsl,easrc.yaml
> > @@ -55,6 +55,29 @@ properties:
> >        - const: imx/easrc/easrc-imx8mn.bin
> >      description: The coefficient table for the filters
> >  
> > +  ports:
> > +    $ref: /schemas/graph.yaml#/properties/ports
> > +    properties:
> > +      port@0:
> > +        $ref: audio-graph-port.yaml#
> > +        unevaluatedProperties: false
> > +        description: port for context A
> 
> [Severity: Low]
> Is this ports container missing a constraint to reject unsupported unit
> addresses?
> 
> Since the inherited graph.yaml schema permits any port@.*, a device tree
> defining port@4 or higher will currently pass dt-validate without an error,
> even though the hardware only supports 4 contexts. 
> 
> Would adding patternProperties: "^port@[0-3]$" or unevaluatedProperties: false
> to the ports block help catch invalid device tree configurations?

'additionalProperties: false' in 'ports' is what is needed here.

Rob

  reply	other threads:[~2026-08-03 13:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-20  9:54 [PATCH 0/4] ASoC: fsl: expose individual DAIs per ASRC/EASRC conversion pair/context shengjiu.wang
2026-07-20  9:54 ` [PATCH 1/4] dt-bindings: sound: fsl,imx-asrc: update port binding to support multiple pairs shengjiu.wang
2026-07-20 10:03   ` sashiko-bot
2026-07-20 14:28   ` Mark Brown
2026-07-21  8:58     ` Shengjiu Wang
2026-07-31 22:59   ` Rob Herring
2026-08-04  8:29     ` Shengjiu Wang
2026-07-20  9:54 ` [PATCH 2/4] dt-bindings: sound: fsl,easrc: add ports binding for multiple contexts shengjiu.wang
2026-07-20 10:16   ` sashiko-bot
2026-08-03 13:20     ` Rob Herring [this message]
2026-07-20  9:54 ` [PATCH 3/4] ASoC: fsl_asrc: expose individual DAIs per conversion pair shengjiu.wang
2026-07-20 10:33   ` sashiko-bot
2026-07-20  9:54 ` [PATCH 4/4] ASoC: fsl_easrc: expose individual DAIs per conversion context shengjiu.wang
2026-07-20 10:43   ` 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=20260803132029.GA2108420-robh@kernel.org \
    --to=robh@kernel.org \
    --cc=Frank.Li@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=imx@lists.linux.dev \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=shengjiu.wang@oss.nxp.com \
    /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