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-rev2", "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 = <3>;
60 rockchip,pwm_voltage = <900000>;
61 pwms = <&pwm3 0 25000 0>;
62 regulator-name = "vdd_center";
63 regulator-min-microvolt = <800000>;
64 regulator-max-microvolt = <1400000>;
71 dynamic-power-coefficient = <121>;
75 dynamic-power-coefficient = <1068>;
80 opp-hz = /bits/ 64 <408000000>;
81 opp-microvolt = <800000>;
82 clock-latency-ns = <40000>;
85 opp-hz = /bits/ 64 <600000000>;
86 opp-microvolt = <800000>;
89 opp-hz = /bits/ 64 <816000000>;
90 opp-microvolt = <800000>;
93 opp-hz = /bits/ 64 <1008000000>;
94 opp-microvolt = <875000>;
97 opp-hz = /bits/ 64 <1200000000>;
98 opp-microvolt = <925000>;
102 opp-hz = /bits/ 64 <1416000000>;
103 opp-microvolt = <1050000>;
107 opp-hz = /bits/ 64 <1512000000>;
108 opp-microvolt = <1075000>;
115 opp-hz = /bits/ 64 <408000000>;
116 opp-microvolt = <800000>;
117 clock-latency-ns = <40000>;
120 opp-hz = /bits/ 64 <600000000>;
121 opp-microvolt = <800000>;
124 opp-hz = /bits/ 64 <816000000>;
125 opp-microvolt = <825000>;
128 opp-hz = /bits/ 64 <1008000000>;
129 opp-microvolt = <875000>;
132 opp-hz = /bits/ 64 <1200000000>;
133 opp-microvolt = <950000>;
137 opp-hz = /bits/ 64 <1416000000>;
138 opp-microvolt = <1025000>;
142 opp-hz = /bits/ 64 <1608000000>;
143 opp-microvolt = <1125000>;
147 opp-hz = /bits/ 64 <1800000000>;
148 opp-microvolt = <1200000>;
158 573 1141 /* 1008MHz */
159 // 683 1850 /* 1200MHz */
160 // 805 2499 /* 1416MHz */
161 // 915 2922 /* 1608MHz */
162 // 1024 3416 /* 1800MHz */
177 // 357 196 /* 1200M */
178 // 421 246 /* 1416M */
179 // 449 263 /* 1512M */
193 573 1141 /* 1008MHz */
194 // 683 1850 /* 1200MHz */
195 // 805 2499 /* 1416MHz */
196 // 915 2922 /* 1608MHz */
197 // 1024 3416 /* 1800MHz */
212 // 357 196 /* 1200M */
213 // 421 246 /* 1416M */
214 // 449 263 /* 1512M */
224 sustainable-power = <1600>; /* milliwatts */
230 <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
231 contribution = <10240>;
236 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
237 contribution = <1024>;
242 <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
243 contribution = <10240>;
249 dynamic-power = <1780>;
254 compatible = "fairchild,fusb302";
256 pinctrl-names = "default";
257 pinctrl-0 = <&fusb1_int>;
258 vbus-5v-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
259 int-n-gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
263 vdd_cpu_b: syr827@40 {
264 compatible = "silergy,syr827";
266 vin-supply = <&vcc5v0_sys>;
267 regulator-compatible = "fan53555-reg";
268 regulator-name = "vdd_cpu_b";
269 regulator-min-microvolt = <712500>;
270 regulator-max-microvolt = <1500000>;
271 regulator-ramp-delay = <1000>;
272 fcs,suspend-voltage-selector = <1>;
275 regulator-initial-state = <3>;
276 regulator-state-mem {
277 regulator-off-in-suspend;
282 compatible = "ti,lp8752";
284 vin0-supply = <&vcc5v0_sys>;
286 vdd_gpu: lp8752_buck0 {
287 regulator-name = "vdd_gpu";
288 regulator-min-microvolt = <735000>;
289 regulator-max-microvolt = <1400000>;
297 compatible = "rockchip,rk808";
299 interrupt-parent = <&gpio1>;
300 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
301 pinctrl-names = "default";
302 pinctrl-0 = <&pmic_int_l &pmic_dvs2>;
303 rockchip,system-power-controller;
306 clock-output-names = "xin32k", "rk808-clkout2";
308 vcc1-supply = <&vcc3v3_sys>;
309 vcc2-supply = <&vcc3v3_sys>;
310 vcc3-supply = <&vcc3v3_sys>;
311 vcc4-supply = <&vcc3v3_sys>;
312 vcc6-supply = <&vcc3v3_sys>;
313 vcc7-supply = <&vcc3v3_sys>;
314 vcc8-supply = <&vcc3v3_sys>;
315 vcc9-supply = <&vcc3v3_sys>;
316 vcc10-supply = <&vcc3v3_sys>;
317 vcc11-supply = <&vcc3v3_sys>;
318 vcc12-supply = <&vcc3v3_sys>;
319 vddio-supply = <&vcc1v8_pmu>;
325 regulator-min-microvolt = <750000>;
326 regulator-max-microvolt = <1350000>;
327 regulator-name = "vdd_log";
328 regulator-state-mem {
329 regulator-on-in-suspend;
330 regulator-suspend-microvolt = <900000>;
334 vdd_cpu_l: DCDC_REG2 {
337 regulator-min-microvolt = <750000>;
338 regulator-max-microvolt = <1350000>;
339 regulator-name = "vdd_cpu_l";
340 regulator-state-mem {
341 regulator-off-in-suspend;
348 regulator-name = "vcc_ddr";
349 regulator-state-mem {
350 regulator-on-in-suspend;
357 regulator-min-microvolt = <1800000>;
358 regulator-max-microvolt = <1800000>;
359 regulator-name = "vcc_1v8";
360 regulator-state-mem {
361 regulator-on-in-suspend;
362 regulator-suspend-microvolt = <1800000>;
366 vcc1v8_dvp: LDO_REG1 {
369 regulator-min-microvolt = <1800000>;
370 regulator-max-microvolt = <1800000>;
371 regulator-name = "vcc1v8_dvp";
372 regulator-state-mem {
373 regulator-off-in-suspend;
377 vcc3v0_tp: LDO_REG2 {
380 regulator-min-microvolt = <3000000>;
381 regulator-max-microvolt = <3000000>;
382 regulator-name = "vcc3v0_tp";
383 regulator-state-mem {
384 regulator-off-in-suspend;
388 vcc1v8_pmu: LDO_REG3 {
391 regulator-min-microvolt = <1800000>;
392 regulator-max-microvolt = <1800000>;
393 regulator-name = "vcc1v8_pmu";
394 regulator-state-mem {
395 regulator-on-in-suspend;
396 regulator-suspend-microvolt = <1800000>;
403 regulator-min-microvolt = <1800000>;
404 regulator-max-microvolt = <3300000>;
405 regulator-name = "vcc_sd";
406 regulator-state-mem {
407 regulator-on-in-suspend;
408 regulator-suspend-microvolt = <3300000>;
412 vcca3v0_codec: LDO_REG5 {
415 regulator-min-microvolt = <3000000>;
416 regulator-max-microvolt = <3000000>;
417 regulator-name = "vcca3v0_codec";
418 regulator-state-mem {
419 regulator-off-in-suspend;
426 regulator-min-microvolt = <1500000>;
427 regulator-max-microvolt = <1500000>;
428 regulator-name = "vcc_1v5";
429 regulator-state-mem {
430 regulator-on-in-suspend;
431 regulator-suspend-microvolt = <1500000>;
435 vcca1v8_codec: LDO_REG7 {
438 regulator-min-microvolt = <1800000>;
439 regulator-max-microvolt = <1800000>;
440 regulator-name = "vcca1v8_codec";
441 regulator-state-mem {
442 regulator-off-in-suspend;
449 regulator-min-microvolt = <3000000>;
450 regulator-max-microvolt = <3000000>;
451 regulator-name = "vcc_3v0";
452 regulator-state-mem {
453 regulator-on-in-suspend;
454 regulator-suspend-microvolt = <3000000>;
458 vcc3v3_s3: SWITCH_REG1 {
461 regulator-name = "vcc3v3_s3";
462 regulator-state-mem {
463 regulator-off-in-suspend;
467 vcc3v3_s0: SWITCH_REG2 {
470 regulator-name = "vcc3v3_s0";
471 regulator-state-mem {
472 regulator-off-in-suspend;
484 rockchip,utmi-avalid;
490 compatible = "fairchild,fusb302";
492 pinctrl-names = "default";
493 pinctrl-0 = <&fusb0_int>;
494 vbus-5v-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
495 int-n-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;