xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/leds/leds-lm3692x.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Texas Instruments - LM3692x Highly Efficient White LED Driver
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThe LM3692x is an ultra-compact, highly efficient,
4*4882a593Smuzhiyunwhite-LED driver designed for LCD display backlighting.
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunThe main difference between the LM36922 and LM36923 is the number of
7*4882a593SmuzhiyunLED strings it supports.  The LM36922 supports two strings while the LM36923
8*4882a593Smuzhiyunsupports three strings.
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunRequired properties:
11*4882a593Smuzhiyun	- compatible:
12*4882a593Smuzhiyun		"ti,lm36922"
13*4882a593Smuzhiyun		"ti,lm36923"
14*4882a593Smuzhiyun	- reg :  I2C slave address
15*4882a593Smuzhiyun	- #address-cells : 1
16*4882a593Smuzhiyun	- #size-cells : 0
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunOptional properties:
19*4882a593Smuzhiyun	- enable-gpios : gpio pin to enable/disable the device.
20*4882a593Smuzhiyun	- vled-supply : LED supply
21*4882a593Smuzhiyun	- ti,ovp-microvolt: Overvoltage protection in
22*4882a593Smuzhiyun	    micro-volt, can be 17000000, 21000000, 25000000 or
23*4882a593Smuzhiyun	    29000000. If ti,ovp-microvolt is not specified it
24*4882a593Smuzhiyun	    defaults to 29000000.
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunRequired child properties:
27*4882a593Smuzhiyun	- reg : 0 - Will enable all LED sync paths
28*4882a593Smuzhiyun		1 - Will enable the LED1 sync
29*4882a593Smuzhiyun		2 - Will enable the LED2 sync
30*4882a593Smuzhiyun		3 - Will enable the LED3 sync (LM36923 only)
31*4882a593Smuzhiyun
32*4882a593SmuzhiyunOptional child properties:
33*4882a593Smuzhiyun	- function : see Documentation/devicetree/bindings/leds/common.txt
34*4882a593Smuzhiyun	- color : see Documentation/devicetree/bindings/leds/common.txt
35*4882a593Smuzhiyun	- label : see Documentation/devicetree/bindings/leds/common.txt (deprecated)
36*4882a593Smuzhiyun	- linux,default-trigger :
37*4882a593Smuzhiyun	   see Documentation/devicetree/bindings/leds/common.txt
38*4882a593Smuzhiyun	- led-max-microamp :
39*4882a593Smuzhiyun	   see Documentation/devicetree/bindings/leds/common.txt
40*4882a593Smuzhiyun
41*4882a593SmuzhiyunExample:
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun#include <dt-bindings/leds/common.h>
44*4882a593Smuzhiyun
45*4882a593Smuzhiyunled-controller@36 {
46*4882a593Smuzhiyun	compatible = "ti,lm3692x";
47*4882a593Smuzhiyun	reg = <0x36>;
48*4882a593Smuzhiyun	#address-cells = <1>;
49*4882a593Smuzhiyun	#size-cells = <0>;
50*4882a593Smuzhiyun
51*4882a593Smuzhiyun	enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
52*4882a593Smuzhiyun	vled-supply = <&vbatt>;
53*4882a593Smuzhiyun	ti,ovp-microvolt = <29000000>;
54*4882a593Smuzhiyun
55*4882a593Smuzhiyun	led@0 {
56*4882a593Smuzhiyun		reg = <0>;
57*4882a593Smuzhiyun		function = LED_FUNCTION_BACKLIGHT;
58*4882a593Smuzhiyun		color = <LED_COLOR_ID_WHITE>;
59*4882a593Smuzhiyun		linux,default-trigger = "backlight";
60*4882a593Smuzhiyun		led-max-microamp = <20000>;
61*4882a593Smuzhiyun	};
62*4882a593Smuzhiyun}
63*4882a593Smuzhiyun
64*4882a593SmuzhiyunFor more product information please see the link below:
65*4882a593Smuzhiyunhttps://www.ti.com/lit/ds/snvsa29/snvsa29.pdf
66