1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/leds/backlight/gpio-backlight.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7*8bab661aSEmmanuel Vadottitle: gpio-backlight 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10b97ee269SEmmanuel Vadot - Lee Jones <lee@kernel.org> 11c66ec88fSEmmanuel Vadot - Daniel Thompson <daniel.thompson@linaro.org> 12c66ec88fSEmmanuel Vadot - Jingoo Han <jingoohan1@gmail.com> 13c66ec88fSEmmanuel Vadot 14c66ec88fSEmmanuel Vadotproperties: 15c66ec88fSEmmanuel Vadot compatible: 16c66ec88fSEmmanuel Vadot const: gpio-backlight 17c66ec88fSEmmanuel Vadot 18c66ec88fSEmmanuel Vadot gpios: 19c66ec88fSEmmanuel Vadot description: The gpio that is used for enabling/disabling the backlight. 20c66ec88fSEmmanuel Vadot maxItems: 1 21c66ec88fSEmmanuel Vadot 22c66ec88fSEmmanuel Vadot default-on: 23c66ec88fSEmmanuel Vadot description: enable the backlight at boot. 24c66ec88fSEmmanuel Vadot type: boolean 25c66ec88fSEmmanuel Vadot 26c66ec88fSEmmanuel Vadotrequired: 27c66ec88fSEmmanuel Vadot - compatible 28c66ec88fSEmmanuel Vadot - gpios 29c66ec88fSEmmanuel Vadot 30c66ec88fSEmmanuel VadotadditionalProperties: false 31c66ec88fSEmmanuel Vadot 32c66ec88fSEmmanuel Vadotexamples: 33c66ec88fSEmmanuel Vadot - | 34c66ec88fSEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 35c66ec88fSEmmanuel Vadot backlight { 36c66ec88fSEmmanuel Vadot compatible = "gpio-backlight"; 37c66ec88fSEmmanuel Vadot gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>; 38c66ec88fSEmmanuel Vadot default-on; 39c66ec88fSEmmanuel Vadot }; 40c66ec88fSEmmanuel Vadot 41c66ec88fSEmmanuel Vadot... 42