Re: [PATCH v2 1/2] dt-bindings: spi: add loongson spi

From: Krzysztof Kozlowski
Date: Fri Mar 17 2023 - 11:51:28 EST


On 17/03/2023 11:00, zhuyinbo wrote:
>>> +properties:
>>> + compatible:
>>> + enum:
>>> + - loongson,ls2k-spi
>>> + - loongson,ls7a-spi
>>> +
>>> + reg:
>>> + maxItems: 1
>>> +
>>> + clocks:
>>> + minItems: 1
>> I don't understand why did you change it. I did not ask for it.
>>
>> Best regards,
>> Krzysztof
> Add clocks "minItems: 1" description is for fix yaml file compile issue.

minItems: 1 is not correct, so you cannot use incorrect code to suppress
some warning. This should be list the clocks or use maxItems: 1, if you
have only one clock.

Best regards,
Krzysztof