regulator: tps65910: add support for input supply
[deliverable/linux.git] / Documentation / devicetree / bindings / mfd / tps65910.txt
1 TPS65910 Power Management Integrated Circuit
2
3 Required 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.
20 The regulator is matched with the regulator-compatible.
21
22 The valid regulator-compatible values are:
23 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
28 Optional 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.
35 - 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.
57
58 Regulator 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
63 Example:
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
82 vcc7-supply = <&reg_parent>;
83 vcc1-supply = <&reg_parent>;
84
85 regulators {
86 #address-cells = <1>;
87 #size-cells = <0>;
88
89 vdd1_reg: regulator@0 {
90 regulator-compatible = "vdd1";
91 reg = <0>;
92 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 };
98 vdd2_reg: regulator@1 {
99 regulator-compatible = "vdd2";
100 reg = <1>;
101 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 };
107 vddctrl_reg: regulator@2 {
108 regulator-compatible = "vddctrl";
109 reg = <2>;
110 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 };
116 vio_reg: regulator@3 {
117 regulator-compatible = "vio";
118 reg = <3>;
119 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 };
125 ldo1_reg: regulator@4 {
126 regulator-compatible = "ldo1";
127 reg = <4>;
128 regulator-min-microvolt = <1000000>;
129 regulator-max-microvolt = <3300000>;
130 ti,regulator-ext-sleep-control = <0>;
131 };
132 ldo2_reg: regulator@5 {
133 regulator-compatible = "ldo2";
134 reg = <5>;
135 regulator-min-microvolt = <1050000>;
136 regulator-max-microvolt = <1050000>;
137 ti,regulator-ext-sleep-control = <0>;
138 };
139 ldo3_reg: regulator@6 {
140 regulator-compatible = "ldo3";
141 reg = <6>;
142 regulator-min-microvolt = <1000000>;
143 regulator-max-microvolt = <3300000>;
144 ti,regulator-ext-sleep-control = <0>;
145 };
146 ldo4_reg: regulator@7 {
147 regulator-compatible = "ldo4";
148 reg = <7>;
149 regulator-min-microvolt = <1000000>;
150 regulator-max-microvolt = <3300000>;
151 regulator-always-on;
152 ti,regulator-ext-sleep-control = <0>;
153 };
154 ldo5_reg: regulator@8 {
155 regulator-compatible = "ldo5";
156 reg = <8>;
157 regulator-min-microvolt = <1000000>;
158 regulator-max-microvolt = <3300000>;
159 ti,regulator-ext-sleep-control = <0>;
160 };
161 ldo6_reg: regulator@9 {
162 regulator-compatible = "ldo6";
163 reg = <9>;
164 regulator-min-microvolt = <1200000>;
165 regulator-max-microvolt = <1200000>;
166 ti,regulator-ext-sleep-control = <0>;
167 };
168 ldo7_reg: regulator@10 {
169 regulator-compatible = "ldo7";
170 reg = <10>;
171 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 };
177 ldo8_reg: regulator@11 {
178 regulator-compatible = "ldo8";
179 reg = <11>;
180 regulator-min-microvolt = <1000000>;
181 regulator-max-microvolt = <3300000>;
182 regulator-always-on;
183 ti,regulator-ext-sleep-control = <1>;
184 };
185 };
186 };
This page took 0.033721 seconds and 5 git commands to generate.