summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilo Kim2015-02-26 03:16:29 -0600
committerMilo Kim2015-02-26 03:16:29 -0600
commit054595ffc6b3de83e431dd6928576fbd06a49e18 (patch)
tree397186742128c06d5cbded0f458efa38e99c5b4b /Documentation
parentac21cee342332c87b91ead7b9a43cd91dfde303a (diff)
downloadkernel-054595ffc6b3de83e431dd6928576fbd06a49e18.tar.gz
kernel-054595ffc6b3de83e431dd6928576fbd06a49e18.tar.xz
kernel-054595ffc6b3de83e431dd6928576fbd06a49e18.zip
DT:bindings:lm3632: update PWM description
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/mfd/lm3632.txt4
-rw-r--r--Documentation/devicetree/bindings/video/backlight/lm3632_bl.txt31
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
6Optional properties: 6Optional 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
10PWM specific optional properties: 10PWM 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
17Example 1:
18Brightness mode is I2C. Two backlight strings are used.
19If 'bl-name' is not specified, then the lcd channel name is 'lcd-backlight'
20by default. (/sys/class/backlight/lcd-backlight/)
21
22lm3632@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
34Example 2:
35Backlight mode is PWM. Brightness is controlled by PWM controller, PWM3943.
36PWM#0 is port number of PMW3943.
37Channel name is 'lcd'. (/sys/class/backlight/lcd/)
15 38
16Example:
17lm3632@11 { 39lm3632@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};