From: "J. Neuschäfer via B4 Relay" <devnull+j.ne.posteo.net@kernel.org>
To: Pavel Machek <pavel@ucw.cz>, Lee Jones <lee@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Andrew Davis <afd@ti.com>,
Pavel Machek <pavel@kernel.org>
Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, "J. Neuschäfer" <j.ne@posteo.net>,
"Krzysztof Kozlowski" <krzk@kernel.org>
Subject: [PATCH v3] dt-bindings: leds: Allow differently named multicolor leds
Date: Thu, 01 Jan 2026 18:19:26 +0100 [thread overview]
Message-ID: <20260101-multi-led-v3-1-e29ca8dedd37@posteo.net> (raw)
From: "J. Neuschäfer" <j.ne@posteo.net>
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.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: J. Neuschäfer <j.ne@posteo.net>
---
V3:
- Combine patterns into one, instead of using oneOf schema
- Change examples in commit message to use numeric suffixes
- Restrict pattern to allow only numeric suffixes after the dash
following Rob Herring's suggestion
V2:
- Link: https://lore.kernel.org/r/20250412-multi-led-v2-1-56af86908744@posteo.net
- Add Krzysztof's review tag
- mention leds-group-multicolor in the commit message
- rebase on 6.15-rc1
Link to v1: https://lore.kernel.org/r/20250209-multi-led-v1-1-5aebccbd2db7@posteo.net
---
Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml b/Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml
index bb40bb9e036ee0..7bfc3d807acae3 100644
--- a/Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml
+++ b/Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml
@@ -21,7 +21,7 @@ description: |
properties:
$nodename:
- pattern: "^multi-led(@[0-9a-f])?$"
+ pattern: "^multi-led(@[0-9a-f]|-[0-9]+)?$"
color:
description: |
---
base-commit: 9448598b22c50c8a5bb77a9103e2d49f134c9578
change-id: 20250209-multi-led-9991e205befd
Best regards,
--
J. Neuschäfer <j.ne@posteo.net>
next reply other threads:[~2026-01-01 17:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-01 17:19 J. Neuschäfer via B4 Relay [this message]
2026-01-09 17:25 ` (subset) [PATCH v3] dt-bindings: leds: Allow differently named multicolor leds Lee Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260101-multi-led-v3-1-e29ca8dedd37@posteo.net \
--to=devnull+j.ne.posteo.net@kernel.org \
--cc=afd@ti.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=j.ne@posteo.net \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=pavel@kernel.org \
--cc=pavel@ucw.cz \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox