forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 748e4f3d702def1a4bff191e0cf93b6a05340f01
kernel/Documentation/devicetree/bindings/mfd/ti-lmu.txt
....@@ -4,30 +4,44 @@
44
55 Name Child nodes
66 ------ ---------------------------------
7
- LM3532 Backlight
87 LM3631 Backlight and regulator
98 LM3632 Backlight and regulator
109 LM3633 Backlight, LED and fault monitor
1110 LM3695 Backlight
12
- LM3697 Backlight and fault monitor
11
+ LM36274 Backlight and regulator
1312
1413 Required properties:
1514 - compatible: Should be one of:
16
- "ti,lm3532"
1715 "ti,lm3631"
1816 "ti,lm3632"
1917 "ti,lm3633"
2018 "ti,lm3695"
21
- "ti,lm3697"
19
+ "ti,lm36274"
2220 - reg: I2C slave address.
2321 0x11 for LM3632
2422 0x29 for LM3631
25
- 0x36 for LM3633, LM3697
26
- 0x38 for LM3532
23
+ 0x36 for LM3633
2724 0x63 for LM3695
25
+ 0x11 for LM36274
2826
29
-Optional property:
27
+Optional properties:
3028 - enable-gpios: A GPIO specifier for hardware enable pin.
29
+ - ramp-up-us: Current ramping from one brightness level to
30
+ the a higher brightness level.
31
+ Range from 2048 us - 117.44 s
32
+ - ramp-down-us: Current ramping from one brightness level to
33
+ the a lower brightness level.
34
+ Range from 2048 us - 117.44 s
35
+ - ti,brightness-resolution - This determines whether to use 8 bit brightness
36
+ mode or 11 bit brightness mode. If this value is
37
+ not set the device is defaulted to the preferred
38
+ 8bit brightness mode per 7.3.4.1 of the data
39
+ sheet. This setting can either be in the parent
40
+ node or as part of the LED child nodes. This
41
+ is determined by the part itself if the strings
42
+ have a common brightness register or individual
43
+ brightness registers.
44
+ The values are 255 (8bit) or 2047 (11bit).
3145
3246 Required node:
3347 - backlight: All LMU devices have backlight child nodes.
....@@ -38,31 +52,15 @@
3852 Required properties:
3953 - compatible: Should be one of:
4054 "ti,lm3633-fault-monitor"
41
- "ti,lm3697-fault-monitor"
4255 - leds: LED properties for LM3633. Please refer to [2].
56
+ LED properties for LM36274. Please refer to [4].
4357 - regulators: Regulator properties for LM3631 and LM3632.
4458 Please refer to [3].
4559
4660 [1] ../leds/backlight/ti-lmu-backlight.txt
4761 [2] ../leds/leds-lm3633.txt
4862 [3] ../regulator/lm363x-regulator.txt
49
-
50
-lm3532@38 {
51
- compatible = "ti,lm3532";
52
- reg = <0x38>;
53
-
54
- enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>;
55
-
56
- backlight {
57
- compatible = "ti,lm3532-backlight";
58
-
59
- lcd {
60
- led-sources = <0 1 2>;
61
- ramp-up-msec = <30>;
62
- ramp-down-msec = <0>;
63
- };
64
- };
65
-};
63
+[4] ../leds/leds-lm36274.txt
6664
6765 lm3631@29 {
6866 compatible = "ti,lm3631";
....@@ -110,7 +108,7 @@
110108
111109 lcd_bl {
112110 led-sources = <0 1>;
113
- ramp-up-msec = <300>;
111
+ ramp-up-us = <300000>;
114112 };
115113 };
116114 };
....@@ -124,8 +122,8 @@
124122 regulators {
125123 compatible = "ti,lm363x-regulator";
126124
127
- ti,lcm-en1-gpio = <&pioC 0 GPIO_ACTIVE_HIGH>; /* PC0 */
128
- ti,lcm-en2-gpio = <&pioC 1 GPIO_ACTIVE_HIGH>; /* PC1 */
125
+ enable-gpios = <&pioC 0 GPIO_ACTIVE_HIGH>,
126
+ <&pioC 1 GPIO_ACTIVE_HIGH>;
129127
130128 vboost {
131129 regulator-name = "lcd_boost";
....@@ -172,15 +170,15 @@
172170 main {
173171 label = "main_lcd";
174172 led-sources = <1 2>;
175
- ramp-up-msec = <500>;
176
- ramp-down-msec = <500>;
173
+ ramp-up-us = <500000>;
174
+ ramp-down-us = <500000>;
177175 };
178176
179177 front {
180178 label = "front_lcd";
181179 led-sources = <0>;
182
- ramp-up-msec = <1000>;
183
- ramp-down-msec = <0>;
180
+ ramp-up-us = <1000000>;
181
+ ramp-down-us = <0>;
184182 };
185183 };
186184
....@@ -221,23 +219,51 @@
221219 };
222220 };
223221
224
-lm3697@36 {
225
- compatible = "ti,lm3697";
226
- reg = <0x36>;
222
+lm36274@11 {
223
+ compatible = "ti,lm36274";
224
+ #address-cells = <1>;
225
+ #size-cells = <0>;
226
+ reg = <0x11>;
227227
228228 enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>;
229
+ regulators {
230
+ #address-cells = <1>;
231
+ #size-cells = <0>;
232
+ compatible = "ti,lm363x-regulator";
229233
230
- backlight {
231
- compatible = "ti,lm3697-backlight";
234
+ enable-gpios = <&pioC 0 GPIO_ACTIVE_HIGH>,
235
+ <&pioC 1 GPIO_ACTIVE_HIGH>;
232236
233
- lcd {
234
- led-sources = <0 1 2>;
235
- ramp-up-msec = <200>;
236
- ramp-down-msec = <200>;
237
+ vboost {
238
+ regulator-name = "lcd_boost";
239
+ regulator-min-microvolt = <4000000>;
240
+ regulator-max-microvolt = <7150000>;
241
+ regulator-always-on;
242
+ };
243
+
244
+ vpos {
245
+ regulator-name = "lcd_vpos";
246
+ regulator-min-microvolt = <4000000>;
247
+ regulator-max-microvolt = <6500000>;
248
+ };
249
+
250
+ vneg {
251
+ regulator-name = "lcd_vneg";
252
+ regulator-min-microvolt = <4000000>;
253
+ regulator-max-microvolt = <6500000>;
237254 };
238255 };
239256
240
- fault-monitor {
241
- compatible = "ti,lm3697-fault-monitor";
257
+ backlight {
258
+ #address-cells = <1>;
259
+ #size-cells = <0>;
260
+ compatible = "ti,lm36274-backlight";
261
+
262
+ led@0 {
263
+ reg = <0>;
264
+ led-sources = <0 2>;
265
+ label = "white:backlight_cluster";
266
+ linux,default-trigger = "backlight";
267
+ };
242268 };
243269 };