[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <29f997f3-3b38-4bf9-9ed3-204a15edb849@kernel.org>
Date: Wed, 30 Jul 2025 11:43:31 +0200
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Mahdi Khosravi <mmk1776@...il.com>, devicetree@...r.kernel.org
Cc: Liam Girdwood <lgirdwood@...il.com>, Mark Brown <broonie@...nel.org>,
Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, linux-sound@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] convert sound: realtek: alc5623 from txt to yaml
On 30/07/2025 11:37, Mahdi Khosravi wrote:
> I converted the alc5623 audio codec binding from text to DT schema.
> This is my first try and I used make dt_binding_check & make dtbs_check to verify
> without getting any errors.
Take a look at your compatible and then look at your example.
realtek,alc5632 is completely different. Just DTS using it in the kernel.
Please use subject prefixes matching the subsystem. You can get them for
example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory
your patch is touching. For bindings, the preferred subjects are
explained here:
https://www.kernel.org/doc/html/latest/devicetree/bindings/submitting-patches.html#i-for-patch-submitters
> diff --git a/Documentation/devicetree/bindings/sound/realtek,alc5623.yaml b/Documentation/devicetree/bindings/sound/realtek,alc5623.yaml
> new file mode 100644
> index 000000000000..98524d06458c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/realtek,alc5623.yaml
> @@ -0,0 +1,49 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/sound/realtek,alc5623.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: ALC5621/ALC5622/ALC5623 audio Codec
s/audio/Audio/. Keep it consistent.
> +
> +maintainers:
> + - Mahdi Khosravi <mmk1776@...il.com>
That's DAI, no? At least looking at driver? Then you miss dai-common
reference.
> +
> +properties:
> + compatible:
> + const: realtek,alc5623
> +
> + reg:
> + maxItems: 1
> +
> + add-ctrl:
> + description:
> + Default register value for Reg-40h, Additional Control Register. If absent
> + or has the value of 0, the register is untouched.
> + type: object
> +
> + jack-det-ctrl:
> + description:
> + Default register value for Reg-5Ah, Jack Detect Control Register. If absent
> + or has value 0, the register is untouched.
> + type: object
None of these are objects. This wasn't tested due to your compatible
issue. :/
> +
> +required:
> + - compatible
> + - reg
> +
> +additionalProperties: false
unevaluatedProperties after adding dai-common ref.
> +
> +examples:
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + codec@1a {
> + compatible = "realtek,alc5632";
Best regards,
Krzysztof
Powered by blists - more mailing lists