1*efd435a8SAlexander Sverdlin# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2*efd435a8SAlexander Sverdlin%YAML 1.2 3*efd435a8SAlexander Sverdlin--- 4*efd435a8SAlexander Sverdlin$id: http://devicetree.org/schemas/leds/ti,lp8860.yaml# 5*efd435a8SAlexander Sverdlin$schema: http://devicetree.org/meta-schemas/core.yaml# 6*efd435a8SAlexander Sverdlin 7*efd435a8SAlexander Sverdlintitle: Texas Instruments - lp8860 4-Channel LED Driver 8*efd435a8SAlexander Sverdlin 9*efd435a8SAlexander Sverdlinmaintainers: 10*efd435a8SAlexander Sverdlin - Andrew Davis <afd@ti.com> 11*efd435a8SAlexander Sverdlin 12*efd435a8SAlexander Sverdlindescription: | 13*efd435a8SAlexander Sverdlin The LP8860-Q1 is an high-efficiency LED driver with boost controller. 14*efd435a8SAlexander Sverdlin It has 4 high-precision current sinks that can be controlled by a PWM input 15*efd435a8SAlexander Sverdlin signal, a SPI/I2C master, or both. 16*efd435a8SAlexander Sverdlin 17*efd435a8SAlexander Sverdlin For more product information please see the link below: 18*efd435a8SAlexander Sverdlin https://www.ti.com/product/lp8860-q1 19*efd435a8SAlexander Sverdlin 20*efd435a8SAlexander Sverdlinproperties: 21*efd435a8SAlexander Sverdlin compatible: 22*efd435a8SAlexander Sverdlin const: ti,lp8860 23*efd435a8SAlexander Sverdlin 24*efd435a8SAlexander Sverdlin reg: 25*efd435a8SAlexander Sverdlin maxItems: 1 26*efd435a8SAlexander Sverdlin description: I2C slave address 27*efd435a8SAlexander Sverdlin 28*efd435a8SAlexander Sverdlin "#address-cells": 29*efd435a8SAlexander Sverdlin const: 1 30*efd435a8SAlexander Sverdlin 31*efd435a8SAlexander Sverdlin "#size-cells": 32*efd435a8SAlexander Sverdlin const: 0 33*efd435a8SAlexander Sverdlin 34*efd435a8SAlexander Sverdlin enable-gpios: 35*efd435a8SAlexander Sverdlin maxItems: 1 36*efd435a8SAlexander Sverdlin description: GPIO pin to enable (active high) / disable the device 37*efd435a8SAlexander Sverdlin 38*efd435a8SAlexander Sverdlin vled-supply: 39*efd435a8SAlexander Sverdlin description: LED supply 40*efd435a8SAlexander Sverdlin 41*efd435a8SAlexander SverdlinpatternProperties: 42*efd435a8SAlexander Sverdlin "^led(@[0-3])?$": 43*efd435a8SAlexander Sverdlin type: object 44*efd435a8SAlexander Sverdlin $ref: common.yaml# 45*efd435a8SAlexander Sverdlin unevaluatedProperties: false 46*efd435a8SAlexander Sverdlin 47*efd435a8SAlexander Sverdlin properties: 48*efd435a8SAlexander Sverdlin reg: 49*efd435a8SAlexander Sverdlin description: 50*efd435a8SAlexander Sverdlin Index of the LED. 51*efd435a8SAlexander Sverdlin maxItems: 1 52*efd435a8SAlexander Sverdlin 53*efd435a8SAlexander Sverdlin function: true 54*efd435a8SAlexander Sverdlin color: true 55*efd435a8SAlexander Sverdlin label: true 56*efd435a8SAlexander Sverdlin linux,default-trigger: true 57*efd435a8SAlexander Sverdlin 58*efd435a8SAlexander Sverdlinrequired: 59*efd435a8SAlexander Sverdlin - compatible 60*efd435a8SAlexander Sverdlin - reg 61*efd435a8SAlexander Sverdlin 62*efd435a8SAlexander SverdlinadditionalProperties: false 63*efd435a8SAlexander Sverdlin 64*efd435a8SAlexander Sverdlinexamples: 65*efd435a8SAlexander Sverdlin - | 66*efd435a8SAlexander Sverdlin #include <dt-bindings/gpio/gpio.h> 67*efd435a8SAlexander Sverdlin #include <dt-bindings/leds/common.h> 68*efd435a8SAlexander Sverdlin 69*efd435a8SAlexander Sverdlin i2c { 70*efd435a8SAlexander Sverdlin #address-cells = <1>; 71*efd435a8SAlexander Sverdlin #size-cells = <0>; 72*efd435a8SAlexander Sverdlin 73*efd435a8SAlexander Sverdlin led-controller@2d { 74*efd435a8SAlexander Sverdlin compatible = "ti,lp8860"; 75*efd435a8SAlexander Sverdlin #address-cells = <1>; 76*efd435a8SAlexander Sverdlin #size-cells = <0>; 77*efd435a8SAlexander Sverdlin reg = <0x2d>; 78*efd435a8SAlexander Sverdlin enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; 79*efd435a8SAlexander Sverdlin vled-supply = <&vbatt>; 80*efd435a8SAlexander Sverdlin 81*efd435a8SAlexander Sverdlin led@0 { 82*efd435a8SAlexander Sverdlin reg = <0>; 83*efd435a8SAlexander Sverdlin function = LED_FUNCTION_BACKLIGHT; 84*efd435a8SAlexander Sverdlin color = <LED_COLOR_ID_WHITE>; 85*efd435a8SAlexander Sverdlin linux,default-trigger = "backlight"; 86*efd435a8SAlexander Sverdlin }; 87*efd435a8SAlexander Sverdlin }; 88*efd435a8SAlexander Sverdlin }; 89*efd435a8SAlexander Sverdlin 90*efd435a8SAlexander Sverdlin... 91