From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Jai Luthra <j-luthra@ti.com>, Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
alsa-devel@alsa-project.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] dt-bindings: sound: tlv320aic3x: Convert to dtschema
Date: Thu, 4 Aug 2022 13:23:38 +0200 [thread overview]
Message-ID: <10887a45-cd28-8396-b3e7-745e22e00c27@linaro.org> (raw)
In-Reply-To: <20220803151726.31628-1-j-luthra@ti.com>
On 03/08/2022 17:17, Jai Luthra wrote:
> Convert bindings for TI's TLV320AIC3x audio codecs to dtschema.
>
> Signed-off-by: Jai Luthra <j-luthra@ti.com>
> ---
> .../bindings/sound/ti,tlv320aic3x.yaml | 158 ++++++++++++++++++
> .../devicetree/bindings/sound/tlv320aic3x.txt | 97 -----------
> 2 files changed, 158 insertions(+), 97 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/sound/ti,tlv320aic3x.yaml
> delete mode 100644 Documentation/devicetree/bindings/sound/tlv320aic3x.txt
>
> diff --git a/Documentation/devicetree/bindings/sound/ti,tlv320aic3x.yaml b/Documentation/devicetree/bindings/sound/ti,tlv320aic3x.yaml
> new file mode 100644
> index 000000000000..f0ed856162ea
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/ti,tlv320aic3x.yaml
> @@ -0,0 +1,158 @@
> +# SPDX-License-Identifier: GPL-2.0
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/sound/ti,tlv320aic3x.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Texas Instruments TLV320AIC3x Codec
> +
> +description: |
> + TLV320AIC3x are a series of low-power stereo audio codecs with stereo
> + headphone amplifier, as well as multiple inputs and outputs programmable in
> + single-ended or fully differential configurations.
> +
> + The serial control bus supports SPI or I2C protocols, while the serial audio
> + data bus is programmable for I2S, left/right-justified, DSP, or TDM modes.
> +
> + The following pins can be referred in the sound node's audio routing property:
> +
> + CODEC output pins:
> + LLOUT
> + RLOUT
> + MONO_LOUT
> + HPLOUT
> + HPROUT
> + HPLCOM
> + HPRCOM
> +
> + CODEC input pins for TLV320AIC3104:
> + MIC2L
> + MIC2R
> + LINE1L
> + LINE1R
> +
> + CODEC input pins for other compatible codecs:
> + MIC3L
> + MIC3R
> + LINE1L
> + LINE2L
> + LINE1R
> + LINE2R
> +
> +maintainers:
> + - Jai Luthra <j-luthra@ti.com>
> +
> +properties:
> + compatible:
> + enum:
> + - ti,tlv320aic3x
> + - ti,tlv320aic33
> + - ti,tlv320aic3007
> + - ti,tlv320aic3106
> + - ti,tlv320aic3104
> +
> + reg:
> + maxItems: 1
> +
> + reset-gpios:
> + maxItems: 1
> + description:
> + GPIO specification for the active low RESET input.
> +
> + gpio-reset:
> + maxItems: 1
> + description:
> + Deprecated, please use reset-gpios instead.
> + deprecated: true
> +
> + ai3x-gpio-func:
> + description: AIC3X_GPIO1 & AIC3X_GPIO2 Functionality
> + $ref: /schemas/types.yaml#/definitions/uint32-array
> + minItems: 2
No need for minItems if they equal to maxItems.
> + maxItems: 2
> +
Except that, Rob's bot reports several other properties used in DTS. You
can document them in that commit - just mention in commit msg - or a
follow-up commit just for undocumented properties.
Best regards,
Krzysztof
prev parent reply other threads:[~2022-08-04 11:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-03 15:17 Jai Luthra
2022-08-03 20:34 ` Rob Herring
2022-08-04 11:23 ` Krzysztof Kozlowski [this message]
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=10887a45-cd28-8396-b3e7-745e22e00c27@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=j-luthra@ti.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@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
all inboxes | Powered by JetHome®