From: Rob Herring <robh@kernel.org>
To: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Mark Rutland <mark.rutland@arm.com>,
devicetree@vger.kernel.org, alsa-devel@alsa-project.org,
Takashi Iwai <tiwai@suse.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
alexandre@bootlin.com,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Jaroslav Kysela <perex@perex.cz>,
Michal Simek <michal.simek@xilinx.com>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 2/3] dt-bindings: sound: Add Xilinx logicPD-I2S FPGA IP bindings
Date: Mon, 02 Sep 2019 14:39:09 +0100 [thread overview]
Message-ID: <20190902044231.GA17348@bogus> (raw)
In-Reply-To: <20190830210607.22644-2-miquel.raynal@bootlin.com>
On Fri, Aug 30, 2019 at 11:06:06PM +0200, Miquel Raynal wrote:
> Document the logicPD I2S FPGA block bindings in yaml.
>
> Syntax verified with dt-doc-validate.
>
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
> ---
> .../bindings/sound/xlnx,logicpd-i2s.yaml | 57 +++++++++++++++++++
> 1 file changed, 57 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/sound/xlnx,logicpd-i2s.yaml
>
> diff --git a/Documentation/devicetree/bindings/sound/xlnx,logicpd-i2s.yaml b/Documentation/devicetree/bindings/sound/xlnx,logicpd-i2s.yaml
> new file mode 100644
> index 000000000000..cbff641af199
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/xlnx,logicpd-i2s.yaml
> @@ -0,0 +1,57 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/sound/xlnx,logicpd-i2s.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Device-Tree bindings for Xilinx logicPD I2S FPGA block
> +
> +maintainers:
> + - Miquel Raynal <miquel.raynal@bootlin.com>
> +
> +description: |
> + The IP supports I2S playback/capture audio. It acts as a slave and
> + clocks should come from the codec. It only supports two channels and
> + S16_LE format.
> +
> +properties:
> + compatible:
> + items:
> + - const: xlnx,logicpd-i2s
> +
> + reg:
> + maxItems: 1
> + description:
> + Base address and size of the IP core instance.
> +
> + interrupts:
> + minItems: 1
> + maxItems: 2
> + items:
> + - description: tx interrupt
> + - description: rx interrupt
> + description:
> + Either the Tx interruption or the Rx interruption or both.
The schema says either tx or both. Doesn't really matter here as it's
just numbers.
> +
> + interrupt-names:
> + minItems: 1
> + maxItems: 2
> + items:
> + - const: tx
> + - const: rx
But here it does matter.
The easiest way to express this is:
oneOf:
- items:
- enum: [ tx, rx ]
- items:
- const: tx
- const: rx
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - interrupts-controller
> +
> +examples:
> + - |
> + logii2s_dai: logii2s-dai@43c10000 {
> + reg = <0x43c10000 0x1000>;
> + compatible = "xlnx,logicpd-i2s-dai";
> + interrupt-parent = <&intc>;
> + interrupts = <0 29 IRQ_TYPE_LEVEL_HIGH>, <0 30 IRQ_TYPE_LEVEL_HIGH>;
> + interrupt-names = "rx", "tx";
> + };
> --
> 2.20.1
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2019-09-02 13:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-30 21:06 [PATCH 1/3] ASoC: xlnx: add Xilinx logicPD-I2S FPGA IP support Miquel Raynal
2019-08-30 21:06 ` [PATCH 2/3] dt-bindings: sound: Add Xilinx logicPD-I2S FPGA IP bindings Miquel Raynal
2019-09-02 13:39 ` Rob Herring [this message]
2019-09-02 13:51 ` Miquel Raynal
2019-09-02 14:24 ` Rob Herring
2019-08-30 21:06 ` [PATCH 3/3] MAINTAINERS: Add an entry for the Xilinx logicPD-I2S block Miquel Raynal
2019-09-02 7:39 ` [PATCH 1/3] ASoC: xlnx: add Xilinx logicPD-I2S FPGA IP support Michal Simek
2019-09-02 20:21 ` Miquel Raynal
2019-09-03 6:51 ` Michal Simek
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=20190902044231.GA17348@bogus \
--to=robh@kernel.org \
--cc=alexandre@bootlin.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=mark.rutland@arm.com \
--cc=michal.simek@xilinx.com \
--cc=miquel.raynal@bootlin.com \
--cc=perex@perex.cz \
--cc=thomas.petazzoni@bootlin.com \
--cc=tiwai@suse.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;
as well as URLs for NNTP newsgroup(s).