[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8f77207b-5957-4d1c-88d1-7a1da5e93183@kernel.org>
Date: Thu, 30 Jan 2025 08:18:19 +0100
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Andrei Simion <andrei.simion@...rochip.com>
Cc: alexandre.belloni@...tlin.com, broonie@...nel.org,
claudiu.beznea@...on.dev, conor+dt@...nel.org, devicetree@...r.kernel.org,
krzk+dt@...nel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, robh@...nel.org
Subject: Re: [PATCH 1/2] dt-bindings: misc: atmel,at91-ssc: Convert to YAML
format
On 29/01/2025 14:28, Andrei Simion wrote:
> Hi,
>
> Thank you for the review.
>
> I will place this in: Documentation/devicetree/bindings/sound/
> because the SSC it is used only for Audio.
>
>>
>> Missing dai-cells. Old binding said 0, now you say anything...
>>
>> Missing required block
Here, look.
>>
>>> +allOf:
>>> + - $ref: ../sound/dai-common.yaml#
>>
>> Full path, so /schemas/
>>
>>> + - if:
>>> + properties:
>>> + compatible:
>>> + contains:
>>> + enum:
>>> + - atmel,at91sam9g45-ssc
>>> + then:
>>> + required:
>>> + - compatible
>>> + - reg
>>> + - interrupts
>>> + - dmas
>>> + - dma-names
>>
>> So only dmas?
>>
>>> + - clocks
>>> + - clock-names
>>> + else:
>>> + required:
>>> + - compatible
>>> + - reg
>>> + - interrupts
>>> + - clocks
>>> + - clock-names
>>
>> Drop entire required:
>>
>
> I have a question:
>
> 1) The old binding said if "atmel,at91sam9g45-ssc": add dmas and DMA-names to the list:
> - compatible, reg, interrupts, clock-names, clocks
> Why do you ask: "drop entire required"?
> I intended to set the required through a conditional.
> case 1) dma transfer
> case 2) pdc transfer
I commented earlier on missing required block in top-level.
Best regards,
Krzysztof
Powered by blists - more mailing lists