Skip to content

Commit 1d7a74d

Browse files
Johan Adolfssonlag-linaro
authored andcommitted
dt-bindings: leds: lp50xx: Document child reg, fix example
The led child reg node is the index within the bank, document that and update the example accordingly. The reg property in child node is limited to 0-2 since there are 3 leds per bank, previous value in example was speculative. Signed-off-by: Johan Adolfsson <johan.adolfsson@axis.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20250617-led-fix-v7-2-cdbe8efc88fa@axis.com Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 2e84a5e commit 1d7a74d

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

Documentation/devicetree/bindings/leds/leds-lp50xx.yaml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,12 @@ patternProperties:
8181

8282
properties:
8383
reg:
84-
maxItems: 1
84+
items:
85+
- minimum: 0
86+
maximum: 2
87+
88+
description:
89+
This property denotes the index within the LED bank.
8590

8691
required:
8792
- reg
@@ -138,18 +143,18 @@ examples:
138143
color = <LED_COLOR_ID_RGB>;
139144
function = LED_FUNCTION_STANDBY;
140145
141-
led@3 {
142-
reg = <0x3>;
146+
led@0 {
147+
reg = <0x0>;
143148
color = <LED_COLOR_ID_RED>;
144149
};
145150
146-
led@4 {
147-
reg = <0x4>;
151+
led@1 {
152+
reg = <0x1>;
148153
color = <LED_COLOR_ID_GREEN>;
149154
};
150155
151-
led@5 {
152-
reg = <0x5>;
156+
led@2 {
157+
reg = <0x2>;
153158
color = <LED_COLOR_ID_BLUE>;
154159
};
155160
};

0 commit comments

Comments
 (0)