144e1655aSRob Herring# SPDX-License-Identifier: GPL-2.0-only 244e1655aSRob Herring%YAML 1.2 344e1655aSRob Herring--- 444e1655aSRob Herring$id: http://devicetree.org/schemas/leds/backlight/led-backlight.yaml# 544e1655aSRob Herring$schema: http://devicetree.org/meta-schemas/core.yaml# 644e1655aSRob Herring 7*84e85359SKrzysztof Kozlowskititle: led-backlight 844e1655aSRob Herring 944e1655aSRob Herringmaintainers: 102654f59bSLee Jones - Lee Jones <lee@kernel.org> 1144e1655aSRob Herring - Daniel Thompson <daniel.thompson@linaro.org> 1244e1655aSRob Herring - Jingoo Han <jingoohan1@gmail.com> 1344e1655aSRob Herring 1444e1655aSRob Herringdescription: 1544e1655aSRob Herring This binding is used to describe a basic backlight device made of LEDs. It 1644e1655aSRob Herring can also be used to describe a backlight device controlled by the output of 1744e1655aSRob Herring a LED driver. 1844e1655aSRob Herring 1944e1655aSRob Herringproperties: 2044e1655aSRob Herring compatible: 2144e1655aSRob Herring const: led-backlight 2244e1655aSRob Herring 2344e1655aSRob Herring leds: 2444e1655aSRob Herring description: A list of LED nodes 2544e1655aSRob Herring $ref: /schemas/types.yaml#/definitions/phandle-array 2639bd2b6aSRob Herring items: 2739bd2b6aSRob Herring maxItems: 1 2844e1655aSRob Herring 2944e1655aSRob Herring brightness-levels: 3044e1655aSRob Herring description: 3144e1655aSRob Herring Array of distinct brightness levels. The levels must be in the range 3244e1655aSRob Herring accepted by the underlying LED devices. This is used to translate a 3344e1655aSRob Herring backlight brightness level into a LED brightness level. If it is not 3444e1655aSRob Herring provided, the identity mapping is used. 3544e1655aSRob Herring $ref: /schemas/types.yaml#/definitions/uint32-array 3644e1655aSRob Herring 3744e1655aSRob Herring default-brightness-level: 3844e1655aSRob Herring description: 3944e1655aSRob Herring The default brightness level (index into the array defined by the 4044e1655aSRob Herring "brightness-levels" property). 4144e1655aSRob Herring $ref: /schemas/types.yaml#/definitions/uint32 4244e1655aSRob Herring 4344e1655aSRob Herringrequired: 4444e1655aSRob Herring - compatible 4544e1655aSRob Herring - leds 4644e1655aSRob Herring 4744e1655aSRob HerringadditionalProperties: false 4844e1655aSRob Herring 4944e1655aSRob Herringexamples: 5044e1655aSRob Herring - | 5144e1655aSRob Herring backlight { 5244e1655aSRob Herring compatible = "led-backlight"; 5344e1655aSRob Herring 5444e1655aSRob Herring leds = <&led1>, <&led2>; 5544e1655aSRob Herring brightness-levels = <0 4 8 16 32 64 128 255>; 5644e1655aSRob Herring default-brightness-level = <6>; 5744e1655aSRob Herring }; 5844e1655aSRob Herring 5944e1655aSRob Herring... 60