xref: /linux/Documentation/devicetree/bindings/leds/backlight/led-backlight.yaml (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
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
784e85359SKrzysztof 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
19*d5272d39SFlavio SuligoiallOf:
20*d5272d39SFlavio Suligoi  - $ref: common.yaml#
21*d5272d39SFlavio Suligoi
2244e1655aSRob Herringproperties:
2344e1655aSRob Herring  compatible:
2444e1655aSRob Herring    const: led-backlight
2544e1655aSRob Herring
2644e1655aSRob Herring  leds:
2744e1655aSRob Herring    description: A list of LED nodes
2844e1655aSRob Herring    $ref: /schemas/types.yaml#/definitions/phandle-array
2939bd2b6aSRob Herring    items:
3039bd2b6aSRob Herring      maxItems: 1
3144e1655aSRob Herring
3244e1655aSRob Herringrequired:
3344e1655aSRob Herring  - compatible
3444e1655aSRob Herring  - leds
3544e1655aSRob Herring
36*d5272d39SFlavio SuligoiunevaluatedProperties: false
3744e1655aSRob Herring
3844e1655aSRob Herringexamples:
3944e1655aSRob Herring  - |
4044e1655aSRob Herring    backlight {
4144e1655aSRob Herring        compatible = "led-backlight";
4244e1655aSRob Herring
4344e1655aSRob Herring        leds = <&led1>, <&led2>;
4444e1655aSRob Herring        brightness-levels = <0 4 8 16 32 64 128 255>;
4544e1655aSRob Herring        default-brightness-level = <6>;
4644e1655aSRob Herring    };
4744e1655aSRob Herring
4844e1655aSRob Herring...
49