lkml.org 
[lkml]   [2023]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v1 2/5] ASoC: dt-bindings: snps,designware-i2s: Add StarFive JH7110 SoC support
From
On 07/08/2023 11:03, Xingyu Wu wrote:
>>>> + - if:
>>> + properties:
>>> + compatible:
>>> + contains:
>>> + const: snps,designware-i2s
>>> + then:
>>> + properties:
>>> + clocks:
>>> + maxItems: 1
>>> + clock-names:
>>> + maxItems: 1
>>> + resets:
>>> + maxItems: 1
>>> + else:
>>> + properties:
>>> + resets:
>>> + minItems: 2
>
> The resets of TX0/TX1/RX on JH7110 SoC are mentioned in 'else' here.

Ah, its fine. Clocks seem to be also constrained.

>
>>> + - if:
>>> + properties:
>>> + compatible:
>>> + contains:
>>> + const: starfive,jh7110-i2stx0
>>> + then:
>>> + properties:
>>> + clocks:
>>> + minItems: 5
>>
>> Also maxItems
>
> Will add.
>
>>
>>> + clock-names:
>>> + minItems: 5
>>
>> Also maxItems
>
> Will add.
>
>>
>> What about resets? 1 or 2 items?
>
> Mentioned it in the 'else'.
> Or do you mean I should drop the 'else' and add the resets in here?
> And is the same for TX1 and RX?

It won't be easy to read... probably the binding should be split.
Anyway, it's fine as is, except the maxItems above.

Best regards,
Krzysztof

\
 
 \ /
  Last update: 2023-08-07 11:19    [W:0.086 / U:1.796 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site