blob: 31be5a3d9f76f16a8a2503a82610cd8bcd6f6a0d [file] [log] [blame]
Rhyland Klein1291aa42012-05-08 11:42:39 -07001TPS65910 Power Management Integrated Circuit
2
3Required properties:
4- compatible: "ti,tps65910" or "ti,tps65911"
5- reg: I2C slave address
6- interrupts: the interrupt outputs of the controller
7- #gpio-cells: number of cells to describe a GPIO, this should be 2.
8 The first cell is the GPIO number.
9 The second cell is used to specify additional options <unused>.
10- gpio-controller: mark the device as a GPIO controller
11- #interrupt-cells: the number of cells to describe an IRQ, this should be 2.
12 The first cell is the IRQ number.
13 The second cell is the flags, encoded as the trigger masks from
14 Documentation/devicetree/bindings/interrupts.txt
15- regulators: This is the list of child nodes that specify the regulator
16 initialization data for defined regulators. Not all regulators for the given
17 device need to be present. The definition for each of these nodes is defined
18 using the standard binding for regulators found at
19 Documentation/devicetree/bindings/regulator/regulator.txt.
Laxman Dewangan8c5e4612012-07-05 12:53:04 +053020 The regulator is matched with the regulator-compatible.
Rhyland Klein1291aa42012-05-08 11:42:39 -070021
Laxman Dewangan8c5e4612012-07-05 12:53:04 +053022 The valid regulator-compatible values are:
Rhyland Klein1291aa42012-05-08 11:42:39 -070023 tps65910: vrtc, vio, vdd1, vdd2, vdd3, vdig1, vdig2, vpll, vdac, vaux1,
24 vaux2, vaux33, vmmc
25 tps65911: vrtc, vio, vdd1, vdd3, vddctrl, ldo1, ldo2, ldo3, ldo4, ldo5,
26 ldo6, ldo7, ldo8
27
28Optional properties:
29- ti,vmbch-threshold: (tps65911) main battery charged threshold
30 comparator. (see VMBCH_VSEL in TPS65910 datasheet)
31- ti,vmbch2-threshold: (tps65911) main battery discharged threshold
32 comparator. (see VMBCH_VSEL in TPS65910 datasheet)
33- ti,en-gpio-sleep: enable sleep control for gpios
34 There should be 9 entries here, one for each gpio.
Laxman Dewangan19228a62012-07-06 14:13:12 +053035- xxx-supply: Input voltage supply regulator.
36 Missing of these properties will be assume as there is no supply regulator
37 for that input pins and always powered on.
38 The valid input supply properties are:
39 tps65910:
40 vcc1-supply: VDD1 input.
41 vcc2-supply: VDD2 input.
42 vcc3-supply: VAUX33 and VMMC input.
43 vcc4-supply: VAUX1 and VAUX2 input.
44 vcc5-supply: VPLL and VDAC input.
45 vcc6-supply: VDIG1 and VDIG2 input.
46 vcc7-supply: VRTC input.
47 vccio-supply: VIO input.
48 tps65911:
49 vcc1-supply: VDD1 input.
50 vcc2-supply: VDD2 input.
51 vcc3-supply: LDO6, LDO7 and LDO8 input.
52 vcc4-supply: LDO5 input.
53 vcc5-supply: LDO3 and LDO4 input.
54 vcc6-supply: LDO1 and LDO2 input.
55 vcc7-supply: VRTC input.
56 vccio-supply: VIO input.
Rhyland Klein1291aa42012-05-08 11:42:39 -070057
58Regulator Optional properties:
59- ti,regulator-ext-sleep-control: enable external sleep
60 control through external inputs [0 (not enabled), 1 (EN1), 2 (EN2) or 4(EN3)]
61 If this property is not defined, it defaults to 0 (not enabled).
62
63Example:
64
65 pmu: tps65910@d2 {
66 compatible = "ti,tps65910";
67 reg = <0xd2>;
68 interrupt-parent = <&intc>;
69 interrupts = < 0 118 0x04 >;
70
71 #gpio-cells = <2>;
72 gpio-controller;
73
74 #interrupt-cells = <2>;
75 interrupt-controller;
76
77 ti,vmbch-threshold = 0;
78 ti,vmbch2-threshold = 0;
79
80 ti,en-gpio-sleep = <0 0 1 0 0 0 0 0 0>;
81
Laxman Dewangan19228a62012-07-06 14:13:12 +053082 vcc7-supply = <&reg_parent>;
83 vcc1-supply = <&reg_parent>;
84
Rhyland Klein1291aa42012-05-08 11:42:39 -070085 regulators {
Laxman Dewangan8c5e4612012-07-05 12:53:04 +053086 #address-cells = <1>;
87 #size-cells = <0>;
88
89 vdd1_reg: regulator@0 {
90 regulator-compatible = "vdd1";
91 reg = <0>;
Rhyland Klein1291aa42012-05-08 11:42:39 -070092 regulator-min-microvolt = < 600000>;
93 regulator-max-microvolt = <1500000>;
94 regulator-always-on;
95 regulator-boot-on;
96 ti,regulator-ext-sleep-control = <0>;
97 };
Laxman Dewangan8c5e4612012-07-05 12:53:04 +053098 vdd2_reg: regulator@1 {
99 regulator-compatible = "vdd2";
100 reg = <1>;
Rhyland Klein1291aa42012-05-08 11:42:39 -0700101 regulator-min-microvolt = < 600000>;
102 regulator-max-microvolt = <1500000>;
103 regulator-always-on;
104 regulator-boot-on;
105 ti,regulator-ext-sleep-control = <4>;
106 };
Laxman Dewangan8c5e4612012-07-05 12:53:04 +0530107 vddctrl_reg: regulator@2 {
108 regulator-compatible = "vddctrl";
109 reg = <2>;
Rhyland Klein1291aa42012-05-08 11:42:39 -0700110 regulator-min-microvolt = < 600000>;
111 regulator-max-microvolt = <1400000>;
112 regulator-always-on;
113 regulator-boot-on;
114 ti,regulator-ext-sleep-control = <0>;
115 };
Laxman Dewangan8c5e4612012-07-05 12:53:04 +0530116 vio_reg: regulator@3 {
117 regulator-compatible = "vio";
118 reg = <3>;
Rhyland Klein1291aa42012-05-08 11:42:39 -0700119 regulator-min-microvolt = <1500000>;
120 regulator-max-microvolt = <1800000>;
121 regulator-always-on;
122 regulator-boot-on;
123 ti,regulator-ext-sleep-control = <1>;
124 };
Laxman Dewangan8c5e4612012-07-05 12:53:04 +0530125 ldo1_reg: regulator@4 {
126 regulator-compatible = "ldo1";
127 reg = <4>;
Rhyland Klein1291aa42012-05-08 11:42:39 -0700128 regulator-min-microvolt = <1000000>;
129 regulator-max-microvolt = <3300000>;
130 ti,regulator-ext-sleep-control = <0>;
131 };
Laxman Dewangan8c5e4612012-07-05 12:53:04 +0530132 ldo2_reg: regulator@5 {
133 regulator-compatible = "ldo2";
134 reg = <5>;
Rhyland Klein1291aa42012-05-08 11:42:39 -0700135 regulator-min-microvolt = <1050000>;
136 regulator-max-microvolt = <1050000>;
137 ti,regulator-ext-sleep-control = <0>;
138 };
Laxman Dewangan8c5e4612012-07-05 12:53:04 +0530139 ldo3_reg: regulator@6 {
140 regulator-compatible = "ldo3";
141 reg = <6>;
Rhyland Klein1291aa42012-05-08 11:42:39 -0700142 regulator-min-microvolt = <1000000>;
143 regulator-max-microvolt = <3300000>;
144 ti,regulator-ext-sleep-control = <0>;
145 };
Laxman Dewangan8c5e4612012-07-05 12:53:04 +0530146 ldo4_reg: regulator@7 {
147 regulator-compatible = "ldo4";
148 reg = <7>;
Rhyland Klein1291aa42012-05-08 11:42:39 -0700149 regulator-min-microvolt = <1000000>;
150 regulator-max-microvolt = <3300000>;
151 regulator-always-on;
152 ti,regulator-ext-sleep-control = <0>;
153 };
Laxman Dewangan8c5e4612012-07-05 12:53:04 +0530154 ldo5_reg: regulator@8 {
155 regulator-compatible = "ldo5";
156 reg = <8>;
Rhyland Klein1291aa42012-05-08 11:42:39 -0700157 regulator-min-microvolt = <1000000>;
158 regulator-max-microvolt = <3300000>;
159 ti,regulator-ext-sleep-control = <0>;
160 };
Laxman Dewangan8c5e4612012-07-05 12:53:04 +0530161 ldo6_reg: regulator@9 {
162 regulator-compatible = "ldo6";
163 reg = <9>;
Rhyland Klein1291aa42012-05-08 11:42:39 -0700164 regulator-min-microvolt = <1200000>;
165 regulator-max-microvolt = <1200000>;
166 ti,regulator-ext-sleep-control = <0>;
167 };
Laxman Dewangan8c5e4612012-07-05 12:53:04 +0530168 ldo7_reg: regulator@10 {
169 regulator-compatible = "ldo7";
170 reg = <10>;
Rhyland Klein1291aa42012-05-08 11:42:39 -0700171 regulator-min-microvolt = <1200000>;
172 regulator-max-microvolt = <1200000>;
173 regulator-always-on;
174 regulator-boot-on;
175 ti,regulator-ext-sleep-control = <1>;
176 };
Laxman Dewangan8c5e4612012-07-05 12:53:04 +0530177 ldo8_reg: regulator@11 {
178 regulator-compatible = "ldo8";
179 reg = <11>;
Rhyland Klein1291aa42012-05-08 11:42:39 -0700180 regulator-min-microvolt = <1000000>;
181 regulator-max-microvolt = <3300000>;
182 regulator-always-on;
183 ti,regulator-ext-sleep-control = <1>;
184 };
185 };
186 };