From: Rob Herring <robh@kernel.org>
To: Shengjiu Wang <shengjiu.wang@gmail.com>
Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@vger.kernel.org>,
alsa-devel@alsa-project.org,
Shengjiu Wang <shengjiu.wang@nxp.com>,
linux-kernel <linux-kernel@vger.kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
Mark Brown <broonie@kernel.org>,
krzysztof.kozlowski+dt@linaro.org
Subject: Re: [PATCH] ASoC: dt-bindings: fsl, sai: Convert format to json-schema
Date: Wed, 10 Aug 2022 11:58:35 -0600 [thread overview]
Message-ID: <20220810175835.GB200295-robh@kernel.org> (raw)
In-Reply-To: <CAA+D8AP3o-sRtzBEQEPEOVXW2vACf38fWy=jJ0AGrxTrO=W4yA@mail.gmail.com>
On Thu, Jul 28, 2022 at 11:01:16PM +0800, Shengjiu Wang wrote:
> On Tue, Jul 26, 2022 at 4:05 AM Krzysztof Kozlowski <
> krzysztof.kozlowski@linaro.org> wrote:
>
> > On 25/07/2022 11:31, Shengjiu Wang wrote:
> > > Convert the NXP SAI binding to DT schema format using json-schema.
> > >
> > > The Synchronous Audio Interface (SAI) provides an interface that
> > > supports full-duplex serial interfaces with frame synchronization
> > > formats such as I2S, AC97, TDM, and codec/DSP interfaces.
> > >
> > > Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
> > > ---
> > > .../devicetree/bindings/sound/fsl,sai.yaml | 175 ++++++++++++++++++
> > > .../devicetree/bindings/sound/fsl-sai.txt | 95 ----------
> > > 2 files changed, 175 insertions(+), 95 deletions(-)
> > > create mode 100644 Documentation/devicetree/bindings/sound/fsl,sai.yaml
> > > delete mode 100644 Documentation/devicetree/bindings/sound/fsl-sai.txt
> > >
> > > diff --git a/Documentation/devicetree/bindings/sound/fsl,sai.yaml
> > b/Documentation/devicetree/bindings/sound/fsl,sai.yaml
> > > new file mode 100644
> > > index 000000000000..adcd77531eba
> > > --- /dev/null
> > > +++ b/Documentation/devicetree/bindings/sound/fsl,sai.yaml
> > > @@ -0,0 +1,175 @@
> > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > > +%YAML 1.2
> > > +---
> > > +$id: http://devicetree.org/schemas/sound/fsl,sai.yaml#
> > > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > > +
> > > +title: Freescale Synchronous Audio Interface (SAI).
> > > +
> > > +maintainers:
> > > + - Shengjiu Wang <shengjiu.wang@nxp.com>
> > > +
> > > +description: |
> > > + The SAI is based on I2S module that used communicating with audio
> > codecs,
> > > + which provides a synchronous audio interface that supports fullduplex
> > > + serial interfaces with frame synchronization such as I2S, AC97, TDM,
> > and
> > > + codec/DSP interfaces.
> > > +
> > > +properties:
> > > + compatible:
> > > + minItems: 1
> > > + maxItems: 2
> >
> > You allow anything here, so it's not acceptable. This has to be strictly
> > defined.
> >
>
> ok, I will update it.
>
> >
> > > + items:
> > > + enum:
> > > + - fsl,vf610-sai
> > > + - fsl,imx6sx-sai
> > > + - fsl,imx6ul-sai
> > > + - fsl,imx7ulp-sai
> > > + - fsl,imx8mq-sai
> > > + - fsl,imx8qm-sai
> > > + - fsl,imx8mm-sai
> > > + - fsl,imx8mn-sai
> > > + - fsl,imx8mp-sai
> > > + - fsl,imx8ulp-sai
> > > +
> > > + reg:
> > > + maxItems: 1
> > > +
> > > + interrupts:
> > > + items:
> > > + - description: receive and transmit interrupt
> > > +
> > > + dmas:
> > > + minItems: 2
> >
> > No need for minItems.
> >
>
> ok
>
>
> >
> > > + maxItems: 2
> > > + description:
> > > + Must contain a list of pairs of references to DMA specifiers, one
> > for
> > > + transmission, and one for reception.
> >
> > Skip description and instead describe items like you did for interrupts.
> >
>
> ok, will update it
>
> >
> > > +
> > > + dma-names:
> > > + minItems: 2
> > > + maxItems: 2
> > > + items:
> > > + enum:
> > > + - tx
> > > + - rx
> >
> > No, this has to be strictly defined, so items with tx and rx (or
> > reversed order).
> >
>
> two kind of order is needed, seems I need to use
> if - then -else
No, pick the more common one for the schema and fix the dts files for
the less common case.
Rob
WARNING: multiple messages have this Message-ID (diff)
From: Rob Herring <robh@kernel.org>
To: Shengjiu Wang <shengjiu.wang@gmail.com>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@vger.kernel.org>,
alsa-devel@alsa-project.org,
Shengjiu Wang <shengjiu.wang@nxp.com>,
Liam Girdwood <lgirdwood@gmail.com>,
linux-kernel <linux-kernel@vger.kernel.org>,
Mark Brown <broonie@kernel.org>,
krzysztof.kozlowski+dt@linaro.org
Subject: Re: [PATCH] ASoC: dt-bindings: fsl, sai: Convert format to json-schema
Date: Wed, 10 Aug 2022 11:58:35 -0600 [thread overview]
Message-ID: <20220810175835.GB200295-robh@kernel.org> (raw)
In-Reply-To: <CAA+D8AP3o-sRtzBEQEPEOVXW2vACf38fWy=jJ0AGrxTrO=W4yA@mail.gmail.com>
On Thu, Jul 28, 2022 at 11:01:16PM +0800, Shengjiu Wang wrote:
> On Tue, Jul 26, 2022 at 4:05 AM Krzysztof Kozlowski <
> krzysztof.kozlowski@linaro.org> wrote:
>
> > On 25/07/2022 11:31, Shengjiu Wang wrote:
> > > Convert the NXP SAI binding to DT schema format using json-schema.
> > >
> > > The Synchronous Audio Interface (SAI) provides an interface that
> > > supports full-duplex serial interfaces with frame synchronization
> > > formats such as I2S, AC97, TDM, and codec/DSP interfaces.
> > >
> > > Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
> > > ---
> > > .../devicetree/bindings/sound/fsl,sai.yaml | 175 ++++++++++++++++++
> > > .../devicetree/bindings/sound/fsl-sai.txt | 95 ----------
> > > 2 files changed, 175 insertions(+), 95 deletions(-)
> > > create mode 100644 Documentation/devicetree/bindings/sound/fsl,sai.yaml
> > > delete mode 100644 Documentation/devicetree/bindings/sound/fsl-sai.txt
> > >
> > > diff --git a/Documentation/devicetree/bindings/sound/fsl,sai.yaml
> > b/Documentation/devicetree/bindings/sound/fsl,sai.yaml
> > > new file mode 100644
> > > index 000000000000..adcd77531eba
> > > --- /dev/null
> > > +++ b/Documentation/devicetree/bindings/sound/fsl,sai.yaml
> > > @@ -0,0 +1,175 @@
> > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > > +%YAML 1.2
> > > +---
> > > +$id: http://devicetree.org/schemas/sound/fsl,sai.yaml#
> > > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > > +
> > > +title: Freescale Synchronous Audio Interface (SAI).
> > > +
> > > +maintainers:
> > > + - Shengjiu Wang <shengjiu.wang@nxp.com>
> > > +
> > > +description: |
> > > + The SAI is based on I2S module that used communicating with audio
> > codecs,
> > > + which provides a synchronous audio interface that supports fullduplex
> > > + serial interfaces with frame synchronization such as I2S, AC97, TDM,
> > and
> > > + codec/DSP interfaces.
> > > +
> > > +properties:
> > > + compatible:
> > > + minItems: 1
> > > + maxItems: 2
> >
> > You allow anything here, so it's not acceptable. This has to be strictly
> > defined.
> >
>
> ok, I will update it.
>
> >
> > > + items:
> > > + enum:
> > > + - fsl,vf610-sai
> > > + - fsl,imx6sx-sai
> > > + - fsl,imx6ul-sai
> > > + - fsl,imx7ulp-sai
> > > + - fsl,imx8mq-sai
> > > + - fsl,imx8qm-sai
> > > + - fsl,imx8mm-sai
> > > + - fsl,imx8mn-sai
> > > + - fsl,imx8mp-sai
> > > + - fsl,imx8ulp-sai
> > > +
> > > + reg:
> > > + maxItems: 1
> > > +
> > > + interrupts:
> > > + items:
> > > + - description: receive and transmit interrupt
> > > +
> > > + dmas:
> > > + minItems: 2
> >
> > No need for minItems.
> >
>
> ok
>
>
> >
> > > + maxItems: 2
> > > + description:
> > > + Must contain a list of pairs of references to DMA specifiers, one
> > for
> > > + transmission, and one for reception.
> >
> > Skip description and instead describe items like you did for interrupts.
> >
>
> ok, will update it
>
> >
> > > +
> > > + dma-names:
> > > + minItems: 2
> > > + maxItems: 2
> > > + items:
> > > + enum:
> > > + - tx
> > > + - rx
> >
> > No, this has to be strictly defined, so items with tx and rx (or
> > reversed order).
> >
>
> two kind of order is needed, seems I need to use
> if - then -else
No, pick the more common one for the schema and fix the dts files for
the less common case.
Rob
next prev parent reply other threads:[~2022-08-10 17:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-25 9:31 [PATCH] ASoC: dt-bindings: fsl,sai: Convert format to json-schema Shengjiu Wang
2022-07-25 20:05 ` [PATCH] ASoC: dt-bindings: fsl, sai: " Krzysztof Kozlowski
2022-07-25 20:05 ` [PATCH] ASoC: dt-bindings: fsl,sai: " Krzysztof Kozlowski
2022-07-28 15:01 ` [PATCH] ASoC: dt-bindings: fsl, sai: " Shengjiu Wang
2022-08-10 17:58 ` Rob Herring [this message]
2022-08-10 17:58 ` Rob Herring
2022-07-25 20:25 ` Rob Herring
2022-07-25 20:25 ` [PATCH] ASoC: dt-bindings: fsl,sai: " Rob Herring
2022-07-28 13:34 ` [PATCH] ASoC: dt-bindings: fsl, sai: " Shengjiu Wang
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=20220810175835.GB200295-robh@kernel.org \
--to=robh@kernel.org \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=shengjiu.wang@gmail.com \
--cc=shengjiu.wang@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 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.