1*4882a593Smuzhiyun# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2*4882a593Smuzhiyun%YAML 1.2 3*4882a593Smuzhiyun--- 4*4882a593Smuzhiyun$id: http://devicetree.org/schemas/leds/backlight/kinetic,ktd253.yaml# 5*4882a593Smuzhiyun$schema: http://devicetree.org/meta-schemas/core.yaml# 6*4882a593Smuzhiyun 7*4882a593Smuzhiyuntitle: Kinetic Technologies KTD253 one-wire backlight 8*4882a593Smuzhiyun 9*4882a593Smuzhiyunmaintainers: 10*4882a593Smuzhiyun - Linus Walleij <linus.walleij@linaro.org> 11*4882a593Smuzhiyun 12*4882a593Smuzhiyundescription: | 13*4882a593Smuzhiyun The Kinetic Technologies KTD253 is a white LED backlight that is 14*4882a593Smuzhiyun controlled by a single GPIO line. If you just turn on the backlight 15*4882a593Smuzhiyun it goes to maximum backlight then you can set the level of backlight 16*4882a593Smuzhiyun using pulses on the enable wire. This is sometimes referred to as 17*4882a593Smuzhiyun "expresswire". 18*4882a593Smuzhiyun 19*4882a593SmuzhiyunallOf: 20*4882a593Smuzhiyun - $ref: common.yaml# 21*4882a593Smuzhiyun 22*4882a593Smuzhiyunproperties: 23*4882a593Smuzhiyun compatible: 24*4882a593Smuzhiyun const: kinetic,ktd253 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun enable-gpios: 27*4882a593Smuzhiyun description: GPIO to use to enable/disable and dim the backlight. 28*4882a593Smuzhiyun maxItems: 1 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun default-brightness: true 31*4882a593Smuzhiyun max-brightness: true 32*4882a593Smuzhiyun 33*4882a593Smuzhiyunrequired: 34*4882a593Smuzhiyun - compatible 35*4882a593Smuzhiyun - enable-gpios 36*4882a593Smuzhiyun 37*4882a593SmuzhiyunadditionalProperties: false 38*4882a593Smuzhiyun 39*4882a593Smuzhiyunexamples: 40*4882a593Smuzhiyun - | 41*4882a593Smuzhiyun #include <dt-bindings/gpio/gpio.h> 42*4882a593Smuzhiyun backlight { 43*4882a593Smuzhiyun compatible = "kinetic,ktd253"; 44*4882a593Smuzhiyun enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; 45*4882a593Smuzhiyun default-brightness = <13>; 46*4882a593Smuzhiyun }; 47