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-B Board";
11 compatible = "pine64,quartz64-b", "rockchip,rk3566";
21 stdout-path = "serial2:1500000n8";
24 gmac1_clkin: external-gmac1-clock {
25 compatible = "fixed-clock";
26 clock-frequency = <125000000>;
27 clock-output-names = "gmac1_clkin";
32 compatible = "gpio-leds";
37 gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
38 linux,default-trigger = "heartbeat";
39 pinctrl-names = "default";
40 pinctrl-0 = <&user_led_enable_h>;
41 retain-state-suspended;
45 sdio_pwrseq: sdio-pwrseq {
47 compatible = "mmc-pwrseq-simple";
49 clock-names = "ext_clock";
50 pinctrl-names = "default";
51 pinctrl-0 = <&wifi_enable_h>;
52 reset-gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_LOW>;
53 post-power-on-delay-ms = <100>;
54 power-off-delay-us = <5000000>;
57 vcc5v0_in: vcc5v0-in-regulator {
58 compatible = "regulator-fixed";
59 regulator-name = "vcc5v0_in";
62 regulator-min-microvolt = <5000000>;
63 regulator-max-microvolt = <5000000>;
66 vcc5v0_sys: vcc5v0-sys-regulator {
67 compatible = "regulator-fixed";
68 regulator-name = "vcc5v0_sys";
71 regulator-min-microvolt = <5000000>;
72 regulator-max-microvolt = <5000000>;
73 vin-supply = <&vcc5v0_in>;
76 vcc3v3_sys: vcc3v3-sys-regulator {
77 compatible = "regulator-fixed";
78 regulator-name = "vcc3v3_sys";
79 regulator-min-microvolt = <3300000>;
80 regulator-max-microvolt = <3300000>;
82 vin-supply = <&vcc5v0_sys>;
85 vcc5v0_usb30_host: vcc5v0-usb30-host-regulator {
86 compatible = "regulator-fixed";
87 regulator-name = "vcc5v0_usb30_host";
89 gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
90 pinctrl-names = "default";
91 pinctrl-0 = <&vcc5v0_usb30_host_en_h>;
93 regulator-min-microvolt = <5000000>;
94 regulator-max-microvolt = <5000000>;
95 vin-supply = <&vcc5v0_sys>;
98 vcc5v0_usb_otg: vcc5v0-usb-otg-regulator {
99 compatible = "regulator-fixed";
100 regulator-name = "vcc5v0_usb_otg";
102 gpio = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
103 pinctrl-names = "default";
104 pinctrl-0 = <&vcc5v0_usb_otg_en_h>;
106 regulator-min-microvolt = <5000000>;
107 regulator-max-microvolt = <5000000>;
108 vin-supply = <&vcc5v0_sys>;
117 cpu-supply = <&vdd_cpu>;
121 cpu-supply = <&vdd_cpu>;
125 cpu-supply = <&vdd_cpu>;
129 cpu-supply = <&vdd_cpu>;
133 assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1_RGMII_SPEED>, <&cru SCLK_GMAC1>;
134 assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&cru SCLK_GMAC1>, <&gmac1_clkin>;
135 clock_in_out = "input";
137 phy-supply = <&vcc_3v3>;
138 pinctrl-names = "default";
139 pinctrl-0 = <&gmac1m1_miim
145 snps,reset-gpio = <&gpio3 RK_PC0 GPIO_ACTIVE_LOW>;
146 snps,reset-active-low;
147 /* Reset time is 20ms, 100ms for rtl8211f, also works well here */
148 snps,reset-delays-us = <0 20000 100000>;
151 phy-handle = <&rgmii_phy1>;
158 vdd_cpu: regulator@1c {
159 compatible = "tcs,tcs4525";
161 fcs,suspend-voltage-selector = <1>;
162 regulator-name = "vdd_cpu";
163 regulator-min-microvolt = <800000>;
164 regulator-max-microvolt = <1150000>;
165 regulator-ramp-delay = <2300>;
168 vin-supply = <&vcc5v0_sys>;
170 regulator-state-mem {
171 regulator-off-in-suspend;
176 compatible = "rockchip,rk809";
178 interrupt-parent = <&gpio0>;
179 interrupts = <RK_PA7 IRQ_TYPE_LEVEL_LOW>;
180 clock-output-names = "rk808-clkout1", "rk808-clkout2";
182 pinctrl-names = "default";
183 pinctrl-0 = <&pmic_int>;
184 rockchip,system-power-controller;
188 vcc1-supply = <&vcc3v3_sys>;
189 vcc2-supply = <&vcc3v3_sys>;
190 vcc3-supply = <&vcc3v3_sys>;
191 vcc4-supply = <&vcc3v3_sys>;
192 vcc5-supply = <&vcc3v3_sys>;
193 vcc6-supply = <&vcc3v3_sys>;
194 vcc7-supply = <&vcc3v3_sys>;
195 vcc8-supply = <&vcc3v3_sys>;
196 vcc9-supply = <&vcc3v3_sys>;
200 regulator-name = "vdd_log";
203 regulator-min-microvolt = <500000>;
204 regulator-max-microvolt = <1350000>;
205 regulator-init-microvolt = <900000>;
206 regulator-ramp-delay = <6001>;
208 regulator-state-mem {
209 regulator-on-in-suspend;
210 regulator-suspend-microvolt = <900000>;
215 regulator-name = "vdd_gpu";
218 regulator-min-microvolt = <900000>;
219 regulator-max-microvolt = <1350000>;
220 regulator-init-microvolt = <900000>;
221 regulator-ramp-delay = <6001>;
223 regulator-state-mem {
224 regulator-off-in-suspend;
225 regulator-suspend-microvolt = <900000>;
230 regulator-name = "vcc_ddr";
233 regulator-initial-mode = <0x2>;
234 regulator-state-mem {
235 regulator-on-in-suspend;
240 regulator-name = "vdd_npu";
241 regulator-min-microvolt = <900000>;
242 regulator-max-microvolt = <1350000>;
243 regulator-initial-mode = <0x2>;
244 regulator-state-mem {
245 regulator-off-in-suspend;
250 regulator-name = "vcc_1v8";
253 regulator-min-microvolt = <1800000>;
254 regulator-max-microvolt = <1800000>;
256 regulator-state-mem {
257 regulator-on-in-suspend;
258 regulator-suspend-microvolt = <1800000>;
262 vdda0v9_image: LDO_REG1 {
263 regulator-name = "vdda0v9_image";
266 regulator-min-microvolt = <900000>;
267 regulator-max-microvolt = <900000>;
269 regulator-state-mem {
270 regulator-on-in-suspend;
271 regulator-suspend-microvolt = <900000>;
276 regulator-name = "vdda_0v9";
279 regulator-min-microvolt = <900000>;
280 regulator-max-microvolt = <900000>;
282 regulator-state-mem {
283 regulator-on-in-suspend;
284 regulator-suspend-microvolt = <900000>;
288 vdda0v9_pmu: LDO_REG3 {
289 regulator-name = "vdda0v9_pmu";
292 regulator-min-microvolt = <900000>;
293 regulator-max-microvolt = <900000>;
294 regulator-state-mem {
295 regulator-on-in-suspend;
296 regulator-suspend-microvolt = <900000>;
300 vccio_acodec: LDO_REG4 {
301 regulator-name = "vccio_acodec";
304 regulator-min-microvolt = <3300000>;
305 regulator-max-microvolt = <3300000>;
307 regulator-state-mem {
308 regulator-on-in-suspend;
309 regulator-suspend-microvolt = <3300000>;
315 regulator-name = "vccio_sd";
318 regulator-min-microvolt = <1800000>;
319 regulator-max-microvolt = <3300000>;
321 regulator-state-mem {
322 regulator-on-in-suspend;
323 regulator-suspend-microvolt = <3300000>;
327 vcc3v3_pmu: LDO_REG6 {
328 regulator-name = "vcc3v3_pmu";
331 regulator-min-microvolt = <3300000>;
332 regulator-max-microvolt = <3300000>;
334 regulator-state-mem {
335 regulator-on-in-suspend;
336 regulator-suspend-microvolt = <3300000>;
341 regulator-name = "vcca_1v8";
344 regulator-min-microvolt = <1800000>;
345 regulator-max-microvolt = <1800000>;
347 regulator-state-mem {
348 regulator-on-in-suspend;
349 regulator-suspend-microvolt = <1800000>;
353 vcca1v8_pmu: LDO_REG8 {
354 regulator-name = "vcca1v8_pmu";
357 regulator-min-microvolt = <1800000>;
358 regulator-max-microvolt = <1800000>;
360 regulator-state-mem {
361 regulator-on-in-suspend;
362 regulator-suspend-microvolt = <1800000>;
366 vcca1v8_image: LDO_REG9 {
367 regulator-name = "vcca1v8_image";
370 regulator-min-microvolt = <1800000>;
371 regulator-max-microvolt = <1800000>;
373 regulator-state-mem {
374 regulator-on-in-suspend;
375 regulator-suspend-microvolt = <1800000>;
379 vcc_3v3: SWITCH_REG1 {
381 regulator-name = "vcc_3v3";
384 vcc3v3_sd: SWITCH_REG2 {
385 regulator-name = "vcc3v3_sd";
391 /* i2c2_m1 exposed on csi port, pulled up to vcc_3v3 */
393 pinctrl-names = "default";
394 pinctrl-0 = <&i2c2m1_xfer>;
398 /* i2c3_m1 exposed on dsi port, pulled up to vcc_3v3 */
400 pinctrl-names = "default";
401 pinctrl-0 = <&i2c3m1_xfer>;
406 * i2c4_m0 is exposed on PI40, pulled up to vcc_3v3
407 * pin 27 - i2c4_sda_m0
408 * pin 28 - i2c4_scl_m0
415 * i2c5_m0 is exposed on PI40
416 * pin 29 - i2c5_scl_m0
417 * pin 31 - i2c5_sda_m0
424 rgmii_phy1: ethernet-phy@1 {
425 compatible = "ethernet-phy-ieee802.3-c22";
432 bt_enable_h: bt-enable-h {
433 rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
436 bt_host_wake_l: bt-host-wake-l {
437 rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_down>;
440 bt_wake_l: bt-wake-l {
441 rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
446 user_led_enable_h: user-led-enable-h {
447 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
454 <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
459 wifi_enable_h: wifi-enable-h {
460 rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
465 vcc5v0_usb30_host_en_h: vcc5v0-usb30-host-en_h {
466 rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
469 vcc5v0_usb_otg_en_h: vcc5v0-usb-otg-en_h {
470 rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
477 pmuio1-supply = <&vcc3v3_pmu>;
478 pmuio2-supply = <&vcca1v8_pmu>;
479 vccio1-supply = <&vccio_acodec>;
480 vccio2-supply = <&vcc_1v8>;
481 vccio3-supply = <&vccio_sd>;
482 vccio4-supply = <&vcca1v8_pmu>;
483 vccio5-supply = <&vcc_3v3>;
484 vccio6-supply = <&vcc_3v3>;
485 vccio7-supply = <&vcc_3v3>;
489 vref-supply = <&vcca_1v8>;
497 vmmc-supply = <&vcc_3v3>;
498 vqmmc-supply = <&vcc_1v8>;
505 cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
507 pinctrl-names = "default";
508 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
510 vmmc-supply = <&vcc3v3_sd>;
511 vqmmc-supply = <&vccio_sd>;
519 keep-power-in-suspend;
520 mmc-pwrseq = <&sdio_pwrseq>;
522 pinctrl-names = "default";
523 pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
524 vmmc-supply = <&vcc3v3_sys>;
525 vqmmc-supply = <&vcca1v8_pmu>;
530 pinctrl-0 = <&fspi_pins>;
531 pinctrl-names = "default";
532 #address-cells = <1>;
537 compatible = "jedec,spi-nor";
539 spi-max-frequency = <24000000>;
540 spi-rx-bus-width = <4>;
541 spi-tx-bus-width = <1>;
550 pinctrl-names = "default";
551 pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn &uart1m0_rtsn>;
556 compatible = "brcm,bcm4345c5";
559 device-wakeup-gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
560 host-wakeup-gpios = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>;
561 shutdown-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
562 pinctrl-names = "default";
563 pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>;
564 vbat-supply = <&vcc3v3_sys>;
565 vddio-supply = <&vcca1v8_pmu>;
570 * uart2_m0 is exposed on PI40
571 * pin 8 - uart2_tx_m0
572 * pin 10 - uart2_rx_m0
579 phy-supply = <&vcc5v0_usb30_host>;
584 phy-supply = <&vcc5v0_usb_otg>;
589 phy-supply = <&vcc5v0_usb30_host>;