From: Krzysztof Kozlowski <krzk@kernel.org>
To: Animesh Agarwal <animeshagarwal28@gmail.com>
Cc: Daniel Baluta <daniel.baluta@nxp.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Shawn Guo <shawnguo@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
linux-sound@vger.kernel.org, devicetree@vger.kernel.org,
imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ASoC: dt-bindings: fsl,imx-audio-sgtl5000: Convert to dtschema
Date: Sun, 23 Jun 2024 09:08:29 +0200 [thread overview]
Message-ID: <268a722a-c2e8-42fe-9cae-104e3f082a0a@kernel.org> (raw)
In-Reply-To: <20240622182200.245339-1-animeshagarwal28@gmail.com>
On 22/06/2024 20:21, Animesh Agarwal wrote:
> Convert the imx-audio-sgtl bindings to DT schema. Make bindings complete
> by adding audio-cpu property.
On what basis? Who needs or uses audio-cpu? Driver? DTS? Both? If only
DTS, then is it needed? Maybe not?
>
> Signed-off-by: Animesh Agarwal <animeshagarwal28@gmail.com>
> Cc: Daniel Baluta <daniel.baluta@nxp.com>
> ---
> .../sound/fsl,imx-audio-sgtl5000.yaml | 108 ++++++++++++++++++
> .../bindings/sound/imx-audio-sgtl5000.txt | 56 ---------
> 2 files changed, 108 insertions(+), 56 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/sound/fsl,imx-audio-sgtl5000.yaml
> delete mode 100644 Documentation/devicetree/bindings/sound/imx-audio-sgtl5000.txt
>
> diff --git a/Documentation/devicetree/bindings/sound/fsl,imx-audio-sgtl5000.yaml b/Documentation/devicetree/bindings/sound/fsl,imx-audio-sgtl5000.yaml
> new file mode 100644
> index 000000000000..906dcecb73b7
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/fsl,imx-audio-sgtl5000.yaml
> @@ -0,0 +1,108 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/sound/fsl,imx-audio-sgtl5000.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Freescale i.MX audio complex with SGTL5000 codec
> +
> +maintainers:
> + - Animesh Agarwal <animeshagarwal28@gmail.com>
> +
> +properties:
> + compatible:
> + oneOf:
> + - items:
> + - enum:
> + - fsl,imx25-pdk-sgtl5000
> + - fsl,imx51-babbage-sgtl5000
> + - fsl,imx53-m53evk-sgtl5000
> + - tq,imx53-mba53-sgtl5000
> + - fsl,imx53-cpuvo-sgtl5000
> + - fsl,imx53-qsb-sgtl5000
> + - karo,tx53-audio-sgtl5000
Keep list ordered alphabetically.
> + - fsl,imx53-voipac-sgtl5000
> + - fsl,imx6q-ba16-sgtl5000
> + - fsl,imx6q-ventana-sgtl5000
> + - fsl,imx-sgtl5000
> + - fsl,imx6-armadeus-sgtl5000
> + - fsl,imx6dl-nit6xlite-sgtl5000
> + - fsl,imx6q-nitrogen6_max-sgtl5000
> + - fsl,imx6q-nitrogen6_som2-sgtl5000
> + - fsl,imx6q-nitrogen6x-sgtl5000
> + - fsl,imx6-rex-sgtl5000
> + - fsl,imx6q-sabrelite-sgtl5000
> + - fsl,imx6-wandboard-sgtl5000
None of these were in the old binding and commit msg mentions only
audio-cpu. From where do you get these?
> + - const: fsl,imx-audio-sgtl5000
> + - const: fsl,imx-audio-sgtl5000
> +
> + model:
> + $ref: /schemas/types.yaml#/definitions/string
> + description: The user-visible name of this sound complex.
> +
> + audio-cpu:
> + $ref: /schemas/types.yaml#/definitions/phandle
> + description: The phandle of an CPU DAI controller
> +
> + ssi-controller:
> + $ref: /schemas/types.yaml#/definitions/phandle
> + description: The phandle of the i.MX SSI controller.
> +
> + audio-codec:
> + $ref: /schemas/types.yaml#/definitions/phandle
> + description: The phandle of the SGTL5000 audio codec.
> +
> + audio-routing:
> + $ref: /schemas/types.yaml#/definitions/non-unique-string-array
> + description: |
> + A list of the connections between audio components. Each entry is a pair
> + of strings, the first being the connection's sink, the second being the
> + connection's source. Valid names could be:
> +
> + Power supplies:
> + * Mic Bias
> +
> + SGTL5000 pins:
> + * MIC_IN
> + * LINE_IN
> + * HP_OUT
> + * LINE_OUT
> +
> + Board connectors:
> + * Mic Jack
> + * Line In Jack
> + * Headphone Jack
> + * Line Out Jack
> + * Ext Spk
> +
> + mux-int-port:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description: The internal port of the i.MX audio muxer (AUDMUX).
> + enum: [1, 2]
default:
> +
> + mux-ext-port:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description: The external port of the i.MX audio muxer.
> + enum: [3, 4, 5, 6]
defaukt:
> +
> +required:
> + - compatible
> + - model
Several other properties were required. Why changing this? Please
explain in commit msg all changes done to the binding comparing to pure
conversion.
Best regards,
Krzysztof
next prev parent reply other threads:[~2024-06-23 7:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-22 18:21 [PATCH] ASoC: dt-bindings: fsl,imx-audio-sgtl5000: Convert to dtschema Animesh Agarwal
2024-06-23 7:08 ` Krzysztof Kozlowski [this message]
2024-07-05 12:24 ` 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=268a722a-c2e8-42fe-9cae-104e3f082a0a@kernel.org \
--to=krzk@kernel.org \
--cc=animeshagarwal28@gmail.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=daniel.baluta@nxp.com \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
/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).