1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/pinctrl/rockchip.h>
10 model = "Pine64 RK3566 Quartz64-A Board";
11 compatible = "pine64,quartz64-a", "rockchip,rk3566";
20 stdout-path = "serial2:1500000n8";
23 gmac1_clkin: external-gmac1-clock {
24 compatible = "fixed-clock";
25 clock-frequency = <125000000>;
26 clock-output-names = "gmac1_clkin";
31 compatible = "gpio-fan";
32 gpios = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>;
33 gpio-fan,speed-map = <0 0
39 compatible = "gpio-leds";
43 default-state = "off";
44 gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>;
45 pinctrl-names = "default";
46 pinctrl-0 = <&work_led_enable_h>;
47 retain-state-suspended;
53 gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
54 linux,default-trigger = "heartbeat";
55 pinctrl-names = "default";
56 pinctrl-0 = <&diy_led_enable_h>;
57 retain-state-suspended;
62 compatible = "simple-audio-card";
63 simple-audio-card,format = "i2s";
64 simple-audio-card,name = "Analog RK817";
65 simple-audio-card,mclk-fs = <256>;
67 simple-audio-card,cpu {
68 sound-dai = <&i2s1_8ch>;
71 simple-audio-card,codec {
76 sdio_pwrseq: sdio-pwrseq {
77 compatible = "mmc-pwrseq-simple";
79 clock-names = "ext_clock";
80 pinctrl-names = "default";
81 pinctrl-0 = <&wifi_enable_h>;
82 post-power-on-delay-ms = <100>;
83 power-off-delay-us = <5000000>;
84 reset-gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_LOW>;
87 spdif_dit: spdif-dit {
88 compatible = "linux,spdif-dit";
89 #sound-dai-cells = <0>;
92 spdif_sound: spdif-sound {
93 compatible = "simple-audio-card";
94 simple-audio-card,name = "SPDIF";
96 simple-audio-card,cpu {
100 simple-audio-card,codec {
101 sound-dai = <&spdif_dit>;
105 vcc12v_dcin: vcc12v_dcin {
106 compatible = "regulator-fixed";
107 regulator-name = "vcc12v_dcin";
110 regulator-min-microvolt = <12000000>;
111 regulator-max-microvolt = <12000000>;
114 /* vbus feeds the rk817 usb input.
115 * With no battery attached, also feeds vcc_bat+
116 * via ON/OFF_BAT jumper
119 compatible = "regulator-fixed";
120 regulator-name = "vbus";
123 regulator-min-microvolt = <5000000>;
124 regulator-max-microvolt = <5000000>;
125 vin-supply = <&vcc12v_dcin>;
128 vcc5v0_usb: vcc5v0_usb {
129 compatible = "regulator-fixed";
130 regulator-name = "vcc5v0_usb";
133 regulator-min-microvolt = <5000000>;
134 regulator-max-microvolt = <5000000>;
135 vin-supply = <&vcc12v_dcin>;
138 /* all four ports are controlled by one gpio
139 * the host ports are sourced from vcc5v0_usb
140 * the otg port is sourced from vcc5v0_midu
142 vcc5v0_usb20_host: vcc5v0_usb20_host {
143 compatible = "regulator-fixed";
145 gpio = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>;
146 pinctrl-names = "default";
147 pinctrl-0 = <&vcc5v0_usb20_host_en>;
148 regulator-name = "vcc5v0_usb20_host";
149 regulator-min-microvolt = <5000000>;
150 regulator-max-microvolt = <5000000>;
151 vin-supply = <&vcc5v0_usb>;
154 vcc5v0_usb20_otg: vcc5v0_usb20_otg {
155 compatible = "regulator-fixed";
157 gpio = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>;
158 regulator-name = "vcc5v0_usb20_otg";
159 regulator-min-microvolt = <5000000>;
160 regulator-max-microvolt = <5000000>;
161 vin-supply = <&dcdc_boost>;
164 vcc3v3_sd: vcc3v3_sd {
165 compatible = "regulator-fixed";
167 gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
168 pinctrl-names = "default";
169 pinctrl-0 = <&vcc_sd_h>;
171 regulator-name = "vcc3v3_sd";
172 regulator-min-microvolt = <3300000>;
173 regulator-max-microvolt = <3300000>;
174 vin-supply = <&vcc_3v3>;
177 /* sourced from vbus and vcc_bat+ via rk817 sw5 */
179 compatible = "regulator-fixed";
180 regulator-name = "vcc_sys";
183 regulator-min-microvolt = <4400000>;
184 regulator-max-microvolt = <4400000>;
185 vin-supply = <&vbus>;
188 /* sourced from vcc_sys, sdio module operates internally at 3.3v */
190 compatible = "regulator-fixed";
191 regulator-name = "vcc_wl";
194 regulator-min-microvolt = <3300000>;
195 regulator-max-microvolt = <3300000>;
196 vin-supply = <&vcc_sys>;
205 cpu-supply = <&vdd_cpu>;
209 cpu-supply = <&vdd_cpu>;
213 cpu-supply = <&vdd_cpu>;
217 cpu-supply = <&vdd_cpu>;
223 temperature = <55000>;
232 cooling-device = <&fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
238 assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1_RGMII_SPEED>, <&cru SCLK_GMAC1>;
239 assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&cru SCLK_GMAC1>, <&gmac1_clkin>;
240 clock_in_out = "input";
241 phy-supply = <&vcc_3v3>;
243 pinctrl-names = "default";
244 pinctrl-0 = <&gmac1m0_miim
250 snps,reset-gpio = <&gpio0 RK_PC3 GPIO_ACTIVE_LOW>;
251 snps,reset-active-low;
252 /* Reset time is 20ms, 100ms for rtl8211f */
253 snps,reset-delays-us = <0 20000 100000>;
256 phy-handle = <&rgmii_phy1>;
261 mali-supply = <&vdd_gpu>;
268 vdd_cpu: regulator@1c {
269 compatible = "tcs,tcs4525";
271 fcs,suspend-voltage-selector = <1>;
272 regulator-name = "vdd_cpu";
273 regulator-min-microvolt = <800000>;
274 regulator-max-microvolt = <1150000>;
275 regulator-ramp-delay = <2300>;
278 vin-supply = <&vcc_sys>;
280 regulator-state-mem {
281 regulator-off-in-suspend;
286 compatible = "rockchip,rk817";
288 interrupt-parent = <&gpio0>;
289 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>;
290 assigned-clocks = <&cru I2S1_MCLKOUT_TX>;
291 assigned-clock-parents = <&cru CLK_I2S1_8CH_TX>;
292 clock-names = "mclk";
293 clocks = <&cru I2S1_MCLKOUT_TX>;
294 clock-output-names = "rk808-clkout1", "rk808-clkout2";
296 pinctrl-names = "default";
297 pinctrl-0 = <&pmic_int_l>, <&i2s1m0_mclk>;
298 rockchip,system-power-controller;
299 #sound-dai-cells = <0>;
302 vcc1-supply = <&vcc_sys>;
303 vcc2-supply = <&vcc_sys>;
304 vcc3-supply = <&vcc_sys>;
305 vcc4-supply = <&vcc_sys>;
306 vcc5-supply = <&vcc_sys>;
307 vcc6-supply = <&vcc_sys>;
308 vcc7-supply = <&vcc_sys>;
309 vcc8-supply = <&vcc_sys>;
310 vcc9-supply = <&dcdc_boost>;
313 vdd_logic: DCDC_REG1 {
316 regulator-min-microvolt = <500000>;
317 regulator-max-microvolt = <1350000>;
318 regulator-init-microvolt = <900000>;
319 regulator-ramp-delay = <6001>;
320 regulator-initial-mode = <0x2>;
321 regulator-name = "vdd_logic";
322 regulator-state-mem {
323 regulator-on-in-suspend;
324 regulator-suspend-microvolt = <900000>;
331 regulator-min-microvolt = <500000>;
332 regulator-max-microvolt = <1350000>;
333 regulator-init-microvolt = <900000>;
334 regulator-ramp-delay = <6001>;
335 regulator-initial-mode = <0x2>;
336 regulator-name = "vdd_gpu";
337 regulator-state-mem {
338 regulator-off-in-suspend;
345 regulator-initial-mode = <0x2>;
346 regulator-name = "vcc_ddr";
347 regulator-state-mem {
348 regulator-on-in-suspend;
355 regulator-min-microvolt = <3300000>;
356 regulator-max-microvolt = <3300000>;
357 regulator-initial-mode = <0x2>;
358 regulator-name = "vcc_3v3";
359 regulator-state-mem {
360 regulator-off-in-suspend;
364 vcca1v8_pmu: LDO_REG1 {
367 regulator-min-microvolt = <1800000>;
368 regulator-max-microvolt = <1800000>;
369 regulator-name = "vcca1v8_pmu";
370 regulator-state-mem {
371 regulator-on-in-suspend;
372 regulator-suspend-microvolt = <1800000>;
379 regulator-min-microvolt = <900000>;
380 regulator-max-microvolt = <900000>;
381 regulator-name = "vdda_0v9";
382 regulator-state-mem {
383 regulator-off-in-suspend;
387 vdda0v9_pmu: LDO_REG3 {
390 regulator-min-microvolt = <900000>;
391 regulator-max-microvolt = <900000>;
392 regulator-name = "vdda0v9_pmu";
393 regulator-state-mem {
394 regulator-on-in-suspend;
395 regulator-suspend-microvolt = <900000>;
399 vccio_acodec: LDO_REG4 {
402 regulator-min-microvolt = <3300000>;
403 regulator-max-microvolt = <3300000>;
404 regulator-name = "vccio_acodec";
405 regulator-state-mem {
406 regulator-off-in-suspend;
413 regulator-min-microvolt = <1800000>;
414 regulator-max-microvolt = <3300000>;
415 regulator-name = "vccio_sd";
416 regulator-state-mem {
417 regulator-off-in-suspend;
421 vcc3v3_pmu: LDO_REG6 {
424 regulator-min-microvolt = <3300000>;
425 regulator-max-microvolt = <3300000>;
426 regulator-name = "vcc3v3_pmu";
427 regulator-state-mem {
428 regulator-on-in-suspend;
429 regulator-suspend-microvolt = <3300000>;
436 regulator-min-microvolt = <1800000>;
437 regulator-max-microvolt = <1800000>;
438 regulator-name = "vcc_1v8";
439 regulator-state-mem {
440 regulator-off-in-suspend;
444 vcc1v8_dvp: LDO_REG8 {
447 regulator-min-microvolt = <1800000>;
448 regulator-max-microvolt = <1800000>;
449 regulator-name = "vcc1v8_dvp";
450 regulator-state-mem {
451 regulator-off-in-suspend;
455 vcc2v8_dvp: LDO_REG9 {
458 regulator-min-microvolt = <2800000>;
459 regulator-max-microvolt = <2800000>;
460 regulator-name = "vcc2v8_dvp";
461 regulator-state-mem {
462 regulator-off-in-suspend;
469 regulator-min-microvolt = <5000000>;
470 regulator-max-microvolt = <5000000>;
471 regulator-name = "boost";
472 regulator-state-mem {
473 regulator-off-in-suspend;
477 otg_switch: OTG_SWITCH {
478 regulator-name = "otg_switch";
479 regulator-state-mem {
480 regulator-off-in-suspend;
487 /* i2c3 is exposed on con40
488 * pin 3 - i2c3_sda_m0, pullup to vcc_3v3
489 * pin 5 - i2c3_scl_m0, pullup to vcc_3v3
496 pinctrl-names = "default";
497 pinctrl-0 = <&i2s1m0_sclktx
501 rockchip,trcm-sync-tx-only;
506 rgmii_phy1: ethernet-phy@0 {
507 compatible = "ethernet-phy-ieee802.3-c22";
514 bt_enable_h: bt-enable-h {
515 rockchip,pins = <2 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
518 bt_host_wake_l: bt-host-wake-l {
519 rockchip,pins = <2 RK_PC0 RK_FUNC_GPIO &pcfg_pull_down>;
522 bt_wake_l: bt-wake-l {
523 rockchip,pins = <2 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
528 work_led_enable_h: work-led-enable-h {
529 rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
532 diy_led_enable_h: diy-led-enable-h {
533 rockchip,pins = <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
538 pmic_int_l: pmic-int-l {
539 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
544 vcc5v0_usb20_host_en: vcc5v0-usb20-host-en {
545 rockchip,pins = <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
550 wifi_enable_h: wifi-enable-h {
551 rockchip,pins = <2 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
557 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
563 pmuio1-supply = <&vcc3v3_pmu>;
564 pmuio2-supply = <&vcc3v3_pmu>;
565 vccio1-supply = <&vccio_acodec>;
566 vccio2-supply = <&vcc_1v8>;
567 vccio3-supply = <&vccio_sd>;
568 vccio4-supply = <&vcc_1v8>;
569 vccio5-supply = <&vcc_3v3>;
570 vccio6-supply = <&vcc1v8_dvp>;
571 vccio7-supply = <&vcc_3v3>;
579 vmmc-supply = <&vcc_3v3>;
580 vqmmc-supply = <&vcc_1v8>;
587 cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
589 pinctrl-names = "default";
590 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
591 vmmc-supply = <&vcc3v3_sd>;
592 vqmmc-supply = <&vccio_sd>;
600 keep-power-in-suspend;
601 mmc-pwrseq = <&sdio_pwrseq>;
603 pinctrl-names = "default";
604 pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
606 vmmc-supply = <&vcc_wl>;
607 vqmmc-supply = <&vcc_1v8>;
611 /* spdif is exposed on con40 pin 18 */
616 /* spi1 is exposed on con40
617 * pin 11 - spi1_mosi_m1
618 * pin 13 - spi1_miso_m1
619 * pin 15 - spi1_clk_m1
620 * pin 17 - spi1_cs0_m1
623 pinctrl-names = "default";
624 pinctrl-0 = <&spi1m1_cs0 &spi1m1_pins>;
628 /* tshut mode 0:CRU 1:GPIO */
629 rockchip,hw-tshut-mode = <1>;
630 /* tshut polarity 0:LOW 1:HIGH */
631 rockchip,hw-tshut-polarity = <0>;
635 /* uart0 is exposed on con40
640 pinctrl-names = "default";
641 pinctrl-0 = <&uart0_xfer>;
646 pinctrl-names = "default";
647 pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>;
652 compatible = "brcm,bcm43438-bt";
655 device-wakeup-gpios = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>;
656 host-wakeup-gpios = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>;
657 shutdown-gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
658 pinctrl-names = "default";
659 pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>;
660 vbat-supply = <&vcc_sys>;
661 vddio-supply = <&vcca1v8_pmu>;
665 /* uart2 is exposed on con40
666 * pin 8 - uart2_tx_m0_debug
667 * pin 10 - uart2_rx_m0_debug
693 /* usb3 controller is muxed with sata1 */
703 phy-supply = <&vcc5v0_usb20_host>;
708 phy-supply = <&vcc5v0_usb20_otg>;
717 phy-supply = <&vcc5v0_usb20_host>;
722 phy-supply = <&vcc5v0_usb20_host>;