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