blob: d2802d4717bcfe70c146c95a1bc430807feae514 [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
Laxman Dewangan19228a62012-07-06 14:13:12 +053028- xxx-supply: Input voltage supply regulator.
Laxman Dewangand2cfdb02012-07-17 11:34:06 +053029 These entries are require if regulators are enabled for a device. Missing of these
30 properties can cause the regulator registration fails.
31 If some of input supply is powered through battery or always-on supply then
32 also it is require to have these parameters with proper node handle of always
33 on power supply.
Laxman Dewangan19228a62012-07-06 14:13:12 +053034 tps65910:
35 vcc1-supply: VDD1 input.
36 vcc2-supply: VDD2 input.
37 vcc3-supply: VAUX33 and VMMC input.
38 vcc4-supply: VAUX1 and VAUX2 input.
39 vcc5-supply: VPLL and VDAC input.
40 vcc6-supply: VDIG1 and VDIG2 input.
41 vcc7-supply: VRTC input.
42 vccio-supply: VIO input.
43 tps65911:
44 vcc1-supply: VDD1 input.
45 vcc2-supply: VDD2 input.
46 vcc3-supply: LDO6, LDO7 and LDO8 input.
47 vcc4-supply: LDO5 input.
48 vcc5-supply: LDO3 and LDO4 input.
49 vcc6-supply: LDO1 and LDO2 input.
50 vcc7-supply: VRTC input.
51 vccio-supply: VIO input.
Rhyland Klein1291aa42012-05-08 11:42:39 -070052
Laxman Dewangand2cfdb02012-07-17 11:34:06 +053053Optional properties:
54- ti,vmbch-threshold: (tps65911) main battery charged threshold
55 comparator. (see VMBCH_VSEL in TPS65910 datasheet)
56- ti,vmbch2-threshold: (tps65911) main battery discharged threshold
57 comparator. (see VMBCH_VSEL in TPS65910 datasheet)
58- ti,en-ck32k-xtal: enable external 32-kHz crystal oscillator (see CK32K_CTRL
59 in TPS6591X datasheet)
60- ti,en-gpio-sleep: enable sleep control for gpios
61 There should be 9 entries here, one for each gpio.
62
Rhyland Klein1291aa42012-05-08 11:42:39 -070063Regulator Optional properties:
64- ti,regulator-ext-sleep-control: enable external sleep
65 control through external inputs [0 (not enabled), 1 (EN1), 2 (EN2) or 4(EN3)]
66 If this property is not defined, it defaults to 0 (not enabled).
67
68Example:
69
70 pmu: tps65910@d2 {
71 compatible = "ti,tps65910";
72 reg = <0xd2>;
73 interrupt-parent = <&intc>;
74 interrupts = < 0 118 0x04 >;
75
76 #gpio-cells = <2>;
77 gpio-controller;
78
79 #interrupt-cells = <2>;
80 interrupt-controller;
81
82 ti,vmbch-threshold = 0;
83 ti,vmbch2-threshold = 0;
84
85 ti,en-gpio-sleep = <0 0 1 0 0 0 0 0 0>;
86
Laxman Dewangan19228a62012-07-06 14:13:12 +053087 vcc1-supply = <&reg_parent>;
Laxman Dewangand2cfdb02012-07-17 11:34:06 +053088 vcc2-supply = <&some_reg>;
89 vcc3-supply = <...>;
90 vcc4-supply = <...>;
91 vcc5-supply = <...>;
92 vcc6-supply = <...>;
93 vcc7-supply = <...>;
94 vccio-supply = <...>;
Laxman Dewangan19228a62012-07-06 14:13:12 +053095
Rhyland Klein1291aa42012-05-08 11:42:39 -070096 regulators {
Laxman Dewangan8c5e4612012-07-05 12:53:04 +053097 #address-cells = <1>;
98 #size-cells = <0>;
99
100 vdd1_reg: regulator@0 {
101 regulator-compatible = "vdd1";
102 reg = <0>;
Rhyland Klein1291aa42012-05-08 11:42:39 -0700103 regulator-min-microvolt = < 600000>;
104 regulator-max-microvolt = <1500000>;
105 regulator-always-on;
106 regulator-boot-on;
107 ti,regulator-ext-sleep-control = <0>;
108 };
Laxman Dewangan8c5e4612012-07-05 12:53:04 +0530109 vdd2_reg: regulator@1 {
110 regulator-compatible = "vdd2";
111 reg = <1>;
Rhyland Klein1291aa42012-05-08 11:42:39 -0700112 regulator-min-microvolt = < 600000>;
113 regulator-max-microvolt = <1500000>;
114 regulator-always-on;
115 regulator-boot-on;
116 ti,regulator-ext-sleep-control = <4>;
117 };
Laxman Dewangan8c5e4612012-07-05 12:53:04 +0530118 vddctrl_reg: regulator@2 {
119 regulator-compatible = "vddctrl";
120 reg = <2>;
Rhyland Klein1291aa42012-05-08 11:42:39 -0700121 regulator-min-microvolt = < 600000>;
122 regulator-max-microvolt = <1400000>;
123 regulator-always-on;
124 regulator-boot-on;
125 ti,regulator-ext-sleep-control = <0>;
126 };
Laxman Dewangan8c5e4612012-07-05 12:53:04 +0530127 vio_reg: regulator@3 {
128 regulator-compatible = "vio";
129 reg = <3>;
Rhyland Klein1291aa42012-05-08 11:42:39 -0700130 regulator-min-microvolt = <1500000>;
131 regulator-max-microvolt = <1800000>;
132 regulator-always-on;
133 regulator-boot-on;
134 ti,regulator-ext-sleep-control = <1>;
135 };
Laxman Dewangan8c5e4612012-07-05 12:53:04 +0530136 ldo1_reg: regulator@4 {
137 regulator-compatible = "ldo1";
138 reg = <4>;
Rhyland Klein1291aa42012-05-08 11:42:39 -0700139 regulator-min-microvolt = <1000000>;
140 regulator-max-microvolt = <3300000>;
141 ti,regulator-ext-sleep-control = <0>;
142 };
Laxman Dewangan8c5e4612012-07-05 12:53:04 +0530143 ldo2_reg: regulator@5 {
144 regulator-compatible = "ldo2";
145 reg = <5>;
Rhyland Klein1291aa42012-05-08 11:42:39 -0700146 regulator-min-microvolt = <1050000>;
147 regulator-max-microvolt = <1050000>;
148 ti,regulator-ext-sleep-control = <0>;
149 };
Laxman Dewangan8c5e4612012-07-05 12:53:04 +0530150 ldo3_reg: regulator@6 {
151 regulator-compatible = "ldo3";
152 reg = <6>;
Rhyland Klein1291aa42012-05-08 11:42:39 -0700153 regulator-min-microvolt = <1000000>;
154 regulator-max-microvolt = <3300000>;
155 ti,regulator-ext-sleep-control = <0>;
156 };
Laxman Dewangan8c5e4612012-07-05 12:53:04 +0530157 ldo4_reg: regulator@7 {
158 regulator-compatible = "ldo4";
159 reg = <7>;
Rhyland Klein1291aa42012-05-08 11:42:39 -0700160 regulator-min-microvolt = <1000000>;
161 regulator-max-microvolt = <3300000>;
162 regulator-always-on;
163 ti,regulator-ext-sleep-control = <0>;
164 };
Laxman Dewangan8c5e4612012-07-05 12:53:04 +0530165 ldo5_reg: regulator@8 {
166 regulator-compatible = "ldo5";
167 reg = <8>;
Rhyland Klein1291aa42012-05-08 11:42:39 -0700168 regulator-min-microvolt = <1000000>;
169 regulator-max-microvolt = <3300000>;
170 ti,regulator-ext-sleep-control = <0>;
171 };
Laxman Dewangan8c5e4612012-07-05 12:53:04 +0530172 ldo6_reg: regulator@9 {
173 regulator-compatible = "ldo6";
174 reg = <9>;
Rhyland Klein1291aa42012-05-08 11:42:39 -0700175 regulator-min-microvolt = <1200000>;
176 regulator-max-microvolt = <1200000>;
177 ti,regulator-ext-sleep-control = <0>;
178 };
Laxman Dewangan8c5e4612012-07-05 12:53:04 +0530179 ldo7_reg: regulator@10 {
180 regulator-compatible = "ldo7";
181 reg = <10>;
Rhyland Klein1291aa42012-05-08 11:42:39 -0700182 regulator-min-microvolt = <1200000>;
183 regulator-max-microvolt = <1200000>;
184 regulator-always-on;
185 regulator-boot-on;
186 ti,regulator-ext-sleep-control = <1>;
187 };
Laxman Dewangan8c5e4612012-07-05 12:53:04 +0530188 ldo8_reg: regulator@11 {
189 regulator-compatible = "ldo8";
190 reg = <11>;
Rhyland Klein1291aa42012-05-08 11:42:39 -0700191 regulator-min-microvolt = <1000000>;
192 regulator-max-microvolt = <3300000>;
193 regulator-always-on;
194 ti,regulator-ext-sleep-control = <1>;
195 };
196 };
197 };