xref: /freebsd/sys/contrib/device-tree/Bindings/leds/backlight/led-backlight.txt (revision cfd6422a5217410fbd66f7a7a8a64d9d85e61229)
1led-backlight bindings
2
3This binding is used to describe a basic backlight device made of LEDs.
4It can also be used to describe a backlight device controlled by the output of
5a LED driver.
6
7Required properties:
8  - compatible: "led-backlight"
9  - leds: a list of LEDs
10
11Optional properties:
12  - brightness-levels: Array of distinct brightness levels. The levels must be
13                       in the range accepted by the underlying LED devices.
14                       This is used to translate a backlight brightness level
15                       into a LED brightness level. If it is not provided, the
16                       identity mapping is used.
17
18  - default-brightness-level: The default brightness level.
19
20Example:
21
22	backlight {
23		compatible = "led-backlight";
24
25		leds = <&led1>, <&led2>;
26		brightness-levels = <0 4 8 16 32 64 128 255>;
27		default-brightness-level = <6>;
28	};
29