diff options
author | AnilKumar Ch <anilkumar@ti.com> | 2012-07-10 07:09:42 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-07-12 13:27:36 -0400 |
commit | a7f1b63eb85606ad77a559b95c703b99e1205aa4 (patch) | |
tree | 471d3fc22574ca0ec921bdda19851ddfc9ac73d3 /Documentation | |
parent | 257ee3c6dde02c2c93334f802a8fc34825c75369 (diff) |
regulator: tps65217: Add device tree support
This commit adds device tree support for tps65217 pmic. And usage
details are added to device tree documentation. Driver is tested
by using kernel module with regulator set and get APIs.
Signed-off-by: AnilKumar Ch <anilkumar@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/regulator/tps65217.txt | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/regulator/tps65217.txt b/Documentation/devicetree/bindings/regulator/tps65217.txt new file mode 100644 index 000000000000..0487e9675ba0 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/tps65217.txt | |||
@@ -0,0 +1,91 @@ | |||
1 | TPS65217 family of regulators | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: "ti,tps65217" | ||
5 | - reg: I2C slave address | ||
6 | - regulators: list of regulators provided by this controller, must be named | ||
7 | after their hardware counterparts: dcdc[1-3] and ldo[1-4] | ||
8 | - regulators: This is the list of child nodes that specify the regulator | ||
9 | initialization data for defined regulators. Not all regulators for the given | ||
10 | device need to be present. The definition for each of these nodes is defined | ||
11 | using the standard binding for regulators found at | ||
12 | Documentation/devicetree/bindings/regulator/regulator.txt. | ||
13 | |||
14 | The valid names for regulators are: | ||
15 | tps65217: dcdc1, dcdc2, dcdc3, ldo1, ldo2, ldo3 and ldo4 | ||
16 | |||
17 | Each regulator is defined using the standard binding for regulators. | ||
18 | |||
19 | Example: | ||
20 | |||
21 | tps: tps@24 { | ||
22 | compatible = "ti,tps65217"; | ||
23 | |||
24 | regulators { | ||
25 | #address-cells = <1>; | ||
26 | #size-cells = <0>; | ||
27 | |||
28 | dcdc1_reg: regulator@0 { | ||
29 | reg = <0>; | ||
30 | regulator-compatible = "dcdc1"; | ||
31 | regulator-min-microvolt = <900000>; | ||
32 | regulator-max-microvolt = <1800000>; | ||
33 | regulator-boot-on; | ||
34 | regulator-always-on; | ||
35 | }; | ||
36 | |||
37 | dcdc2_reg: regulator@1 { | ||
38 | reg = <1>; | ||
39 | regulator-compatible = "dcdc2"; | ||
40 | regulator-min-microvolt = <900000>; | ||
41 | regulator-max-microvolt = <3300000>; | ||
42 | regulator-boot-on; | ||
43 | regulator-always-on; | ||
44 | }; | ||
45 | |||
46 | dcdc3_reg: regulator@2 { | ||
47 | reg = <2>; | ||
48 | regulator-compatible = "dcdc3"; | ||
49 | regulator-min-microvolt = <900000>; | ||
50 | regulator-max-microvolt = <1500000>; | ||
51 | regulator-boot-on; | ||
52 | regulator-always-on; | ||
53 | }; | ||
54 | |||
55 | ldo1_reg: regulator@3 { | ||
56 | reg = <3>; | ||
57 | regulator-compatible = "ldo1"; | ||
58 | regulator-min-microvolt = <1000000>; | ||
59 | regulator-max-microvolt = <3300000>; | ||
60 | regulator-boot-on; | ||
61 | regulator-always-on; | ||
62 | }; | ||
63 | |||
64 | ldo2_reg: regulator@4 { | ||
65 | reg = <4>; | ||
66 | regulator-compatible = "ldo2"; | ||
67 | regulator-min-microvolt = <900000>; | ||
68 | regulator-max-microvolt = <3300000>; | ||
69 | regulator-boot-on; | ||
70 | regulator-always-on; | ||
71 | }; | ||
72 | |||
73 | ldo3_reg: regulator@5 { | ||
74 | reg = <5>; | ||
75 | regulator-compatible = "ldo3"; | ||
76 | regulator-min-microvolt = <1800000>; | ||
77 | regulator-max-microvolt = <3300000>; | ||
78 | regulator-boot-on; | ||
79 | regulator-always-on; | ||
80 | }; | ||
81 | |||
82 | ldo4_reg: regulator@6 { | ||
83 | reg = <6>; | ||
84 | regulator-compatible = "ldo4"; | ||
85 | regulator-min-microvolt = <1800000>; | ||
86 | regulator-max-microvolt = <3300000>; | ||
87 | regulator-boot-on; | ||
88 | regulator-always-on; | ||
89 | }; | ||
90 | }; | ||
91 | }; | ||