1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/pinctrl/rockchip.h>
7 #include <dt-bindings/soc/rockchip,vop2.h>
11 model = "Pine64 RK3566 Quartz64-B Board";
12 compatible = "pine64,quartz64-b", "rockchip,rk3566";
22 stdout-path = "serial2:1500000n8";
25 gmac1_clkin: external-gmac1-clock {
26 compatible = "fixed-clock";
27 clock-frequency = <125000000>;
28 clock-output-names = "gmac1_clkin";
33 compatible = "hdmi-connector";
37 hdmi_con_in: endpoint {
38 remote-endpoint = <&hdmi_out_con>;
44 compatible = "gpio-leds";
49 gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
50 linux,default-trigger = "heartbeat";
51 pinctrl-names = "default";
52 pinctrl-0 = <&user_led_enable_h>;
53 retain-state-suspended;
58 compatible = "simple-audio-card";
59 simple-audio-card,format = "i2s";
60 simple-audio-card,name = "Analog RK809";
61 simple-audio-card,mclk-fs = <256>;
63 simple-audio-card,cpu {
64 sound-dai = <&i2s1_8ch>;
67 simple-audio-card,codec {
72 sdio_pwrseq: sdio-pwrseq {
74 compatible = "mmc-pwrseq-simple";
76 clock-names = "ext_clock";
77 pinctrl-names = "default";
78 pinctrl-0 = <&wifi_enable_h>;
79 reset-gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_LOW>;
80 post-power-on-delay-ms = <100>;
81 power-off-delay-us = <5000000>;
84 vcc3v3_pcie_p: vcc3v3-pcie-p-regulator {
85 compatible = "regulator-fixed";
87 gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
88 pinctrl-names = "default";
89 pinctrl-0 = <&pcie_enable_h>;
90 regulator-name = "vcc3v3_pcie_p";
91 regulator-min-microvolt = <3300000>;
92 regulator-max-microvolt = <3300000>;
93 vin-supply = <&vcc_3v3>;
96 vcc5v0_in: vcc5v0-in-regulator {
97 compatible = "regulator-fixed";
98 regulator-name = "vcc5v0_in";
101 regulator-min-microvolt = <5000000>;
102 regulator-max-microvolt = <5000000>;
105 vcc5v0_sys: vcc5v0-sys-regulator {
106 compatible = "regulator-fixed";
107 regulator-name = "vcc5v0_sys";
110 regulator-min-microvolt = <5000000>;
111 regulator-max-microvolt = <5000000>;
112 vin-supply = <&vcc5v0_in>;
115 vcc3v3_sys: vcc3v3-sys-regulator {
116 compatible = "regulator-fixed";
117 regulator-name = "vcc3v3_sys";
118 regulator-min-microvolt = <3300000>;
119 regulator-max-microvolt = <3300000>;
121 vin-supply = <&vcc5v0_sys>;
124 vcc5v0_usb30_host: vcc5v0-usb30-host-regulator {
125 compatible = "regulator-fixed";
126 regulator-name = "vcc5v0_usb30_host";
128 gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
129 pinctrl-names = "default";
130 pinctrl-0 = <&vcc5v0_usb30_host_en_h>;
132 regulator-min-microvolt = <5000000>;
133 regulator-max-microvolt = <5000000>;
134 vin-supply = <&vcc5v0_sys>;
137 vcc5v0_usb_otg: vcc5v0-usb-otg-regulator {
138 compatible = "regulator-fixed";
139 regulator-name = "vcc5v0_usb_otg";
141 gpio = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
142 pinctrl-names = "default";
143 pinctrl-0 = <&vcc5v0_usb_otg_en_h>;
145 regulator-min-microvolt = <5000000>;
146 regulator-max-microvolt = <5000000>;
147 vin-supply = <&vcc5v0_sys>;
160 cpu-supply = <&vdd_cpu>;
164 cpu-supply = <&vdd_cpu>;
168 cpu-supply = <&vdd_cpu>;
172 cpu-supply = <&vdd_cpu>;
176 assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1_RGMII_SPEED>, <&cru SCLK_GMAC1>;
177 assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&cru SCLK_GMAC1>, <&gmac1_clkin>;
178 clock_in_out = "input";
180 phy-supply = <&vcc_3v3>;
181 pinctrl-names = "default";
182 pinctrl-0 = <&gmac1m1_miim
188 snps,reset-gpio = <&gpio3 RK_PC0 GPIO_ACTIVE_LOW>;
189 snps,reset-active-low;
190 /* Reset time is 20ms, 100ms for rtl8211f, also works well here */
191 snps,reset-delays-us = <0 20000 100000>;
194 phy-handle = <&rgmii_phy1>;
199 mali-supply = <&vdd_gpu>;
204 avdd-0v9-supply = <&vdda0v9_image>;
205 avdd-1v8-supply = <&vcca1v8_image>;
210 hdmi_in_vp0: endpoint {
211 remote-endpoint = <&vp0_out_hdmi>;
216 hdmi_out_con: endpoint {
217 remote-endpoint = <&hdmi_con_in>;
228 vdd_cpu: regulator@1c {
229 compatible = "tcs,tcs4525";
231 fcs,suspend-voltage-selector = <1>;
232 regulator-name = "vdd_cpu";
233 regulator-min-microvolt = <800000>;
234 regulator-max-microvolt = <1150000>;
235 regulator-ramp-delay = <2300>;
238 vin-supply = <&vcc5v0_sys>;
240 regulator-state-mem {
241 regulator-off-in-suspend;
246 compatible = "rockchip,rk809";
248 interrupt-parent = <&gpio0>;
249 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>;
250 assigned-clocks = <&cru I2S1_MCLKOUT_TX>;
251 assigned-clock-parents = <&cru CLK_I2S1_8CH_TX>;
252 clock-names = "mclk";
253 clocks = <&cru I2S1_MCLKOUT_TX>;
254 clock-output-names = "rk808-clkout1", "rk808-clkout2";
256 pinctrl-names = "default";
257 pinctrl-0 = <&pmic_int>, <&i2s1m0_mclk>;
258 rockchip,system-power-controller;
259 #sound-dai-cells = <0>;
263 vcc1-supply = <&vcc3v3_sys>;
264 vcc2-supply = <&vcc3v3_sys>;
265 vcc3-supply = <&vcc3v3_sys>;
266 vcc4-supply = <&vcc3v3_sys>;
267 vcc5-supply = <&vcc3v3_sys>;
268 vcc6-supply = <&vcc3v3_sys>;
269 vcc7-supply = <&vcc3v3_sys>;
270 vcc8-supply = <&vcc3v3_sys>;
271 vcc9-supply = <&vcc3v3_sys>;
275 regulator-name = "vdd_log";
278 regulator-min-microvolt = <500000>;
279 regulator-max-microvolt = <1350000>;
280 regulator-init-microvolt = <900000>;
281 regulator-ramp-delay = <6001>;
283 regulator-state-mem {
284 regulator-on-in-suspend;
285 regulator-suspend-microvolt = <900000>;
290 regulator-name = "vdd_gpu";
293 regulator-min-microvolt = <900000>;
294 regulator-max-microvolt = <1350000>;
295 regulator-init-microvolt = <900000>;
296 regulator-ramp-delay = <6001>;
298 regulator-state-mem {
299 regulator-off-in-suspend;
300 regulator-suspend-microvolt = <900000>;
305 regulator-name = "vcc_ddr";
308 regulator-initial-mode = <0x2>;
309 regulator-state-mem {
310 regulator-on-in-suspend;
315 regulator-name = "vdd_npu";
316 regulator-min-microvolt = <900000>;
317 regulator-max-microvolt = <1350000>;
318 regulator-initial-mode = <0x2>;
319 regulator-state-mem {
320 regulator-off-in-suspend;
325 regulator-name = "vcc_1v8";
328 regulator-min-microvolt = <1800000>;
329 regulator-max-microvolt = <1800000>;
331 regulator-state-mem {
332 regulator-on-in-suspend;
333 regulator-suspend-microvolt = <1800000>;
337 vdda0v9_image: LDO_REG1 {
338 regulator-name = "vdda0v9_image";
341 regulator-min-microvolt = <900000>;
342 regulator-max-microvolt = <900000>;
344 regulator-state-mem {
345 regulator-on-in-suspend;
346 regulator-suspend-microvolt = <900000>;
351 regulator-name = "vdda_0v9";
354 regulator-min-microvolt = <900000>;
355 regulator-max-microvolt = <900000>;
357 regulator-state-mem {
358 regulator-on-in-suspend;
359 regulator-suspend-microvolt = <900000>;
363 vdda0v9_pmu: LDO_REG3 {
364 regulator-name = "vdda0v9_pmu";
367 regulator-min-microvolt = <900000>;
368 regulator-max-microvolt = <900000>;
369 regulator-state-mem {
370 regulator-on-in-suspend;
371 regulator-suspend-microvolt = <900000>;
375 vccio_acodec: LDO_REG4 {
376 regulator-name = "vccio_acodec";
379 regulator-min-microvolt = <3300000>;
380 regulator-max-microvolt = <3300000>;
382 regulator-state-mem {
383 regulator-on-in-suspend;
384 regulator-suspend-microvolt = <3300000>;
390 regulator-name = "vccio_sd";
393 regulator-min-microvolt = <1800000>;
394 regulator-max-microvolt = <3300000>;
396 regulator-state-mem {
397 regulator-on-in-suspend;
398 regulator-suspend-microvolt = <3300000>;
402 vcc3v3_pmu: LDO_REG6 {
403 regulator-name = "vcc3v3_pmu";
406 regulator-min-microvolt = <3300000>;
407 regulator-max-microvolt = <3300000>;
409 regulator-state-mem {
410 regulator-on-in-suspend;
411 regulator-suspend-microvolt = <3300000>;
416 regulator-name = "vcca_1v8";
419 regulator-min-microvolt = <1800000>;
420 regulator-max-microvolt = <1800000>;
422 regulator-state-mem {
423 regulator-on-in-suspend;
424 regulator-suspend-microvolt = <1800000>;
428 vcca1v8_pmu: LDO_REG8 {
429 regulator-name = "vcca1v8_pmu";
432 regulator-min-microvolt = <1800000>;
433 regulator-max-microvolt = <1800000>;
435 regulator-state-mem {
436 regulator-on-in-suspend;
437 regulator-suspend-microvolt = <1800000>;
441 vcca1v8_image: LDO_REG9 {
442 regulator-name = "vcca1v8_image";
445 regulator-min-microvolt = <1800000>;
446 regulator-max-microvolt = <1800000>;
448 regulator-state-mem {
449 regulator-on-in-suspend;
450 regulator-suspend-microvolt = <1800000>;
454 vcc_3v3: SWITCH_REG1 {
456 regulator-name = "vcc_3v3";
459 vcc3v3_sd: SWITCH_REG2 {
460 regulator-name = "vcc3v3_sd";
466 /* i2c2_m1 exposed on csi port, pulled up to vcc_3v3 */
468 pinctrl-names = "default";
469 pinctrl-0 = <&i2c2m1_xfer>;
473 /* i2c3_m1 exposed on dsi port, pulled up to vcc_3v3 */
475 pinctrl-names = "default";
476 pinctrl-0 = <&i2c3m1_xfer>;
481 * i2c4_m0 is exposed on PI40, pulled up to vcc_3v3
482 * pin 27 - i2c4_sda_m0
483 * pin 28 - i2c4_scl_m0
490 * i2c5_m0 is exposed on PI40
491 * pin 29 - i2c5_scl_m0
492 * pin 31 - i2c5_sda_m0
503 pinctrl-names = "default";
504 pinctrl-0 = <&i2s1m0_sclktx
508 rockchip,trcm-sync-tx-only;
513 rgmii_phy1: ethernet-phy@1 {
514 compatible = "ethernet-phy-ieee802.3-c22";
520 pinctrl-names = "default";
521 pinctrl-0 = <&pcie_reset_h>;
522 reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>;
523 vpcie3v3-supply = <&vcc3v3_pcie_p>;
529 bt_enable_h: bt-enable-h {
530 rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
533 bt_host_wake_l: bt-host-wake-l {
534 rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_down>;
537 bt_wake_l: bt-wake-l {
538 rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
543 user_led_enable_h: user-led-enable-h {
544 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
549 pcie_enable_h: pcie-enable-h {
550 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
553 pcie_reset_h: pcie-reset-h {
554 rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
561 <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
566 wifi_enable_h: wifi-enable-h {
567 rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
572 vcc5v0_usb30_host_en_h: vcc5v0-usb30-host-en_h {
573 rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
576 vcc5v0_usb_otg_en_h: vcc5v0-usb-otg-en_h {
577 rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
584 pmuio1-supply = <&vcc3v3_pmu>;
585 pmuio2-supply = <&vcca1v8_pmu>;
586 vccio1-supply = <&vccio_acodec>;
587 vccio2-supply = <&vcc_1v8>;
588 vccio3-supply = <&vccio_sd>;
589 vccio4-supply = <&vcca1v8_pmu>;
590 vccio5-supply = <&vcc_3v3>;
591 vccio6-supply = <&vcc_3v3>;
592 vccio7-supply = <&vcc_3v3>;
596 vref-supply = <&vcca_1v8>;
604 vmmc-supply = <&vcc_3v3>;
605 vqmmc-supply = <&vcc_1v8>;
612 cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
614 pinctrl-names = "default";
615 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
617 vmmc-supply = <&vcc3v3_sd>;
618 vqmmc-supply = <&vccio_sd>;
626 keep-power-in-suspend;
627 mmc-pwrseq = <&sdio_pwrseq>;
629 pinctrl-names = "default";
630 pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
631 vmmc-supply = <&vcc3v3_sys>;
632 vqmmc-supply = <&vcca1v8_pmu>;
637 pinctrl-0 = <&fspi_pins>;
638 pinctrl-names = "default";
639 #address-cells = <1>;
644 compatible = "jedec,spi-nor";
646 spi-max-frequency = <24000000>;
647 spi-rx-bus-width = <4>;
648 spi-tx-bus-width = <1>;
657 pinctrl-names = "default";
658 pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn &uart1m0_rtsn>;
663 compatible = "brcm,bcm4345c5";
666 device-wakeup-gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
667 host-wakeup-gpios = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>;
668 shutdown-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
669 pinctrl-names = "default";
670 pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>;
671 vbat-supply = <&vcc3v3_sys>;
672 vddio-supply = <&vcca1v8_pmu>;
677 * uart2_m0 is exposed on PI40
678 * pin 8 - uart2_tx_m0
679 * pin 10 - uart2_rx_m0
686 phy-supply = <&vcc5v0_usb30_host>;
691 phy-supply = <&vcc5v0_usb_otg>;
696 phy-supply = <&vcc5v0_usb30_host>;
725 assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
726 assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
735 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
736 reg = <ROCKCHIP_VOP2_EP_HDMI0>;
737 remote-endpoint = <&hdmi_in_vp0>;