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>;
226 mali-supply = <&vdd_gpu>;
231 clock-frequency = <400000>;
232 i2c-scl-rising-time-ns = <168>;
233 i2c-scl-falling-time-ns = <4>;
237 compatible = "rockchip,rk808";
239 interrupt-parent = <&gpio1>;
240 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
242 clock-output-names = "xin32k", "rk808-clkout2";
243 pinctrl-names = "default";
244 pinctrl-0 = <&pmic_int_l>;
245 rockchip,system-power-controller;
248 vcc1-supply = <&vcc5v0_sys>;
249 vcc2-supply = <&vcc5v0_sys>;
250 vcc3-supply = <&vcc5v0_sys>;
251 vcc4-supply = <&vcc5v0_sys>;
252 vcc6-supply = <&vcc5v0_sys>;
253 vcc7-supply = <&vcc5v0_sys>;
254 vcc8-supply = <&vcc3v3_sys>;
255 vcc9-supply = <&vcc5v0_sys>;
256 vcc10-supply = <&vcc5v0_sys>;
257 vcc11-supply = <&vcc5v0_sys>;
258 vcc12-supply = <&vcc3v3_sys>;
259 vddio-supply = <&vcca_1v8>;
262 vdd_center: DCDC_REG1 {
263 regulator-name = "vdd_center";
266 regulator-min-microvolt = <750000>;
267 regulator-max-microvolt = <1350000>;
268 regulator-ramp-delay = <6001>;
269 regulator-state-mem {
270 regulator-off-in-suspend;
274 vdd_cpu_l: DCDC_REG2 {
275 regulator-name = "vdd_cpu_l";
278 regulator-min-microvolt = <750000>;
279 regulator-max-microvolt = <1350000>;
280 regulator-ramp-delay = <6001>;
281 regulator-state-mem {
282 regulator-off-in-suspend;
287 regulator-name = "vcc_ddr";
290 regulator-state-mem {
291 regulator-on-in-suspend;
296 regulator-name = "vcc_1v8";
299 regulator-min-microvolt = <1800000>;
300 regulator-max-microvolt = <1800000>;
301 regulator-state-mem {
302 regulator-on-in-suspend;
303 regulator-suspend-microvolt = <1800000>;
307 vcc1v8_dvp: LDO_REG1 {
308 regulator-name = "vcc1v8_dvp";
311 regulator-min-microvolt = <1800000>;
312 regulator-max-microvolt = <1800000>;
313 regulator-state-mem {
314 regulator-off-in-suspend;
318 vcc3v0_touch: LDO_REG2 {
319 regulator-name = "vcc3v0_touch";
322 regulator-min-microvolt = <3000000>;
323 regulator-max-microvolt = <3000000>;
324 regulator-state-mem {
325 regulator-off-in-suspend;
330 regulator-name = "vcca_1v8";
333 regulator-min-microvolt = <1800000>;
334 regulator-max-microvolt = <1800000>;
335 regulator-state-mem {
336 regulator-on-in-suspend;
337 regulator-suspend-microvolt = <1800000>;
342 regulator-name = "vcc_sdio";
345 regulator-min-microvolt = <1800000>;
346 regulator-max-microvolt = <3000000>;
347 regulator-state-mem {
348 regulator-on-in-suspend;
349 regulator-suspend-microvolt = <3000000>;
353 vcca3v0_codec: LDO_REG5 {
354 regulator-name = "vcca3v0_codec";
357 regulator-min-microvolt = <3000000>;
358 regulator-max-microvolt = <3000000>;
359 regulator-state-mem {
360 regulator-off-in-suspend;
365 regulator-name = "vcc_1v5";
368 regulator-min-microvolt = <1500000>;
369 regulator-max-microvolt = <1500000>;
370 regulator-state-mem {
371 regulator-on-in-suspend;
372 regulator-suspend-microvolt = <1500000>;
376 vcca1v8_codec: LDO_REG7 {
377 regulator-name = "vcca1v8_codec";
380 regulator-min-microvolt = <1800000>;
381 regulator-max-microvolt = <1800000>;
382 regulator-state-mem {
383 regulator-off-in-suspend;
388 regulator-name = "vcc_3v0";
391 regulator-min-microvolt = <3000000>;
392 regulator-max-microvolt = <3000000>;
393 regulator-state-mem {
394 regulator-on-in-suspend;
395 regulator-suspend-microvolt = <3000000>;
399 vcc3v3_s3: vcc_lan: SWITCH_REG1 {
400 regulator-name = "vcc3v3_s3";
403 regulator-state-mem {
404 regulator-off-in-suspend;
408 vcc3v3_s0: SWITCH_REG2 {
409 regulator-name = "vcc3v3_s0";
412 regulator-state-mem {
413 regulator-off-in-suspend;
419 vdd_cpu_b: regulator@40 {
420 compatible = "silergy,syr827";
422 fcs,suspend-voltage-selector = <1>;
423 pinctrl-names = "default";
424 pinctrl-0 = <&vsel1_gpio>;
425 regulator-name = "vdd_cpu_b";
426 regulator-min-microvolt = <712500>;
427 regulator-max-microvolt = <1500000>;
428 regulator-ramp-delay = <1000>;
431 vin-supply = <&vcc5v0_sys>;
433 regulator-state-mem {
434 regulator-off-in-suspend;
438 vdd_gpu: regulator@41 {
439 compatible = "silergy,syr828";
441 fcs,suspend-voltage-selector = <1>;
442 pinctrl-names = "default";
443 pinctrl-0 = <&vsel2_gpio>;
444 regulator-name = "vdd_gpu";
445 regulator-min-microvolt = <712500>;
446 regulator-max-microvolt = <1500000>;
447 regulator-ramp-delay = <1000>;
450 vin-supply = <&vcc5v0_sys>;
452 regulator-state-mem {
453 regulator-off-in-suspend;
459 i2c-scl-rising-time-ns = <300>;
460 i2c-scl-falling-time-ns = <15>;
465 i2c-scl-rising-time-ns = <450>;
466 i2c-scl-falling-time-ns = <15>;
471 i2c-scl-rising-time-ns = <600>;
472 i2c-scl-falling-time-ns = <20>;
475 fusb0: typec-portc@22 {
476 compatible = "fcs,fusb302";
478 interrupt-parent = <&gpio1>;
479 interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>;
480 pinctrl-names = "default";
481 pinctrl-0 = <&fusb0_int>;
482 vbus-supply = <&vcc5v0_typec>;
488 rockchip,playback-channels = <8>;
489 rockchip,capture-channels = <8>;
494 rockchip,playback-channels = <2>;
495 rockchip,capture-channels = <2>;
506 bt656-supply = <&vcc1v8_dvp>;
507 audio-supply = <&vcca1v8_codec>;
508 sdmmc-supply = <&vcc_sdio>;
509 gpio1830-supply = <&vcc_3v0>;
513 pmu1830-supply = <&vcc_3v0>;
520 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
525 fusb0_int: fusb0-int {
526 rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>;
531 work_led_gpio: work_led-gpio {
532 rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
535 diy_led_gpio: diy_led-gpio {
536 rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
541 pcie_pwr_en: pcie-pwr-en {
542 rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
547 pmic_int_l: pmic-int-l {
548 rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
551 vsel1_gpio: vsel1-gpio {
552 rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>;
555 vsel2_gpio: vsel2-gpio {
556 rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
561 wifi_enable_h: wifi-enable-h {
562 rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
567 vcc5v0_typec_en: vcc5v0_typec_en {
568 rockchip,pins = <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
573 vcc5v0_host_en: vcc5v0-host-en {
574 rockchip,pins = <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
588 vref-supply = <&vcca1v8_s3>;
596 cd-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
598 max-frequency = <150000000>;
599 pinctrl-names = "default";
600 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
607 mmc-hs400-enhanced-strobe;
621 /* tshut mode 0:CRU 1:GPIO */
622 rockchip,hw-tshut-mode = <1>;
623 /* tshut polarity 0:LOW 1:HIGH */
624 rockchip,hw-tshut-polarity = <1>;
631 u2phy0_otg: otg-port {
635 u2phy0_host: host-port {
636 phy-supply = <&vcc5v0_host>;
644 u2phy1_otg: otg-port {
648 u2phy1_host: host-port {
649 phy-supply = <&vcc5v0_host>;
655 pinctrl-names = "default";
656 pinctrl-0 = <&uart0_xfer &uart0_cts>;