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