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 "dt-bindings/pwm/pwm.h"
44 #include "rk3399.dtsi"
47 compatible = "rockchip,rk3399-sapphire", "rockchip,rk3399";
49 vcc5v0_sys: vcc5v0-sys {
50 compatible = "regulator-fixed";
51 regulator-name = "vcc5v0_sys";
54 regulator-min-microvolt = <5000000>;
55 regulator-max-microvolt = <5000000>;
58 vcc3v3_sys: vcc3v3-sys {
59 compatible = "regulator-fixed";
60 regulator-name = "vcc3v3_sys";
63 regulator-min-microvolt = <3300000>;
64 regulator-max-microvolt = <3300000>;
67 vcc5v0_host: vcc5v0-host-regulator {
68 compatible = "regulator-fixed";
70 gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>;
71 pinctrl-names = "default";
72 pinctrl-0 = <&host_vbus_drv>;
73 regulator-name = "vcc5v0_host";
77 compatible = "pwm-regulator";
78 pwms = <&pwm2 0 25000 0>;
79 regulator-name = "vdd_log";
80 regulator-min-microvolt = <800000>;
81 regulator-max-microvolt = <1400000>;
85 /* for rockchip boot on */
87 rockchip,pwm_voltage = <1000000>;
90 clkin_gmac: external-gmac-clock {
91 compatible = "fixed-clock";
92 clock-frequency = <125000000>;
93 clock-output-names = "clkin_gmac";
97 vcc_phy: vcc-phy-regulator {
98 compatible = "regulator-fixed";
99 regulator-name = "vcc_phy";
105 compatible = "rockchip,rk3399-io-voltage-domain";
106 rockchip,grf = <&grf>;
108 bt656-supply = <&vcc_3v0>; /* bt656_gpio2ab_ms */
109 audio-supply = <&vcca1v8_codec>; /* audio_gpio3d4a_ms */
110 sdmmc-supply = <&vcc_sd>; /* sdmmc_gpio4b_ms */
111 gpio1830-supply = <&vcc_3v0>; /* gpio1833_gpio4cd_ms */
115 compatible = "rockchip,rk3399-pmu-io-voltage-domain";
116 rockchip,grf = <&pmugrf>;
117 pmu1830-supply = <&vcc_3v0>;
120 hdmi_sound: hdmi-sound {
122 compatible = "simple-audio-card";
123 simple-audio-card,format = "i2s";
124 simple-audio-card,mclk-fs = <256>;
125 simple-audio-card,name = "rockchip,hdmi";
126 simple-audio-card,cpu {
129 simple-audio-card,codec {
130 sound-dai = <&dw_hdmi_audio>;
134 dw_hdmi_audio: dw-hdmi-audio {
136 compatible = "rockchip,dw-hdmi-audio";
137 #sound-dai-cells = <0>;
140 sdio_pwrseq: sdio-pwrseq {
141 compatible = "mmc-pwrseq-simple";
143 clock-names = "ext_clock";
144 pinctrl-names = "default";
145 pinctrl-0 = <&wifi_enable_h>;
148 * On the module itself this is one of these (depending
149 * on the actual card populated):
150 * - SDIO_RESET_L_WL_REG_ON
151 * - PDN (power down when low)
153 reset-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; /* GPIO0_B2 */
158 cpu-supply = <&vdd_cpu_l>;
162 cpu-supply = <&vdd_cpu_l>;
166 cpu-supply = <&vdd_cpu_l>;
170 cpu-supply = <&vdd_cpu_l>;
174 cpu-supply = <&vdd_cpu_b>;
178 cpu-supply = <&vdd_cpu_b>;
183 mali-supply = <&vdd_gpu>;
187 clock-frequency = <150000000>;
188 clock-freq-min-max = <100000 150000000>;
196 vqmmc-supply = <&vcc_sd>;
197 pinctrl-names = "default";
198 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
203 clock-frequency = <50000000>;
204 clock-freq-min-max = <200000 50000000>;
210 keep-power-in-suspend;
211 mmc-pwrseq = <&sdio_pwrseq>;
214 pinctrl-names = "default";
215 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
221 freq-sel = <200000000>;
232 keep-power-in-suspend;
233 mmc-hs400-enhanced-strobe;
239 rockchip,i2s-broken-burst-len;
240 rockchip,playback-channels = <8>;
241 rockchip,capture-channels = <8>;
242 #sound-dai-cells = <0>;
246 #sound-dai-cells = <0>;
252 i2c-scl-rising-time-ns = <168>;
253 i2c-scl-falling-time-ns = <4>;
254 clock-frequency = <400000>;
256 vdd_cpu_b: syr827@40 {
257 compatible = "silergy,syr827";
259 vin-supply = <&vcc5v0_sys>;
260 regulator-compatible = "fan53555-reg";
261 regulator-name = "vdd_cpu_b";
262 regulator-min-microvolt = <712500>;
263 regulator-max-microvolt = <1500000>;
264 regulator-ramp-delay = <1000>;
265 fcs,suspend-voltage-selector = <1>;
268 regulator-initial-state = <3>;
269 regulator-state-mem {
270 regulator-off-in-suspend;
275 compatible = "silergy,syr828";
277 vin-supply = <&vcc5v0_sys>;
278 regulator-compatible = "fan53555-reg";
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>;
318 vdd_center: DCDC_REG1 {
321 regulator-min-microvolt = <750000>;
322 regulator-max-microvolt = <1350000>;
323 regulator-name = "vdd_center";
324 regulator-state-mem {
325 regulator-off-in-suspend;
329 vdd_cpu_l: DCDC_REG2 {
332 regulator-min-microvolt = <750000>;
333 regulator-max-microvolt = <1350000>;
334 regulator-name = "vdd_cpu_l";
335 regulator-state-mem {
336 regulator-off-in-suspend;
343 regulator-name = "vcc_ddr";
344 regulator-state-mem {
345 regulator-on-in-suspend;
352 regulator-min-microvolt = <1800000>;
353 regulator-max-microvolt = <1800000>;
354 regulator-name = "vcc_1v8";
355 regulator-state-mem {
356 regulator-on-in-suspend;
357 regulator-suspend-microvolt = <1800000>;
361 vcc1v8_dvp: LDO_REG1 {
364 regulator-min-microvolt = <1800000>;
365 regulator-max-microvolt = <1800000>;
366 regulator-name = "vcc1v8_dvp";
367 regulator-state-mem {
368 regulator-off-in-suspend;
372 vcc3v0_tp: LDO_REG2 {
375 regulator-min-microvolt = <3000000>;
376 regulator-max-microvolt = <3000000>;
377 regulator-name = "vcc3v0_tp";
378 regulator-state-mem {
379 regulator-off-in-suspend;
383 vcc1v8_pmu: LDO_REG3 {
386 regulator-min-microvolt = <1800000>;
387 regulator-max-microvolt = <1800000>;
388 regulator-name = "vcc1v8_pmu";
389 regulator-state-mem {
390 regulator-on-in-suspend;
391 regulator-suspend-microvolt = <1800000>;
398 regulator-min-microvolt = <1800000>;
399 regulator-max-microvolt = <3300000>;
400 regulator-name = "vcc_sd";
401 regulator-state-mem {
402 regulator-on-in-suspend;
403 regulator-suspend-microvolt = <3300000>;
407 vcca3v0_codec: LDO_REG5 {
410 regulator-min-microvolt = <3000000>;
411 regulator-max-microvolt = <3000000>;
412 regulator-name = "vcca3v0_codec";
413 regulator-state-mem {
414 regulator-off-in-suspend;
421 regulator-min-microvolt = <1500000>;
422 regulator-max-microvolt = <1500000>;
423 regulator-name = "vcc_1v5";
424 regulator-state-mem {
425 regulator-on-in-suspend;
426 regulator-suspend-microvolt = <1500000>;
430 vcca1v8_codec: LDO_REG7 {
433 regulator-min-microvolt = <1800000>;
434 regulator-max-microvolt = <1800000>;
435 regulator-name = "vcca1v8_codec";
436 regulator-state-mem {
437 regulator-off-in-suspend;
444 regulator-min-microvolt = <3000000>;
445 regulator-max-microvolt = <3000000>;
446 regulator-name = "vcc_3v0";
447 regulator-state-mem {
448 regulator-on-in-suspend;
449 regulator-suspend-microvolt = <3000000>;
453 vcc3v3_s3: SWITCH_REG1 {
456 regulator-name = "vcc3v3_s3";
457 regulator-state-mem {
458 regulator-off-in-suspend;
462 vcc3v3_s0: SWITCH_REG2 {
465 regulator-name = "vcc3v3_s0";
466 regulator-state-mem {
467 regulator-off-in-suspend;
475 assigned-clocks = <&cru SCLK_PCIEPHY_REF>;
476 assigned-clock-parents = <&cru SCLK_PCIEPHY_REF100M>;
477 assigned-clock-rates = <100000000>;
478 ep-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
480 pinctrl-names = "default";
481 pinctrl-0 = <&pcie_clkreqn>;
486 /* tshut mode 0:CRU 1:GPIO */
487 rockchip,hw-tshut-mode = <1>;
488 /* tshut polarity 0:LOW 1:HIGH */
489 rockchip,hw-tshut-polarity = <1>;
496 u2phy0_otg: otg-port {
500 u2phy0_host: host-port {
501 phy-supply = <&vcc5v0_host>;
509 u2phy1_otg: otg-port {
513 u2phy1_host: host-port {
514 phy-supply = <&vcc5v0_host>;
569 phy-supply = <&vcc_phy>;
571 clock_in_out = "input";
572 snps,reset-gpio = <&gpio3 15 GPIO_ACTIVE_LOW>;
573 snps,reset-active-low;
574 snps,reset-delays-us = <0 10000 50000>;
575 assigned-clocks = <&cru SCLK_RMII_SRC>;
576 assigned-clock-parents = <&clkin_gmac>;
577 pinctrl-names = "default";
578 pinctrl-0 = <&rgmii_pins>;
586 opp-hz = /bits/ 64 <408000000>;
587 opp-microvolt = <800000>;
588 clock-latency-ns = <40000>;
591 opp-hz = /bits/ 64 <600000000>;
592 opp-microvolt = <800000>;
595 opp-hz = /bits/ 64 <816000000>;
596 opp-microvolt = <800000>;
599 opp-hz = /bits/ 64 <1008000000>;
600 opp-microvolt = <875000>;
603 opp-hz = /bits/ 64 <1200000000>;
604 opp-microvolt = <925000>;
607 opp-hz = /bits/ 64 <1416000000>;
608 opp-microvolt = <1050000>;
611 opp-hz = /bits/ 64 <1512000000>;
612 opp-microvolt = <1075000>;
618 opp-hz = /bits/ 64 <408000000>;
619 opp-microvolt = <800000>;
620 clock-latency-ns = <40000>;
623 opp-hz = /bits/ 64 <600000000>;
624 opp-microvolt = <800000>;
627 opp-hz = /bits/ 64 <816000000>;
628 opp-microvolt = <825000>;
631 opp-hz = /bits/ 64 <1008000000>;
632 opp-microvolt = <875000>;
635 opp-hz = /bits/ 64 <1200000000>;
636 opp-microvolt = <950000>;
639 opp-hz = /bits/ 64 <1416000000>;
640 opp-microvolt = <1025000>;
643 opp-hz = /bits/ 64 <1608000000>;
644 opp-microvolt = <1100000>;
647 opp-hz = /bits/ 64 <1800000000>;
648 opp-microvolt = <1175000>;
651 opp-hz = /bits/ 64 <1992000000>;
652 opp-microvolt = <1250000>;
661 518 335 /* 1008MHz */
662 617 428 /* 1200MHz */
663 728 573 /* 1416MHz */
664 827 724 /* 1608MHz */
665 925 900 /* 1800MHz */
666 1024 1108 /* 1992MHz */
697 518 335 /* 1008MHz */
698 617 428 /* 1200MHz */
699 728 573 /* 1416MHz */
700 827 724 /* 1608MHz */
701 925 900 /* 1800MHz */
702 1024 1108 /* 1992MHz */
730 opp-hz = /bits/ 64 <200000000>;
731 opp-microvolt = <800000>;
734 opp-hz = /bits/ 64 <300000000>;
735 opp-microvolt = <800000>;
738 opp-hz = /bits/ 64 <400000000>;
739 opp-microvolt = <800000>;
742 opp-hz = /bits/ 64 <500000000>;
743 opp-microvolt = <900000>;
746 opp-hz = /bits/ 64 <600000000>;
747 opp-microvolt = <900000>;
750 opp-hz = /bits/ 64 <800000000>;
751 opp-microvolt = <1000000>;
757 pmic_int_l: pmic-int-l {
759 <1 21 RK_FUNC_GPIO &pcfg_pull_up>;
762 pmic_dvs2: pmic-dvs2 {
764 <1 18 RK_FUNC_GPIO &pcfg_pull_down>;
769 host_vbus_drv: host-vbus-drv {
771 <4 25 RK_FUNC_GPIO &pcfg_pull_none>;