1TI LMU (Lighting Management Unit) device tree bindings
2
3TI LMU driver supports lighting devices below.
4
5   Name                  Child nodes
6  ------      ---------------------------------
7  LM3631       Backlight and regulator
8  LM3632       Backlight and regulator
9  LM3633       Backlight, LED and fault monitor
10  LM3695       Backlight
11  LM3697       Backlight and fault monitor
12
13Required properties:
14  - compatible: Should be one of:
15                "ti,lm3631"
16                "ti,lm3632"
17                "ti,lm3633"
18                "ti,lm3695"
19                "ti,lm3697"
20  - reg: I2C slave address.
21         0x11 for LM3632
22         0x29 for LM3631
23         0x36 for LM3633, LM3697
24         0x63 for LM3695
25
26Optional property:
27  - enable-gpios: A GPIO specifier for hardware enable pin.
28
29Required node:
30  - backlight: All LMU devices have backlight child nodes.
31               For the properties, please refer to [1].
32
33Optional nodes:
34  - fault-monitor: Hardware fault monitoring driver for LM3633 and LM3697.
35    Required properties:
36      - compatible: Should be one of:
37                    "ti,lm3633-fault-monitor"
38                    "ti,lm3697-fault-monitor"
39  - leds: LED properties for LM3633. Please refer to [2].
40  - regulators: Regulator properties for LM3631 and LM3632.
41                Please refer to [3].
42
43[1] ../leds/backlight/ti-lmu-backlight.txt
44[2] ../leds/leds-lm3633.txt
45[3] ../regulator/lm363x-regulator.txt
46
47lm3631@29 {
48	compatible = "ti,lm3631";
49	reg = <0x29>;
50
51	regulators {
52		compatible = "ti,lm363x-regulator";
53
54		vboost {
55			regulator-name = "lcd_boost";
56			regulator-min-microvolt = <4500000>;
57			regulator-max-microvolt = <6350000>;
58			regulator-always-on;
59		};
60
61		vcont {
62			regulator-name = "lcd_vcont";
63			regulator-min-microvolt = <1800000>;
64			regulator-max-microvolt = <3300000>;
65		};
66
67		voref {
68			regulator-name = "lcd_voref";
69			regulator-min-microvolt = <4000000>;
70			regulator-max-microvolt = <6000000>;
71		};
72
73		vpos {
74			regulator-name = "lcd_vpos";
75			regulator-min-microvolt = <4000000>;
76			regulator-max-microvolt = <6000000>;
77			regulator-boot-on;
78		};
79
80		vneg {
81			regulator-name = "lcd_vneg";
82			regulator-min-microvolt = <4000000>;
83			regulator-max-microvolt = <6000000>;
84			regulator-boot-on;
85		};
86	};
87
88	backlight {
89		compatible = "ti,lm3631-backlight";
90
91		lcd_bl {
92			led-sources = <0 1>;
93			ramp-up-msec = <300>;
94		};
95	};
96};
97
98lm3632@11 {
99	compatible = "ti,lm3632";
100	reg = <0x11>;
101
102	enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>; /* PC2 */
103
104	regulators {
105		compatible = "ti,lm363x-regulator";
106
107		enable-gpios = <&pioC 0 GPIO_ACTIVE_HIGH>,
108			       <&pioC 1 GPIO_ACTIVE_HIGH>;
109
110		vboost {
111			regulator-name = "lcd_boost";
112			regulator-min-microvolt = <4500000>;
113			regulator-max-microvolt = <6400000>;
114			regulator-always-on;
115		};
116
117		vpos {
118			regulator-name = "lcd_vpos";
119			regulator-min-microvolt = <4000000>;
120			regulator-max-microvolt = <6000000>;
121		};
122
123		vneg {
124			regulator-name = "lcd_vneg";
125			regulator-min-microvolt = <4000000>;
126			regulator-max-microvolt = <6000000>;
127		};
128	};
129
130	backlight {
131		compatible = "ti,lm3632-backlight";
132
133		pwms = <&pwm0 0 10000 0>; /* pwm number, period, polarity */
134		pwm-names = "lmu-backlight";
135
136		lcd {
137			led-sources = <0 1>;
138			pwm-period = <10000>;
139		};
140	};
141};
142
143lm3633@36 {
144	compatible = "ti,lm3633";
145	reg = <0x36>;
146
147	enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>;
148
149	backlight {
150		compatible = "ti,lm3633-backlight";
151
152		main {
153			label = "main_lcd";
154			led-sources = <1 2>;
155			ramp-up-msec = <500>;
156			ramp-down-msec = <500>;
157		};
158
159		front {
160			label = "front_lcd";
161			led-sources = <0>;
162			ramp-up-msec = <1000>;
163			ramp-down-msec = <0>;
164		};
165	};
166
167	leds {
168		compatible = "ti,lm3633-leds";
169
170		chan1 {
171			label = "status";
172			led-sources = <1>;
173			led-max-microamp = <6000>;
174		};
175
176		chan345 {
177			label = "rgb";
178			led-sources = <3 4 5>;
179			led-max-microamp = <10000>;
180		};
181	};
182
183	fault-monitor {
184		compatible = "ti,lm3633-fault-monitor";
185	};
186};
187
188lm3695@63 {
189	compatible = "ti,lm3695";
190	reg = <0x63>;
191
192	enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>;
193
194	backlight {
195		compatible = "ti,lm3695-backlight";
196
197		lcd {
198			label = "bl";
199			led-sources = <0 1>;
200		};
201	};
202};
203
204lm3697@36 {
205	compatible = "ti,lm3697";
206	reg = <0x36>;
207
208	enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>;
209
210	backlight {
211		compatible = "ti,lm3697-backlight";
212
213		lcd {
214			led-sources = <0 1 2>;
215			ramp-up-msec = <200>;
216			ramp-down-msec = <200>;
217		};
218	};
219
220	fault-monitor {
221		compatible = "ti,lm3697-fault-monitor";
222	};
223};
224