ARM64: dts: rk3399: move opp tables to rk3399-opp.dtsi
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / boot / dts / rockchip / rk3399-evb-rev3.dtsi
1 /*
2  * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd
3  *
4  * This file is dual-licensed: you can use it either under the terms
5  * of the GPL or the X11 license, at your option. Note that this dual
6  * licensing only applies to this file, and not this project as a
7  * whole.
8  *
9  *  a) This file is free software; you can redistribute it and/or
10  *     modify it under the terms of the GNU General Public License as
11  *     published by the Free Software Foundation; either version 2 of the
12  *     License, or (at your option) any later version.
13  *
14  *     This file is distributed in the hope that it will be useful,
15  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  *     GNU General Public License for more details.
18  *
19  * Or, alternatively,
20  *
21  *  b) Permission is hereby granted, free of charge, to any person
22  *     obtaining a copy of this software and associated documentation
23  *     files (the "Software"), to deal in the Software without
24  *     restriction, including without limitation the rights to use,
25  *     copy, modify, merge, publish, distribute, sublicense, and/or
26  *     sell copies of the Software, and to permit persons to whom the
27  *     Software is furnished to do so, subject to the following
28  *     conditions:
29  *
30  *     The above copyright notice and this permission notice shall be
31  *     included in all copies or substantial portions of the Software.
32  *
33  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40  *     OTHER DEALINGS IN THE SOFTWARE.
41  */
42
43 #include "rk3399-evb.dtsi"
44
45 / {
46         compatible = "rockchip,rk3399-evb-rev3", "rockchip,rk3399";
47
48         vcc5v0_sys: vcc5v0-sys {
49                 compatible = "regulator-fixed";
50                 regulator-name = "vcc5v0_sys";
51                 regulator-always-on;
52                 regulator-boot-on;
53                 regulator-min-microvolt = <5000000>;
54                 regulator-max-microvolt = <5000000>;
55         };
56
57         vdd_center: vdd-center {
58                 compatible = "pwm-regulator";
59                 rockchip,pwm_id = <2>;
60                 rockchip,pwm_voltage = <900000>;
61                 pwms = <&pwm2 0 25000 0>;
62                 regulator-name = "vdd_center";
63                 regulator-min-microvolt = <800000>;
64                 regulator-max-microvolt = <1400000>;
65                 regulator-always-on;
66                 regulator-boot-on;
67         };
68 };
69
70 &i2c0 {
71         fusb1: fusb30x@22 {
72                 compatible = "fairchild,fusb302";
73                 reg = <0x22>;
74                 pinctrl-names = "default";
75                 pinctrl-0 = <&fusb1_int>;
76                 vbus-5v-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
77                 int-n-gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
78                 status = "okay";
79         };
80
81         vdd_cpu_b: syr827@40 {
82                 compatible = "silergy,syr827";
83                 reg = <0x40>;
84                 vin-supply = <&vcc5v0_sys>;
85                 regulator-compatible = "fan53555-reg";
86                 pinctrl-0 = <&vsel1_gpio>;
87                 vsel-gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
88                 regulator-name = "vdd_cpu_b";
89                 regulator-min-microvolt = <712500>;
90                 regulator-max-microvolt = <1500000>;
91                 regulator-ramp-delay = <1000>;
92                 fcs,suspend-voltage-selector = <1>;
93                 regulator-always-on;
94                 regulator-boot-on;
95                 regulator-initial-state = <3>;
96                         regulator-state-mem {
97                         regulator-off-in-suspend;
98                 };
99         };
100
101         vdd_gpu: syr828@41 {
102                 compatible = "silergy,syr828";
103                 reg = <0x41>;
104                 vin-supply = <&vcc5v0_sys>;
105                 regulator-compatible = "fan53555-reg";
106                 pinctrl-0 = <&vsel2_gpio>;
107                 vsel-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
108                 regulator-name = "vdd_gpu";
109                 regulator-min-microvolt = <712500>;
110                 regulator-max-microvolt = <1500000>;
111                 regulator-ramp-delay = <1000>;
112                 fcs,suspend-voltage-selector = <1>;
113                 regulator-always-on;
114                 regulator-boot-on;
115                 regulator-initial-state = <3>;
116                         regulator-state-mem {
117                         regulator-off-in-suspend;
118                 };
119         };
120
121         rk808: pmic@1b {
122                 compatible = "rockchip,rk808";
123                 reg = <0x1b>;
124                 interrupt-parent = <&gpio1>;
125                 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
126                 pinctrl-names = "default";
127                 pinctrl-0 = <&pmic_int_l &pmic_dvs2>;
128                 rockchip,system-power-controller;
129                 wakeup-source;
130                 #clock-cells = <1>;
131                 clock-output-names = "xin32k", "rk808-clkout2";
132
133                 vcc1-supply = <&vcc3v3_sys>;
134                 vcc2-supply = <&vcc3v3_sys>;
135                 vcc3-supply = <&vcc3v3_sys>;
136                 vcc4-supply = <&vcc3v3_sys>;
137                 vcc6-supply = <&vcc3v3_sys>;
138                 vcc7-supply = <&vcc3v3_sys>;
139                 vcc8-supply = <&vcc3v3_sys>;
140                 vcc9-supply = <&vcc3v3_sys>;
141                 vcc10-supply = <&vcc3v3_sys>;
142                 vcc11-supply = <&vcc3v3_sys>;
143                 vcc12-supply = <&vcc3v3_sys>;
144                 vddio-supply = <&vcc1v8_pmu>;
145
146                 regulators {
147                         vdd_log: DCDC_REG1 {
148                                 regulator-always-on;
149                                 regulator-boot-on;
150                                 regulator-min-microvolt = <750000>;
151                                 regulator-max-microvolt = <1350000>;
152                                 regulator-ramp-delay = <6001>;
153                                 regulator-name = "vdd_log";
154                                 regulator-state-mem {
155                                         regulator-on-in-suspend;
156                                         regulator-suspend-microvolt = <900000>;
157                                 };
158                         };
159
160                         vdd_cpu_l: DCDC_REG2 {
161                                 regulator-always-on;
162                                 regulator-boot-on;
163                                 regulator-min-microvolt = <750000>;
164                                 regulator-max-microvolt = <1350000>;
165                                 regulator-ramp-delay = <6001>;
166                                 regulator-name = "vdd_cpu_l";
167                                 regulator-state-mem {
168                                         regulator-off-in-suspend;
169                                 };
170                         };
171
172                         vcc_ddr: DCDC_REG3 {
173                                 regulator-always-on;
174                                 regulator-boot-on;
175                                 regulator-name = "vcc_ddr";
176                                 regulator-state-mem {
177                                         regulator-on-in-suspend;
178                                 };
179                         };
180
181                         vcc_1v8: DCDC_REG4 {
182                                 regulator-always-on;
183                                 regulator-boot-on;
184                                 regulator-min-microvolt = <1800000>;
185                                 regulator-max-microvolt = <1800000>;
186                                 regulator-name = "vcc_1v8";
187                                 regulator-state-mem {
188                                         regulator-on-in-suspend;
189                                         regulator-suspend-microvolt = <1800000>;
190                                 };
191                         };
192
193                         vcc1v8_dvp: LDO_REG1 {
194                                 regulator-always-on;
195                                 regulator-boot-on;
196                                 regulator-min-microvolt = <1800000>;
197                                 regulator-max-microvolt = <1800000>;
198                                 regulator-name = "vcc1v8_dvp";
199                                 regulator-state-mem {
200                                         regulator-off-in-suspend;
201                                 };
202                         };
203
204                         vcc3v0_tp: LDO_REG2 {
205                                 regulator-always-on;
206                                 regulator-boot-on;
207                                 regulator-min-microvolt = <3000000>;
208                                 regulator-max-microvolt = <3000000>;
209                                 regulator-name = "vcc3v0_tp";
210                                 regulator-state-mem {
211                                         regulator-off-in-suspend;
212                                 };
213                         };
214
215                         vcc1v8_pmu: LDO_REG3 {
216                                 regulator-always-on;
217                                 regulator-boot-on;
218                                 regulator-min-microvolt = <1800000>;
219                                 regulator-max-microvolt = <1800000>;
220                                 regulator-name = "vcc1v8_pmu";
221                                 regulator-state-mem {
222                                         regulator-on-in-suspend;
223                                         regulator-suspend-microvolt = <1800000>;
224                                 };
225                         };
226
227                         vcc_sd: LDO_REG4 {
228                                 regulator-always-on;
229                                 regulator-boot-on;
230                                 regulator-min-microvolt = <1800000>;
231                                 regulator-max-microvolt = <3300000>;
232                                 regulator-name = "vcc_sd";
233                                 regulator-state-mem {
234                                         regulator-on-in-suspend;
235                                         regulator-suspend-microvolt = <3300000>;
236                                 };
237                         };
238
239                         vcca3v0_codec: LDO_REG5 {
240                                 regulator-always-on;
241                                 regulator-boot-on;
242                                 regulator-min-microvolt = <3000000>;
243                                 regulator-max-microvolt = <3000000>;
244                                 regulator-name = "vcca3v0_codec";
245                                 regulator-state-mem {
246                                         regulator-off-in-suspend;
247                                 };
248                         };
249
250                         vcc_1v5: LDO_REG6 {
251                                 regulator-always-on;
252                                 regulator-boot-on;
253                                 regulator-min-microvolt = <1500000>;
254                                 regulator-max-microvolt = <1500000>;
255                                 regulator-name = "vcc_1v5";
256                                 regulator-state-mem {
257                                         regulator-on-in-suspend;
258                                         regulator-suspend-microvolt = <1500000>;
259                                 };
260                         };
261
262                         vcca1v8_codec: LDO_REG7 {
263                                 regulator-always-on;
264                                 regulator-boot-on;
265                                 regulator-min-microvolt = <1800000>;
266                                 regulator-max-microvolt = <1800000>;
267                                 regulator-name = "vcca1v8_codec";
268                                 regulator-state-mem {
269                                         regulator-off-in-suspend;
270                                 };
271                         };
272
273                         vcc_3v0: LDO_REG8 {
274                                 regulator-always-on;
275                                 regulator-boot-on;
276                                 regulator-min-microvolt = <3000000>;
277                                 regulator-max-microvolt = <3000000>;
278                                 regulator-name = "vcc_3v0";
279                                 regulator-state-mem {
280                                         regulator-on-in-suspend;
281                                         regulator-suspend-microvolt = <3000000>;
282                                 };
283                         };
284
285                         vcc3v3_s3: SWITCH_REG1 {
286                                 regulator-always-on;
287                                 regulator-boot-on;
288                                 regulator-name = "vcc3v3_s3";
289                                 regulator-state-mem {
290                                         regulator-on-in-suspend;
291                                 };
292                         };
293
294                         vcc3v3_s0: SWITCH_REG2 {
295                                 regulator-always-on;
296                                 regulator-boot-on;
297                                 regulator-name = "vcc3v3_s0";
298                                 regulator-state-mem {
299                                         regulator-off-in-suspend;
300                                 };
301                         };
302                 };
303         };
304 };
305
306 &es8316 {
307         reg = <0x11>;
308 };
309
310 &i2c6 {
311         status = "okay";
312         fusb0: fusb30x@22 {
313                 compatible = "fairchild,fusb302";
314                 reg = <0x22>;
315                 pinctrl-names = "default";
316                 pinctrl-0 = <&fusb0_int>;
317                 vbus-5v-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
318                 int-n-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
319                 status = "okay";
320         };
321 };
322
323 &pwm2 {
324         status = "okay";
325 };