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