xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/leds/leds-lm36274.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Texas Instruments LM36274 4-Channel LCD Backlight Driver w/Integrated Bias
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThe LM36274 is an integrated four-channel WLED driver and LCD bias supply.
4*4882a593SmuzhiyunThe backlight boost provides the power to bias four parallel LED strings with
5*4882a593Smuzhiyunup to 29V total output voltage. The 11-bit LED current is programmable via
6*4882a593Smuzhiyunthe I2C bus and/or controlled via a logic level PWM input from 60 uA to 30 mA.
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunParent device properties are documented in
9*4882a593SmuzhiyunDocumentation/devicetree/bindings/mfd/ti-lmu.txt
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunRegulator properties are documented in
12*4882a593SmuzhiyunDocumentation/devicetree/bindings/regulator/lm363x-regulator.txt
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunRequired backlight properties:
15*4882a593Smuzhiyun	- compatible:
16*4882a593Smuzhiyun		"ti,lm36274-backlight"
17*4882a593Smuzhiyun	- reg : 0
18*4882a593Smuzhiyun	- #address-cells : 1
19*4882a593Smuzhiyun	- #size-cells : 0
20*4882a593Smuzhiyun	- led-sources : Indicates which LED strings will be enabled.
21*4882a593Smuzhiyun			Values from 0-3, sources is 0 based so strings will be
22*4882a593Smuzhiyun			source value + 1.
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunOptional backlight properties:
25*4882a593Smuzhiyun	- label : see Documentation/devicetree/bindings/leds/common.txt
26*4882a593Smuzhiyun	- linux,default-trigger :
27*4882a593Smuzhiyun	   see Documentation/devicetree/bindings/leds/common.txt
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunExample:
30*4882a593Smuzhiyun
31*4882a593SmuzhiyunHVLED string 1 and 3 are controlled by control bank A and HVLED 2 string is
32*4882a593Smuzhiyuncontrolled by control bank B.
33*4882a593Smuzhiyun
34*4882a593Smuzhiyunlm36274@11 {
35*4882a593Smuzhiyun	compatible = "ti,lm36274";
36*4882a593Smuzhiyun	#address-cells = <1>;
37*4882a593Smuzhiyun	#size-cells = <0>;
38*4882a593Smuzhiyun	reg = <0x11>;
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun	enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
41*4882a593Smuzhiyun
42*4882a593Smuzhiyun	regulators {
43*4882a593Smuzhiyun		#address-cells = <1>;
44*4882a593Smuzhiyun		#size-cells = <0>;
45*4882a593Smuzhiyun		compatible = "ti,lm363x-regulator";
46*4882a593Smuzhiyun
47*4882a593Smuzhiyun		enable-gpios = <&pioC 0 GPIO_ACTIVE_HIGH>,
48*4882a593Smuzhiyun			       <&pioC 1 GPIO_ACTIVE_HIGH>;
49*4882a593Smuzhiyun
50*4882a593Smuzhiyun		vboost {
51*4882a593Smuzhiyun			regulator-name = "lcd_boost";
52*4882a593Smuzhiyun			regulator-min-microvolt = <4000000>;
53*4882a593Smuzhiyun			regulator-max-microvolt = <7150000>;
54*4882a593Smuzhiyun			regulator-always-on;
55*4882a593Smuzhiyun		};
56*4882a593Smuzhiyun
57*4882a593Smuzhiyun		vpos {
58*4882a593Smuzhiyun			regulator-name = "lcd_vpos";
59*4882a593Smuzhiyun			regulator-min-microvolt = <4000000>;
60*4882a593Smuzhiyun			regulator-max-microvolt = <6500000>;
61*4882a593Smuzhiyun		};
62*4882a593Smuzhiyun
63*4882a593Smuzhiyun		vneg {
64*4882a593Smuzhiyun			regulator-name = "lcd_vneg";
65*4882a593Smuzhiyun			regulator-min-microvolt = <4000000>;
66*4882a593Smuzhiyun			regulator-max-microvolt = <6500000>;
67*4882a593Smuzhiyun		};
68*4882a593Smuzhiyun	};
69*4882a593Smuzhiyun
70*4882a593Smuzhiyun	backlight {
71*4882a593Smuzhiyun		#address-cells = <1>;
72*4882a593Smuzhiyun		#size-cells = <0>;
73*4882a593Smuzhiyun		compatible = "ti,lm36274-backlight";
74*4882a593Smuzhiyun
75*4882a593Smuzhiyun		led@0 {
76*4882a593Smuzhiyun			reg = <0>;
77*4882a593Smuzhiyun			led-sources = <0 2>;
78*4882a593Smuzhiyun			label = "white:backlight_cluster";
79*4882a593Smuzhiyun			linux,default-trigger = "backlight";
80*4882a593Smuzhiyun		};
81*4882a593Smuzhiyun	};
82*4882a593Smuzhiyun};
83*4882a593Smuzhiyun
84*4882a593SmuzhiyunFor more product information please see the link below:
85*4882a593Smuzhiyunhttps://www.ti.com/lit/ds/symlink/lm36274.pdf
86