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