.. | .. |
---|
4 | 4 | |
---|
5 | 5 | Name Child nodes |
---|
6 | 6 | ------ --------------------------------- |
---|
7 | | - LM3532 Backlight |
---|
8 | 7 | LM3631 Backlight and regulator |
---|
9 | 8 | LM3632 Backlight and regulator |
---|
10 | 9 | LM3633 Backlight, LED and fault monitor |
---|
11 | 10 | LM3695 Backlight |
---|
12 | | - LM3697 Backlight and fault monitor |
---|
| 11 | + LM36274 Backlight and regulator |
---|
13 | 12 | |
---|
14 | 13 | Required properties: |
---|
15 | 14 | - compatible: Should be one of: |
---|
16 | | - "ti,lm3532" |
---|
17 | 15 | "ti,lm3631" |
---|
18 | 16 | "ti,lm3632" |
---|
19 | 17 | "ti,lm3633" |
---|
20 | 18 | "ti,lm3695" |
---|
21 | | - "ti,lm3697" |
---|
| 19 | + "ti,lm36274" |
---|
22 | 20 | - reg: I2C slave address. |
---|
23 | 21 | 0x11 for LM3632 |
---|
24 | 22 | 0x29 for LM3631 |
---|
25 | | - 0x36 for LM3633, LM3697 |
---|
26 | | - 0x38 for LM3532 |
---|
| 23 | + 0x36 for LM3633 |
---|
27 | 24 | 0x63 for LM3695 |
---|
| 25 | + 0x11 for LM36274 |
---|
28 | 26 | |
---|
29 | | -Optional property: |
---|
| 27 | +Optional properties: |
---|
30 | 28 | - 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). |
---|
31 | 45 | |
---|
32 | 46 | Required node: |
---|
33 | 47 | - backlight: All LMU devices have backlight child nodes. |
---|
.. | .. |
---|
38 | 52 | Required properties: |
---|
39 | 53 | - compatible: Should be one of: |
---|
40 | 54 | "ti,lm3633-fault-monitor" |
---|
41 | | - "ti,lm3697-fault-monitor" |
---|
42 | 55 | - leds: LED properties for LM3633. Please refer to [2]. |
---|
| 56 | + LED properties for LM36274. Please refer to [4]. |
---|
43 | 57 | - regulators: Regulator properties for LM3631 and LM3632. |
---|
44 | 58 | Please refer to [3]. |
---|
45 | 59 | |
---|
46 | 60 | [1] ../leds/backlight/ti-lmu-backlight.txt |
---|
47 | 61 | [2] ../leds/leds-lm3633.txt |
---|
48 | 62 | [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 |
---|
66 | 64 | |
---|
67 | 65 | lm3631@29 { |
---|
68 | 66 | compatible = "ti,lm3631"; |
---|
.. | .. |
---|
110 | 108 | |
---|
111 | 109 | lcd_bl { |
---|
112 | 110 | led-sources = <0 1>; |
---|
113 | | - ramp-up-msec = <300>; |
---|
| 111 | + ramp-up-us = <300000>; |
---|
114 | 112 | }; |
---|
115 | 113 | }; |
---|
116 | 114 | }; |
---|
.. | .. |
---|
124 | 122 | regulators { |
---|
125 | 123 | compatible = "ti,lm363x-regulator"; |
---|
126 | 124 | |
---|
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>; |
---|
129 | 127 | |
---|
130 | 128 | vboost { |
---|
131 | 129 | regulator-name = "lcd_boost"; |
---|
.. | .. |
---|
172 | 170 | main { |
---|
173 | 171 | label = "main_lcd"; |
---|
174 | 172 | led-sources = <1 2>; |
---|
175 | | - ramp-up-msec = <500>; |
---|
176 | | - ramp-down-msec = <500>; |
---|
| 173 | + ramp-up-us = <500000>; |
---|
| 174 | + ramp-down-us = <500000>; |
---|
177 | 175 | }; |
---|
178 | 176 | |
---|
179 | 177 | front { |
---|
180 | 178 | label = "front_lcd"; |
---|
181 | 179 | led-sources = <0>; |
---|
182 | | - ramp-up-msec = <1000>; |
---|
183 | | - ramp-down-msec = <0>; |
---|
| 180 | + ramp-up-us = <1000000>; |
---|
| 181 | + ramp-down-us = <0>; |
---|
184 | 182 | }; |
---|
185 | 183 | }; |
---|
186 | 184 | |
---|
.. | .. |
---|
221 | 219 | }; |
---|
222 | 220 | }; |
---|
223 | 221 | |
---|
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>; |
---|
227 | 227 | |
---|
228 | 228 | enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>; |
---|
| 229 | + regulators { |
---|
| 230 | + #address-cells = <1>; |
---|
| 231 | + #size-cells = <0>; |
---|
| 232 | + compatible = "ti,lm363x-regulator"; |
---|
229 | 233 | |
---|
230 | | - backlight { |
---|
231 | | - compatible = "ti,lm3697-backlight"; |
---|
| 234 | + enable-gpios = <&pioC 0 GPIO_ACTIVE_HIGH>, |
---|
| 235 | + <&pioC 1 GPIO_ACTIVE_HIGH>; |
---|
232 | 236 | |
---|
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>; |
---|
237 | 254 | }; |
---|
238 | 255 | }; |
---|
239 | 256 | |
---|
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 | + }; |
---|
242 | 268 | }; |
---|
243 | 269 | }; |
---|