mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-05 11:53:41 +00:00

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>
49 lines
1009 B
YAML
49 lines
1009 B
YAML
# SPDX-License-Identifier: GPL-2.0-only
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/leds/backlight/led-backlight.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: led-backlight
|
|
|
|
maintainers:
|
|
- Lee Jones <lee@kernel.org>
|
|
- Daniel Thompson <daniel.thompson@linaro.org>
|
|
- Jingoo Han <jingoohan1@gmail.com>
|
|
|
|
description:
|
|
This binding is used to describe a basic backlight device made of LEDs. It
|
|
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
|
|
|
|
leds:
|
|
description: A list of LED nodes
|
|
$ref: /schemas/types.yaml#/definitions/phandle-array
|
|
items:
|
|
maxItems: 1
|
|
|
|
required:
|
|
- compatible
|
|
- leds
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
backlight {
|
|
compatible = "led-backlight";
|
|
|
|
leds = <&led1>, <&led2>;
|
|
brightness-levels = <0 4 8 16 32 64 128 255>;
|
|
default-brightness-level = <6>;
|
|
};
|
|
|
|
...
|