]> Gentwo Git Trees - linux/.git/commitdiff
dt-bindings: leds: Add default-brightness property to common.yaml
authorJean-François Lessard <jefflessard3@gmail.com>
Fri, 26 Sep 2025 14:19:03 +0000 (10:19 -0400)
committerLee Jones <lee@kernel.org>
Tue, 21 Oct 2025 09:46:26 +0000 (10:46 +0100)
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>
Documentation/devicetree/bindings/leds/common.yaml

index 274f83288a92e7f8773822677d2d2eae53f3bb3b..f4e44b33f56d18d25bc13c0e6a91a7b594744d35 100644 (file)
@@ -173,6 +173,12 @@ properties:
       led-max-microamp.
     $ref: /schemas/types.yaml#/definitions/uint32
 
+  default-brightness:
+    description:
+      Brightness to be set if LED's default state is on. Used only during
+      initialization. If the option is not set then max brightness is used.
+    $ref: /schemas/types.yaml#/definitions/uint32
+
   panic-indicator:
     description:
       This property specifies that the LED should be used, if at all possible,