Linux Sound subsystem development
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Paul Handrigan <paulha@opensource.cirrus.com>,
	broonie@kernel.org, lgirdwood@gmail.com,
	linux-sound@vger.kernel.org, patches@opensource.cirrus.com,
	robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	devicetree@vger.kernel.org
Subject: Re: [PATCH 1/2] ASoC: dt-bindings: cirrus,cs530x: Add initial DT binding
Date: Mon, 10 Jun 2024 10:48:33 +0200	[thread overview]
Message-ID: <1ff68780-53c0-4dd3-9bd3-2b468ce8f71a@kernel.org> (raw)
In-Reply-To: <20240607202708.335752-2-paulha@opensource.cirrus.com>

On 07/06/2024 22:27, Paul Handrigan wrote:
> Add the YAML DT bindings for the cs530x high performance
> audio ADCs.
> 
> Signed-off-by: Paul Handrigan <paulha@opensource.cirrus.com>
> ---
>  .../bindings/sound/cirrus,cs530x.yaml         | 83 +++++++++++++++++++
>  1 file changed, 83 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/sound/cirrus,cs530x.yaml
> 
> diff --git a/Documentation/devicetree/bindings/sound/cirrus,cs530x.yaml b/Documentation/devicetree/bindings/sound/cirrus,cs530x.yaml
> new file mode 100644
> index 000000000000..a4e2493ff03e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/cirrus,cs530x.yaml
> @@ -0,0 +1,83 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/sound/cirrus,cs530x.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Cirrus Logic cs530x family of audio ADCs
> +
> +maintainers:
> +  - paulha@opensource.cirrus.com

Please provide full name here.

> +  - patches@opensource.cirrus.com
> +
> +description: |

Do not need '|' unless you need to preserve formatting.

> +  The CS530X devices are a family of high performance audio ADCs.
> +
> +properties:
> +  compatible:
> +    enum:
> +      - cirrus,cs5302
> +      - cirrus,cs5304
> +      - cirrus,cs5308

Blank line

> +  reg:
> +    maxItems: 1
> +
> +  '#sound-dai-cells':
> +    description:
> +      The first cell indicating the audio interface.

Drop description, it's obvious.

> +    const: 1
> +
> +  reset-gpios:
> +    maxItems: 1
> +
> +  vdd-a-supply:
> +    description: voltage regulator phandle for the vdd-a supply

Drop redundant parts "voltage regulator phandle" and say what supply is
it. Do not describe DT syntax but hardware.

> +
> +  vdd-io-supply:
> +    description: voltage regulator phandle for the vdd-io supply
> +
> +  cirrus,in_hiz_pin12:

No underscores in node names.

> +    description:
> +      Sets input channels one and two to high impedence.

Typo

> +    type: boolean
> +
> +  cirrus,in_hiz_pin34:
> +    description:
> +      Sets input channels three and four to high impedence.
> +    type: boolean
> +
> +  cirrus,in_hiz_pin56:
> +    description:
> +      Sets input channels five and six to high impedence.
> +    type: boolean
> +
> +  cirrus,in_hiz_pin78:
> +    description:
> +      Sets input channels seven and eight to high impedence.
> +    type: boolean
> +
> +required:
> +  - compatible
> +  - reg
> +  - "#sound-dai-cells"
> +

Missing ref to dai-common


> +additionalProperties: false
This should be unevaluatedProperties instead

> +
> +examples:
> +  - |
> +    #include <dt-bindings/gpio/gpio.h>
> +
> +    i2c {
> +        #address-cells = <1>;
> +        #size-cells = <0>;
> +
> +        cs5304: adc@48 {
> +            #sound-dai-cells = <1>;
> +            compatible = "cirrus,cs5304";
> +            reg = <0x48>;

compatible is *always* the first property. reg is the second.




Best regards,
Krzysztof


  reply	other threads:[~2024-06-10  8:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-07 20:27 [PATCH 0/2] Cirrus Logic family of ADCs Paul Handrigan
2024-06-07 20:27 ` [PATCH 1/2] ASoC: dt-bindings: cirrus,cs530x: Add initial DT binding Paul Handrigan
2024-06-10  8:48   ` Krzysztof Kozlowski [this message]
2024-06-07 20:27 ` [PATCH 2/2] ASoC: cs530x: Support for cs530x ADCs Paul Handrigan
2024-06-09  9:34   ` kernel test robot
2024-06-10  8:46   ` Krzysztof Kozlowski
2024-06-13 17:55     ` Paul Handrigan
2024-06-14  8:17       ` Krzysztof Kozlowski

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=1ff68780-53c0-4dd3-9bd3-2b468ce8f71a@kernel.org \
    --to=krzk@kernel.org \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-sound@vger.kernel.org \
    --cc=patches@opensource.cirrus.com \
    --cc=paulha@opensource.cirrus.com \
    --cc=robh@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