mediatek: bump to v4.4
[openwrt.git] / target / linux / mediatek / patches-4.4 / 0046-regulator-Add-document-for-MT6323-regulator.patch
1 From 3900467f0f0470f889b9e6cdfd7dc4cf460e8d41 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Sun, 10 Jan 2016 17:31:46 +0100
4 Subject: [PATCH 46/53] regulator: Add document for MT6323 regulator
5
6 Signed-off-by: John Crispin <blogic@openwrt.org>
7 Cc: devicetree@vger.kernel.org
8 ---
9  .../bindings/regulator/mt6323-regulator.txt        |  239 ++++++++++++++++++++
10  1 file changed, 239 insertions(+)
11  create mode 100644 Documentation/devicetree/bindings/regulator/mt6323-regulator.txt
12
13 diff --git a/Documentation/devicetree/bindings/regulator/mt6323-regulator.txt b/Documentation/devicetree/bindings/regulator/mt6323-regulator.txt
14 new file mode 100644
15 index 0000000..9fd95e7
16 --- /dev/null
17 +++ b/Documentation/devicetree/bindings/regulator/mt6323-regulator.txt
18 @@ -0,0 +1,239 @@
19 +Mediatek MT6323 Regulator Driver
20 +
21 +All voltage regulators are defined as subnodes of the regulators node. A list
22 +of regulators provided by this controller are defined as subnodes of the
23 +PMIC's node. Each regulator is named according to its regulator type,
24 +buck_<name> and ldo_<name>. The definition for each of these nodes is defined
25 +using the standard binding for regulators at
26 +Documentation/devicetree/bindings/regulator/regulator.txt.
27 +
28 +The valid names for regulators are::
29 +BUCK:
30 +  buck_vproc, buck_vsys, buck_vpa
31 +LDO:
32 +  ldo_vtcxo, ldo_vcn28, ldo_vcn33_bt, ldo_vcn33_wifi, ldo_va, ldo_vcama,
33 +  ldo_vio28, ldo_vusb, ldo_vmc, ldo_vmch, ldo_vemc3v3, ldo_vgp1, ldo_vgp2,
34 +  ldo_vgp3, ldo_vcn18, ldo_vsim1, ldo_vsim2, ldo_vrtc, ldo_vcamaf, ldo_vibr,
35 +  ldo_vrf18, ldo_vm, ldo_vio18, ldo_vcamd, ldo_vcamio
36 +
37 +Example:
38 +
39 +       pmic: mt6323 {
40 +               compatible = "mediatek,mt6323";
41 +
42 +               mt6323regulator: regulators {
43 +                       mt6323_vproc_reg: buck_vproc{
44 +                               regulator-name = "vproc";
45 +                               regulator-min-microvolt = < 700000>;
46 +                               regulator-max-microvolt = <1350000>;
47 +                               regulator-ramp-delay = <12500>;
48 +                               regulator-always-on;
49 +                               regulator-boot-on;
50 +                       };
51 +
52 +                       mt6323_vsys_reg: buck_vsys{
53 +                               regulator-name = "vsys";
54 +                               regulator-min-microvolt = <1400000>;
55 +                               regulator-max-microvolt = <2987500>;
56 +                               regulator-ramp-delay = <25000>;
57 +                               regulator-always-on;
58 +                               regulator-boot-on;
59 +                       };
60 +
61 +                       mt6323_vpa_reg: buck_vpa{
62 +                               regulator-name = "vpa";
63 +                               regulator-min-microvolt = < 500000>;
64 +                               regulator-max-microvolt = <3650000>;
65 +                       };
66 +
67 +                       mt6323_vtcxo_reg: ldo_vtcxo{
68 +                               regulator-name = "vtcxo";
69 +                               regulator-min-microvolt = <2800000>;
70 +                               regulator-max-microvolt = <2800000>;
71 +                               regulator-enable-ramp-delay = <90>;
72 +                               regulator-always-on;
73 +                               regulator-boot-on;
74 +                       };
75 +
76 +                       mt6323_vcn28_reg: ldo_vcn28{
77 +                               regulator-name = "vcn28";
78 +                               regulator-min-microvolt = <2800000>;
79 +                               regulator-max-microvolt = <2800000>;
80 +                               regulator-enable-ramp-delay = <185>;
81 +                       };
82 +
83 +                       mt6323_vcn33_bt_reg: ldo_vcn33_bt{
84 +                               regulator-name = "vcn33_bt";
85 +                               regulator-min-microvolt = <3300000>;
86 +                               regulator-max-microvolt = <3600000>;
87 +                               regulator-enable-ramp-delay = <185>;
88 +                       };
89 +
90 +                       mt6323_vcn33_wifi_reg: ldo_vcn33_wifi{
91 +                               regulator-name = "vcn33_wifi";
92 +                               regulator-min-microvolt = <3300000>;
93 +                               regulator-max-microvolt = <3600000>;
94 +                               regulator-enable-ramp-delay = <185>;
95 +                       };
96 +
97 +                       mt6323_va_reg: ldo_va{
98 +                               regulator-name = "va";
99 +                               regulator-min-microvolt = <2800000>;
100 +                               regulator-max-microvolt = <2800000>;
101 +                               regulator-enable-ramp-delay = <216>;
102 +                               regulator-always-on;
103 +                               regulator-boot-on;
104 +                       };
105 +
106 +                       mt6323_vcama_reg: ldo_vcama{
107 +                               regulator-name = "vcama";
108 +                               regulator-min-microvolt = <1500000>;
109 +                               regulator-max-microvolt = <2800000>;
110 +                               regulator-enable-ramp-delay = <216>;
111 +                       };
112 +
113 +                       mt6323_vio28_reg: ldo_vio28{
114 +                               regulator-name = "vio28";
115 +                               regulator-min-microvolt = <2800000>;
116 +                               regulator-max-microvolt = <2800000>;
117 +                               regulator-enable-ramp-delay = <216>;
118 +                               regulator-always-on;
119 +                               regulator-boot-on;
120 +                       };
121 +
122 +                       mt6323_vusb_reg: ldo_vusb{
123 +                               regulator-name = "vusb";
124 +                               regulator-min-microvolt = <3300000>;
125 +                               regulator-max-microvolt = <3300000>;
126 +                               regulator-enable-ramp-delay = <216>;
127 +                               regulator-boot-on;
128 +                       };
129 +
130 +                       mt6323_vmc_reg: ldo_vmc{
131 +                               regulator-name = "vmc";
132 +                               regulator-min-microvolt = <1800000>;
133 +                               regulator-max-microvolt = <3300000>;
134 +                               regulator-enable-ramp-delay = <36>;
135 +                               regulator-boot-on;
136 +                       };
137 +
138 +                       mt6323_vmch_reg: ldo_vmch{
139 +                               regulator-name = "vmch";
140 +                               regulator-min-microvolt = <3000000>;
141 +                               regulator-max-microvolt = <3300000>;
142 +                               regulator-enable-ramp-delay = <36>;
143 +                               regulator-boot-on;
144 +                       };
145 +
146 +                       mt6323_vemc3v3_reg: ldo_vemc3v3{
147 +                               regulator-name = "vemc3v3";
148 +                               regulator-min-microvolt = <3000000>;
149 +                               regulator-max-microvolt = <3300000>;
150 +                               regulator-enable-ramp-delay = <36>;
151 +                               regulator-boot-on;
152 +                       };
153 +
154 +                       mt6323_vgp1_reg: ldo_vgp1{
155 +                               regulator-name = "vgp1";
156 +                               regulator-min-microvolt = <1200000>;
157 +                               regulator-max-microvolt = <3300000>;
158 +                               regulator-enable-ramp-delay = <216>;
159 +                       };
160 +
161 +                       mt6323_vgp2_reg: ldo_vgp2{
162 +                               regulator-name = "vgp2";
163 +                               regulator-min-microvolt = <1200000>;
164 +                               regulator-max-microvolt = <3000000>;
165 +                               regulator-enable-ramp-delay = <216>;
166 +                       };
167 +
168 +                       mt6323_vgp3_reg: ldo_vgp3{
169 +                               regulator-name = "vgp3";
170 +                               regulator-min-microvolt = <1200000>;
171 +                               regulator-max-microvolt = <1800000>;
172 +                               regulator-enable-ramp-delay = <216>;
173 +                       };
174 +
175 +                       mt6323_vcn18_reg: ldo_vcn18{
176 +                               regulator-name = "vcn18";
177 +                               regulator-min-microvolt = <1800000>;
178 +                               regulator-max-microvolt = <1800000>;
179 +                               regulator-enable-ramp-delay = <216>;
180 +                       };
181 +
182 +                       mt6323_vsim1_reg: ldo_vsim1{
183 +                               regulator-name = "vsim1";
184 +                               regulator-min-microvolt = <1800000>;
185 +                               regulator-max-microvolt = <3000000>;
186 +                               regulator-enable-ramp-delay = <216>;
187 +                       };
188 +
189 +                       mt6323_vsim2_reg: ldo_vsim2{
190 +                               regulator-name = "vsim2";
191 +                               regulator-min-microvolt = <1800000>;
192 +                               regulator-max-microvolt = <3000000>;
193 +                               regulator-enable-ramp-delay = <216>;
194 +                       };
195 +
196 +                       mt6323_vrtc_reg: ldo_vrtc{
197 +                               regulator-name = "vrtc";
198 +                               regulator-min-microvolt = <2800000>;
199 +                               regulator-max-microvolt = <2800000>;
200 +                               regulator-always-on;
201 +                               regulator-boot-on;
202 +                       };
203 +
204 +                       mt6323_vcamaf_reg: ldo_vcamaf{
205 +                               regulator-name = "vcamaf";
206 +                               regulator-min-microvolt = <1200000>;
207 +                               regulator-max-microvolt = <3300000>;
208 +                               regulator-enable-ramp-delay = <216>;
209 +                       };
210 +
211 +                       mt6323_vibr_reg: ldo_vibr{
212 +                               regulator-name = "vibr";
213 +                               regulator-min-microvolt = <1200000>;
214 +                               regulator-max-microvolt = <3300000>;
215 +                               regulator-enable-ramp-delay = <36>;
216 +                       };
217 +
218 +                       mt6323_vrf18_reg: ldo_vrf18{
219 +                               regulator-name = "vrf18";
220 +                               regulator-min-microvolt = <1825000>;
221 +                               regulator-max-microvolt = <1825000>;
222 +                               regulator-enable-ramp-delay = <187>;
223 +                       };
224 +
225 +                       mt6323_vm_reg: ldo_vm{
226 +                               regulator-name = "vm";
227 +                               regulator-min-microvolt = <1200000>;
228 +                               regulator-max-microvolt = <1800000>;
229 +                               regulator-enable-ramp-delay = <216>;
230 +                               regulator-always-on;
231 +                               regulator-boot-on;
232 +                       };
233 +
234 +                       mt6323_vio18_reg: ldo_vio18{
235 +                               regulator-name = "vio18";
236 +                               regulator-min-microvolt = <1800000>;
237 +                               regulator-max-microvolt = <1800000>;
238 +                               regulator-enable-ramp-delay = <216>;
239 +                               regulator-always-on;
240 +                               regulator-boot-on;
241 +                       };
242 +
243 +                       mt6323_vcamd_reg: ldo_vcamd{
244 +                               regulator-name = "vcamd";
245 +                               regulator-min-microvolt = <1200000>;
246 +                               regulator-max-microvolt = <1800000>;
247 +                               regulator-enable-ramp-delay = <216>;
248 +                       };
249 +
250 +                       mt6323_vcamio_reg: ldo_vcamio{
251 +                               regulator-name = "vcamio";
252 +                               regulator-min-microvolt = <1800000>;
253 +                               regulator-max-microvolt = <1800000>;
254 +                               regulator-enable-ramp-delay = <216>;
255 +                       };
256 +               };
257 +       };
258 -- 
259 1.7.10.4
260