1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2022 Hardkernel Co., Ltd.
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/pinctrl/rockchip.h>
11 #include <dt-bindings/soc/rockchip,vop2.h>
12 #include "rk3568.dtsi"
15 model = "Hardkernel ODROID-M1";
16 compatible = "rockchip,rk3568-odroid-m1", "rockchip,rk3568";
29 stdout-path = "serial2:1500000n8";
32 dc_12v: dc-12v-regulator {
33 compatible = "regulator-fixed";
34 regulator-name = "dc_12v";
37 regulator-min-microvolt = <12000000>;
38 regulator-max-microvolt = <12000000>;
42 compatible = "hdmi-connector";
46 hdmi_con_in: endpoint {
47 remote-endpoint = <&hdmi_out_con>;
53 compatible = "gpio-ir-receiver";
54 gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_LOW>;
55 pinctrl-names = "default";
56 pinctrl-0 = <&ir_receiver_pin>;
60 compatible = "gpio-leds";
63 gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>;
64 function = LED_FUNCTION_POWER;
65 color = <LED_COLOR_ID_RED>;
66 default-state = "keep";
67 linux,default-trigger = "default-on";
68 pinctrl-names = "default";
69 pinctrl-0 = <&led_power_pin>;
72 gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
73 function = LED_FUNCTION_HEARTBEAT;
74 color = <LED_COLOR_ID_BLUE>;
75 linux,default-trigger = "heartbeat";
76 pinctrl-names = "default";
77 pinctrl-0 = <&led_work_pin>;
82 compatible = "simple-audio-card";
83 pinctrl-names = "default";
84 pinctrl-0 = <&hp_det_pin>;
85 simple-audio-card,name = "Analog RK817";
86 simple-audio-card,format = "i2s";
87 simple-audio-card,hp-det-gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>;
88 simple-audio-card,mclk-fs = <256>;
89 simple-audio-card,widgets =
90 "Headphone", "Headphones",
92 simple-audio-card,routing =
97 simple-audio-card,cpu {
98 sound-dai = <&i2s1_8ch>;
101 simple-audio-card,codec {
102 sound-dai = <&rk809>;
106 vcc3v3_pcie: vcc3v3-pcie-regulator {
107 compatible = "regulator-fixed";
108 regulator-name = "vcc3v3_pcie";
110 gpio = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
111 pinctrl-names = "default";
112 pinctrl-0 = <&vcc3v3_pcie_en_pin>;
113 regulator-min-microvolt = <3300000>;
114 regulator-max-microvolt = <3300000>;
115 startup-delay-us = <5000>;
116 vin-supply = <&vcc3v3_sys>;
119 vcc3v3_sys: vcc3v3-sys-regulator {
120 compatible = "regulator-fixed";
121 regulator-name = "vcc3v3_sys";
124 regulator-min-microvolt = <3300000>;
125 regulator-max-microvolt = <3300000>;
126 vin-supply = <&dc_12v>;
129 vcc5v0_sys: vcc5v0-sys-regulator {
130 compatible = "regulator-fixed";
131 regulator-name = "vcc5v0_sys";
134 regulator-min-microvolt = <5000000>;
135 regulator-max-microvolt = <5000000>;
136 vin-supply = <&dc_12v>;
139 vcc5v0_usb_host: vcc5v0-usb-host-regulator {
140 compatible = "regulator-fixed";
141 regulator-name = "vcc5v0_usb_host";
143 gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
144 pinctrl-names = "default";
145 pinctrl-0 = <&vcc5v0_usb_host_en_pin>;
146 regulator-min-microvolt = <5000000>;
147 regulator-max-microvolt = <5000000>;
148 vin-supply = <&vcc5v0_sys>;
151 vcc5v0_usb_otg: vcc5v0-usb-otg-regulator {
152 compatible = "regulator-fixed";
153 regulator-name = "vcc5v0_usb_otg";
155 gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
156 pinctrl-names = "default";
157 pinctrl-0 = <&vcc5v0_usb_otg_en_pin>;
158 regulator-min-microvolt = <5000000>;
159 regulator-max-microvolt = <5000000>;
160 vin-supply = <&vcc5v0_sys>;
166 phy-supply = <&vcc5v0_usb_host>;
172 phy-supply = <&vcc5v0_usb_otg>;
182 cpu-supply = <&vdd_cpu>;
186 cpu-supply = <&vdd_cpu>;
190 cpu-supply = <&vdd_cpu>;
194 cpu-supply = <&vdd_cpu>;
198 assigned-clocks = <&cru SCLK_GMAC0_RX_TX>, <&cru SCLK_GMAC0>;
199 assigned-clock-parents = <&cru SCLK_GMAC0_RGMII_SPEED>;
200 assigned-clock-rates = <0>, <125000000>;
201 clock_in_out = "output";
202 phy-handle = <&rgmii_phy0>;
204 phy-supply = <&vcc3v3_sys>;
205 pinctrl-names = "default";
206 pinctrl-0 = <&gmac0_miim
218 mali-supply = <&vdd_gpu>;
223 avdd-0v9-supply = <&vdda0v9_image>;
224 avdd-1v8-supply = <&vcca1v8_image>;
229 hdmi_in_vp0: endpoint {
230 remote-endpoint = <&vp0_out_hdmi>;
235 hdmi_out_con: endpoint {
236 remote-endpoint = <&hdmi_con_in>;
247 vdd_cpu: regulator@1c {
248 compatible = "tcs,tcs4525";
250 fcs,suspend-voltage-selector = <1>;
251 regulator-name = "vdd_cpu";
254 regulator-min-microvolt = <800000>;
255 regulator-max-microvolt = <1150000>;
256 regulator-ramp-delay = <2300>;
257 vin-supply = <&vcc3v3_sys>;
259 regulator-state-mem {
260 regulator-off-in-suspend;
265 compatible = "rockchip,rk809";
267 interrupt-parent = <&gpio0>;
268 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>;
269 assigned-clocks = <&cru I2S1_MCLKOUT_TX>;
270 assigned-clock-parents = <&cru CLK_I2S1_8CH_TX>;
272 clock-names = "mclk";
273 clocks = <&cru I2S1_MCLKOUT_TX>;
274 pinctrl-names = "default";
275 pinctrl-0 = <&pmic_int_l>, <&i2s1m0_mclk>;
276 rockchip,system-power-controller;
277 #sound-dai-cells = <0>;
278 vcc1-supply = <&vcc3v3_sys>;
279 vcc2-supply = <&vcc3v3_sys>;
280 vcc3-supply = <&vcc3v3_sys>;
281 vcc4-supply = <&vcc3v3_sys>;
282 vcc5-supply = <&vcc3v3_sys>;
283 vcc6-supply = <&vcc3v3_sys>;
284 vcc7-supply = <&vcc3v3_sys>;
285 vcc8-supply = <&vcc3v3_sys>;
286 vcc9-supply = <&vcc3v3_sys>;
290 vdd_logic: DCDC_REG1 {
291 regulator-name = "vdd_logic";
294 regulator-initial-mode = <0x2>;
295 regulator-min-microvolt = <500000>;
296 regulator-max-microvolt = <1350000>;
297 regulator-ramp-delay = <6001>;
299 regulator-state-mem {
300 regulator-off-in-suspend;
305 regulator-name = "vdd_gpu";
307 regulator-initial-mode = <0x2>;
308 regulator-min-microvolt = <500000>;
309 regulator-max-microvolt = <1350000>;
310 regulator-ramp-delay = <6001>;
312 regulator-state-mem {
313 regulator-off-in-suspend;
318 regulator-name = "vcc_ddr";
321 regulator-initial-mode = <0x2>;
323 regulator-state-mem {
324 regulator-on-in-suspend;
329 regulator-name = "vdd_npu";
330 regulator-initial-mode = <0x2>;
331 regulator-min-microvolt = <500000>;
332 regulator-max-microvolt = <1350000>;
333 regulator-ramp-delay = <6001>;
335 regulator-state-mem {
336 regulator-off-in-suspend;
341 regulator-name = "vcc_1v8";
344 regulator-min-microvolt = <1800000>;
345 regulator-max-microvolt = <1800000>;
347 regulator-state-mem {
348 regulator-off-in-suspend;
352 vdda0v9_image: LDO_REG1 {
353 regulator-name = "vdda0v9_image";
355 regulator-min-microvolt = <900000>;
356 regulator-max-microvolt = <900000>;
358 regulator-state-mem {
359 regulator-off-in-suspend;
364 regulator-name = "vdda_0v9";
367 regulator-min-microvolt = <900000>;
368 regulator-max-microvolt = <900000>;
370 regulator-state-mem {
371 regulator-off-in-suspend;
375 vdda0v9_pmu: LDO_REG3 {
376 regulator-name = "vdda0v9_pmu";
379 regulator-min-microvolt = <900000>;
380 regulator-max-microvolt = <900000>;
382 regulator-state-mem {
383 regulator-on-in-suspend;
384 regulator-suspend-microvolt = <900000>;
388 vccio_acodec: LDO_REG4 {
389 regulator-name = "vccio_acodec";
392 regulator-min-microvolt = <3300000>;
393 regulator-max-microvolt = <3300000>;
395 regulator-state-mem {
396 regulator-off-in-suspend;
401 regulator-name = "vccio_sd";
402 regulator-min-microvolt = <1800000>;
403 regulator-max-microvolt = <3300000>;
405 regulator-state-mem {
406 regulator-off-in-suspend;
410 vcc3v3_pmu: LDO_REG6 {
411 regulator-name = "vcc3v3_pmu";
414 regulator-min-microvolt = <3300000>;
415 regulator-max-microvolt = <3300000>;
417 regulator-state-mem {
418 regulator-on-in-suspend;
419 regulator-suspend-microvolt = <3300000>;
424 regulator-name = "vcca_1v8";
427 regulator-min-microvolt = <1800000>;
428 regulator-max-microvolt = <1800000>;
430 regulator-state-mem {
431 regulator-off-in-suspend;
435 vcca1v8_pmu: LDO_REG8 {
436 regulator-name = "vcca1v8_pmu";
439 regulator-min-microvolt = <1800000>;
440 regulator-max-microvolt = <1800000>;
442 regulator-state-mem {
443 regulator-on-in-suspend;
444 regulator-suspend-microvolt = <1800000>;
448 vcca1v8_image: LDO_REG9 {
449 regulator-name = "vcca1v8_image";
451 regulator-min-microvolt = <1800000>;
452 regulator-max-microvolt = <1800000>;
454 regulator-state-mem {
455 regulator-off-in-suspend;
459 vcc_3v3: SWITCH_REG1 {
460 regulator-name = "vcc_3v3";
464 regulator-state-mem {
465 regulator-off-in-suspend;
469 vcc3v3_sd: SWITCH_REG2 {
470 regulator-name = "vcc3v3_sd";
472 regulator-state-mem {
473 regulator-off-in-suspend;
485 rockchip,trcm-sync-tx-only;
490 rgmii_phy0: ethernet-phy@0 {
491 compatible = "ethernet-phy-ieee802.3-c22";
493 reset-assert-us = <20000>;
494 reset-deassert-us = <100000>;
495 reset-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
504 pinctrl-names = "default";
505 pinctrl-0 = <&pcie_reset_pin>;
506 reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>;
507 vpcie3v3-supply = <&vcc3v3_pcie>;
513 fspi_dual_io_pins: fspi-dual-io-pins {
516 <1 RK_PD0 1 &pcfg_pull_none>,
518 <1 RK_PD3 1 &pcfg_pull_none>,
520 <1 RK_PD1 1 &pcfg_pull_none>,
522 <1 RK_PD2 1 &pcfg_pull_none>;
527 ir_receiver_pin: ir-receiver-pin {
528 /* external pullup to VCC3V3_SYS */
529 rockchip,pins = <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
534 led_power_pin: led-power-pin {
535 rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
537 led_work_pin: led-work-pin {
538 rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
543 pcie_reset_pin: pcie-reset-pin {
544 rockchip,pins = <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
546 vcc3v3_pcie_en_pin: vcc3v3-pcie-en-pin {
547 rockchip,pins = <4 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>;
552 pmic_int_l: pmic-int-l {
553 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
558 hp_det_pin: hp-det-pin {
559 rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
564 vcc5v0_usb_host_en_pin: vcc5v0-usb-host-en-pin {
565 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
567 vcc5v0_usb_otg_en_pin: vcc5v0-usb-dr-en-pin {
568 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
574 pmuio1-supply = <&vcc3v3_pmu>;
575 pmuio2-supply = <&vcc3v3_pmu>;
576 vccio1-supply = <&vccio_acodec>;
577 vccio2-supply = <&vcc_1v8>;
578 vccio3-supply = <&vccio_sd>;
579 vccio4-supply = <&vcc_1v8>;
580 vccio5-supply = <&vcc_3v3>;
581 vccio6-supply = <&vcc_3v3>;
582 vccio7-supply = <&vcc_3v3>;
587 vref-supply = <&vcca_1v8>;
597 max-frequency = <200000000>;
599 pinctrl-names = "default";
600 pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd &emmc_datastrobe &emmc_rstnout>;
601 vmmc-supply = <&vcc_3v3>;
602 vqmmc-supply = <&vcc_1v8>;
609 cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
611 pinctrl-names = "default";
612 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>;
614 vmmc-supply = <&vcc3v3_sd>;
615 vqmmc-supply = <&vccio_sd>;
620 /* Dual I/O mode as the D2 pin conflicts with the eMMC */
621 pinctrl-0 = <&fspi_dual_io_pins>;
622 pinctrl-names = "default";
623 #address-cells = <1>;
628 compatible = "jedec,spi-nor";
630 spi-max-frequency = <100000000>;
631 spi-rx-bus-width = <2>;
632 spi-tx-bus-width = <1>;
635 compatible = "fixed-partitions";
636 #address-cells = <1>;
644 label = "U-Boot Env";
645 reg = <0xe0000 0x20000>;
649 reg = <0x100000 0x200000>;
653 reg = <0x300000 0x100000>;
656 label = "Filesystem";
657 reg = <0x400000 0xc00000>;
664 rockchip,hw-tshut-mode = <1>;
665 rockchip,hw-tshut-polarity = <0>;
703 phy-supply = <&vcc5v0_usb_host>;
708 phy-supply = <&vcc5v0_usb_otg>;
717 phy-supply = <&vcc5v0_usb_host>;
722 phy-supply = <&vcc5v0_usb_host>;
727 assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
728 assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
737 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
738 reg = <ROCKCHIP_VOP2_EP_HDMI0>;
739 remote-endpoint = <&hdmi_in_vp0>;