Skip to content

Commit 2a7ee99

Browse files
jefflessardlag-linaro
authored andcommitted
dt-bindings: leds: Add default-brightness property to common.yaml
Add default-brightness property to leds/common.yaml to establish a single canonical definition for LED brightness initialization. The property is currently defined locally in leds/leds-pwm.yaml and is needed by auxdisplay/titanmec,tm16xx.yaml. Properties should be defined in only one location to avoid type inconsistencies across bindings. Signed-off-by: Jean-François Lessard <jefflessard3@gmail.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 98888f6 commit 2a7ee99

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Documentation/devicetree/bindings/leds/common.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,12 @@ properties:
173173
led-max-microamp.
174174
$ref: /schemas/types.yaml#/definitions/uint32
175175

176+
default-brightness:
177+
description:
178+
Brightness to be set if LED's default state is on. Used only during
179+
initialization. If the option is not set then max brightness is used.
180+
$ref: /schemas/types.yaml#/definitions/uint32
181+
176182
panic-indicator:
177183
description:
178184
This property specifies that the LED should be used, if at all possible,

0 commit comments

Comments
 (0)