Skip to content

Commit 39de6f0

Browse files
neuschaeferlag-linaro
authored andcommitted
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: J. Neuschäfer <j.ne@posteo.net> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://patch.msgid.link/20260101-multi-led-v3-1-e29ca8dedd37@posteo.net Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 207a693 commit 39de6f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ description: |
2121
2222
properties:
2323
$nodename:
24-
pattern: "^multi-led(@[0-9a-f])?$"
24+
pattern: "^multi-led(@[0-9a-f]|-[0-9]+)?$"
2525

2626
color:
2727
description: |

0 commit comments

Comments
 (0)