xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/leds/leds-lm3601x.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Texas Instruments - lm3601x Single-LED Flash Driver
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThe LM3601X are ultra-small LED flash drivers that
4*4882a593Smuzhiyunprovide a high level of adjustability.
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunRequired properties:
7*4882a593Smuzhiyun	- compatible : Can be one of the following
8*4882a593Smuzhiyun		"ti,lm36010"
9*4882a593Smuzhiyun		"ti,lm36011"
10*4882a593Smuzhiyun	- reg : I2C slave address
11*4882a593Smuzhiyun	- #address-cells : 1
12*4882a593Smuzhiyun	- #size-cells : 0
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunRequired child properties:
15*4882a593Smuzhiyun	- reg : 0 - Indicates a IR mode
16*4882a593Smuzhiyun		1 - Indicates a Torch (white LED) mode
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunRequired properties for flash LED child nodes:
19*4882a593Smuzhiyun	See Documentation/devicetree/bindings/leds/common.txt
20*4882a593Smuzhiyun	- flash-max-microamp : Range from 11mA - 1.5A
21*4882a593Smuzhiyun	- flash-max-timeout-us : Range from 40ms - 1600ms
22*4882a593Smuzhiyun	- led-max-microamp : Range from 2.4mA - 376mA
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunOptional child properties:
25*4882a593Smuzhiyun	- function : see Documentation/devicetree/bindings/leds/common.txt
26*4882a593Smuzhiyun	- color : see Documentation/devicetree/bindings/leds/common.txt
27*4882a593Smuzhiyun	- label : see Documentation/devicetree/bindings/leds/common.txt (deprecated)
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunExample:
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun#include <dt-bindings/leds/common.h>
32*4882a593Smuzhiyun
33*4882a593Smuzhiyunled-controller@64 {
34*4882a593Smuzhiyun	compatible = "ti,lm36010";
35*4882a593Smuzhiyun	#address-cells = <1>;
36*4882a593Smuzhiyun	#size-cells = <0>;
37*4882a593Smuzhiyun	reg = <0x64>;
38*4882a593Smuzhiyun
39*4882a593Smuzhiyun	led@0 {
40*4882a593Smuzhiyun		reg = <1>;
41*4882a593Smuzhiyun		function = LED_FUNCTION_TORCH;
42*4882a593Smuzhiyun		color = <LED_COLOR_ID_WHITE>;
43*4882a593Smuzhiyun		led-max-microamp = <376000>;
44*4882a593Smuzhiyun		flash-max-microamp = <1500000>;
45*4882a593Smuzhiyun		flash-max-timeout-us = <1600000>;
46*4882a593Smuzhiyun	};
47*4882a593Smuzhiyun}
48*4882a593Smuzhiyun
49*4882a593SmuzhiyunFor more product information please see the links below:
50*4882a593Smuzhiyunhttps://www.ti.com/product/LM36010
51*4882a593Smuzhiyunhttps://www.ti.com/product/LM36011
52