Skip to content

Commit 194810f

Browse files
Dan Murphyrobherring
authored andcommitted
dt-bindings: leds: Update devicetree documents for ID_RGB
Update the leds/common.yaml to indicate that the max color ID is 9. Reflect the same change in the leds-class-multicolor.yaml Reported-by: Zhen Lei <thunder.leizhen@huawei.com> Signed-off-by: Dan Murphy <dmurphy@ti.com> Link: https://lore.kernel.org/r/20201016115703.30184-1-dmurphy@ti.com Signed-off-by: Rob Herring <robh@kernel.org>
1 parent 3650b22 commit 194810f

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

Documentation/devicetree/bindings/leds/common.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ properties:
4343
LED_COLOR_ID available, add a new one.
4444
$ref: /schemas/types.yaml#definitions/uint32
4545
minimum: 0
46-
maximum: 8
46+
maximum: 9
4747

4848
function-enumerator:
4949
description:

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ description: |
1616
modules. This is achieved by adding multi-led nodes layer to the
1717
monochrome LED bindings.
1818
The nodes and properties defined in this document are unique to the multicolor
19-
LED class. Common LED nodes and properties are inherited from the common.txt
19+
LED class. Common LED nodes and properties are inherited from the common.yaml
2020
within this documentation directory.
2121
2222
patternProperties:
@@ -25,10 +25,11 @@ patternProperties:
2525
description: Represents the LEDs that are to be grouped.
2626
properties:
2727
color:
28-
const: 8 # LED_COLOR_ID_MULTI
2928
description: |
30-
For multicolor LED support this property should be defined as
31-
LED_COLOR_ID_MULTI which can be found in include/linux/leds/common.h.
29+
For multicolor LED support this property should be defined as either
30+
LED_COLOR_ID_RGB or LED_COLOR_ID_MULTI which can be found in
31+
include/linux/leds/common.h.
32+
enum: [ 8, 9 ]
3233

3334
$ref: "common.yaml#"
3435

0 commit comments

Comments
 (0)