Re: [PATCH v5 1/3] dt-bindings: leds: is31fl32xx: convert the binding to yaml
From: Pawel Zalewski
Date: Mon Jul 21 2025 - 08:27:26 EST
> 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])$
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
I suppose.
Kind regards,
Pawel