Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: mfd: Add lm36274 bindings to ti-lmu

Add the LM36274 backlight driver with regulator support.
This is a multi-function device for backlight applications.

Backlight properties will be documented in it's a supplemental
bindings document.

Regulator support is documented in the regulator/lm363x-regulator.txt

http://www.ti.com/lit/ds/symlink/lm36274.pdf

Signed-off-by: Dan Murphy <dmurphy@ti.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>

authored by

Dan Murphy and committed by
Jacek Anaszewski
46657432 5c1d824c

+54
+54
Documentation/devicetree/bindings/mfd/ti-lmu.txt
··· 8 8 LM3632 Backlight and regulator 9 9 LM3633 Backlight, LED and fault monitor 10 10 LM3695 Backlight 11 + LM36274 Backlight and regulator 11 12 12 13 Required properties: 13 14 - compatible: Should be one of: ··· 16 15 "ti,lm3632" 17 16 "ti,lm3633" 18 17 "ti,lm3695" 18 + "ti,lm36274" 19 19 - reg: I2C slave address. 20 20 0x11 for LM3632 21 21 0x29 for LM3631 22 22 0x36 for LM3633 23 23 0x63 for LM3695 24 + 0x11 for LM36274 24 25 25 26 Optional properties: 26 27 - enable-gpios: A GPIO specifier for hardware enable pin. ··· 53 50 - compatible: Should be one of: 54 51 "ti,lm3633-fault-monitor" 55 52 - leds: LED properties for LM3633. Please refer to [2]. 53 + LED properties for LM36274. Please refer to [4]. 56 54 - regulators: Regulator properties for LM3631 and LM3632. 57 55 Please refer to [3]. 58 56 59 57 [1] ../leds/backlight/ti-lmu-backlight.txt 60 58 [2] ../leds/leds-lm3633.txt 61 59 [3] ../regulator/lm363x-regulator.txt 60 + [4] ../leds/leds-lm36274.txt 62 61 63 62 lm3631@29 { 64 63 compatible = "ti,lm3631"; ··· 215 210 lcd { 216 211 label = "bl"; 217 212 led-sources = <0 1>; 213 + }; 214 + }; 215 + }; 216 + 217 + lm36274@11 { 218 + compatible = "ti,lm36274"; 219 + #address-cells = <1>; 220 + #size-cells = <0>; 221 + reg = <0x11>; 222 + 223 + enable-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>; 224 + regulators { 225 + #address-cells = <1>; 226 + #size-cells = <0>; 227 + compatible = "ti,lm363x-regulator"; 228 + 229 + enable-gpios = <&pioC 0 GPIO_ACTIVE_HIGH>, 230 + <&pioC 1 GPIO_ACTIVE_HIGH>; 231 + 232 + vboost { 233 + regulator-name = "lcd_boost"; 234 + regulator-min-microvolt = <4000000>; 235 + regulator-max-microvolt = <7150000>; 236 + regulator-always-on; 237 + }; 238 + 239 + vpos { 240 + regulator-name = "lcd_vpos"; 241 + regulator-min-microvolt = <4000000>; 242 + regulator-max-microvolt = <6500000>; 243 + }; 244 + 245 + vneg { 246 + regulator-name = "lcd_vneg"; 247 + regulator-min-microvolt = <4000000>; 248 + regulator-max-microvolt = <6500000>; 249 + }; 250 + }; 251 + 252 + backlight { 253 + #address-cells = <1>; 254 + #size-cells = <0>; 255 + compatible = "ti,lm36274-backlight"; 256 + 257 + led@0 { 258 + reg = <0>; 259 + led-sources = <0 2>; 260 + label = "white:backlight_cluster"; 261 + linux,default-trigger = "backlight"; 218 262 }; 219 263 }; 220 264 };