Re: [PATCH v8 3/4] dt-bindings: hwmon: Add bindings for max31760

From: Krzysztof Kozlowski
Date: Sat Sep 10 2022 - 04:12:26 EST


On 09/09/2022 19:48, Tilki, Ibrahim wrote:
ded form is:
>>
>> reg:
>> items:
>> - items:
>> - minimum: 0x50
>> maximum: 0x57
>>
>
> Actually it passes the check when I remove maxItems property:
>
> reg:
> description: I2C address of slave device.
> items:
> minimum: 0x50
> maximum: 0x57
>
> I cannot find a way to specify both maxItems and min-max limits.
> Which one should I drop? Line below is from the output of dt_bindigs_check:
>
> hint: "maxItems" is not needed with an "items" list

Use Rob's first syntax:

reg:
minimum: 0x50
maximum: 0x57

(this will expect only one item)


Best regards,
Krzysztof