* [PATCH] dt-bindings: leds: pwm-multicolor: document max-brigthness
@ 2022-07-19 7:45 Krzysztof Kozlowski
2022-07-19 23:26 ` Rob Herring
0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-19 7:45 UTC (permalink / raw)
To: Pavel Machek, Rob Herring, Krzysztof Kozlowski, Sven Schwermer,
linux-leds, devicetree, linux-kernel
Cc: Krzysztof Kozlowski, Rob Herring
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>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
.../devicetree/bindings/leds/leds-pwm-multicolor.yaml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml b/Documentation/devicetree/bindings/leds/leds-pwm-multicolor.yaml
index d0f846cd019d..bd6ec04a8727 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
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: leds: pwm-multicolor: document max-brigthness
2022-07-19 7:45 [PATCH] dt-bindings: leds: pwm-multicolor: document max-brigthness Krzysztof Kozlowski
@ 2022-07-19 23:26 ` Rob Herring
2022-07-30 21:00 ` Pavel Machek
0 siblings, 1 reply; 3+ messages in thread
From: Rob Herring @ 2022-07-19 23:26 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Pavel Machek, devicetree, linux-leds, Rob Herring,
Krzysztof Kozlowski, Sven Schwermer, linux-kernel
On Tue, 19 Jul 2022 09:45:42 +0200, Krzysztof Kozlowski wrote:
> 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>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> .../devicetree/bindings/leds/leds-pwm-multicolor.yaml | 6 ++++++
> 1 file changed, 6 insertions(+)
>
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: leds: pwm-multicolor: document max-brigthness
2022-07-19 23:26 ` Rob Herring
@ 2022-07-30 21:00 ` Pavel Machek
0 siblings, 0 replies; 3+ messages in thread
From: Pavel Machek @ 2022-07-30 21:00 UTC (permalink / raw)
To: Rob Herring
Cc: Krzysztof Kozlowski, devicetree, linux-leds, Rob Herring,
Krzysztof Kozlowski, Sven Schwermer, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 843 bytes --]
On Tue 2022-07-19 17:26:14, Rob Herring wrote:
> On Tue, 19 Jul 2022 09:45:42 +0200, Krzysztof Kozlowski wrote:
> > 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>
> > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> > ---
> > .../devicetree/bindings/leds/leds-pwm-multicolor.yaml | 6 ++++++
> > 1 file changed, 6 insertions(+)
> >
>
> Reviewed-by: Rob Herring <robh@kernel.org>
Thank you, applied.
Pavel
--
People of Russia, stop Putin before his war on Ukraine escalates.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-07-30 21:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-19 7:45 [PATCH] dt-bindings: leds: pwm-multicolor: document max-brigthness Krzysztof Kozlowski
2022-07-19 23:26 ` Rob Herring
2022-07-30 21:00 ` Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).