xref: /linux/Documentation/devicetree/bindings/leds/backlight/gpio-backlight.yaml (revision 2654f59b53bf32b9bc272c364737804cd0a91770)
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/gpio-backlight.yaml#
544e1655aSRob Herring$schema: http://devicetree.org/meta-schemas/core.yaml#
644e1655aSRob Herring
744e1655aSRob Herringtitle: gpio-backlight bindings
844e1655aSRob Herring
944e1655aSRob Herringmaintainers:
10*2654f59bSLee Jones  - Lee Jones <lee@kernel.org>
1144e1655aSRob Herring  - Daniel Thompson <daniel.thompson@linaro.org>
1244e1655aSRob Herring  - Jingoo Han <jingoohan1@gmail.com>
1344e1655aSRob Herring
1444e1655aSRob Herringproperties:
1544e1655aSRob Herring  compatible:
1644e1655aSRob Herring    const: gpio-backlight
1744e1655aSRob Herring
1844e1655aSRob Herring  gpios:
1944e1655aSRob Herring    description: The gpio that is used for enabling/disabling the backlight.
2044e1655aSRob Herring    maxItems: 1
2144e1655aSRob Herring
2244e1655aSRob Herring  default-on:
2344e1655aSRob Herring    description: enable the backlight at boot.
2444e1655aSRob Herring    type: boolean
2544e1655aSRob Herring
2644e1655aSRob Herringrequired:
2744e1655aSRob Herring  - compatible
2844e1655aSRob Herring  - gpios
2944e1655aSRob Herring
3044e1655aSRob HerringadditionalProperties: false
3144e1655aSRob Herring
3244e1655aSRob Herringexamples:
3344e1655aSRob Herring  - |
3444e1655aSRob Herring    #include <dt-bindings/gpio/gpio.h>
3544e1655aSRob Herring    backlight {
3644e1655aSRob Herring        compatible = "gpio-backlight";
3744e1655aSRob Herring        gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>;
3844e1655aSRob Herring        default-on;
3944e1655aSRob Herring    };
4044e1655aSRob Herring
4144e1655aSRob Herring...
42