Re: [PATCH v5 1/3] dt-bindings: leds: is31fl32xx: convert the binding to yaml
From: Krzysztof Kozlowski
Date: Mon Jul 21 2025 - 08:34:59 EST
On 21/07/2025 14:26, Pawel Zalewski wrote:
>> This still does not match min/max constraints. You already got the
>> comment on this and nothing improved.
>
> It was not clear to me what you are after, so you want the pattern to be:
>
> ^led@(?:[1-9a-f]|1[0-9a-f]|2[0-4])$
led@([1-9a-f]|1[0-9a-f]|2[0-4])$
should be enough
>
> So the range of the unit@ string is controlled via the pattern
> orthogonal to reg,
> the range of the reg property explicitly via minimum/maximum which are decimal,
> despite the fact that the reg itself can be a hex value, which is
> preferred for readability
Yes, just write min/max decimal in the list. It's not an address, but index.
Best regards,
Krzysztof