devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Francesco Dolcini <francesco@dolcini.it>,
	alsa-devel@alsa-project.org, devicetree@vger.kernel.org
Cc: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>, Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
	Benjamin Marty <info@benjaminmarty.ch>,
	kchsu0@nuvoton.com, wtli@nuvoton.com,
	David Lin <CTLIN0@nuvoton.com>,
	Francesco Dolcini <francesco.dolcini@toradex.com>
Subject: Re: [PATCH v1 1/3] ASoC: dt-bindings: nau8822: convert to the dtschema
Date: Sat, 24 Dec 2022 14:18:14 +0100	[thread overview]
Message-ID: <f7aa21e3-0c1c-8450-ee00-09162f1c59be@linaro.org> (raw)
In-Reply-To: <20221223170404.210603-2-francesco@dolcini.it>

On 23/12/2022 18:04, Francesco Dolcini wrote:
> From: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
> 
> Convert nau8822 devicetree binding to dtschema.
> Change file name to match dtschema naming.
> 
> Cc: David Lin <CTLIN0@nuvoton.com>
> Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
> ---
>  .../devicetree/bindings/sound/nau8822.txt     | 16 --------
>  .../bindings/sound/nuvoton,nau8822.yaml       | 40 +++++++++++++++++++
>  2 files changed, 40 insertions(+), 16 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/sound/nau8822.txt
>  create mode 100644 Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml
> 
> diff --git a/Documentation/devicetree/bindings/sound/nau8822.txt b/Documentation/devicetree/bindings/sound/nau8822.txt
> deleted file mode 100644
> index a471d162d4e5..000000000000
> --- a/Documentation/devicetree/bindings/sound/nau8822.txt
> +++ /dev/null
> @@ -1,16 +0,0 @@
> -NAU8822 audio CODEC
> -
> -This device supports I2C only.
> -
> -Required properties:
> -
> -  - compatible : "nuvoton,nau8822"
> -
> -  - reg : the I2C address of the device.
> -
> -Example:
> -
> -codec: nau8822@1a {
> -	compatible = "nuvoton,nau8822";
> -	reg = <0x1a>;
> -};
> diff --git a/Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml b/Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml
> new file mode 100644
> index 000000000000..10464170a98f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml
> @@ -0,0 +1,40 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/sound/nuvoton,nau8822.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: NAU8822 audio CODEC
> +
> +description: |
> +  24 bit stereo audio codec with speaker driver.
> +  This device supports I2C/SPI. Currently, only I2C bus is supported.

I would skip the last sentence - bindings are independent of OS, so the
sentence might be not true in different systems/versions.

> +
> +maintainers:
> +  - David Lin <CTLIN0@nuvoton.com>
> +
> +properties:
> +  compatible:
> +    enum:
> +      - nuvoton,nau8822
> +
> +  reg:
> +    maxItems: 1
> +
> +additionalProperties: false

Please put "additionalProperties" after "required:".

With above (or even without these):

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>


Best regards,
Krzysztof


  parent reply	other threads:[~2022-12-24 13:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-23 17:04 [PATCH v1 0/3] ASoC: nau8822: add speaker Bridge Tied Output Francesco Dolcini
2022-12-23 17:04 ` [PATCH v1 1/3] ASoC: dt-bindings: nau8822: convert to the dtschema Francesco Dolcini
2022-12-23 19:26   ` Rob Herring
2022-12-27 14:13     ` Francesco Dolcini
2022-12-24 13:18   ` Krzysztof Kozlowski [this message]
2022-12-23 17:04 ` [PATCH v1 2/3] ASoC: dt-bindings: nau8822: add nuvoton,spk-btl property to dtschema Francesco Dolcini
2022-12-24 13:18   ` Krzysztof Kozlowski
2022-12-23 17:04 ` [PATCH v1 3/3] ASoC: nau8822: add speaker Bridge Tied Output configuration Francesco Dolcini
2023-01-09 16:49 ` [PATCH v1 0/3] ASoC: nau8822: add speaker Bridge Tied Output Mark Brown

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=f7aa21e3-0c1c-8450-ee00-09162f1c59be@linaro.org \
    --to=krzysztof.kozlowski@linaro.org \
    --cc=CTLIN0@nuvoton.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=emanuele.ghidoli@toradex.com \
    --cc=francesco.dolcini@toradex.com \
    --cc=francesco@dolcini.it \
    --cc=info@benjaminmarty.ch \
    --cc=kchsu0@nuvoton.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=lgirdwood@gmail.com \
    --cc=perex@perex.cz \
    --cc=robh+dt@kernel.org \
    --cc=tiwai@suse.com \
    --cc=wtli@nuvoton.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).