diff options
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/mfd/lm3632.txt | 4 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/video/backlight/lm3632_bl.txt | 31 |
2 files changed, 32 insertions, 3 deletions
diff --git a/Documentation/devicetree/bindings/mfd/lm3632.txt b/Documentation/devicetree/bindings/mfd/lm3632.txt index 3ab8ef5..9bec8a2 100644 --- a/Documentation/devicetree/bindings/mfd/lm3632.txt +++ b/Documentation/devicetree/bindings/mfd/lm3632.txt | |||
@@ -61,5 +61,9 @@ lm3632@11 { | |||
61 | 61 | ||
62 | pwm-period = <10000>; | 62 | pwm-period = <10000>; |
63 | pwm-max-brightness = <1637>; /* 20mA */ | 63 | pwm-max-brightness = <1637>; /* 20mA */ |
64 | |||
65 | /* PWM controller for lm3632 backlight */ | ||
66 | pwms = <&pwm3943 0 10000>; | ||
67 | pwm-names = "lm3632-backlight"; | ||
64 | }; | 68 | }; |
65 | }; | 69 | }; |
diff --git a/Documentation/devicetree/bindings/video/backlight/lm3632_bl.txt b/Documentation/devicetree/bindings/video/backlight/lm3632_bl.txt index c09b911..4158c4b 100644 --- a/Documentation/devicetree/bindings/video/backlight/lm3632_bl.txt +++ b/Documentation/devicetree/bindings/video/backlight/lm3632_bl.txt | |||
@@ -4,7 +4,7 @@ Required properties: | |||
4 | - compatible: "ti,lm3632-backlight" | 4 | - compatible: "ti,lm3632-backlight" |
5 | 5 | ||
6 | Optional properties: | 6 | Optional properties: |
7 | - bl-name: Backlight device name | 7 | - bl-name: Backlight device name. /sys/class/backlight/##bl-name##. |
8 | - full-strings-used: Define it in case of two LED strings used. | 8 | - full-strings-used: Define it in case of two LED strings used. |
9 | 9 | ||
10 | PWM specific optional properties: | 10 | PWM specific optional properties: |
@@ -12,15 +12,36 @@ PWM specific optional properties: | |||
12 | If this property is not defined, then brightness control mode is I2C. | 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. | 13 | - pwm-max-brightness: Max current value in register 0x04 and 0x05. |
14 | Range is from 0 to 2047. | 14 | Range is from 0 to 2047. |
15 | - pwms and pwm-names: Please refer to Documentation/devicetree/bindings/pwm/pwm.txt. | ||
16 | |||
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/) | ||
21 | |||
22 | lm3632@11 { | ||
23 | compatible = "ti,lm3632"; | ||
24 | reg = <0x11>; | ||
25 | |||
26 | ti,en-gpio = <&gpio0 3 0>; | ||
27 | |||
28 | backlight { | ||
29 | compatible = "ti,lm3632-backlight"; | ||
30 | full-strings-used; | ||
31 | }; | ||
32 | }; | ||
33 | |||
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/) | ||
15 | 38 | ||
16 | Example: | ||
17 | lm3632@11 { | 39 | lm3632@11 { |
18 | compatible = "ti,lm3632"; | 40 | compatible = "ti,lm3632"; |
19 | reg = <0x11>; | 41 | reg = <0x11>; |
20 | 42 | ||
21 | ti,en-gpio = <&gpio0 3 0>; | 43 | ti,en-gpio = <&gpio0 3 0>; |
22 | 44 | ||
23 | /* Backlight mode is PWM, two strings used */ | ||
24 | backlight { | 45 | backlight { |
25 | compatible = "ti,lm3632-backlight"; | 46 | compatible = "ti,lm3632-backlight"; |
26 | 47 | ||
@@ -29,5 +50,9 @@ lm3632@11 { | |||
29 | 50 | ||
30 | pwm-period = <10000>; | 51 | pwm-period = <10000>; |
31 | pwm-max-brightness = <1637>; /* 20mA */ | 52 | pwm-max-brightness = <1637>; /* 20mA */ |
53 | |||
54 | /* PWM controller for lm3632 backlight */ | ||
55 | pwms = <&pwm3943 0 10000>; | ||
56 | pwm-names = "lm3632-backlight"; | ||
32 | }; | 57 | }; |
33 | }; | 58 | }; |