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