1*cb7aa33aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2*cb7aa33aSEmmanuel Vadot%YAML 1.2 3*cb7aa33aSEmmanuel Vadot--- 4*cb7aa33aSEmmanuel Vadot$id: http://devicetree.org/schemas/leds/backlight/kinetic,ktz8866.yaml# 5*cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*cb7aa33aSEmmanuel Vadot 7*cb7aa33aSEmmanuel Vadottitle: Kinetic Technologies KTZ8866 backlight 8*cb7aa33aSEmmanuel Vadot 9*cb7aa33aSEmmanuel Vadotmaintainers: 10*cb7aa33aSEmmanuel Vadot - Jianhua Lu <lujianhua000@gmail.com> 11*cb7aa33aSEmmanuel Vadot 12*cb7aa33aSEmmanuel Vadotdescription: | 13*cb7aa33aSEmmanuel Vadot The Kinetic Technologies KTZ8866 is a high efficiency 6-channels-current-sinks 14*cb7aa33aSEmmanuel Vadot led backlight with dual lcd bias power. 15*cb7aa33aSEmmanuel Vadot https://www.kinet-ic.com/ktz8866/ 16*cb7aa33aSEmmanuel Vadot 17*cb7aa33aSEmmanuel VadotallOf: 18*cb7aa33aSEmmanuel Vadot - $ref: common.yaml# 19*cb7aa33aSEmmanuel Vadot 20*cb7aa33aSEmmanuel Vadotproperties: 21*cb7aa33aSEmmanuel Vadot compatible: 22*cb7aa33aSEmmanuel Vadot const: kinetic,ktz8866 23*cb7aa33aSEmmanuel Vadot 24*cb7aa33aSEmmanuel Vadot vddpos-supply: 25*cb7aa33aSEmmanuel Vadot description: positive boost supply regulator. 26*cb7aa33aSEmmanuel Vadot 27*cb7aa33aSEmmanuel Vadot vddneg-supply: 28*cb7aa33aSEmmanuel Vadot description: negative boost supply regulator. 29*cb7aa33aSEmmanuel Vadot 30*cb7aa33aSEmmanuel Vadot enable-gpios: 31*cb7aa33aSEmmanuel Vadot description: GPIO to use to enable/disable the backlight (HWEN pin). 32*cb7aa33aSEmmanuel Vadot maxItems: 1 33*cb7aa33aSEmmanuel Vadot 34*cb7aa33aSEmmanuel Vadot current-num-sinks: 35*cb7aa33aSEmmanuel Vadot description: number of the LED current sinks' channels. 36*cb7aa33aSEmmanuel Vadot enum: [1, 2, 3, 4, 5, 6] 37*cb7aa33aSEmmanuel Vadot 38*cb7aa33aSEmmanuel Vadot kinetic,current-ramp-delay-ms: 39*cb7aa33aSEmmanuel Vadot description: | 40*cb7aa33aSEmmanuel Vadot LED current ramping delay time in milliseconds, note that the 41*cb7aa33aSEmmanuel Vadot case 1 will be mapped to 1μs. 42*cb7aa33aSEmmanuel Vadot enum: [1, 2, 4, 8, 16, 32, 64, 128, 192, 256, 320, 384, 448, 512, 576, 640] 43*cb7aa33aSEmmanuel Vadot 44*cb7aa33aSEmmanuel Vadot kinetic,led-enable-ramp-delay-ms: 45*cb7aa33aSEmmanuel Vadot description: | 46*cb7aa33aSEmmanuel Vadot LED on/off ramping delay time in milliseconds, note that the case 0 will be 47*cb7aa33aSEmmanuel Vadot mapped to 512μs because ktz8866 can't ramp faster than it. 48*cb7aa33aSEmmanuel Vadot enum: [0, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384] 49*cb7aa33aSEmmanuel Vadot 50*cb7aa33aSEmmanuel Vadot kinetic,enable-lcd-bias: 51*cb7aa33aSEmmanuel Vadot description: Set if we want to output bias power supply for LCD. 52*cb7aa33aSEmmanuel Vadot type: boolean 53*cb7aa33aSEmmanuel Vadot 54*cb7aa33aSEmmanuel Vadotrequired: 55*cb7aa33aSEmmanuel Vadot - compatible 56*cb7aa33aSEmmanuel Vadot - vddpos-supply 57*cb7aa33aSEmmanuel Vadot - vddneg-supply 58*cb7aa33aSEmmanuel Vadot - enable-gpios 59*cb7aa33aSEmmanuel Vadot 60*cb7aa33aSEmmanuel VadotunevaluatedProperties: false 61*cb7aa33aSEmmanuel Vadot 62*cb7aa33aSEmmanuel Vadotexamples: 63*cb7aa33aSEmmanuel Vadot - | 64*cb7aa33aSEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 65*cb7aa33aSEmmanuel Vadot 66*cb7aa33aSEmmanuel Vadot backlight { 67*cb7aa33aSEmmanuel Vadot compatible = "kinetic,ktz8866"; 68*cb7aa33aSEmmanuel Vadot 69*cb7aa33aSEmmanuel Vadot vddpos-supply = <&bl_vddpos_5p5>; 70*cb7aa33aSEmmanuel Vadot vddneg-supply = <&bl_vddneg_5p5>; 71*cb7aa33aSEmmanuel Vadot enable-gpios = <&tlmm 139 GPIO_ACTIVE_HIGH>; 72*cb7aa33aSEmmanuel Vadot current-num-sinks = <5>; 73*cb7aa33aSEmmanuel Vadot kinetic,current-ramp-delay-ms = <128>; 74*cb7aa33aSEmmanuel Vadot kinetic,led-enable-ramp-delay-ms = <1>; 75*cb7aa33aSEmmanuel Vadot kinetic,enable-lcd-bias; 76*cb7aa33aSEmmanuel Vadot }; 77