diff options
author | Flavio Suligoi <f.suligoi@asem.it> | 2023-10-16 17:05:54 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2023-10-19 13:27:36 +0100 |
commit | d5272d39995f4150062a67e6f2cef556edece740 (patch) | |
tree | ba16c708f7836fbc92c5873bffae2db9d3412dc1 /Documentation/devicetree/bindings/leds/backlight/led-backlight.yaml | |
parent | 40da4737717b252fd01d92ff38d3b95a491167cc (diff) |
dt-bindings: backlight: Add brightness-levels related common properties
Both files pwm-backlight.yaml and led-backlight.yaml contain properties
in common with each other, regarding the brightness levels:
- brightness-levels
- default-brightness-level
These properties can then be moved to backlight/common.yaml.
Signed-off-by: Flavio Suligoi <f.suligoi@asem.it>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20231016150554.27144-1-f.suligoi@asem.it
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/leds/backlight/led-backlight.yaml')
-rw-r--r-- | Documentation/devicetree/bindings/leds/backlight/led-backlight.yaml | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/Documentation/devicetree/bindings/leds/backlight/led-backlight.yaml b/Documentation/devicetree/bindings/leds/backlight/led-backlight.yaml index d7b78198abc2..f5554da6bc6c 100644 --- a/Documentation/devicetree/bindings/leds/backlight/led-backlight.yaml +++ b/Documentation/devicetree/bindings/leds/backlight/led-backlight.yaml @@ -16,6 +16,9 @@ description: can also be used to describe a backlight device controlled by the output of a LED driver. +allOf: + - $ref: common.yaml# + properties: compatible: const: led-backlight @@ -26,25 +29,11 @@ properties: items: maxItems: 1 - brightness-levels: - description: - Array of distinct brightness levels. The levels must be in the range - accepted by the underlying LED devices. This is used to translate a - backlight brightness level into a LED brightness level. If it is not - provided, the identity mapping is used. - $ref: /schemas/types.yaml#/definitions/uint32-array - - default-brightness-level: - description: - The default brightness level (index into the array defined by the - "brightness-levels" property). - $ref: /schemas/types.yaml#/definitions/uint32 - required: - compatible - leds -additionalProperties: false +unevaluatedProperties: false examples: - | |