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>;
59 dynamic-power-coefficient = <121>;
63 dynamic-power-coefficient = <1068>;
68 opp-hz = /bits/ 64 <408000000>;
69 opp-microvolt = <800000>;
70 clock-latency-ns = <40000>;
73 opp-hz = /bits/ 64 <600000000>;
74 opp-microvolt = <800000>;
77 opp-hz = /bits/ 64 <816000000>;
78 opp-microvolt = <800000>;
81 opp-hz = /bits/ 64 <1008000000>;
82 opp-microvolt = <875000>;
85 opp-hz = /bits/ 64 <1200000000>;
86 opp-microvolt = <925000>;
89 opp-hz = /bits/ 64 <1416000000>;
90 opp-microvolt = <1025000>;
93 opp-hz = /bits/ 64 <1512000000>;
94 opp-microvolt = <1075000>;
100 opp-hz = /bits/ 64 <408000000>;
101 opp-microvolt = <800000>;
102 clock-latency-ns = <40000>;
105 opp-hz = /bits/ 64 <600000000>;
106 opp-microvolt = <800000>;
109 opp-hz = /bits/ 64 <816000000>;
110 opp-microvolt = <800000>;
113 opp-hz = /bits/ 64 <1008000000>;
114 opp-microvolt = <850000>;
117 opp-hz = /bits/ 64 <1200000000>;
118 opp-microvolt = <925000>;
121 opp-hz = /bits/ 64 <1416000000>;
122 opp-microvolt = <1025000>;
125 opp-hz = /bits/ 64 <1608000000>;
126 opp-microvolt = <1125000>;
129 opp-hz = /bits/ 64 <1800000000>;
130 opp-microvolt = <1200000>;
140 573 1141 /* 1008MHz */
141 683 1850 /* 1200MHz */
142 805 2499 /* 1416MHz */
143 915 2922 /* 1608MHz */
144 // 1024 3416 /* 1800MHz */
175 573 1141 /* 1008MHz */
176 683 1850 /* 1200MHz */
177 805 2499 /* 1416MHz */
178 915 2922 /* 1608MHz */
179 // 1024 3416 /* 1800MHz */
206 sustainable-power = <1600>; /* milliwatts */
212 <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
213 contribution = <10240>;
218 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
219 contribution = <1024>;
224 <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
225 contribution = <10240>;
231 dynamic-power = <1780>;
235 vdd_cpu_b: syr827@40 {
236 compatible = "silergy,syr827";
238 vin-supply = <&vcc5v0_sys>;
239 regulator-compatible = "fan53555-reg";
240 regulator-name = "vdd_cpu_b";
241 regulator-min-microvolt = <712500>;
242 regulator-max-microvolt = <1500000>;
243 regulator-ramp-delay = <1000>;
244 fcs,suspend-voltage-selector = <1>;
247 regulator-initial-state = <3>;
248 regulator-state-mem {
249 regulator-off-in-suspend;
254 compatible = "ti,lp8752";
256 vin0-supply = <&vcc5v0_sys>;
258 vdd_gpu: lp8752_buck0 {
259 regulator-name = "vdd_gpu";
260 regulator-min-microvolt = <735000>;
261 regulator-max-microvolt = <1400000>;
269 compatible = "rockchip,rk808";
271 interrupt-parent = <&gpio1>;
272 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
273 pinctrl-names = "default";
274 pinctrl-0 = <&pmic_int_l &pmic_dvs2>;
275 rockchip,system-power-controller;
278 clock-output-names = "xin32k", "rk808-clkout2";
280 vcc1-supply = <&vcc3v3_sys>;
281 vcc2-supply = <&vcc3v3_sys>;
282 vcc3-supply = <&vcc3v3_sys>;
283 vcc4-supply = <&vcc3v3_sys>;
284 vcc6-supply = <&vcc3v3_sys>;
285 vcc7-supply = <&vcc3v3_sys>;
286 vcc8-supply = <&vcc3v3_sys>;
287 vcc9-supply = <&vcc3v3_sys>;
288 vcc10-supply = <&vcc3v3_sys>;
289 vcc11-supply = <&vcc3v3_sys>;
290 vcc12-supply = <&vcc3v3_sys>;
291 vddio-supply = <&vcc1v8_pmu>;
297 regulator-min-microvolt = <750000>;
298 regulator-max-microvolt = <1350000>;
299 regulator-name = "vdd_log";
300 regulator-state-mem {
301 regulator-on-in-suspend;
302 regulator-suspend-microvolt = <900000>;
306 vdd_cpu_l: DCDC_REG2 {
309 regulator-min-microvolt = <750000>;
310 regulator-max-microvolt = <1350000>;
311 regulator-name = "vdd_cpu_l";
312 regulator-state-mem {
313 regulator-off-in-suspend;
320 regulator-name = "vcc_ddr";
321 regulator-state-mem {
322 regulator-on-in-suspend;
329 regulator-min-microvolt = <1800000>;
330 regulator-max-microvolt = <1800000>;
331 regulator-name = "vcc_1v8";
332 regulator-state-mem {
333 regulator-on-in-suspend;
334 regulator-suspend-microvolt = <1800000>;
338 vcc1v8_dvp: LDO_REG1 {
341 regulator-min-microvolt = <1800000>;
342 regulator-max-microvolt = <1800000>;
343 regulator-name = "vcc1v8_dvp";
344 regulator-state-mem {
345 regulator-off-in-suspend;
349 vcc3v0_tp: LDO_REG2 {
352 regulator-min-microvolt = <3000000>;
353 regulator-max-microvolt = <3000000>;
354 regulator-name = "vcc3v0_tp";
355 regulator-state-mem {
356 regulator-off-in-suspend;
360 vcc1v8_pmu: LDO_REG3 {
363 regulator-min-microvolt = <1800000>;
364 regulator-max-microvolt = <1800000>;
365 regulator-name = "vcc1v8_pmu";
366 regulator-state-mem {
367 regulator-on-in-suspend;
368 regulator-suspend-microvolt = <1800000>;
375 regulator-min-microvolt = <1800000>;
376 regulator-max-microvolt = <3300000>;
377 regulator-name = "vcc_sd";
378 regulator-state-mem {
379 regulator-on-in-suspend;
380 regulator-suspend-microvolt = <3300000>;
384 vcca3v0_codec: LDO_REG5 {
387 regulator-min-microvolt = <3000000>;
388 regulator-max-microvolt = <3000000>;
389 regulator-name = "vcca3v0_codec";
390 regulator-state-mem {
391 regulator-off-in-suspend;
398 regulator-min-microvolt = <1500000>;
399 regulator-max-microvolt = <1500000>;
400 regulator-name = "vcc_1v5";
401 regulator-state-mem {
402 regulator-on-in-suspend;
403 regulator-suspend-microvolt = <1500000>;
407 vcca1v8_codec: LDO_REG7 {
410 regulator-min-microvolt = <1800000>;
411 regulator-max-microvolt = <1800000>;
412 regulator-name = "vcca1v8_codec";
413 regulator-state-mem {
414 regulator-off-in-suspend;
421 regulator-min-microvolt = <3000000>;
422 regulator-max-microvolt = <3000000>;
423 regulator-name = "vcc_3v0";
424 regulator-state-mem {
425 regulator-on-in-suspend;
426 regulator-suspend-microvolt = <3000000>;
430 vcc3v3_s3: SWITCH_REG1 {
433 regulator-name = "vcc3v3_s3";
434 regulator-state-mem {
435 regulator-off-in-suspend;
439 vcc3v3_s0: SWITCH_REG2 {
442 regulator-name = "vcc3v3_s0";
443 regulator-state-mem {
444 regulator-off-in-suspend;