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