Commit 39de6f07 authored by J. Neuschäfer's avatar J. Neuschäfer Committed by Lee Jones
Browse files

dt-bindings: leds: Allow differently named multicolor LEDs



In some cases, for example when using multiple instances of
leds-group-multicolor, a board may have multiple multi-leds which can't
be distinguished by unit address. In such cases it should be possible to
name them differently, for example multi-led-0 and multi-led-1. This
patch adds another node name pattern to leds-class-multicolor.yaml to
allow such names.

Signed-off-by: default avatarJ. Neuschäfer <j.ne@posteo.net>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20260101-multi-led-v3-1-e29ca8dedd37@posteo.net


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent 207a6938
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ description: |

properties:
  $nodename:
    pattern: "^multi-led(@[0-9a-f])?$"
    pattern: "^multi-led(@[0-9a-f]|-[0-9]+)?$"

  color:
    description: |