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-ramp-delay = <6001>;
282 regulator-state-mem {
283 regulator-on-in-suspend;
284 regulator-suspend-microvolt = <900000>;
289 regulator-name = "vdd_gpu";
292 regulator-min-microvolt = <900000>;
293 regulator-max-microvolt = <1350000>;
294 regulator-ramp-delay = <6001>;
296 regulator-state-mem {
297 regulator-off-in-suspend;
298 regulator-suspend-microvolt = <900000>;
303 regulator-name = "vcc_ddr";
306 regulator-initial-mode = <0x2>;
307 regulator-state-mem {
308 regulator-on-in-suspend;
313 regulator-name = "vdd_npu";
314 regulator-min-microvolt = <900000>;
315 regulator-max-microvolt = <1350000>;
316 regulator-initial-mode = <0x2>;
317 regulator-state-mem {
318 regulator-off-in-suspend;
323 regulator-name = "vcc_1v8";
326 regulator-min-microvolt = <1800000>;
327 regulator-max-microvolt = <1800000>;
329 regulator-state-mem {
330 regulator-on-in-suspend;
331 regulator-suspend-microvolt = <1800000>;
335 vdda0v9_image: LDO_REG1 {
336 regulator-name = "vdda0v9_image";
339 regulator-min-microvolt = <900000>;
340 regulator-max-microvolt = <900000>;
342 regulator-state-mem {
343 regulator-on-in-suspend;
344 regulator-suspend-microvolt = <900000>;
349 regulator-name = "vdda_0v9";
352 regulator-min-microvolt = <900000>;
353 regulator-max-microvolt = <900000>;
355 regulator-state-mem {
356 regulator-on-in-suspend;
357 regulator-suspend-microvolt = <900000>;
361 vdda0v9_pmu: LDO_REG3 {
362 regulator-name = "vdda0v9_pmu";
365 regulator-min-microvolt = <900000>;
366 regulator-max-microvolt = <900000>;
367 regulator-state-mem {
368 regulator-on-in-suspend;
369 regulator-suspend-microvolt = <900000>;
373 vccio_acodec: LDO_REG4 {
374 regulator-name = "vccio_acodec";
377 regulator-min-microvolt = <3300000>;
378 regulator-max-microvolt = <3300000>;
380 regulator-state-mem {
381 regulator-on-in-suspend;
382 regulator-suspend-microvolt = <3300000>;
388 regulator-name = "vccio_sd";
391 regulator-min-microvolt = <1800000>;
392 regulator-max-microvolt = <3300000>;
394 regulator-state-mem {
395 regulator-on-in-suspend;
396 regulator-suspend-microvolt = <3300000>;
400 vcc3v3_pmu: LDO_REG6 {
401 regulator-name = "vcc3v3_pmu";
404 regulator-min-microvolt = <3300000>;
405 regulator-max-microvolt = <3300000>;
407 regulator-state-mem {
408 regulator-on-in-suspend;
409 regulator-suspend-microvolt = <3300000>;
414 regulator-name = "vcca_1v8";
417 regulator-min-microvolt = <1800000>;
418 regulator-max-microvolt = <1800000>;
420 regulator-state-mem {
421 regulator-on-in-suspend;
422 regulator-suspend-microvolt = <1800000>;
426 vcca1v8_pmu: LDO_REG8 {
427 regulator-name = "vcca1v8_pmu";
430 regulator-min-microvolt = <1800000>;
431 regulator-max-microvolt = <1800000>;
433 regulator-state-mem {
434 regulator-on-in-suspend;
435 regulator-suspend-microvolt = <1800000>;
439 vcca1v8_image: LDO_REG9 {
440 regulator-name = "vcca1v8_image";
443 regulator-min-microvolt = <1800000>;
444 regulator-max-microvolt = <1800000>;
446 regulator-state-mem {
447 regulator-on-in-suspend;
448 regulator-suspend-microvolt = <1800000>;
452 vcc_3v3: SWITCH_REG1 {
454 regulator-name = "vcc_3v3";
457 vcc3v3_sd: SWITCH_REG2 {
458 regulator-name = "vcc3v3_sd";
464 /* i2c2_m1 exposed on csi port, pulled up to vcc_3v3 */
466 pinctrl-names = "default";
467 pinctrl-0 = <&i2c2m1_xfer>;
471 /* i2c3_m1 exposed on dsi port, pulled up to vcc_3v3 */
473 pinctrl-names = "default";
474 pinctrl-0 = <&i2c3m1_xfer>;
479 * i2c4_m0 is exposed on PI40, pulled up to vcc_3v3
480 * pin 27 - i2c4_sda_m0
481 * pin 28 - i2c4_scl_m0
488 * i2c5_m0 is exposed on PI40
489 * pin 29 - i2c5_scl_m0
490 * pin 31 - i2c5_sda_m0
501 pinctrl-names = "default";
502 pinctrl-0 = <&i2s1m0_sclktx
506 rockchip,trcm-sync-tx-only;
511 rgmii_phy1: ethernet-phy@1 {
512 compatible = "ethernet-phy-ieee802.3-c22";
518 pinctrl-names = "default";
519 pinctrl-0 = <&pcie_reset_h>;
520 reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>;
521 vpcie3v3-supply = <&vcc3v3_pcie_p>;
527 bt_enable_h: bt-enable-h {
528 rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
531 bt_host_wake_l: bt-host-wake-l {
532 rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_down>;
535 bt_wake_l: bt-wake-l {
536 rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
541 user_led_enable_h: user-led-enable-h {
542 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
547 pcie_enable_h: pcie-enable-h {
548 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
551 pcie_reset_h: pcie-reset-h {
552 rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
559 <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
564 wifi_enable_h: wifi-enable-h {
565 rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
570 vcc5v0_usb30_host_en_h: vcc5v0-usb30-host-en_h {
571 rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
574 vcc5v0_usb_otg_en_h: vcc5v0-usb-otg-en_h {
575 rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
582 pmuio1-supply = <&vcc3v3_pmu>;
583 pmuio2-supply = <&vcca1v8_pmu>;
584 vccio1-supply = <&vccio_acodec>;
585 vccio2-supply = <&vcc_1v8>;
586 vccio3-supply = <&vccio_sd>;
587 vccio4-supply = <&vcca1v8_pmu>;
588 vccio5-supply = <&vcc_3v3>;
589 vccio6-supply = <&vcc_3v3>;
590 vccio7-supply = <&vcc_3v3>;
594 vref-supply = <&vcca_1v8>;
602 vmmc-supply = <&vcc_3v3>;
603 vqmmc-supply = <&vcc_1v8>;
610 cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
612 pinctrl-names = "default";
613 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
615 vmmc-supply = <&vcc3v3_sd>;
616 vqmmc-supply = <&vccio_sd>;
624 keep-power-in-suspend;
625 mmc-pwrseq = <&sdio_pwrseq>;
627 pinctrl-names = "default";
628 pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
629 vmmc-supply = <&vcc3v3_sys>;
630 vqmmc-supply = <&vcca1v8_pmu>;
635 pinctrl-0 = <&fspi_pins>;
636 pinctrl-names = "default";
637 #address-cells = <1>;
642 compatible = "jedec,spi-nor";
644 spi-max-frequency = <24000000>;
645 spi-rx-bus-width = <4>;
646 spi-tx-bus-width = <1>;
655 pinctrl-names = "default";
656 pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn &uart1m0_rtsn>;
661 compatible = "brcm,bcm4345c5";
664 device-wakeup-gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
665 host-wakeup-gpios = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>;
666 shutdown-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
667 pinctrl-names = "default";
668 pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>;
669 vbat-supply = <&vcc3v3_sys>;
670 vddio-supply = <&vcca1v8_pmu>;
675 * uart2_m0 is exposed on PI40
676 * pin 8 - uart2_tx_m0
677 * pin 10 - uart2_rx_m0
684 phy-supply = <&vcc5v0_usb30_host>;
689 phy-supply = <&vcc5v0_usb_otg>;
694 phy-supply = <&vcc5v0_usb30_host>;
723 assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
724 assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
733 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
734 reg = <ROCKCHIP_VOP2_EP_HDMI0>;
735 remote-endpoint = <&hdmi_in_vp0>;