[mlp-open-source/kernel.git] / Documentation / devicetree / bindings / video / backlight / lm3632_bl.txt
1 TI LM3632 Backlight Driver
3 Required properties:
4 - compatible: "ti,lm3632-backlight"
6 Optional properties:
7 - bl-name: Backlight device name. /sys/class/backlight/##bl-name##.
8 - full-strings-used: Define it in case of two LED strings used.
10 PWM specific optional properties:
11 - pwm-period: PWM period value. Define it in case of PWM based control mode.
12 If this property is not defined, then brightness control mode is I2C.
13 - pwm-max-brightness: Max current value in register 0x04 and 0x05.
14 Range is from 0 to 2047.
15 - pwms and pwm-names: Please refer to Documentation/devicetree/bindings/pwm/pwm.txt.
17 Example 1:
18 Brightness mode is I2C. Two backlight strings are used.
19 If 'bl-name' is not specified, then the lcd channel name is 'lcd-backlight'
20 by default. (/sys/class/backlight/lcd-backlight/)
22 lm3632@11 {
23 compatible = "ti,lm3632";
24 reg = <0x11>;
26 ti,en-gpio = <&gpio0 3 0>;
28 backlight {
29 compatible = "ti,lm3632-backlight";
30 full-strings-used;
31 };
32 };
34 Example 2:
35 Backlight mode is PWM. Brightness is controlled by PWM controller, PWM3943.
36 PWM#0 is port number of PMW3943.
37 Channel name is 'lcd'. (/sys/class/backlight/lcd/)
39 lm3632@11 {
40 compatible = "ti,lm3632";
41 reg = <0x11>;
43 ti,en-gpio = <&gpio0 3 0>;
45 backlight {
46 compatible = "ti,lm3632-backlight";
48 bl-name = "lcd";
49 full-strings-used;
51 pwm-period = <10000>;
52 pwm-max-brightness = <1637>; /* 20mA */
54 /* PWM controller for lm3632 backlight */
55 pwms = <&pwm3943 0 10000>;
56 pwm-names = "lm3632-backlight";
57 };
58 };