summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Jeong2015-02-12 05:29:40 -0600
committerDaniel Jeong2015-02-12 05:29:40 -0600
commitf75be32b6f117212d5374b542f69a5514d31ec2e (patch)
tree9a36a0abcc9c7167e12442a2862b3a223ba209fb /Documentation
parentd2f910f92cda889c7640d4d0a18f6e89ca5c9af9 (diff)
downloadkernel-f75be32b6f117212d5374b542f69a5514d31ec2e.tar.gz
kernel-f75be32b6f117212d5374b542f69a5514d31ec2e.tar.xz
kernel-f75be32b6f117212d5374b542f69a5514d31ec2e.zip
mfd : add new mfd device LM3631-backlight and regulator
Signed-off-by: Daniel Jeong <gshark.jeong@gmail.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/mfd/lm3631.txt59
-rw-r--r--Documentation/devicetree/bindings/regulator/lm3631-regulator.txt57
-rw-r--r--Documentation/devicetree/bindings/video/backlight/lm3631_bl.txt65
3 files changed, 181 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/mfd/lm3631.txt b/Documentation/devicetree/bindings/mfd/lm3631.txt
new file mode 100644
index 0000000..5247f8c
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/lm3631.txt
@@ -0,0 +1,59 @@
1TI LM3631 MFD Driver
2
3Required properties:
4 - compatible: "ti,lm3631"
5 - reg: I2C slave address. 0x29.
6 - ti,en-gpio: GPIO number of LM3631 nRST pin.
7
8LM3631 consists of two sub-devices, lm3631-regulator and lm3631-bl.
9
10For the LM3631 regulator properties please refer to:
11Documentation/devicetree/bindings/regulator/lm3631-regulator.txt
12
13For the LM3631 backlight properties please refer to:
14Documentation/devicetree/bindings/video/backlight/lm3631_bl.txt
15
16Example:
17
18lm3631@29 {
19 compatible = "ti,lm3631";
20 reg = <0x29>;
21
22 /* GPIO134 for HWEN pin */
23 ti,en-gpio = <&gpio5 6 0>;
24
25 /* Only Vpos and Vneg are used with LCD boost */
26 regulators {
27 compatible = "ti,lm3631-regulator";
28
29 vboost {
30 regulator-name = "lcd_boost";
31 regulator-min-microvolt = <4500000>;
32 regulator-max-microvolt = <6350000>;
33 regulator-always-on;
34 };
35
36 vpos {
37 regulator-name = "lcd_vpos";
38 regulator-min-microvolt = <4000000>;
39 regulator-max-microvolt = <6000000>;
40 regulator-boot-on;
41 };
42
43 vneg {
44 regulator-name = "lcd_vneg";
45 regulator-min-microvolt = <4000000>;
46 regulator-max-microvolt = <6000000>;
47 regulator-boot-on;
48 };
49 };
50
51 /* Backlight mode is I2C + PWM, two strings used */
52 backlight {
53 compatible = "ti,lm3631-backlight";
54
55 bl-name = "lcd";
56 full-strings-used;
57 mode-comb1;
58 };
59};
diff --git a/Documentation/devicetree/bindings/regulator/lm3631-regulator.txt b/Documentation/devicetree/bindings/regulator/lm3631-regulator.txt
new file mode 100644
index 0000000..f547632
--- /dev/null
+++ b/Documentation/devicetree/bindings/regulator/lm3631-regulator.txt
@@ -0,0 +1,57 @@
1TI LM3631 Regulator Driver
2
3Required properties:
4 - compatible: "ti,lm3631-regulator"
5 - Regulator init data from of-regulator structure.
6 Please refer to regulator.txt in this directory.
7
8Example:
9
10&i2c4 {
11 clock-frequency = <400000>;
12
13 lm3631@29 {
14 compatible = "ti,lm3631";
15 reg = <0x29>;
16
17 /* GPIO134 for HWEN pin */
18 ti,en-gpio = <&gpio5 6 0>;
19
20 regulators {
21 compatible = "ti,lm3631-regulator";
22
23 vboost {
24 regulator-name = "lcd_boost";
25 regulator-min-microvolt = <4500000>;
26 regulator-max-microvolt = <6350000>;
27 regulator-always-on;
28 };
29
30 vcont {
31 regulator-name = "lcd_cont";
32 regulator-min-microvolt = <1800000>;
33 regulator-max-microvolt = <3300000>;
34 };
35
36 voref {
37 regulator-compatible = "voref";
38 regulator-name = "lcd_oref";
39 regulator-min-microvolt = <4000000>;
40 regulator-max-microvolt = <6000000>;
41 };
42
43 vpos {
44 regulator-name = "lcd_vpos";
45 regulator-min-microvolt = <4000000>;
46 regulator-max-microvolt = <6000000>;
47 regulator-boot-on;
48 };
49
50 vneg {
51 regulator-name = "lcd_vneg";
52 regulator-min-microvolt = <4000000>;
53 regulator-max-microvolt = <6000000>;
54 regulator-boot-on;
55 };
56 };
57};
diff --git a/Documentation/devicetree/bindings/video/backlight/lm3631_bl.txt b/Documentation/devicetree/bindings/video/backlight/lm3631_bl.txt
new file mode 100644
index 0000000..0e5b22e
--- /dev/null
+++ b/Documentation/devicetree/bindings/video/backlight/lm3631_bl.txt
@@ -0,0 +1,65 @@
1TI LM3631 Backlight Driver
2
3Required properties:
4 - compatible: "ti,lm3631-backlight"
5
6Optional properties:
7 - bl-name: Backlight device name
8 - full-strings-used: Define it in case of two LED strings used.
9 - mode-pwm-only: PWM input mode
10 or mode-comb1: I2C x PWM befoer sloping
11 or mode-comb2: Sloped I2C x PWM
12 The default mode is the I2C only.
13 - initial-brightness: Initial brightness value
14
15PWM specific optional properties:
16 - pwm-period: PWM period value. Define it in case of PWM based control mode.
17 - pwms and pwm-names: Please refer to Documentation/devicetree/bindings/pwm/pwm.txt.
18
19
20Example 1:
21Brightness is I2C only mode. Backlight device name is 'lcd'.
22
23&i2c4 {
24 clock-frequency = <400000>;
25
26 lm3631@29 {
27 compatible = "ti,lm3631";
28 reg = <0x29>;
29
30 /* GPIO134 for HWEN pin */
31 ti,en-gpio = <&gpio5 6 0>;
32
33 backlight {
34 compatible = "ti,lm3631-backlight";
35 bl-name = "lcd";
36 full-strings-used;
37 };
38};
39
40Example 2:
41LM3631 brightness is controlled by PWM3943 controller.
42PWM3943 is a PWM controller. PWM#1 is port number of PMW3943.
43
44&i2c4 {
45 clock-frequency = <400000>;
46
47 lm3631@29 {
48 compatible = "ti,lm3631";
49 reg = <0x29>;
50
51 /* GPIO134 for HWEN pin */
52 ti,en-gpio = <&gpio5 6 0>;
53
54 backlight {
55 compatible = "ti,lm3631-backlight";
56 bl-name = "lcd";
57 full-strings-used;
58 mode-pwm-only;
59
60 pwm-period = <10000>;
61
62 pwms = <&pwm3943 1 10000>;
63 pwm-names = "lm3631-backlight";
64 };
65};