2 * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd
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
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.
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.
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
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
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.
43 #include "rk3399-evb.dtsi"
46 compatible = "rockchip,rk3399-evb-rev3", "rockchip,rk3399";
48 vcc5v0_sys: vcc5v0-sys {
49 compatible = "regulator-fixed";
50 regulator-name = "vcc5v0_sys";
53 regulator-min-microvolt = <5000000>;
54 regulator-max-microvolt = <5000000>;
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>;
72 opp-hz = /bits/ 64 <408000000>;
73 opp-microvolt = <800000>;
74 clock-latency-ns = <40000>;
77 opp-hz = /bits/ 64 <600000000>;
78 opp-microvolt = <800000>;
81 opp-hz = /bits/ 64 <816000000>;
82 opp-microvolt = <800000>;
85 opp-hz = /bits/ 64 <1008000000>;
86 opp-microvolt = <850000>;
89 opp-hz = /bits/ 64 <1200000000>;
90 opp-microvolt = <925000>;
93 opp-hz = /bits/ 64 <1416000000>;
94 opp-microvolt = <1050000>;
97 opp-hz = /bits/ 64 <1512000000>;
98 opp-microvolt = <1100000>;
104 opp-hz = /bits/ 64 <408000000>;
105 opp-microvolt = <800000>;
106 clock-latency-ns = <40000>;
109 opp-hz = /bits/ 64 <600000000>;
110 opp-microvolt = <800000>;
113 opp-hz = /bits/ 64 <816000000>;
114 opp-microvolt = <825000>;
117 opp-hz = /bits/ 64 <1008000000>;
118 opp-microvolt = <850000>;
121 opp-hz = /bits/ 64 <1200000000>;
122 opp-microvolt = <900000>;
125 opp-hz = /bits/ 64 <1416000000>;
126 opp-microvolt = <1000000>;
129 opp-hz = /bits/ 64 <1608000000>;
130 opp-microvolt = <1050000>;
133 opp-hz = /bits/ 64 <1800000000>;
134 opp-microvolt = <1150000>;
137 opp-hz = /bits/ 64 <1992000000>;
138 opp-microvolt = <1225000>;
147 518 335 /* 1008MHz */
148 617 428 /* 1200MHz */
149 728 573 /* 1416MHz */
150 827 724 /* 1608MHz */
151 925 900 /* 1800MHz */
152 1024 1108 /* 1992MHz */
183 518 335 /* 1008MHz */
184 617 428 /* 1200MHz */
185 728 573 /* 1416MHz */
186 827 724 /* 1608MHz */
187 925 900 /* 1800MHz */
188 1024 1108 /* 1992MHz */
216 opp-hz = /bits/ 64 <200000000>;
217 opp-microvolt = <800000>;
220 opp-hz = /bits/ 64 <300000000>;
221 opp-microvolt = <800000>;
224 opp-hz = /bits/ 64 <400000000>;
225 opp-microvolt = <800000>;
228 opp-hz = /bits/ 64 <500000000>;
229 opp-microvolt = <850000>;
232 opp-hz = /bits/ 64 <600000000>;
233 opp-microvolt = <900000>;
236 opp-hz = /bits/ 64 <800000000>;
237 opp-microvolt = <1000000>;
243 compatible = "fairchild,fusb302";
245 pinctrl-names = "default";
246 pinctrl-0 = <&fusb1_int>;
247 vbus-5v-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
248 int-n-gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
252 vdd_cpu_b: syr827@40 {
253 compatible = "silergy,syr827";
255 vin-supply = <&vcc5v0_sys>;
256 regulator-compatible = "fan53555-reg";
257 pinctrl-0 = <&vsel1_gpio>;
258 vsel-gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
259 regulator-name = "vdd_cpu_b";
260 regulator-min-microvolt = <712500>;
261 regulator-max-microvolt = <1500000>;
262 regulator-ramp-delay = <1000>;
263 fcs,suspend-voltage-selector = <1>;
266 regulator-initial-state = <3>;
267 regulator-state-mem {
268 regulator-off-in-suspend;
273 compatible = "silergy,syr828";
275 vin-supply = <&vcc5v0_sys>;
276 regulator-compatible = "fan53555-reg";
277 pinctrl-0 = <&vsel2_gpio>;
278 vsel-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
279 regulator-name = "vdd_gpu";
280 regulator-min-microvolt = <712500>;
281 regulator-max-microvolt = <1500000>;
282 regulator-ramp-delay = <1000>;
283 fcs,suspend-voltage-selector = <1>;
286 regulator-initial-state = <3>;
287 regulator-state-mem {
288 regulator-off-in-suspend;
293 compatible = "rockchip,rk808";
295 interrupt-parent = <&gpio1>;
296 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
297 pinctrl-names = "default";
298 pinctrl-0 = <&pmic_int_l &pmic_dvs2>;
299 rockchip,system-power-controller;
302 clock-output-names = "xin32k", "rk808-clkout2";
304 vcc1-supply = <&vcc3v3_sys>;
305 vcc2-supply = <&vcc3v3_sys>;
306 vcc3-supply = <&vcc3v3_sys>;
307 vcc4-supply = <&vcc3v3_sys>;
308 vcc6-supply = <&vcc3v3_sys>;
309 vcc7-supply = <&vcc3v3_sys>;
310 vcc8-supply = <&vcc3v3_sys>;
311 vcc9-supply = <&vcc3v3_sys>;
312 vcc10-supply = <&vcc3v3_sys>;
313 vcc11-supply = <&vcc3v3_sys>;
314 vcc12-supply = <&vcc3v3_sys>;
315 vddio-supply = <&vcc1v8_pmu>;
321 regulator-min-microvolt = <750000>;
322 regulator-max-microvolt = <1350000>;
323 regulator-name = "vdd_log";
324 regulator-state-mem {
325 regulator-on-in-suspend;
326 regulator-suspend-microvolt = <900000>;
330 vdd_cpu_l: DCDC_REG2 {
333 regulator-min-microvolt = <750000>;
334 regulator-max-microvolt = <1350000>;
335 regulator-name = "vdd_cpu_l";
336 regulator-state-mem {
337 regulator-off-in-suspend;
344 regulator-name = "vcc_ddr";
345 regulator-state-mem {
346 regulator-on-in-suspend;
353 regulator-min-microvolt = <1800000>;
354 regulator-max-microvolt = <1800000>;
355 regulator-name = "vcc_1v8";
356 regulator-state-mem {
357 regulator-on-in-suspend;
358 regulator-suspend-microvolt = <1800000>;
362 vcc1v8_dvp: LDO_REG1 {
365 regulator-min-microvolt = <1800000>;
366 regulator-max-microvolt = <1800000>;
367 regulator-name = "vcc1v8_dvp";
368 regulator-state-mem {
369 regulator-off-in-suspend;
373 vcc3v0_tp: LDO_REG2 {
376 regulator-min-microvolt = <3000000>;
377 regulator-max-microvolt = <3000000>;
378 regulator-name = "vcc3v0_tp";
379 regulator-state-mem {
380 regulator-off-in-suspend;
384 vcc1v8_pmu: LDO_REG3 {
387 regulator-min-microvolt = <1800000>;
388 regulator-max-microvolt = <1800000>;
389 regulator-name = "vcc1v8_pmu";
390 regulator-state-mem {
391 regulator-on-in-suspend;
392 regulator-suspend-microvolt = <1800000>;
399 regulator-min-microvolt = <1800000>;
400 regulator-max-microvolt = <3300000>;
401 regulator-name = "vcc_sd";
402 regulator-state-mem {
403 regulator-on-in-suspend;
404 regulator-suspend-microvolt = <3300000>;
408 vcca3v0_codec: LDO_REG5 {
411 regulator-min-microvolt = <3000000>;
412 regulator-max-microvolt = <3000000>;
413 regulator-name = "vcca3v0_codec";
414 regulator-state-mem {
415 regulator-off-in-suspend;
422 regulator-min-microvolt = <1500000>;
423 regulator-max-microvolt = <1500000>;
424 regulator-name = "vcc_1v5";
425 regulator-state-mem {
426 regulator-on-in-suspend;
427 regulator-suspend-microvolt = <1500000>;
431 vcca1v8_codec: LDO_REG7 {
434 regulator-min-microvolt = <1800000>;
435 regulator-max-microvolt = <1800000>;
436 regulator-name = "vcca1v8_codec";
437 regulator-state-mem {
438 regulator-off-in-suspend;
445 regulator-min-microvolt = <3000000>;
446 regulator-max-microvolt = <3000000>;
447 regulator-name = "vcc_3v0";
448 regulator-state-mem {
449 regulator-on-in-suspend;
450 regulator-suspend-microvolt = <3000000>;
454 vcc3v3_s3: SWITCH_REG1 {
457 regulator-name = "vcc3v3_s3";
458 regulator-state-mem {
459 regulator-on-in-suspend;
463 vcc3v3_s0: SWITCH_REG2 {
466 regulator-name = "vcc3v3_s0";
467 regulator-state-mem {
468 regulator-off-in-suspend;
482 compatible = "fairchild,fusb302";
484 pinctrl-names = "default";
485 pinctrl-0 = <&fusb0_int>;
486 vbus-5v-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
487 int-n-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;