From: "Péter Ujfalusi" <peter.ujfalusi@gmail.com>
To: Miquel Raynal <miquel.raynal@bootlin.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jayesh Choudhary <j-choudhary@ti.com>,
alsa-devel@alsa-project.org, linux-sound@vger.kernel.org,
devicetree@vger.kernel.org,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Subject: Re: [PATCH] ASoC: dt-bindings: davinci-mcasp: Fix interrupts property
Date: Wed, 2 Oct 2024 11:43:56 +0300 [thread overview]
Message-ID: <a67e031b-5685-48f2-b3b0-5181dd7371f2@gmail.com> (raw)
In-Reply-To: <20241001204749.390054-1-miquel.raynal@bootlin.com>
Hi,
On 01/10/2024 23:47, Miquel Raynal wrote:
> My understanding of the interrupts property is that it can either be:
> 1/ - TX
> 2/ - TX
> - RX
> 3/ - Common/combined.
>
> There are very little chances that either:
> - TX
> - Common/combined
> or even
> - TX
> - RX
> - Common/combined
> could be a thing.
For interrupt these are the valid onesÉ
- Common only
- TX and RX
- TX only
- RX only
The driver cuts this through by trying to request all and leaves it for
DT to specify the correct irqs.
Note: in case of common only, we still have RX+TX, TX only, RX only
operation, but that is just a side note.
>
> Looking at the interrupt-names definition (which uses oneOf instead of
> anyOf), it makes indeed little sense to use anyOf in the interrupts
> definition. I believe this is just a mistake, hence let's fix it.
>
> Fixes: 8be90641a0bb ("ASoC: dt-bindings: davinci-mcasp: convert McASP bindings to yaml schema")
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
> ---
> ---
> .../devicetree/bindings/sound/davinci-mcasp-audio.yaml | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/sound/davinci-mcasp-audio.yaml b/Documentation/devicetree/bindings/sound/davinci-mcasp-audio.yaml
> index 7735e08d35ba..ab3206ffa4af 100644
> --- a/Documentation/devicetree/bindings/sound/davinci-mcasp-audio.yaml
> +++ b/Documentation/devicetree/bindings/sound/davinci-mcasp-audio.yaml
> @@ -102,7 +102,7 @@ properties:
> default: 2
>
> interrupts:
> - anyOf:
> + oneOf:
> - minItems: 1
> items:
> - description: TX interrupt
--
Péter
next prev parent reply other threads:[~2024-10-02 8:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-01 20:47 [PATCH] ASoC: dt-bindings: davinci-mcasp: Fix interrupts property Miquel Raynal
2024-10-02 6:34 ` Krzysztof Kozlowski
2024-10-02 6:56 ` Miquel Raynal
2024-10-02 7:23 ` Krzysztof Kozlowski
2024-10-02 8:43 ` Péter Ujfalusi [this message]
2024-10-03 8:23 ` Miquel Raynal
2024-10-02 17:37 ` Mark Brown
2024-10-03 8:25 ` Miquel Raynal
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=a67e031b-5685-48f2-b3b0-5181dd7371f2@gmail.com \
--to=peter.ujfalusi@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=j-choudhary@ti.com \
--cc=krzk+dt@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-sound@vger.kernel.org \
--cc=miquel.raynal@bootlin.com \
--cc=robh@kernel.org \
--cc=thomas.petazzoni@bootlin.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.