xref: /freebsd/sys/contrib/device-tree/Bindings/leds/backlight/led-backlight.yaml (revision 6549718b70f0e660a15685369afb4f9caf2215ce)
1# SPDX-License-Identifier: GPL-2.0-only
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/leds/backlight/led-backlight.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: led-backlight
8
9maintainers:
10  - Lee Jones <lee@kernel.org>
11  - Daniel Thompson <daniel.thompson@linaro.org>
12  - Jingoo Han <jingoohan1@gmail.com>
13
14description:
15  This binding is used to describe a basic backlight device made of LEDs. It
16  can also be used to describe a backlight device controlled by the output of
17  a LED driver.
18
19allOf:
20  - $ref: common.yaml#
21
22properties:
23  compatible:
24    const: led-backlight
25
26  leds:
27    description: A list of LED nodes
28    $ref: /schemas/types.yaml#/definitions/phandle-array
29    items:
30      maxItems: 1
31
32required:
33  - compatible
34  - leds
35
36unevaluatedProperties: false
37
38examples:
39  - |
40    backlight {
41        compatible = "led-backlight";
42
43        leds = <&led1>, <&led2>;
44        brightness-levels = <0 4 8 16 32 64 128 255>;
45        default-brightness-level = <6>;
46    };
47
48...
49