0001 # SPDX-License-Identifier: GPL-2.0-only
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/leds/backlight/gpio-backlight.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: gpio-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 properties:
0015 compatible:
0016 const: gpio-backlight
0017
0018 gpios:
0019 description: The gpio that is used for enabling/disabling the backlight.
0020 maxItems: 1
0021
0022 default-on:
0023 description: enable the backlight at boot.
0024 type: boolean
0025
0026 required:
0027 - compatible
0028 - gpios
0029
0030 additionalProperties: false
0031
0032 examples:
0033 - |
0034 #include <dt-bindings/gpio/gpio.h>
0035 backlight {
0036 compatible = "gpio-backlight";
0037 gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>;
0038 default-on;
0039 };
0040
0041 ...