From: Rob Herring <robh@kernel.org>
To: Elinor Montmasson <elinor.montmasson@savoirfairelinux.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Shengjiu Wang <shengjiu.wang@gmail.com>,
Xiubo Li <Xiubo.Lee@gmail.com>,
Fabio Estevam <festevam@gmail.com>,
Nicolin Chen <nicoleotsuka@gmail.com>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
linux-sound@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org,
linuxppc-dev@lists.ozlabs.org,
Philip-Dylan <philip-dylan.gleonec@savoirfairelinux.com>
Subject: Re: [PATCHv3 RESEND 10/10] ASoC: dt-bindings: fsl-asoc-card: add compatible for generic codec
Date: Wed, 20 Dec 2023 16:25:50 -0600 [thread overview]
Message-ID: <20231220222550.GA1232936-robh@kernel.org> (raw)
In-Reply-To: <20231218124058.2047167-11-elinor.montmasson@savoirfairelinux.com>
On Mon, Dec 18, 2023 at 01:40:58PM +0100, Elinor Montmasson wrote:
> Add documentation about new dts bindings following new support
> for compatible "fsl,imx-audio-generic".
>
> Some CPU DAI don't require a real audio codec. The new compatible
> "fsl,imx-audio-generic" allows using the driver with codec drivers
> SPDIF DIT and SPDIF DIR as dummy codecs.
> It also allows using not pre-configured audio codecs which
> don't require specific control through a codec driver.
>
> The new dts properties give the possibility to set some parameters
> about the CPU DAI usually set through the codec configuration.
>
> Signed-off-by: Elinor Montmasson <elinor.montmasson@savoirfairelinux.com>
> Co-authored-by: Philip-Dylan Gleonec <philip-dylan.gleonec@savoirfairelinux.com>
> ---
> .../bindings/sound/fsl-asoc-card.txt | 28 ++++++++++++++++++-
> 1 file changed, 27 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt b/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt
> index 4e8dbc5abfd1..f137ef2154e3 100644
> --- a/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt
> +++ b/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt
> @@ -17,6 +17,9 @@ Note: The card is initially designed for those sound cards who use AC'97, I2S
> and PCM DAI formats. However, it'll be also possible to support those non
> AC'97/I2S/PCM type sound cards, such as S/PDIF audio and HDMI audio, as
> long as the driver has been properly upgraded.
> + To use CPU DAIs that do not require a codec such as an S/PDIF controller,
> + or to use a DAI to output or capture raw I2S/TDM data, you can
> + use the compatible "fsl,imx-audio-generic".
>
>
> The compatible list for this generic sound card currently:
> @@ -48,6 +51,8 @@ The compatible list for this generic sound card currently:
>
> "fsl,imx-audio-nau8822"
>
> + "fsl,imx-audio-generic"
> +
> Required properties:
>
> - compatible : Contains one of entries in the compatible list.
> @@ -56,7 +61,11 @@ Required properties:
>
> - audio-cpu : The phandle of an CPU DAI controller
>
> - - audio-codec : The phandle of an audio codec
> + - audio-codec : The phandle of an audio codec.
> + If using the "fsl,imx-audio-generic" compatible,
> + give instead a pair of phandles with the
> + spdif_transmitter first (driver SPDIF DIT) and the
> + spdif_receiver second (driver SPDIF DIR).
>
> Optional properties:
>
> @@ -87,6 +96,23 @@ Optional properties:
> - frame-inversion : dai-link uses frame clock inversion, for details see simple-card.yaml.
> - bitclock-inversion : dai-link uses bit clock inversion, for details see simple-card.yaml.
> - mclk-id : main clock id, specific for each card configuration.
> + For multi-codec configurations, an array of ids can be
> + given, one for each codec.
> +
> +Optional, relevant only with the "fsl,imx-audio-generic" compatible:
> +
> + - cpu-slot-width : Indicates a specific TDM slot width in bits.
> + - cpu-slot-num : Indicates a specific number of TDM slots per frame.
Pretty sure I've seen other bindings with TDM slot properties. A sign we
need something common if we don't already have something.
> +
> + - cpu-sysclk-freq-rx : Frequency of the CPU DAI sys clock for Rx.
> + - cpu-sysclk-freq-tx : Frequency of the CPU DAI sys clock for Tx.
> +
> + - cpu-sysclk-dir-rx-out : Boolean property. Specifies sys clock direction
> + as 'out' on initialization for Rx.
> + If not set, default direction is 'in'.
> + - cpu-sysclk-dir-tx-out : Boolean property. Specifies sys clock direction
> + as 'out' on initialization for Tx.
> + If not set, default direction is 'in'.
Looks like clock stuff. Use the clock binding.
Rob
WARNING: multiple messages have this Message-ID (diff)
From: Rob Herring <robh@kernel.org>
To: Elinor Montmasson <elinor.montmasson@savoirfairelinux.com>
Cc: devicetree@vger.kernel.org, Conor Dooley <conor+dt@kernel.org>,
linuxppc-dev@lists.ozlabs.org, alsa-devel@alsa-project.org,
Xiubo Li <Xiubo.Lee@gmail.com>,
Fabio Estevam <festevam@gmail.com>, Takashi Iwai <tiwai@suse.com>,
Liam Girdwood <lgirdwood@gmail.com>,
linux-sound@vger.kernel.org, Jaroslav Kysela <perex@perex.cz>,
Nicolin Chen <nicoleotsuka@gmail.com>,
Mark Brown <broonie@kernel.org>,
Philip-Dylan <philip-dylan.gleonec@savoirfairelinux.com>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Shengjiu Wang <shengjiu.wang@gmail.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCHv3 RESEND 10/10] ASoC: dt-bindings: fsl-asoc-card: add compatible for generic codec
Date: Wed, 20 Dec 2023 16:25:50 -0600 [thread overview]
Message-ID: <20231220222550.GA1232936-robh@kernel.org> (raw)
In-Reply-To: <20231218124058.2047167-11-elinor.montmasson@savoirfairelinux.com>
On Mon, Dec 18, 2023 at 01:40:58PM +0100, Elinor Montmasson wrote:
> Add documentation about new dts bindings following new support
> for compatible "fsl,imx-audio-generic".
>
> Some CPU DAI don't require a real audio codec. The new compatible
> "fsl,imx-audio-generic" allows using the driver with codec drivers
> SPDIF DIT and SPDIF DIR as dummy codecs.
> It also allows using not pre-configured audio codecs which
> don't require specific control through a codec driver.
>
> The new dts properties give the possibility to set some parameters
> about the CPU DAI usually set through the codec configuration.
>
> Signed-off-by: Elinor Montmasson <elinor.montmasson@savoirfairelinux.com>
> Co-authored-by: Philip-Dylan Gleonec <philip-dylan.gleonec@savoirfairelinux.com>
> ---
> .../bindings/sound/fsl-asoc-card.txt | 28 ++++++++++++++++++-
> 1 file changed, 27 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt b/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt
> index 4e8dbc5abfd1..f137ef2154e3 100644
> --- a/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt
> +++ b/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt
> @@ -17,6 +17,9 @@ Note: The card is initially designed for those sound cards who use AC'97, I2S
> and PCM DAI formats. However, it'll be also possible to support those non
> AC'97/I2S/PCM type sound cards, such as S/PDIF audio and HDMI audio, as
> long as the driver has been properly upgraded.
> + To use CPU DAIs that do not require a codec such as an S/PDIF controller,
> + or to use a DAI to output or capture raw I2S/TDM data, you can
> + use the compatible "fsl,imx-audio-generic".
>
>
> The compatible list for this generic sound card currently:
> @@ -48,6 +51,8 @@ The compatible list for this generic sound card currently:
>
> "fsl,imx-audio-nau8822"
>
> + "fsl,imx-audio-generic"
> +
> Required properties:
>
> - compatible : Contains one of entries in the compatible list.
> @@ -56,7 +61,11 @@ Required properties:
>
> - audio-cpu : The phandle of an CPU DAI controller
>
> - - audio-codec : The phandle of an audio codec
> + - audio-codec : The phandle of an audio codec.
> + If using the "fsl,imx-audio-generic" compatible,
> + give instead a pair of phandles with the
> + spdif_transmitter first (driver SPDIF DIT) and the
> + spdif_receiver second (driver SPDIF DIR).
>
> Optional properties:
>
> @@ -87,6 +96,23 @@ Optional properties:
> - frame-inversion : dai-link uses frame clock inversion, for details see simple-card.yaml.
> - bitclock-inversion : dai-link uses bit clock inversion, for details see simple-card.yaml.
> - mclk-id : main clock id, specific for each card configuration.
> + For multi-codec configurations, an array of ids can be
> + given, one for each codec.
> +
> +Optional, relevant only with the "fsl,imx-audio-generic" compatible:
> +
> + - cpu-slot-width : Indicates a specific TDM slot width in bits.
> + - cpu-slot-num : Indicates a specific number of TDM slots per frame.
Pretty sure I've seen other bindings with TDM slot properties. A sign we
need something common if we don't already have something.
> +
> + - cpu-sysclk-freq-rx : Frequency of the CPU DAI sys clock for Rx.
> + - cpu-sysclk-freq-tx : Frequency of the CPU DAI sys clock for Tx.
> +
> + - cpu-sysclk-dir-rx-out : Boolean property. Specifies sys clock direction
> + as 'out' on initialization for Rx.
> + If not set, default direction is 'in'.
> + - cpu-sysclk-dir-tx-out : Boolean property. Specifies sys clock direction
> + as 'out' on initialization for Tx.
> + If not set, default direction is 'in'.
Looks like clock stuff. Use the clock binding.
Rob
next prev parent reply other threads:[~2023-12-20 22:26 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-18 12:40 [PATCHv3 RESEND 00/10] ASoC: fsl-asoc-card: compatibility integration of a generic codec use case for use with S/PDIF controller Elinor Montmasson
2023-12-18 12:40 ` Elinor Montmasson
2023-12-18 12:40 ` [PATCHv3 RESEND 01/10] ASoC: fsl-asoc-card: add support for dai links with multiple codecs Elinor Montmasson
2023-12-18 12:40 ` Elinor Montmasson
2023-12-18 12:40 ` [PATCHv3 RESEND 02/10] ASoC: fsl-asoc-card: add second dai link component for codecs Elinor Montmasson
2023-12-18 12:40 ` Elinor Montmasson
2023-12-18 12:40 ` [PATCHv3 RESEND 03/10] ASoC: fsl-asoc-card: add compatibility to use 2 codecs in dai-links Elinor Montmasson
2023-12-18 12:40 ` Elinor Montmasson
2023-12-18 12:40 ` [PATCHv3 RESEND 04/10] ASoC: fsl-asoc-card: add new compatible for a generic codec use case Elinor Montmasson
2023-12-18 12:40 ` Elinor Montmasson
2023-12-18 12:40 ` [PATCHv3 RESEND 05/10] ASoC: fsl-asoc-card: set generic codec as clock provider Elinor Montmasson
2023-12-18 12:40 ` Elinor Montmasson
2023-12-18 12:40 ` [PATCHv3 RESEND 06/10] ASoC: fsl-asoc-card: add dts property "cpu-slot-width" Elinor Montmasson
2023-12-18 12:40 ` Elinor Montmasson
2023-12-18 12:40 ` [PATCHv3 RESEND 07/10] ASoC: fsl-asoc-card: add dts property "cpu-slot-num" Elinor Montmasson
2023-12-18 12:40 ` Elinor Montmasson
2023-12-18 12:40 ` [PATCHv3 RESEND 08/10] ASoC: fsl-asoc-card: add dts properties "cpu-sysclk-freq" Elinor Montmasson
2023-12-18 12:40 ` Elinor Montmasson
2023-12-18 12:40 ` [PATCHv3 RESEND 09/10] ASoC: fsl-asoc-card: add dts properties "cpu-sysclk-dir-out" Elinor Montmasson
2023-12-18 12:40 ` Elinor Montmasson
2023-12-18 12:40 ` [PATCHv3 RESEND 10/10] ASoC: dt-bindings: fsl-asoc-card: add compatible for generic codec Elinor Montmasson
2023-12-18 12:40 ` Elinor Montmasson
2023-12-20 22:25 ` Rob Herring [this message]
2023-12-20 22:25 ` Rob Herring
2024-01-02 11:37 ` Elinor Montmasson
2024-01-02 11:37 ` Elinor Montmasson
2023-12-18 12:46 ` [PATCHv3 RESEND 00/10] ASoC: fsl-asoc-card: compatibility integration of a generic codec use case for use with S/PDIF controller Krzysztof Kozlowski
2023-12-18 12:46 ` Krzysztof Kozlowski
2023-12-18 13:54 ` Daniel Baluta
2023-12-18 13:54 ` Daniel Baluta
2023-12-19 12:39 ` Elinor Montmasson
2023-12-19 12:39 ` Elinor Montmasson
2023-12-29 13:45 ` Elinor Montmasson
2023-12-29 13:45 ` Elinor Montmasson
2024-01-16 11:41 ` Daniel Baluta
2024-01-16 11:41 ` Daniel Baluta
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=20231220222550.GA1232936-robh@kernel.org \
--to=robh@kernel.org \
--cc=Xiubo.Lee@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=elinor.montmasson@savoirfairelinux.com \
--cc=festevam@gmail.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=nicoleotsuka@gmail.com \
--cc=perex@perex.cz \
--cc=philip-dylan.gleonec@savoirfairelinux.com \
--cc=shengjiu.wang@gmail.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 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.