diff options
author | Haojian Zhuang <haojian.zhuang@gmail.com> | 2012-09-21 06:06:52 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-10-02 05:43:13 -0400 |
commit | 2e57d56747e601b3e0ff6697e524025d0504d161 (patch) | |
tree | 29a7c677878d39f64e90dfbdf7063a11c08d4c15 /Documentation | |
parent | 837c8293ba24d08cd7438d82ad9bb8d2fb0f8a5b (diff) |
mfd: 88pm860x: Device tree support
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'Documentation')
3 files changed, 130 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/mfd/88pm860x.txt b/Documentation/devicetree/bindings/mfd/88pm860x.txt new file mode 100644 index 000000000000..63f3ee33759c --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/88pm860x.txt | |||
@@ -0,0 +1,85 @@ | |||
1 | * Marvell 88PM860x Power Management IC | ||
2 | |||
3 | Required parent device properties: | ||
4 | - compatible : "marvell,88pm860x" | ||
5 | - reg : the I2C slave address for the 88pm860x chip | ||
6 | - interrupts : IRQ line for the 88pm860x chip | ||
7 | - interrupt-controller: describes the 88pm860x as an interrupt controller (has its own domain) | ||
8 | - #interrupt-cells : should be 1. | ||
9 | - The cell is the 88pm860x local IRQ number | ||
10 | |||
11 | Optional parent device properties: | ||
12 | - marvell,88pm860x-irq-read-clr: inicates whether interrupt status is cleared by read | ||
13 | - marvell,88pm860x-slave-addr: 88pm860x are two chips solution. <reg> stores the I2C address | ||
14 | of one chip, and this property stores the I2C address of | ||
15 | another chip. | ||
16 | |||
17 | 88pm860x consists of a large and varied group of sub-devices: | ||
18 | |||
19 | Device Supply Names Description | ||
20 | ------ ------------ ----------- | ||
21 | 88pm860x-onkey : : On key | ||
22 | 88pm860x-rtc : : RTC | ||
23 | 88pm8607 : : Regulators | ||
24 | 88pm860x-backlight : : Backlight | ||
25 | 88pm860x-led : : Led | ||
26 | 88pm860x-touch : : Touchscreen | ||
27 | |||
28 | Example: | ||
29 | |||
30 | pmic: 88pm860x@34 { | ||
31 | compatible = "marvell,88pm860x"; | ||
32 | reg = <0x34>; | ||
33 | interrupts = <4>; | ||
34 | interrupt-parent = <&intc>; | ||
35 | interrupt-controller; | ||
36 | #interrupt-cells = <1>; | ||
37 | |||
38 | marvell,88pm860x-irq-read-clr; | ||
39 | marvell,88pm860x-slave-addr = <0x11>; | ||
40 | |||
41 | regulators { | ||
42 | BUCK1 { | ||
43 | regulator-min-microvolt = <1000000>; | ||
44 | regulator-max-microvolt = <1500000>; | ||
45 | regulator-boot-on; | ||
46 | regulator-always-on; | ||
47 | }; | ||
48 | LDO1 { | ||
49 | regulator-min-microvolt = <1200000>; | ||
50 | regulator-max-microvolt = <2800000>; | ||
51 | regulator-boot-on; | ||
52 | regulator-always-on; | ||
53 | }; | ||
54 | }; | ||
55 | rtc { | ||
56 | marvell,88pm860x-vrtc = <1>; | ||
57 | }; | ||
58 | touch { | ||
59 | marvell,88pm860x-gpadc-prebias = <1>; | ||
60 | marvell,88pm860x-gpadc-slot-cycle = <1>; | ||
61 | marvell,88pm860x-tsi-prebias = <6>; | ||
62 | marvell,88pm860x-pen-prebias = <16>; | ||
63 | marvell,88pm860x-pen-prechg = <2>; | ||
64 | marvell,88pm860x-resistor-X = <300>; | ||
65 | }; | ||
66 | backlights { | ||
67 | backlight-0 { | ||
68 | marvell,88pm860x-iset = <4>; | ||
69 | marvell,88pm860x-pwm = <3>; | ||
70 | }; | ||
71 | backlight-2 { | ||
72 | }; | ||
73 | }; | ||
74 | leds { | ||
75 | led0-red { | ||
76 | marvell,88pm860x-iset = <12>; | ||
77 | }; | ||
78 | led0-green { | ||
79 | marvell,88pm860x-iset = <12>; | ||
80 | }; | ||
81 | led0-blue { | ||
82 | marvell,88pm860x-iset = <12>; | ||
83 | }; | ||
84 | }; | ||
85 | }; | ||
diff --git a/Documentation/devicetree/bindings/regulator/88pm860x.txt b/Documentation/devicetree/bindings/regulator/88pm860x.txt new file mode 100644 index 000000000000..1267b3e1a2cc --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/88pm860x.txt | |||
@@ -0,0 +1,30 @@ | |||
1 | Marvell 88PM860x regulator | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: "marvell,88pm860x" | ||
5 | - reg: I2C slave address | ||
6 | - regulators: A node that houses a sub-node for each regulator within the | ||
7 | device. Each sub-node is identified using the regulator-compatible | ||
8 | property, with valid values listed below. | ||
9 | |||
10 | Example: | ||
11 | |||
12 | pmic: 88pm860x@34 { | ||
13 | compatible = "marvell,88pm860x"; | ||
14 | reg = <0x34>; | ||
15 | |||
16 | regulators { | ||
17 | BUCK1 { | ||
18 | regulator-min-microvolt = <1000000>; | ||
19 | regulator-max-microvolt = <1500000>; | ||
20 | regulator-boot-on; | ||
21 | regulator-always-on; | ||
22 | }; | ||
23 | BUCK3 { | ||
24 | regulator-min-microvolt = <1000000>; | ||
25 | regulator-max-microvolt = <3000000>; | ||
26 | regulator-boot-on; | ||
27 | regulator-always-on; | ||
28 | }; | ||
29 | }; | ||
30 | }; | ||
diff --git a/Documentation/devicetree/bindings/video/backlight/88pm860x.txt b/Documentation/devicetree/bindings/video/backlight/88pm860x.txt new file mode 100644 index 000000000000..261df2799315 --- /dev/null +++ b/Documentation/devicetree/bindings/video/backlight/88pm860x.txt | |||
@@ -0,0 +1,15 @@ | |||
1 | 88pm860x-backlight bindings | ||
2 | |||
3 | Optional properties: | ||
4 | - marvell,88pm860x-iset: Current supplies on backlight device. | ||
5 | - marvell,88pm860x-pwm: PWM frequency on backlight device. | ||
6 | |||
7 | Example: | ||
8 | |||
9 | backlights { | ||
10 | backlight-0 { | ||
11 | marvell,88pm860x-iset = <4>; | ||
12 | marvell,88pm860x-pwm = <3>; | ||
13 | }; | ||
14 | backlight-2 { | ||
15 | }; | ||