1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd.
4 * Copyright (c) 2018 Akash Gajjar <Akash_Gajjar@mentor.com>
8 #include <dt-bindings/input/linux-event-codes.h>
9 #include <dt-bindings/pwm/pwm.h>
10 #include "rk3399.dtsi"
11 #include "rk3399-opp.dtsi"
14 model = "Pine64 RockPro64";
15 compatible = "pine64,rockpro64", "rockchip,rk3399";
18 stdout-path = "serial2:1500000n8";
21 clkin_gmac: external-gmac-clock {
22 compatible = "fixed-clock";
23 clock-frequency = <125000000>;
24 clock-output-names = "clkin_gmac";
29 compatible = "gpio-keys";
31 pinctrl-names = "default";
32 pinctrl-0 = <&pwrbtn>;
35 debounce-interval = <100>;
36 gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
37 label = "GPIO Key Power";
38 linux,code = <KEY_POWER>;
44 compatible = "gpio-leds";
45 pinctrl-names = "default";
46 pinctrl-0 = <&work_led_gpio>, <&diy_led_gpio>;
51 gpios = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>;
56 default-state = "off";
57 gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
61 sdio_pwrseq: sdio-pwrseq {
62 compatible = "mmc-pwrseq-simple";
64 clock-names = "ext_clock";
65 pinctrl-names = "default";
66 pinctrl-0 = <&wifi_enable_h>;
69 * On the module itself this is one of these (depending
70 * on the actual card populated):
71 * - SDIO_RESET_L_WL_REG_ON
72 * - PDN (power down when low)
74 reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
77 vcc12v_dcin: vcc12v-dcin {
78 compatible = "regulator-fixed";
79 regulator-name = "vcc12v_dcin";
82 regulator-min-microvolt = <12000000>;
83 regulator-max-microvolt = <12000000>;
86 /* switched by pmic_sleep */
87 vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 {
88 compatible = "regulator-fixed";
89 regulator-name = "vcc1v8_s3";
92 regulator-min-microvolt = <1800000>;
93 regulator-max-microvolt = <1800000>;
94 vin-supply = <&vcc_1v8>;
97 vcc3v3_pcie: vcc3v3-pcie-regulator {
98 compatible = "regulator-fixed";
100 gpio = <&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>;
101 pinctrl-names = "default";
102 pinctrl-0 = <&pcie_pwr_en>;
103 regulator-name = "vcc3v3_pcie";
106 vin-supply = <&vcc12v_dcin>;
109 vcc3v3_sys: vcc3v3-sys {
110 compatible = "regulator-fixed";
111 regulator-name = "vcc3v3_sys";
114 regulator-min-microvolt = <3300000>;
115 regulator-max-microvolt = <3300000>;
116 vin-supply = <&vcc5v0_sys>;
119 /* Actually 3 regulators (host0, 1, 2) controlled by the same gpio */
120 vcc5v0_host: vcc5v0-host-regulator {
121 compatible = "regulator-fixed";
123 gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
124 pinctrl-names = "default";
125 pinctrl-0 = <&vcc5v0_host_en>;
126 regulator-name = "vcc5v0_host";
128 vin-supply = <&vcc5v0_usb>;
131 vcc5v0_typec: vcc5v0-typec-regulator {
132 compatible = "regulator-fixed";
134 gpio = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>;
135 pinctrl-names = "default";
136 pinctrl-0 = <&vcc5v0_typec_en>;
137 regulator-name = "vcc5v0_typec";
139 vin-supply = <&vcc5v0_usb>;
142 vcc5v0_sys: vcc5v0-sys {
143 compatible = "regulator-fixed";
144 regulator-name = "vcc5v0_sys";
147 regulator-min-microvolt = <5000000>;
148 regulator-max-microvolt = <5000000>;
149 vin-supply = <&vcc12v_dcin>;
152 vcc5v0_usb: vcc5v0-usb {
153 compatible = "regulator-fixed";
154 regulator-name = "vcc5v0_usb";
157 regulator-min-microvolt = <5000000>;
158 regulator-max-microvolt = <5000000>;
159 vin-supply = <&vcc12v_dcin>;
163 compatible = "pwm-regulator";
164 pwms = <&pwm2 0 25000 1>;
165 regulator-name = "vdd_log";
168 regulator-min-microvolt = <800000>;
169 regulator-max-microvolt = <1400000>;
170 vin-supply = <&vcc5v0_sys>;
175 cpu-supply = <&vdd_cpu_l>;
179 cpu-supply = <&vdd_cpu_l>;
183 cpu-supply = <&vdd_cpu_l>;
187 cpu-supply = <&vdd_cpu_l>;
191 cpu-supply = <&vdd_cpu_b>;
195 cpu-supply = <&vdd_cpu_b>;
203 assigned-clocks = <&cru SCLK_RMII_SRC>;
204 assigned-clock-parents = <&clkin_gmac>;
205 clock_in_out = "input";
206 phy-supply = <&vcc_lan>;
208 pinctrl-names = "default";
209 pinctrl-0 = <&rgmii_pins>;
210 snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
211 snps,reset-active-low;
212 snps,reset-delays-us = <0 10000 50000>;
219 ddc-i2c-bus = <&i2c3>;
220 pinctrl-names = "default";
221 pinctrl-0 = <&hdmi_cec>;
230 mali-supply = <&vdd_gpu>;
235 clock-frequency = <400000>;
236 i2c-scl-rising-time-ns = <168>;
237 i2c-scl-falling-time-ns = <4>;
241 compatible = "rockchip,rk808";
243 interrupt-parent = <&gpio1>;
244 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
246 clock-output-names = "xin32k", "rk808-clkout2";
247 pinctrl-names = "default";
248 pinctrl-0 = <&pmic_int_l>;
249 rockchip,system-power-controller;
252 vcc1-supply = <&vcc5v0_sys>;
253 vcc2-supply = <&vcc5v0_sys>;
254 vcc3-supply = <&vcc5v0_sys>;
255 vcc4-supply = <&vcc5v0_sys>;
256 vcc6-supply = <&vcc5v0_sys>;
257 vcc7-supply = <&vcc5v0_sys>;
258 vcc8-supply = <&vcc3v3_sys>;
259 vcc9-supply = <&vcc5v0_sys>;
260 vcc10-supply = <&vcc5v0_sys>;
261 vcc11-supply = <&vcc5v0_sys>;
262 vcc12-supply = <&vcc3v3_sys>;
263 vddio-supply = <&vcca_1v8>;
266 vdd_center: DCDC_REG1 {
267 regulator-name = "vdd_center";
270 regulator-min-microvolt = <750000>;
271 regulator-max-microvolt = <1350000>;
272 regulator-ramp-delay = <6001>;
273 regulator-state-mem {
274 regulator-off-in-suspend;
278 vdd_cpu_l: DCDC_REG2 {
279 regulator-name = "vdd_cpu_l";
282 regulator-min-microvolt = <750000>;
283 regulator-max-microvolt = <1350000>;
284 regulator-ramp-delay = <6001>;
285 regulator-state-mem {
286 regulator-off-in-suspend;
291 regulator-name = "vcc_ddr";
294 regulator-state-mem {
295 regulator-on-in-suspend;
300 regulator-name = "vcc_1v8";
303 regulator-min-microvolt = <1800000>;
304 regulator-max-microvolt = <1800000>;
305 regulator-state-mem {
306 regulator-on-in-suspend;
307 regulator-suspend-microvolt = <1800000>;
311 vcc1v8_dvp: LDO_REG1 {
312 regulator-name = "vcc1v8_dvp";
315 regulator-min-microvolt = <1800000>;
316 regulator-max-microvolt = <1800000>;
317 regulator-state-mem {
318 regulator-off-in-suspend;
322 vcc3v0_touch: LDO_REG2 {
323 regulator-name = "vcc3v0_touch";
326 regulator-min-microvolt = <3000000>;
327 regulator-max-microvolt = <3000000>;
328 regulator-state-mem {
329 regulator-off-in-suspend;
334 regulator-name = "vcca_1v8";
337 regulator-min-microvolt = <1800000>;
338 regulator-max-microvolt = <1800000>;
339 regulator-state-mem {
340 regulator-on-in-suspend;
341 regulator-suspend-microvolt = <1800000>;
346 regulator-name = "vcc_sdio";
349 regulator-min-microvolt = <1800000>;
350 regulator-max-microvolt = <3000000>;
351 regulator-state-mem {
352 regulator-on-in-suspend;
353 regulator-suspend-microvolt = <3000000>;
357 vcca3v0_codec: LDO_REG5 {
358 regulator-name = "vcca3v0_codec";
361 regulator-min-microvolt = <3000000>;
362 regulator-max-microvolt = <3000000>;
363 regulator-state-mem {
364 regulator-off-in-suspend;
369 regulator-name = "vcc_1v5";
372 regulator-min-microvolt = <1500000>;
373 regulator-max-microvolt = <1500000>;
374 regulator-state-mem {
375 regulator-on-in-suspend;
376 regulator-suspend-microvolt = <1500000>;
380 vcca1v8_codec: LDO_REG7 {
381 regulator-name = "vcca1v8_codec";
384 regulator-min-microvolt = <1800000>;
385 regulator-max-microvolt = <1800000>;
386 regulator-state-mem {
387 regulator-off-in-suspend;
392 regulator-name = "vcc_3v0";
395 regulator-min-microvolt = <3000000>;
396 regulator-max-microvolt = <3000000>;
397 regulator-state-mem {
398 regulator-on-in-suspend;
399 regulator-suspend-microvolt = <3000000>;
403 vcc3v3_s3: vcc_lan: SWITCH_REG1 {
404 regulator-name = "vcc3v3_s3";
407 regulator-state-mem {
408 regulator-off-in-suspend;
412 vcc3v3_s0: SWITCH_REG2 {
413 regulator-name = "vcc3v3_s0";
416 regulator-state-mem {
417 regulator-off-in-suspend;
423 vdd_cpu_b: regulator@40 {
424 compatible = "silergy,syr827";
426 fcs,suspend-voltage-selector = <1>;
427 pinctrl-names = "default";
428 pinctrl-0 = <&vsel1_gpio>;
429 regulator-name = "vdd_cpu_b";
430 regulator-min-microvolt = <712500>;
431 regulator-max-microvolt = <1500000>;
432 regulator-ramp-delay = <1000>;
435 vin-supply = <&vcc5v0_sys>;
437 regulator-state-mem {
438 regulator-off-in-suspend;
442 vdd_gpu: regulator@41 {
443 compatible = "silergy,syr828";
445 fcs,suspend-voltage-selector = <1>;
446 pinctrl-names = "default";
447 pinctrl-0 = <&vsel2_gpio>;
448 regulator-name = "vdd_gpu";
449 regulator-min-microvolt = <712500>;
450 regulator-max-microvolt = <1500000>;
451 regulator-ramp-delay = <1000>;
454 vin-supply = <&vcc5v0_sys>;
456 regulator-state-mem {
457 regulator-off-in-suspend;
463 i2c-scl-rising-time-ns = <300>;
464 i2c-scl-falling-time-ns = <15>;
469 i2c-scl-rising-time-ns = <450>;
470 i2c-scl-falling-time-ns = <15>;
475 i2c-scl-rising-time-ns = <600>;
476 i2c-scl-falling-time-ns = <20>;
479 fusb0: typec-portc@22 {
480 compatible = "fcs,fusb302";
482 interrupt-parent = <&gpio1>;
483 interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>;
484 pinctrl-names = "default";
485 pinctrl-0 = <&fusb0_int>;
486 vbus-supply = <&vcc5v0_typec>;
492 rockchip,playback-channels = <8>;
493 rockchip,capture-channels = <8>;
498 rockchip,playback-channels = <2>;
499 rockchip,capture-channels = <2>;
510 bt656-supply = <&vcc1v8_dvp>;
511 audio-supply = <&vcc_3v0>;
512 sdmmc-supply = <&vcc_sdio>;
513 gpio1830-supply = <&vcc_3v0>;
517 ep-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>;
519 pinctrl-names = "default";
520 pinctrl-0 = <&pcie_perst>;
521 vpcie12v-supply = <&vcc12v_dcin>;
522 vpcie3v3-supply = <&vcc3v3_pcie>;
531 pmu1830-supply = <&vcc_3v0>;
538 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
543 fusb0_int: fusb0-int {
544 rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>;
549 work_led_gpio: work_led-gpio {
550 rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
553 diy_led_gpio: diy_led-gpio {
554 rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
559 pcie_perst: pcie-perst {
560 rockchip,pins = <2 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
563 pcie_pwr_en: pcie-pwr-en {
564 rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
569 pmic_int_l: pmic-int-l {
570 rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
573 vsel1_gpio: vsel1-gpio {
574 rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>;
577 vsel2_gpio: vsel2-gpio {
578 rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
583 wifi_enable_h: wifi-enable-h {
584 rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
589 vcc5v0_typec_en: vcc5v0_typec_en {
590 rockchip,pins = <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
595 vcc5v0_host_en: vcc5v0-host-en {
596 rockchip,pins = <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
610 vref-supply = <&vcca1v8_s3>;
618 cd-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
620 max-frequency = <150000000>;
621 pinctrl-names = "default";
622 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
629 mmc-hs400-enhanced-strobe;
643 /* tshut mode 0:CRU 1:GPIO */
644 rockchip,hw-tshut-mode = <1>;
645 /* tshut polarity 0:LOW 1:HIGH */
646 rockchip,hw-tshut-polarity = <1>;
653 u2phy0_otg: otg-port {
657 u2phy0_host: host-port {
658 phy-supply = <&vcc5v0_host>;
666 u2phy1_otg: otg-port {
670 u2phy1_host: host-port {
671 phy-supply = <&vcc5v0_host>;
677 pinctrl-names = "default";
678 pinctrl-0 = <&uart0_xfer &uart0_cts>;