public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Alexey Klimov" <alexey.klimov@linaro.org>
To: "Krzysztof Kozlowski" <krzk@kernel.org>
Cc: <broonie@kernel.org>, <konradybcio@kernel.org>,
	<konrad.dybcio@oss.qualcomm.com>, <andersson@kernel.org>,
	<srinivas.kandagatla@linaro.org>, <tiwai@suse.com>,
	<lgirdwood@gmail.com>, <perex@perex.cz>, <robh@kernel.org>,
	<krzk+dt@kernel.org>, <conor+dt@kernel.org>,
	<dmitry.baryshkov@linaro.org>, <linux-sound@vger.kernel.org>,
	<linux-arm-msm@vger.kernel.org>, <devicetree@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v1 06/10] ASoC: dt-bindings: add wsa881x-i2c binding for analog mode
Date: Wed, 11 Dec 2024 20:35:21 +0000	[thread overview]
Message-ID: <D695QHHBLGUF.7HOOI1E8RMTS@linaro.org> (raw)
In-Reply-To: <woeeh7cosv47z4ckqbomfc3rqqxfolyfycgcz32do2yadg7xdj@geqank3dp55t>

On Fri Nov 1, 2024 at 7:57 AM GMT, Krzysztof Kozlowski wrote:
> On Fri, Nov 01, 2024 at 05:31:50AM +0000, Alexey Klimov wrote:
> > Add binding document for WSA881X family of smart speaker amplifiers
> > that set to work in analog mode only and configurable via i2c only.
> > Such devices are found in Qualcomm QRB4210 RB2 boards with
> > SM4250/SM6115 SoCs.
> > 
> > Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> > Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> > Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org>
> > ---
> >  .../bindings/sound/qcom,wsa881x-i2c.yaml      | 103 ++++++++++++++++++
> >  1 file changed, 103 insertions(+)
> >  create mode 100644 Documentation/devicetree/bindings/sound/qcom,wsa881x-i2c.yaml
> > 
> > diff --git a/Documentation/devicetree/bindings/sound/qcom,wsa881x-i2c.yaml b/Documentation/devicetree/bindings/sound/qcom,wsa881x-i2c.yaml
> > new file mode 100644
> > index 000000000000..51b040b134d2
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/sound/qcom,wsa881x-i2c.yaml
>
> Filename must match compatible.
>
> > @@ -0,0 +1,103 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/sound/qcom,wsa881x-i2c.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: Qualcomm WSA8810/WSA8815 Class-D Smart Speaker Amplifier in Analog mode
> > +
> > +maintainers:
> > +  - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> > +  - Alexey Klimov <alexey.klimov@linaro.org>
> > +
> > +description: |
> > +  WSA8810 is a class-D smart speaker amplifier and WSA8815
> > +  is a high-output power class-D smart speaker amplifier.
> > +  Their primary operating mode uses a SoundWire digital audio
> > +  interface however the amplifier also supports analog mode and it
> > +  can be controlled via I2C. This binding is for I2C interface.
> > +
> > +allOf:
> > +  - $ref: dai-common.yaml#
> > +
> > +properties:
> > +  compatible:
> > +    const: qcom,qrb4210-wsa881x-i2c-codec
>
> qrb4210 is a name of a board, not codec. i2c is redundant, codec as
> well. 'x' is not allowed.

qcom,qrb4210-wsa881x-i2c-codec came from qcom-soc.yaml with the advice
that it should be qcom,SoC-IP.

Anyway I am working on updating the qcom,wsa881x.yaml as you pointed out
in another email.

> This is qcom,wsa8810 and qcom,wsa8815 compatible with it.
>

[..]

> > +
> > +      wsa881x@e {
>
> Node names should be generic. See also an explanation and list of
> examples (not exhaustive) in DT specification:
> https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation

The best I can come up with is "amplifier", or it should be at least "codec'.

Thanks for the review!
Best regards,
Alexey

  parent reply	other threads:[~2024-12-11 20:35 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-01  5:31 [PATCH v1 00/10] qrb4210-rb2: add wsa/wcd audio playback support Alexey Klimov
2024-11-01  5:31 ` [PATCH v1 01/10] arm64: dts: qcom: sm6115: add LPASS devices Alexey Klimov
2024-11-01  5:31 ` [PATCH v1 02/10] arm64: dts: qcom: sm4250: add description of soundwire pins Alexey Klimov
2024-11-01  5:31 ` [PATCH v1 03/10] arm64: dts: qcom: qrb4210-rb2: add wcd937x codec support Alexey Klimov
2024-11-01  7:59   ` Krzysztof Kozlowski
2024-12-11 20:37     ` Alexey Klimov
2024-11-01  5:31 ` [PATCH v1 04/10] ASoC: codecs: wsa881x: split into common and soundwire drivers Alexey Klimov
2024-11-01  5:31 ` [PATCH v1 05/10] dt-bindings: arm: qcom-soc: extend pattern matching for QRB4210/QRB2210 SoCs Alexey Klimov
2024-11-01  7:54   ` Krzysztof Kozlowski
2024-12-11 20:12     ` Alexey Klimov
2024-11-01  5:31 ` [PATCH v1 06/10] ASoC: dt-bindings: add wsa881x-i2c binding for analog mode Alexey Klimov
2024-11-01  7:57   ` Krzysztof Kozlowski
2024-11-01  8:00     ` Krzysztof Kozlowski
2024-12-11 20:35     ` Alexey Klimov [this message]
2024-12-12  7:23       ` Krzysztof Kozlowski
2024-11-01  5:31 ` [PATCH v1 07/10] ASoC: codecs: add wsa881x-i2c amplifier codec driver Alexey Klimov
2024-11-01  8:12   ` Krzysztof Kozlowski
2024-11-01 13:12     ` Mark Brown
2024-11-01 13:53       ` Krzysztof Kozlowski
2024-11-01 14:03         ` Mark Brown
2024-12-11 21:17     ` Alexey Klimov
2024-11-01 12:02   ` Rob Herring
2024-11-01  5:31 ` [PATCH v1 08/10] arm64: dts: qcom: qrb4210-rb2: enable wsa881x amplifier Alexey Klimov
2024-11-01  8:14   ` Krzysztof Kozlowski
2024-12-12  0:46     ` Alexey Klimov
2024-11-02  9:30   ` Konrad Dybcio
2024-12-11 23:18     ` Alexey Klimov
2024-11-01  5:31 ` [PATCH v1 09/10] arm64: dts: qcom: qrb4210-rb2: add WSA audio playback support Alexey Klimov
2024-11-01  5:31 ` [PATCH v1 10/10] ASoC: qcom: sm8250: force single channel via RX_1 output Alexey Klimov
2024-11-04 11:19   ` Konrad Dybcio

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=D695QHHBLGUF.7HOOI1E8RMTS@linaro.org \
    --to=alexey.klimov@linaro.org \
    --cc=andersson@kernel.org \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=konrad.dybcio@oss.qualcomm.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=robh@kernel.org \
    --cc=srinivas.kandagatla@linaro.org \
    --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