xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/leds/leds-lp8860.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Texas Instruments - lp8860 4-Channel LED Driver
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThe LP8860-Q1 is an high-efficiency LED
4*4882a593Smuzhiyundriver with boost controller. It has 4 high-precision
5*4882a593Smuzhiyuncurrent sinks that can be controlled by a PWM input
6*4882a593Smuzhiyunsignal, a SPI/I2C master, or both.
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunRequired properties:
9*4882a593Smuzhiyun	- compatible :
10*4882a593Smuzhiyun		"ti,lp8860"
11*4882a593Smuzhiyun	- reg : I2C slave address
12*4882a593Smuzhiyun	- #address-cells : 1
13*4882a593Smuzhiyun	- #size-cells : 0
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunOptional properties:
16*4882a593Smuzhiyun	- enable-gpios : gpio pin to enable (active high)/disable the device.
17*4882a593Smuzhiyun	- vled-supply : LED supply
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunRequired child properties:
20*4882a593Smuzhiyun	- reg : 0
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunOptional child properties:
23*4882a593Smuzhiyun	- function : see Documentation/devicetree/bindings/leds/common.txt
24*4882a593Smuzhiyun	- color : see Documentation/devicetree/bindings/leds/common.txt
25*4882a593Smuzhiyun	- label : see Documentation/devicetree/bindings/leds/common.txt (deprecated)
26*4882a593Smuzhiyun	- linux,default-trigger :
27*4882a593Smuzhiyun	   see Documentation/devicetree/bindings/leds/common.txt
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunExample:
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun#include <dt-bindings/leds/common.h>
32*4882a593Smuzhiyun
33*4882a593Smuzhiyunled-controller@2d {
34*4882a593Smuzhiyun	compatible = "ti,lp8860";
35*4882a593Smuzhiyun	#address-cells = <1>;
36*4882a593Smuzhiyun	#size-cells = <0>;
37*4882a593Smuzhiyun	reg = <0x2d>;
38*4882a593Smuzhiyun	enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
39*4882a593Smuzhiyun	vled-supply = <&vbatt>;
40*4882a593Smuzhiyun
41*4882a593Smuzhiyun	led@0 {
42*4882a593Smuzhiyun		reg = <0>;
43*4882a593Smuzhiyun		function = LED_FUNCTION_BACKLIGHT;
44*4882a593Smuzhiyun		color = <LED_COLOR_ID_WHITE>;
45*4882a593Smuzhiyun		linux,default-trigger = "backlight";
46*4882a593Smuzhiyun	};
47*4882a593Smuzhiyun}
48*4882a593Smuzhiyun
49*4882a593SmuzhiyunFor more product information please see the link below:
50*4882a593Smuzhiyunhttps://www.ti.com/product/lp8860-q1
51