0001 # SPDX-License-Identifier: GPL-2.0-only
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/leds/backlight/led-backlight.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: led-backlight bindings
0008
0009 maintainers:
0010 - Lee Jones <lee@kernel.org>
0011 - Daniel Thompson <daniel.thompson@linaro.org>
0012 - Jingoo Han <jingoohan1@gmail.com>
0013
0014 description:
0015 This binding is used to describe a basic backlight device made of LEDs. It
0016 can also be used to describe a backlight device controlled by the output of
0017 a LED driver.
0018
0019 properties:
0020 compatible:
0021 const: led-backlight
0022
0023 leds:
0024 description: A list of LED nodes
0025 $ref: /schemas/types.yaml#/definitions/phandle-array
0026 items:
0027 maxItems: 1
0028
0029 brightness-levels:
0030 description:
0031 Array of distinct brightness levels. The levels must be in the range
0032 accepted by the underlying LED devices. This is used to translate a
0033 backlight brightness level into a LED brightness level. If it is not
0034 provided, the identity mapping is used.
0035 $ref: /schemas/types.yaml#/definitions/uint32-array
0036
0037 default-brightness-level:
0038 description:
0039 The default brightness level (index into the array defined by the
0040 "brightness-levels" property).
0041 $ref: /schemas/types.yaml#/definitions/uint32
0042
0043 required:
0044 - compatible
0045 - leds
0046
0047 additionalProperties: false
0048
0049 examples:
0050 - |
0051 backlight {
0052 compatible = "led-backlight";
0053
0054 leds = <&led1>, <&led2>;
0055 brightness-levels = <0 4 8 16 32 64 128 255>;
0056 default-brightness-level = <6>;
0057 };
0058
0059 ...