summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/leds
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2022-07-19 10:45:42 +0300
committerPavel Machek <pavel@ucw.cz>2022-07-31 00:00:11 +0300
commite625e2238a270df743cbc623b3abad8d0010abc9 (patch)
treeb03d75ff12d50ea1b990aa86436e605104776003 /Documentation/devicetree/bindings/leds
parenta01633cd867b8ddf2d8321fe575dc3c54e037b09 (diff)
downloadlinux-e625e2238a270df743cbc623b3abad8d0010abc9.tar.xz
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>
Diffstat (limited to 'Documentation/devicetree/bindings/leds')
-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