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 clkin_gmac: external-gmac-clock {
50 compatible = "fixed-clock";
51 clock-frequency = <125000000>;
52 clock-output-names = "clkin_gmac";
56 dw_hdmi_audio: dw-hdmi-audio {
58 compatible = "rockchip,dw-hdmi-audio";
59 #sound-dai-cells = <0>;
62 hdmi_sound: hdmi-sound {
64 compatible = "simple-audio-card";
65 simple-audio-card,format = "i2s";
66 simple-audio-card,mclk-fs = <256>;
67 simple-audio-card,name = "rockchip,hdmi";
69 simple-audio-card,cpu {
72 simple-audio-card,codec {
73 sound-dai = <&dw_hdmi_audio>;
78 compatible = "rockchip,rk3399-io-voltage-domain";
79 rockchip,grf = <&grf>;
81 bt656-supply = <&vcc_3v0>; /* bt656_gpio2ab_ms */
82 audio-supply = <&vcca1v8_codec>; /* audio_gpio3d4a_ms */
83 sdmmc-supply = <&vcc_sd>; /* sdmmc_gpio4b_ms */
84 gpio1830-supply = <&vcc_3v0>; /* gpio1833_gpio4cd_ms */
88 compatible = "rockchip,rk3399-pmu-io-voltage-domain";
89 rockchip,grf = <&pmugrf>;
90 pmu1830-supply = <&vcc_3v0>;
93 sdio_pwrseq: sdio-pwrseq {
94 compatible = "mmc-pwrseq-simple";
96 clock-names = "ext_clock";
97 pinctrl-names = "default";
98 pinctrl-0 = <&wifi_enable_h>;
101 * On the module itself this is one of these (depending
102 * on the actual card populated):
103 * - SDIO_RESET_L_WL_REG_ON
104 * - PDN (power down when low)
106 reset-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; /* GPIO0_B2 */
109 vcc3v3_sys: vcc3v3-sys {
110 compatible = "regulator-fixed";
111 regulator-name = "vcc3v3_sys";
114 regulator-min-microvolt = <3300000>;
115 regulator-max-microvolt = <3300000>;
118 vcc5v0_host: vcc5v0-host-regulator {
119 compatible = "regulator-fixed";
121 gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>;
122 pinctrl-names = "default";
123 pinctrl-0 = <&host_vbus_drv>;
124 regulator-name = "vcc5v0_host";
127 vcc5v0_sys: vcc5v0-sys {
128 compatible = "regulator-fixed";
129 regulator-name = "vcc5v0_sys";
132 regulator-min-microvolt = <5000000>;
133 regulator-max-microvolt = <5000000>;
136 vcc_phy: vcc-phy-regulator {
137 compatible = "regulator-fixed";
138 regulator-name = "vcc_phy";
144 compatible = "pwm-regulator";
145 pwms = <&pwm2 0 25000 0>;
146 regulator-name = "vdd_log";
147 regulator-min-microvolt = <800000>;
148 regulator-max-microvolt = <1400000>;
152 /* for rockchip boot on */
153 rockchip,pwm_id= <2>;
154 rockchip,pwm_voltage = <1000000>;
159 cpu-supply = <&vdd_cpu_l>;
163 cpu-supply = <&vdd_cpu_l>;
167 cpu-supply = <&vdd_cpu_l>;
171 cpu-supply = <&vdd_cpu_l>;
175 cpu-supply = <&vdd_cpu_b>;
179 cpu-supply = <&vdd_cpu_b>;
183 freq-sel = <200000000>;
190 phy-supply = <&vcc_phy>;
192 clock_in_out = "input";
193 snps,reset-gpio = <&gpio3 15 GPIO_ACTIVE_LOW>;
194 snps,reset-active-low;
195 snps,reset-delays-us = <0 10000 50000>;
196 assigned-clocks = <&cru SCLK_RMII_SRC>;
197 assigned-clock-parents = <&clkin_gmac>;
198 pinctrl-names = "default";
199 pinctrl-0 = <&rgmii_pins>;
207 mali-supply = <&vdd_gpu>;
212 i2c-scl-rising-time-ns = <168>;
213 i2c-scl-falling-time-ns = <4>;
214 clock-frequency = <400000>;
216 vdd_cpu_b: syr827@40 {
217 compatible = "silergy,syr827";
219 vin-supply = <&vcc5v0_sys>;
220 regulator-compatible = "fan53555-reg";
221 regulator-name = "vdd_cpu_b";
222 regulator-min-microvolt = <712500>;
223 regulator-max-microvolt = <1500000>;
224 regulator-ramp-delay = <1000>;
225 fcs,suspend-voltage-selector = <1>;
228 regulator-initial-state = <3>;
229 regulator-state-mem {
230 regulator-off-in-suspend;
235 compatible = "silergy,syr828";
237 vin-supply = <&vcc5v0_sys>;
238 regulator-compatible = "fan53555-reg";
239 regulator-name = "vdd_gpu";
240 regulator-min-microvolt = <712500>;
241 regulator-max-microvolt = <1500000>;
242 regulator-ramp-delay = <1000>;
243 fcs,suspend-voltage-selector = <1>;
246 regulator-initial-state = <3>;
247 regulator-state-mem {
248 regulator-off-in-suspend;
253 compatible = "rockchip,rk808";
255 interrupt-parent = <&gpio1>;
256 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
257 pinctrl-names = "default";
258 pinctrl-0 = <&pmic_int_l &pmic_dvs2>;
259 rockchip,system-power-controller;
262 clock-output-names = "xin32k", "rk808-clkout2";
264 vcc1-supply = <&vcc3v3_sys>;
265 vcc2-supply = <&vcc3v3_sys>;
266 vcc3-supply = <&vcc3v3_sys>;
267 vcc4-supply = <&vcc3v3_sys>;
268 vcc6-supply = <&vcc3v3_sys>;
269 vcc7-supply = <&vcc3v3_sys>;
270 vcc8-supply = <&vcc3v3_sys>;
271 vcc9-supply = <&vcc3v3_sys>;
272 vcc10-supply = <&vcc3v3_sys>;
273 vcc11-supply = <&vcc3v3_sys>;
274 vcc12-supply = <&vcc3v3_sys>;
275 vddio-supply = <&vcc1v8_pmu>;
278 vdd_center: DCDC_REG1 {
281 regulator-min-microvolt = <750000>;
282 regulator-max-microvolt = <1350000>;
283 regulator-name = "vdd_center";
284 regulator-state-mem {
285 regulator-off-in-suspend;
289 vdd_cpu_l: DCDC_REG2 {
292 regulator-min-microvolt = <750000>;
293 regulator-max-microvolt = <1350000>;
294 regulator-name = "vdd_cpu_l";
295 regulator-state-mem {
296 regulator-off-in-suspend;
303 regulator-name = "vcc_ddr";
304 regulator-state-mem {
305 regulator-on-in-suspend;
312 regulator-min-microvolt = <1800000>;
313 regulator-max-microvolt = <1800000>;
314 regulator-name = "vcc_1v8";
315 regulator-state-mem {
316 regulator-on-in-suspend;
317 regulator-suspend-microvolt = <1800000>;
321 vcc1v8_dvp: LDO_REG1 {
324 regulator-min-microvolt = <1800000>;
325 regulator-max-microvolt = <1800000>;
326 regulator-name = "vcc1v8_dvp";
327 regulator-state-mem {
328 regulator-off-in-suspend;
332 vcc3v0_tp: LDO_REG2 {
335 regulator-min-microvolt = <3000000>;
336 regulator-max-microvolt = <3000000>;
337 regulator-name = "vcc3v0_tp";
338 regulator-state-mem {
339 regulator-off-in-suspend;
343 vcc1v8_pmu: LDO_REG3 {
346 regulator-min-microvolt = <1800000>;
347 regulator-max-microvolt = <1800000>;
348 regulator-name = "vcc1v8_pmu";
349 regulator-state-mem {
350 regulator-on-in-suspend;
351 regulator-suspend-microvolt = <1800000>;
358 regulator-min-microvolt = <1800000>;
359 regulator-max-microvolt = <3300000>;
360 regulator-name = "vcc_sd";
361 regulator-state-mem {
362 regulator-on-in-suspend;
363 regulator-suspend-microvolt = <3300000>;
367 vcca3v0_codec: LDO_REG5 {
370 regulator-min-microvolt = <3000000>;
371 regulator-max-microvolt = <3000000>;
372 regulator-name = "vcca3v0_codec";
373 regulator-state-mem {
374 regulator-off-in-suspend;
381 regulator-min-microvolt = <1500000>;
382 regulator-max-microvolt = <1500000>;
383 regulator-name = "vcc_1v5";
384 regulator-state-mem {
385 regulator-on-in-suspend;
386 regulator-suspend-microvolt = <1500000>;
390 vcca1v8_codec: LDO_REG7 {
393 regulator-min-microvolt = <1800000>;
394 regulator-max-microvolt = <1800000>;
395 regulator-name = "vcca1v8_codec";
396 regulator-state-mem {
397 regulator-off-in-suspend;
404 regulator-min-microvolt = <3000000>;
405 regulator-max-microvolt = <3000000>;
406 regulator-name = "vcc_3v0";
407 regulator-state-mem {
408 regulator-on-in-suspend;
409 regulator-suspend-microvolt = <3000000>;
413 vcc3v3_s3: SWITCH_REG1 {
416 regulator-name = "vcc3v3_s3";
417 regulator-state-mem {
418 regulator-off-in-suspend;
422 vcc3v3_s0: SWITCH_REG2 {
425 regulator-name = "vcc3v3_s0";
426 regulator-state-mem {
427 regulator-off-in-suspend;
436 rockchip,i2s-broken-burst-len;
437 rockchip,playback-channels = <8>;
438 rockchip,capture-channels = <8>;
439 #sound-dai-cells = <0>;
443 #sound-dai-cells = <0>;
448 assigned-clocks = <&cru SCLK_PCIEPHY_REF>;
449 assigned-clock-parents = <&cru SCLK_PCIEPHY_REF100M>;
450 assigned-clock-rates = <100000000>;
451 ep-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
453 pinctrl-names = "default";
454 pinctrl-0 = <&pcie_clkreqn>;
471 keep-power-in-suspend;
472 mmc-hs400-enhanced-strobe;
477 clock-frequency = <50000000>;
478 clock-freq-min-max = <200000 50000000>;
484 keep-power-in-suspend;
485 mmc-pwrseq = <&sdio_pwrseq>;
488 pinctrl-names = "default";
489 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
495 clock-frequency = <150000000>;
496 clock-freq-min-max = <100000 150000000>;
504 vqmmc-supply = <&vcc_sd>;
505 pinctrl-names = "default";
506 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
515 /* tshut mode 0:CRU 1:GPIO */
516 rockchip,hw-tshut-mode = <1>;
517 /* tshut polarity 0:LOW 1:HIGH */
518 rockchip,hw-tshut-polarity = <1>;
525 u2phy0_otg: otg-port {
529 u2phy0_host: host-port {
530 phy-supply = <&vcc5v0_host>;
538 u2phy1_otg: otg-port {
542 u2phy1_host: host-port {
543 phy-supply = <&vcc5v0_host>;
587 opp-hz = /bits/ 64 <408000000>;
588 opp-microvolt = <800000>;
589 clock-latency-ns = <40000>;
592 opp-hz = /bits/ 64 <600000000>;
593 opp-microvolt = <800000>;
596 opp-hz = /bits/ 64 <816000000>;
597 opp-microvolt = <800000>;
600 opp-hz = /bits/ 64 <1008000000>;
601 opp-microvolt = <875000>;
604 opp-hz = /bits/ 64 <1200000000>;
605 opp-microvolt = <925000>;
608 opp-hz = /bits/ 64 <1416000000>;
609 opp-microvolt = <1050000>;
612 opp-hz = /bits/ 64 <1512000000>;
613 opp-microvolt = <1075000>;
619 opp-hz = /bits/ 64 <408000000>;
620 opp-microvolt = <800000>;
621 clock-latency-ns = <40000>;
624 opp-hz = /bits/ 64 <600000000>;
625 opp-microvolt = <800000>;
628 opp-hz = /bits/ 64 <816000000>;
629 opp-microvolt = <825000>;
632 opp-hz = /bits/ 64 <1008000000>;
633 opp-microvolt = <875000>;
636 opp-hz = /bits/ 64 <1200000000>;
637 opp-microvolt = <950000>;
640 opp-hz = /bits/ 64 <1416000000>;
641 opp-microvolt = <1025000>;
644 opp-hz = /bits/ 64 <1608000000>;
645 opp-microvolt = <1100000>;
648 opp-hz = /bits/ 64 <1800000000>;
649 opp-microvolt = <1175000>;
652 opp-hz = /bits/ 64 <1992000000>;
653 opp-microvolt = <1250000>;
662 518 335 /* 1008MHz */
663 617 428 /* 1200MHz */
664 728 573 /* 1416MHz */
665 827 724 /* 1608MHz */
666 925 900 /* 1800MHz */
667 1024 1108 /* 1992MHz */
698 518 335 /* 1008MHz */
699 617 428 /* 1200MHz */
700 728 573 /* 1416MHz */
701 827 724 /* 1608MHz */
702 925 900 /* 1800MHz */
703 1024 1108 /* 1992MHz */
731 opp-hz = /bits/ 64 <200000000>;
732 opp-microvolt = <800000>;
735 opp-hz = /bits/ 64 <300000000>;
736 opp-microvolt = <800000>;
739 opp-hz = /bits/ 64 <400000000>;
740 opp-microvolt = <800000>;
743 opp-hz = /bits/ 64 <500000000>;
744 opp-microvolt = <900000>;
747 opp-hz = /bits/ 64 <600000000>;
748 opp-microvolt = <900000>;
751 opp-hz = /bits/ 64 <800000000>;
752 opp-microvolt = <1000000>;
758 pmic_int_l: pmic-int-l {
760 <1 21 RK_FUNC_GPIO &pcfg_pull_up>;
763 pmic_dvs2: pmic-dvs2 {
765 <1 18 RK_FUNC_GPIO &pcfg_pull_down>;
770 host_vbus_drv: host-vbus-drv {
772 <4 25 RK_FUNC_GPIO &pcfg_pull_none>;