Commit 194810f7 authored by Dan Murphy's avatar Dan Murphy Committed by Rob Herring

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: default avatarZhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: default avatarDan Murphy <dmurphy@ti.com>
Link: https://lore.kernel.org/r/20201016115703.30184-1-dmurphy@ti.comSigned-off-by: default avatarRob Herring <robh@kernel.org>
parent 3650b228
...@@ -43,7 +43,7 @@ properties: ...@@ -43,7 +43,7 @@ properties:
LED_COLOR_ID available, add a new one. LED_COLOR_ID available, add a new one.
$ref: /schemas/types.yaml#definitions/uint32 $ref: /schemas/types.yaml#definitions/uint32
minimum: 0 minimum: 0
maximum: 8 maximum: 9
function-enumerator: function-enumerator:
description: description:
......
...@@ -16,7 +16,7 @@ description: | ...@@ -16,7 +16,7 @@ description: |
modules. This is achieved by adding multi-led nodes layer to the modules. This is achieved by adding multi-led nodes layer to the
monochrome LED bindings. monochrome LED bindings.
The nodes and properties defined in this document are unique to the multicolor The nodes and properties defined in this document are unique to the multicolor
LED class. Common LED nodes and properties are inherited from the common.txt LED class. Common LED nodes and properties are inherited from the common.yaml
within this documentation directory. within this documentation directory.
patternProperties: patternProperties:
...@@ -25,10 +25,11 @@ patternProperties: ...@@ -25,10 +25,11 @@ patternProperties:
description: Represents the LEDs that are to be grouped. description: Represents the LEDs that are to be grouped.
properties: properties:
color: color:
const: 8 # LED_COLOR_ID_MULTI
description: | description: |
For multicolor LED support this property should be defined as For multicolor LED support this property should be defined as either
LED_COLOR_ID_MULTI which can be found in include/linux/leds/common.h. LED_COLOR_ID_RGB or LED_COLOR_ID_MULTI which can be found in
include/linux/leds/common.h.
enum: [ 8, 9 ]
$ref: "common.yaml#" $ref: "common.yaml#"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment