aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Kozlowski2022-07-19 09:45:42 +0200
committerPavel Machek2022-07-30 23:00:11 +0200
commite625e2238a270df743cbc623b3abad8d0010abc9 (patch)
treeb03d75ff12d50ea1b990aa86436e605104776003
parenta01633cd867b8ddf2d8321fe575dc3c54e037b09 (diff)
dt-bindings: leds: pwm-multicolor: document max-brigthness
The Multicolor PWM LED uses max-brigthness property (in the example and in the driver), so document it to fixi dt_binding_check warning like: leds/leds-pwm-multicolor.example.dtb: led-controller: multi-led: Unevaluated properties are not allowed ('max-brightness' was unexpected) Reported-by: Rob Herring <robh@kernel.org> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Pavel Machek <pavel@ucw.cz>
-rw-r--r--Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml b/Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml
index 70b4bad00a63..43f1cd6a53b2 100644
--- a/Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml
+++ b/Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml
@@ -22,6 +22,12 @@ properties:
$ref: leds-class-multicolor.yaml#
unevaluatedProperties: false
+ properties:
+ max-brightness:
+ description:
+ Maximum brightness possible for the LED
+ $ref: /schemas/types.yaml#/definitions/uint32
+
patternProperties:
"^led-[0-9a-z]+$":
type: object