Merge branch 'work.init' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / regulator / mt6397-regulator.txt
1 Mediatek MT6397 Regulator
2
3 Required properties:
4 - compatible: "mediatek,mt6397-regulator"
5 - mt6397regulator: List of regulators provided by this controller. It is named
6   according to its regulator type, buck_<name> and ldo_<name>.
7   The definition for each of these nodes is defined using the standard binding
8   for regulators at Documentation/devicetree/bindings/regulator/regulator.txt.
9
10 The valid names for regulators are::
11 BUCK:
12   buck_vpca15, buck_vpca7, buck_vsramca15, buck_vsramca7, buck_vcore, buck_vgpu,
13   buck_vdrm, buck_vio18
14 LDO:
15   ldo_vtcxo, ldo_va28, ldo_vcama, ldo_vio28, ldo_vusb, ldo_vmc, ldo_vmch,
16   ldo_vemc3v3, ldo_vgp1, ldo_vgp2, ldo_vgp3, ldo_vgp4, ldo_vgp5, ldo_vgp6,
17   ldo_vibr
18
19 BUCK regulators can set regulator-initial-mode and regulator-allowed-modes to
20 values specified in dt-bindings/regulator/mediatek,mt6397-regulator.h
21
22 Example:
23         pmic {
24                 compatible = "mediatek,mt6397";
25
26                 mt6397regulator: mt6397regulator {
27                         compatible = "mediatek,mt6397-regulator";
28
29                         mt6397_vpca15_reg: buck_vpca15 {
30                                 regulator-compatible = "buck_vpca15";
31                                 regulator-name = "vpca15";
32                                 regulator-min-microvolt = < 850000>;
33                                 regulator-max-microvolt = <1350000>;
34                                 regulator-ramp-delay = <12500>;
35                                 regulator-enable-ramp-delay = <200>;
36                         };
37
38                         mt6397_vpca7_reg: buck_vpca7 {
39                                 regulator-compatible = "buck_vpca7";
40                                 regulator-name = "vpca7";
41                                 regulator-min-microvolt = < 850000>;
42                                 regulator-max-microvolt = <1350000>;
43                                 regulator-ramp-delay = <12500>;
44                                 regulator-enable-ramp-delay = <115>;
45                         };
46
47                         mt6397_vsramca15_reg: buck_vsramca15 {
48                                 regulator-compatible = "buck_vsramca15";
49                                 regulator-name = "vsramca15";
50                                 regulator-min-microvolt = < 850000>;
51                                 regulator-max-microvolt = <1350000>;
52                                 regulator-ramp-delay = <12500>;
53                                 regulator-enable-ramp-delay = <115>;
54
55                         };
56
57                         mt6397_vsramca7_reg: buck_vsramca7 {
58                                 regulator-compatible = "buck_vsramca7";
59                                 regulator-name = "vsramca7";
60                                 regulator-min-microvolt = < 850000>;
61                                 regulator-max-microvolt = <1350000>;
62                                 regulator-ramp-delay = <12500>;
63                                 regulator-enable-ramp-delay = <115>;
64
65                         };
66
67                         mt6397_vcore_reg: buck_vcore {
68                                 regulator-compatible = "buck_vcore";
69                                 regulator-name = "vcore";
70                                 regulator-min-microvolt = < 850000>;
71                                 regulator-max-microvolt = <1350000>;
72                                 regulator-ramp-delay = <12500>;
73                                 regulator-enable-ramp-delay = <115>;
74                         };
75
76                         mt6397_vgpu_reg: buck_vgpu {
77                                 regulator-compatible = "buck_vgpu";
78                                 regulator-name = "vgpu";
79                                 regulator-min-microvolt = < 700000>;
80                                 regulator-max-microvolt = <1350000>;
81                                 regulator-ramp-delay = <12500>;
82                                 regulator-enable-ramp-delay = <115>;
83                         };
84
85                         mt6397_vdrm_reg: buck_vdrm {
86                                 regulator-compatible = "buck_vdrm";
87                                 regulator-name = "vdrm";
88                                 regulator-min-microvolt = < 800000>;
89                                 regulator-max-microvolt = <1400000>;
90                                 regulator-ramp-delay = <12500>;
91                                 regulator-enable-ramp-delay = <500>;
92                         };
93
94                         mt6397_vio18_reg: buck_vio18 {
95                                 regulator-compatible = "buck_vio18";
96                                 regulator-name = "vio18";
97                                 regulator-min-microvolt = <1500000>;
98                                 regulator-max-microvolt = <2120000>;
99                                 regulator-ramp-delay = <12500>;
100                                 regulator-enable-ramp-delay = <500>;
101                         };
102
103                         mt6397_vtcxo_reg: ldo_vtcxo {
104                                 regulator-compatible = "ldo_vtcxo";
105                                 regulator-name = "vtcxo";
106                                 regulator-min-microvolt = <2800000>;
107                                 regulator-max-microvolt = <2800000>;
108                                 regulator-enable-ramp-delay = <90>;
109                         };
110
111                         mt6397_va28_reg: ldo_va28 {
112                                 regulator-compatible = "ldo_va28";
113                                 regulator-name = "va28";
114                                 /* fixed output 2.8 V */
115                                 regulator-enable-ramp-delay = <218>;
116                         };
117
118                         mt6397_vcama_reg: ldo_vcama {
119                                 regulator-compatible = "ldo_vcama";
120                                 regulator-name = "vcama";
121                                 regulator-min-microvolt = <1500000>;
122                                 regulator-max-microvolt = <2800000>;
123                                 regulator-enable-ramp-delay = <218>;
124                         };
125
126                         mt6397_vio28_reg: ldo_vio28 {
127                                 regulator-compatible = "ldo_vio28";
128                                 regulator-name = "vio28";
129                                 /* fixed output 2.8 V */
130                                 regulator-enable-ramp-delay = <240>;
131                         };
132
133                         mt6397_usb_reg: ldo_vusb {
134                                 regulator-compatible = "ldo_vusb";
135                                 regulator-name = "vusb";
136                                 /* fixed output 3.3 V */
137                                 regulator-enable-ramp-delay = <218>;
138                         };
139
140                         mt6397_vmc_reg: ldo_vmc {
141                                 regulator-compatible = "ldo_vmc";
142                                 regulator-name = "vmc";
143                                 regulator-min-microvolt = <1800000>;
144                                 regulator-max-microvolt = <3300000>;
145                                 regulator-enable-ramp-delay = <218>;
146                         };
147
148                         mt6397_vmch_reg: ldo_vmch {
149                                 regulator-compatible = "ldo_vmch";
150                                 regulator-name = "vmch";
151                                 regulator-min-microvolt = <3000000>;
152                                 regulator-max-microvolt = <3300000>;
153                                 regulator-enable-ramp-delay = <218>;
154                         };
155
156                         mt6397_vemc_3v3_reg: ldo_vemc3v3 {
157                                 regulator-compatible = "ldo_vemc3v3";
158                                 regulator-name = "vemc_3v3";
159                                 regulator-min-microvolt = <3000000>;
160                                 regulator-max-microvolt = <3300000>;
161                                 regulator-enable-ramp-delay = <218>;
162                         };
163
164                         mt6397_vgp1_reg: ldo_vgp1 {
165                                 regulator-compatible = "ldo_vgp1";
166                                 regulator-name = "vcamd";
167                                 regulator-min-microvolt = <1220000>;
168                                 regulator-max-microvolt = <3300000>;
169                                 regulator-enable-ramp-delay = <240>;
170                         };
171
172                         mt6397_vgp2_reg: ldo_vgp2 {
173                                 egulator-compatible = "ldo_vgp2";
174                                 regulator-name = "vcamio";
175                                 regulator-min-microvolt = <1000000>;
176                                 regulator-max-microvolt = <3300000>;
177                                 regulator-enable-ramp-delay = <218>;
178                         };
179
180                         mt6397_vgp3_reg: ldo_vgp3 {
181                                 regulator-compatible = "ldo_vgp3";
182                                 regulator-name = "vcamaf";
183                                 regulator-min-microvolt = <1200000>;
184                                 regulator-max-microvolt = <3300000>;
185                                 regulator-enable-ramp-delay = <218>;
186                         };
187
188                         mt6397_vgp4_reg: ldo_vgp4 {
189                                 regulator-compatible = "ldo_vgp4";
190                                 regulator-name = "vgp4";
191                                 regulator-min-microvolt = <1200000>;
192                                 regulator-max-microvolt = <3300000>;
193                                 regulator-enable-ramp-delay = <218>;
194                         };
195
196                         mt6397_vgp5_reg: ldo_vgp5 {
197                                 regulator-compatible = "ldo_vgp5";
198                                 regulator-name = "vgp5";
199                                 regulator-min-microvolt = <1200000>;
200                                 regulator-max-microvolt = <3000000>;
201                                 regulator-enable-ramp-delay = <218>;
202                         };
203
204                         mt6397_vgp6_reg: ldo_vgp6 {
205                                 regulator-compatible = "ldo_vgp6";
206                                 regulator-name = "vgp6";
207                                 regulator-min-microvolt = <1200000>;
208                                 regulator-max-microvolt = <3300000>;
209                                 regulator-enable-ramp-delay = <218>;
210                         };
211
212                         mt6397_vibr_reg: ldo_vibr {
213                                 regulator-compatible = "ldo_vibr";
214                                 regulator-name = "vibr";
215                                 regulator-min-microvolt = <1200000>;
216                                 regulator-max-microvolt = <3300000>;
217                                 regulator-enable-ramp-delay = <218>;
218                         };
219                 };
220         };