From: Conor Dooley <conor@kernel.org>
To: Xingyu Wu <xingyu.wu@starfivetech.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
Claudiu Beznea <Claudiu.Beznea@microchip.com>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor.dooley@microchip.com>,
Walker Chen <walker.chen@starfivetech.com>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
alsa-devel@alsa-project.org, linux-sound@vger.kernel.org
Subject: Re: [PATCH v1 1/2] dt-bindings: ASoC: Add Cadence I2S controller for StarFive JH8100 SoC
Date: Thu, 21 Dec 2023 13:53:00 +0000 [thread overview]
Message-ID: <20231221-saddlebag-tricolor-d02a17d66795@spud> (raw)
In-Reply-To: <20231221033223.73201-2-xingyu.wu@starfivetech.com>
[-- Attachment #1: Type: text/plain, Size: 4112 bytes --]
Xingyu, Mark,
On Thu, Dec 21, 2023 at 11:32:22AM +0800, Xingyu Wu wrote:
> Add bindings for the Multi-Channel I2S controller of Cadence
> on the StarFive JH8100 SoC.
>
> Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
> ---
> .../bindings/sound/cdns,jh8100-i2s.yaml | 100 ++++++++++++++++++
> 1 file changed, 100 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/sound/cdns,jh8100-i2s.yaml
>
> diff --git a/Documentation/devicetree/bindings/sound/cdns,jh8100-i2s.yaml b/Documentation/devicetree/bindings/sound/cdns,jh8100-i2s.yaml
> new file mode 100644
> index 000000000000..5d95d9ab3e45
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/cdns,jh8100-i2s.yaml
> @@ -0,0 +1,100 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/sound/cdns,jh8100-i2s.yaml#
Filename matching the compatible please.
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Cadence multi-channel I2S controller for StarFive JH8100 SoC
> +
> +description: |
You only need the | if there is formatting to preserve.
> + The Cadence I2S Controller implements a function of the multi-channel
> + (up to 8-channel) bus. It combines functions of a transmitter and a receiver.
> + It is used in the StarFive JH8100 SoC.
> +
> +maintainers:
> + - Xingyu Wu <xingyu.wu@starfivetech.com>
> + - Walker Chen <walker.chen@starfivetech.com>
> +
> +properties:
> + compatible:
> + const: starfive,jh8100-i2s
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + description: |
> + The interrupt line number for the I2S controller. Add this
> + parameter if the I2S controller that you are using does not
> + support DMA.
You've got one i2s controller here, you should know if it supports DMA
or not.
> + maxItems: 1
> +
> + clocks:
> + items:
> + - description: Bit clock
> + - description: Main ICG clock
> + - description: Inner master clock
> +
> + clock-names:
> + items:
> + - const: bclk
> + - const: icg
> + - const: mclk_inner
> +
> + resets:
> + maxItems: 1
> +
> + dmas:
> + items:
> + - description: TX DMA Channel
> + - description: RX DMA Channel
> + minItems: 1
> +
> + dma-names:
> + items:
> + - const: tx
> + - const: rx
> + minItems: 1
> +
> + cdns,i2s-max-channels:
> + description: |
> + Number of I2S max stereo channels supported by the hardware.
> + $ref: /schemas/types.yaml#/definitions/uint32
> + minimum: 1
> + maximum: 8
Mark, is there no common property for this kind of thing? That said,
there's one device here so the number is known at present.
Another note, this property is not required, so it should have a
default.
It's kinda hard to know with this binding - it is touted as being for a
particular Cadence IP, and some aspects are pretty generic, but at the
same time there's only one device here so it's hard to tell what is
variable between implementations and what is not.
Are there no other implementations of this controller? Unless it is
brand new, I find that hard to believe.
Cheers,
Conor.
> +
> + "#sound-dai-cells":
> + const: 0
> +
> +required:
> + - compatible
> + - reg
> + - clocks
> + - clock-names
> + - resets
> +
> +oneOf:
> + - required:
> + - dmas
> + - dma-names
> + - required:
> + - interrupts
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + i2s@122b0000 {
> + compatible = "starfive,jh8100-i2s";
> + reg = <0x122b0000 0x1000>;
> + clocks = <&syscrg_ne 133>,
> + <&syscrg_ne 170>,
> + <&syscrg 50>;
> + clock-names = "bclk", "icg",
> + "mclk_inner";
> + resets = <&syscrg_ne 43>;
> + dmas = <&dma 7>, <&dma 6>;
> + dma-names = "tx", "rx";
> + cdns,i2s-max-channels = <2>;
> + #sound-dai-cells = <0>;
> + };
> --
> 2.25.1
>
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2023-12-21 13:53 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-21 3:32 [PATCH v1 0/2] Add Cadence I2S controller driver for the Xingyu Wu
2023-12-21 3:32 ` [PATCH v1 1/2] dt-bindings: ASoC: Add Cadence I2S controller for StarFive JH8100 SoC Xingyu Wu
2023-12-21 13:53 ` Conor Dooley [this message]
2023-12-21 13:58 ` Mark Brown
2023-12-22 9:55 ` Xingyu Wu
2023-12-22 13:03 ` Mark Brown
2023-12-29 8:30 ` Xingyu Wu
2023-12-22 9:44 ` Xingyu Wu
2023-12-21 16:07 ` Krzysztof Kozlowski
2023-12-22 9:56 ` Xingyu Wu
2023-12-21 3:32 ` [PATCH v1 2/2] ASoC: starfive: Add drivers of Cadence Multi-Channel I2S Controller Xingyu Wu
2023-12-21 12:55 ` Mark Brown
2023-12-22 9:11 ` Xingyu Wu
2023-12-22 12:39 ` Mark Brown
2023-12-29 8:31 ` Xingyu Wu
2023-12-22 21:32 ` kernel test robot
2023-12-23 11:54 ` kernel test robot
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=20231221-saddlebag-tricolor-d02a17d66795@spud \
--to=conor@kernel.org \
--cc=Claudiu.Beznea@microchip.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=conor.dooley@microchip.com \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=robh+dt@kernel.org \
--cc=tiwai@suse.com \
--cc=walker.chen@starfivetech.com \
--cc=xingyu.wu@starfivetech.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
all inboxes | Powered by JetHome®