From: Krzysztof Kozlowski <krzk@kernel.org>
To: Nikola Jelic <nikola.jelic83@gmail.com>,
lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz,
tiwai@suse.com, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, linux-sound@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: rwalton@cmlmicro.com
Subject: Re: [PATCH 1/2] ASoC: dt-bindings: Add cmx655 codec
Date: Mon, 3 Feb 2025 21:31:46 +0100 [thread overview]
Message-ID: <e52e6257-1091-4cf8-a757-c2ddbe348a77@kernel.org> (raw)
In-Reply-To: <20250203170117.12004-1-nikola.jelic83@gmail.com>
On 03/02/2025 18:01, Nikola Jelic wrote:
> +
> +title: CML Micro CMX655D codec
> +
> +maintainers:
> + - Richard Walton <rwalton@cmlmicro.com>
> + - Nikola Jelic <nikola.jelic83@gmail.com>
> +
> +description: |
Do not need '|' unless you need to preserve formatting.
> + The CMX655D is an ultra-low power voice codec.
> +
> +allOf:
> + - $ref: dai-common.yaml#
> +
> +properties:
> + compatible:
> + enum:
> + - cml,cmx655d
> +
> + reg:
> + maxItems: 1
> +
> + "#sound-dai-cells":
> + const: 0
> +
> + reset-gpios:
> + description: GPIO used for codec reset, negative logic
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + interrupt-names:
> + maxItems: 1
Describe the names or drop. Look how other bindings do it - there is
never syntax like that alone.
> +
> + pinctrl-names:
> + maxItems: 1
Drop property, not needed here.
> +
> + pinctr-0:
> + maxItems: 1
Drop property, not needed and not correct.
> +
> + cmx655,classd-oc-reset-attempts:
> + description: Maximum number of times to reset CMX655 class-D
> + following a overcurrent event.
> + Default = 5, >10000 = disable limit.
Missing constraints, min/max. Drop also redundant part - schema already
says default 5.
But more important, I am not sure why this is board-configurable.
> + $ref: /schemas/types.yaml#/definitions/uint32
> + default: 5
> +
> +required:
> + - compatible
> + - reg
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + status = "okay";
Drop
> + codec: cmx655 {
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
audio-codec, codec etc.
> + reg = <0x54>;
> + #sound-dai-cells = <0>;
> + compatible = "cml,cmx655d";
Follow DTS coding style. compatible must be first.
> + reset-gpios = <&gpio 24 1>;
Use defines for standard flags.
> + interrupt-parent = <&gpio>;
> + interrupts = <25 0x2>;
Use defines for standard flags.
> + interrupt-names = "irq";
Drop
> + pinctrl-names = "default";
> + pinctrl-0 = <&ev6550DHAT_pins>;
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-02-03 20:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-03 17:01 [PATCH 1/2] ASoC: dt-bindings: Add cmx655 codec Nikola Jelic
2025-02-03 17:01 ` [PATCH 2/2] ASoC: codecs: cmx655: Add CML's CMX655D codec Nikola Jelic
2025-02-03 17:20 ` Mark Brown
2025-02-03 17:05 ` [PATCH 1/2] ASoC: dt-bindings: Add cmx655 codec Mark Brown
2025-02-03 18:22 ` Rob Herring (Arm)
2025-02-03 20:31 ` Krzysztof Kozlowski [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-10 22:28 Nikola Jelic
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=e52e6257-1091-4cf8-a757-c2ddbe348a77@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-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=nikola.jelic83@gmail.com \
--cc=perex@perex.cz \
--cc=robh@kernel.org \
--cc=rwalton@cmlmicro.com \
--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