From: "Nuno Sá" <noname.nuno@gmail.com>
To: Krzysztof Kozlowski <krzk@kernel.org>, Nuno Sa <nuno.sa@analog.com>
Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>,
Lars-Peter Clausen <lars@metafoo.de>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Subject: Re: [PATCH 2/4] ASoC: dt-bindings: document the adau1373 Codec
Date: Tue, 22 Oct 2024 08:42:50 +0200 [thread overview]
Message-ID: <a38c5d3e4f1cdf90f53b8c17ef7508faaf760f89.camel@gmail.com> (raw)
In-Reply-To: <pj5clifybfwljpq3usfgca7cy54xpmzngdckyb53wc3u4lts53@gtm2mbuiiudw>
On Tue, 2024-10-22 at 08:06 +0200, Krzysztof Kozlowski wrote:
> On Mon, Oct 21, 2024 at 03:46:46PM +0200, Nuno Sa wrote:
> > Describe the adau1373 Low Power Codec with Speaker and
> > Headphone Amplifier.
> >
> > While at it, properly add a MAINTAINERS entry for ADI sound bindings.
> >
> > Signed-off-by: Nuno Sa <nuno.sa@analog.com>
> > ---
> > .../devicetree/bindings/sound/adi,adau1373.yaml | 102
> > +++++++++++++++++++++
> > MAINTAINERS | 1 +
> > 2 files changed, 103 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/sound/adi,adau1373.yaml
> > b/Documentation/devicetree/bindings/sound/adi,adau1373.yaml
> > new file mode 100644
> > index
> > 0000000000000000000000000000000000000000..b2b5b2226ed7b354f2fb7871c17272b347
> > 921fa5
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/sound/adi,adau1373.yaml
> > @@ -0,0 +1,102 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/sound/adi,adau1373.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +
>
> Just one blank line
>
> > +title: Analog Devices ADAU1373 CODEC
> > +
> > +maintainers:
> > + - Nuno Sá <nuno.sa@analog.com>
> > +
> > +description: |
> > + Analog Devices ADAU1373 Low power codec with speaker and headphone
> > amplifiers.
> > +
> > https://www.analog.com/media/en/technical-documentation/data-sheets/ADAU1373.pdf
> > +
> > +allOf:
> > + - $ref: dai-common.yaml#
> > +
> > +properties:
> > + compatible:
> > + enum:
> > + - adi,adau1373
> > +
> > + reg:
> > + maxItems: 1
> > +
> > + "#sound-dai-cells":
> > + const: 0
> > +
> > + powerdown-gpios:
> > + description: GPIO used for hardware power-down.
> > + maxItems: 1
> > +
> > + adi,micbias1-microvolt:
> > + description:
> > + This property sets the microphone bias voltage for the first
> > microphone.
> > + enum: [1800000, 2200000, 2600000, 2900000]
> > + default: 2900000
> > +
> > + adi,micbias2-microvolt:
> > + description:
> > + This property sets the microphone bias voltage for the second
> > microphone.
> > + enum: [1800000, 2200000, 2600000, 2900000]
> > + default: 2900000
> > +
> > + adi,input1-differential:
> > + description: This property sets the first analog input as differential.
> > + type: boolean
> > +
> > + adi,input2-differential:
> > + description: This property sets the second analog input as
> > differential.
> > + type: boolean
> > +
> > + adi,input3-differential:
> > + description: This property sets the third analog input as differential.
> > + type: boolean
> > +
> > + adi,input4-differential:
> > + description: This property sets the fourth analog input as
> > differential.
> > + type: boolean
> > +
> > + adi,lineout-differential:
> > + description: This property sets the line output as differential.
> > + type: boolean
> > +
> > + adi,lineout-gnd-sense:
> > + description: This property enables the line output ground sense
> > control.
> > + type: boolean
> > +
> > + adi,drc-settings:
> > + description:
> > + This setting is used to control the dynamic range of the signal. The
> > + device provides a maximum of three full band DRCs with 13 entries
> > each.
> > + $ref: /schemas/types.yaml#/definitions/uint8-array
> > + oneOf:
> > + - minItems: 13
> > + - minItems: 26
> > + - minItems: 39
>
> and maxItems?
Hmm, I had the idea that if maxItems was omitted, then it's the same as
minItems? Because that's the intent... We can either have an array of 13, 26 or
39 entries.
>
> > +
> > +required:
> > + - "#sound-dai-cells"
> > + - compatible
> > + - reg
> > +
> > +unevaluatedProperties: false
> > +
> > +examples:
> > + - |
> > + #include <dt-bindings/gpio/gpio.h>
> > +
> > + i2c {
> > + #address-cells = <1>;
> > + #size-cells = <0>;
> > + audio-codec@1a {
> > + compatible = "adi,adau1373";
>
> Messed indentation.
WIll fix. Normally my IDE handles this pretty well...
>
> > + reg = <0x1a>;
> > + #sound-dai-cells = <0>;
> > + powerdown-gpios = <&gpio 100 GPIO_ACTIVE_LOW>;
>
> Extend the example, you have like 10 unused properties.
Will do
Thanks!
- Nuno Sá
next prev parent reply other threads:[~2024-10-22 6:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-21 13:46 [PATCH 0/4] ASoC: codecs: adau1373: drop platform data Nuno Sa
2024-10-21 13:46 ` [PATCH 1/4] ASoC: codecs: adau1373: add some kconfig text Nuno Sa
2024-10-21 13:46 ` [PATCH 2/4] ASoC: dt-bindings: document the adau1373 Codec Nuno Sa
2024-10-22 6:06 ` Krzysztof Kozlowski
2024-10-22 6:42 ` Nuno Sá [this message]
2024-10-26 18:14 ` Krzysztof Kozlowski
2024-10-28 14:10 ` Nuno Sá
2024-10-21 13:46 ` [PATCH 3/4] ASoC: codecs: adau1373: drop patform_data Nuno Sa
2024-10-21 13:46 ` [PATCH 4/4] ASoC: codecs: adau1373: add powerdown gpio Nuno Sa
2024-10-21 15:30 ` Mark Brown
2024-10-22 6:39 ` Nuno Sá
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=a38c5d3e4f1cdf90f53b8c17ef7508faaf760f89.camel@gmail.com \
--to=noname.nuno@gmail.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=lars@metafoo.de \
--cc=lgirdwood@gmail.com \
--cc=linux-sound@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=perex@perex.cz \
--cc=robh@kernel.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;
as well as URLs for NNTP newsgroup(s).