Re: [PATCH 1/2] ASoC: dt-bindings: qcom,msm8916-wcd-digital-codec: convert to dtschema

From: Krzysztof Kozlowski
Date: Wed Jul 10 2024 - 04:26:12 EST


On 09/07/2024 17:24, Rayyan Ansari wrote:
> Convert the Qualcomm MSM8916 WCD Digital Audio Codec bindings from text
> to yaml dt schema format.
> Make bindings complete by adding #sound-dai-cells.


> +
> +properties:
> + compatible:
> + const: qcom,msm8916-wcd-digital-codec
> +
> + reg:
> + maxItems: 1
> +
> + clocks:
> + minItems: 2

You can drop minItems if they equal max.

> + maxItems: 2
> +
> + clock-names:
> + items:
> + - const: ahbix-clk
> + - const: mclk
> +
> + '#sound-dai-cells':
> + const: 1
> +
> +required:
> + - compatible
> + - reg
> + - clocks
> + - clock-names
> + - '#sound-dai-cells'
> +

You need here allOf: with $ref to dai-common.yaml.

> +additionalProperties: false

... and this then becomes:
unevaluatedProperties: false


Best regards,
Krzysztof