1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 3/dts-v1/; 4 5#include <dt-bindings/gpio/gpio.h> 6#include <dt-bindings/leds/common.h> 7#include <dt-bindings/pinctrl/rockchip.h> 8#include <dt-bindings/soc/rockchip,vop2.h> 9#include <dt-bindings/usb/pd.h> 10#include "rk3588s.dtsi" 11 12/ { 13 model = "Hardkernel ODROID-M2"; 14 compatible = "hardkernel,odroid-m2", "rockchip,rk3588s"; 15 16 aliases { 17 ethernet0 = &gmac1; 18 mmc0 = &sdhci; 19 mmc1 = &sdmmc; 20 }; 21 22 chosen { 23 stdout-path = "serial2:1500000n8"; 24 }; 25 26 hdmi-con { 27 compatible = "hdmi-connector"; 28 type = "a"; 29 30 port { 31 hdmi_con_in: endpoint { 32 remote-endpoint = <&hdmi0_out_con>; 33 }; 34 }; 35 }; 36 37 leds { 38 compatible = "gpio-leds"; 39 pinctrl-names = "default"; 40 pinctrl-0 = <&pwr_led>, <&sys_led>; 41 42 led_pwr: led-0 { 43 color = <LED_COLOR_ID_RED>; 44 default-state = "on"; 45 function = LED_FUNCTION_POWER; 46 gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>; 47 linux,default-trigger = "default-on"; 48 }; 49 50 led_sys: led-1 { 51 color = <LED_COLOR_ID_BLUE>; 52 default-state = "on"; 53 function = LED_FUNCTION_HEARTBEAT; 54 gpios = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>; 55 linux,default-trigger = "heartbeat"; 56 }; 57 }; 58 59 fan: pwm-fan { 60 compatible = "pwm-fan"; 61 #cooling-cells = <2>; 62 cooling-levels = <0 192 224 255>; 63 fan-supply = <&vcc5v0_sys>; 64 pwms = <&pwm0 0 22222 0>; 65 }; 66 67 vcc_1v1_nldo_s3: regulator-1v1-vcc-nldo-s3 { 68 compatible = "regulator-fixed"; 69 regulator-name = "vcc_1v1_nldo_s3"; 70 regulator-always-on; 71 regulator-boot-on; 72 regulator-min-microvolt = <1100000>; 73 regulator-max-microvolt = <1100000>; 74 vin-supply = <&vcc4v0_sys>; 75 }; 76 77 vcc3v3_lcd: regulator-3v3-vcc-lcd { 78 compatible = "regulator-fixed"; 79 enable-active-high; 80 gpios = <&gpio4 RK_PA3 GPIO_ACTIVE_HIGH>; 81 pinctrl-names = "default"; 82 pinctrl-0 = <&lcd_pwren>; 83 regulator-name = "vcc3v3_lcd"; 84 regulator-min-microvolt = <3300000>; 85 regulator-max-microvolt = <3300000>; 86 vin-supply = <&vcc_3v3_s3>; 87 }; 88 89 vcc3v3_pcie: regulator-3v3-vcc-pcie { 90 compatible = "regulator-fixed"; 91 enable-active-high; 92 gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>; 93 pinctrl-names = "default"; 94 pinctrl-0 = <&pcie_pwren>; 95 regulator-name = "vcc3v3_pcie"; 96 regulator-min-microvolt = <3300000>; 97 regulator-max-microvolt = <3300000>; 98 vin-supply = <&vcc_3v3_s3>; 99 }; 100 101 vcc_3v3_s0: regulator-3v3-vcc-s0 { 102 compatible = "regulator-fixed"; 103 regulator-name = "vcc_3v3_s0"; 104 regulator-always-on; 105 regulator-boot-on; 106 regulator-min-microvolt = <3300000>; 107 regulator-max-microvolt = <3300000>; 108 vin-supply = <&vcc_3v3_s3>; 109 }; 110 111 vcc4v0_sys: regulator-4v0-vcc-sys { 112 compatible = "regulator-fixed"; 113 regulator-name = "vcc4v0_sys"; 114 regulator-always-on; 115 regulator-boot-on; 116 regulator-min-microvolt = <4800000>; 117 regulator-max-microvolt = <4800000>; 118 vin-supply = <&vcc12v_dcin>; 119 }; 120 121 vcc5v0_sys: regulator-5v0-vcc-sys { 122 compatible = "regulator-fixed"; 123 enable-active-high; 124 gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>; 125 pinctrl-names = "default"; 126 pinctrl-0 = <&vcc5v0_pwren>; 127 regulator-name = "vcc5v0_sys"; 128 regulator-always-on; 129 regulator-boot-on; 130 regulator-min-microvolt = <5000000>; 131 regulator-max-microvolt = <5000000>; 132 vin-supply = <&vcc12v_dcin>; 133 }; 134 135 vcc5v0_usb2_host: regulator-5v0-vcc-usb2-host { 136 compatible = "regulator-fixed"; 137 enable-active-high; 138 gpios = <&gpio1 RK_PC6 GPIO_ACTIVE_HIGH>; 139 pinctrl-names = "default"; 140 pinctrl-0 = <&usb2_host_pwren>; 141 regulator-name = "vcc5v0_usb2_host"; 142 regulator-min-microvolt = <5000000>; 143 regulator-max-microvolt = <5000000>; 144 vin-supply = <&vcc5v0_sys>; 145 }; 146 147 vcc5v0_usb3_host: regulator-5v0-vcc-usb3-host { 148 compatible = "regulator-fixed"; 149 enable-active-high; 150 gpios = <&gpio1 RK_PA6 GPIO_ACTIVE_HIGH>; 151 pinctrl-names = "default"; 152 pinctrl-0 = <&usb3_host_pwren>; 153 regulator-name = "vcc5v0_usb3_host"; 154 regulator-min-microvolt = <5000000>; 155 regulator-max-microvolt = <5000000>; 156 vin-supply = <&vcc5v0_sys>; 157 }; 158 159 vcc5v0_usb3_typec: regulator-5v0-vcc-usb3-typec { 160 compatible = "regulator-fixed"; 161 enable-active-high; 162 gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>; 163 pinctrl-names = "default"; 164 pinctrl-0 = <&usb3_typec_pwren>; 165 regulator-name = "vcc5v0_usb3_typec"; 166 regulator-min-microvolt = <5000000>; 167 regulator-max-microvolt = <5000000>; 168 vin-supply = <&vcc5v0_sys>; 169 }; 170 171 vcca: regulator-5v0-vcca { 172 compatible = "regulator-fixed"; 173 regulator-name = "vcca"; 174 regulator-always-on; 175 regulator-boot-on; 176 regulator-min-microvolt = <5000000>; 177 regulator-max-microvolt = <5000000>; 178 vin-supply = <&vcc12v_dcin>; 179 }; 180 181 vcc12v_dcin: regulator-12v0-vcc-dcin { 182 compatible = "regulator-fixed"; 183 regulator-name = "vcc12v_dcin"; 184 regulator-always-on; 185 regulator-boot-on; 186 regulator-min-microvolt = <12000000>; 187 regulator-max-microvolt = <12000000>; 188 }; 189}; 190 191&combphy0_ps { 192 status = "okay"; 193}; 194 195&combphy2_psu { 196 status = "okay"; 197}; 198 199&cpu_b0 { 200 cpu-supply = <&vdd_cpu_big0_s0>; 201}; 202 203&cpu_b1 { 204 cpu-supply = <&vdd_cpu_big0_s0>; 205}; 206 207&cpu_b2 { 208 cpu-supply = <&vdd_cpu_big1_s0>; 209}; 210 211&cpu_b3 { 212 cpu-supply = <&vdd_cpu_big1_s0>; 213}; 214 215&cpu_l0 { 216 cpu-supply = <&vdd_cpu_lit_s0>; 217}; 218 219&cpu_l1 { 220 cpu-supply = <&vdd_cpu_lit_s0>; 221}; 222 223&cpu_l2 { 224 cpu-supply = <&vdd_cpu_lit_s0>; 225}; 226 227&cpu_l3 { 228 cpu-supply = <&vdd_cpu_lit_s0>; 229}; 230 231&gmac1 { 232 clock_in_out = "output"; 233 phy-handle = <&rgmii_phy1>; 234 phy-mode = "rgmii-id"; 235 phy-supply = <&vcc_3v3_s0>; 236 pinctrl-names = "default"; 237 pinctrl-0 = <&gmac1_miim 238 &gmac1_tx_bus2 239 &gmac1_rx_bus2 240 &gmac1_rgmii_clk 241 &gmac1_rgmii_bus 242 &gmac1_clkinout>; 243 status = "okay"; 244}; 245 246&gpu { 247 mali-supply = <&vdd_gpu_s0>; 248 status = "okay"; 249}; 250 251&hdmi0 { 252 status = "okay"; 253}; 254 255&hdmi0_in { 256 hdmi0_in_vp0: endpoint { 257 remote-endpoint = <&vp0_out_hdmi0>; 258 }; 259}; 260 261&hdmi0_out { 262 hdmi0_out_con: endpoint { 263 remote-endpoint = <&hdmi_con_in>; 264 }; 265}; 266 267&hdptxphy_hdmi0 { 268 status = "okay"; 269}; 270 271&i2c0 { 272 pinctrl-names = "default"; 273 pinctrl-0 = <&i2c0m2_xfer>; 274 status = "okay"; 275 276 vdd_cpu_big0_s0: regulator@42 { 277 compatible = "rockchip,rk8602"; 278 reg = <0x42>; 279 fcs,suspend-voltage-selector = <1>; 280 regulator-name = "vdd_cpu_big0_s0"; 281 regulator-always-on; 282 regulator-boot-on; 283 regulator-min-microvolt = <550000>; 284 regulator-max-microvolt = <1050000>; 285 regulator-ramp-delay = <2300>; 286 vin-supply = <&vcc4v0_sys>; 287 288 regulator-state-mem { 289 regulator-off-in-suspend; 290 }; 291 }; 292 293 vdd_cpu_big1_s0: regulator@43 { 294 compatible = "rockchip,rk8603", "rockchip,rk8602"; 295 reg = <0x43>; 296 fcs,suspend-voltage-selector = <1>; 297 regulator-name = "vdd_cpu_big1_s0"; 298 regulator-always-on; 299 regulator-boot-on; 300 regulator-min-microvolt = <550000>; 301 regulator-max-microvolt = <1050000>; 302 regulator-ramp-delay = <2300>; 303 vin-supply = <&vcc4v0_sys>; 304 305 regulator-state-mem { 306 regulator-off-in-suspend; 307 }; 308 }; 309}; 310 311&i2c2 { 312 status = "okay"; 313 314 vdd_npu_s0: regulator@42 { 315 compatible = "rockchip,rk8602"; 316 reg = <0x42>; 317 fcs,suspend-voltage-selector = <1>; 318 regulator-name = "vdd_npu_s0"; 319 regulator-always-on; 320 regulator-boot-on; 321 regulator-min-microvolt = <550000>; 322 regulator-max-microvolt = <950000>; 323 regulator-ramp-delay = <2300>; 324 vin-supply = <&vcc4v0_sys>; 325 326 regulator-state-mem { 327 regulator-off-in-suspend; 328 }; 329 }; 330}; 331 332&i2c8 { 333 clock-frequency = <400000>; 334 pinctrl-names = "default"; 335 pinctrl-0 = <&i2c8m2_xfer>; 336 status = "okay"; 337 338 usbc0: usb-typec@22 { 339 compatible = "fcs,fusb302"; 340 reg = <0x22>; 341 interrupt-parent = <&gpio4>; 342 interrupts = <RK_PA5 IRQ_TYPE_LEVEL_LOW>; 343 pinctrl-names = "default"; 344 pinctrl-0 = <&usbc0_int>; 345 vbus-supply = <&vcc5v0_usb3_typec>; 346 347 connector { 348 compatible = "usb-c-connector"; 349 data-role = "dual"; 350 label = "USB-C"; 351 op-sink-microwatt = <1000000>; 352 power-role = "dual"; 353 sink-pdos = <PDO_FIXED(5000, 1000, PDO_FIXED_USB_COMM)>; 354 source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>; 355 try-power-role = "source"; 356 357 ports { 358 #address-cells = <1>; 359 #size-cells = <0>; 360 361 port@0 { 362 reg = <0>; 363 364 usbc0_role_switch: endpoint { 365 remote-endpoint = <&usb_host0_xhci_role_switch>; 366 }; 367 }; 368 369 port@1 { 370 reg = <1>; 371 372 usbc0_orientation_switch: endpoint { 373 remote-endpoint = <&usbdp_phy0_orientation_switch>; 374 }; 375 }; 376 377 port@2 { 378 reg = <2>; 379 380 usbc0_dp_altmode_mux: endpoint { 381 remote-endpoint = <&usbdp_phy0_dp_altmode_mux>; 382 }; 383 }; 384 }; 385 }; 386 }; 387 388 pcf8563: rtc@51 { 389 compatible = "nxp,pcf8563"; 390 reg = <0x51>; 391 interrupt-parent = <&gpio0>; 392 interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>; 393 pinctrl-names = "default"; 394 pinctrl-0 = <&pcf8563_int>; 395 wakeup-source; 396 }; 397}; 398 399&mdio1 { 400 rgmii_phy1: ethernet-phy@1 { 401 compatible = "ethernet-phy-id001c.c916"; 402 reg = <1>; 403 reset-assert-us = <20000>; 404 reset-deassert-us = <100000>; 405 reset-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; 406 }; 407}; 408 409&package_thermal { 410 polling-delay = <1000>; 411 412 trips { 413 package_fan0: package-fan0 { 414 hysteresis = <2000>; 415 temperature = <60000>; 416 type = "active"; 417 }; 418 }; 419 420 cooling-maps { 421 map0 { 422 cooling-device = <&fan 1 THERMAL_NO_LIMIT>; 423 trip = <&package_fan0>; 424 }; 425 }; 426}; 427 428&pcie2x1l2 { 429 pinctrl-names = "default"; 430 pinctrl-0 = <&pcie20x1_pins>; 431 reset-gpios = <&gpio1 RK_PA7 GPIO_ACTIVE_HIGH>; 432 vpcie3v3-supply = <&vcc3v3_pcie>; 433 status = "okay"; 434}; 435 436&pinctrl { 437 lcd { 438 lcd_pwren: lcd-pwren { 439 rockchip,pins = <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; 440 }; 441 }; 442 443 leds { 444 pwr_led: pwr-led { 445 rockchip,pins = <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; 446 }; 447 448 sys_led: sys-led { 449 rockchip,pins = <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; 450 }; 451 }; 452 453 pcie { 454 pcie20x1_pins: pcie20x1-pins { 455 rockchip,pins = 456 <1 RK_PA0 4 &pcfg_pull_none>, 457 <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>, 458 <1 RK_PA1 4 &pcfg_pull_none>; 459 }; 460 461 pcie_pwren: pcie-pwren { 462 rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; 463 }; 464 }; 465 466 regulator { 467 vcc5v0_pwren: vcc5v0-pwren { 468 rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>; 469 }; 470 }; 471 472 rtc { 473 pcf8563_int: pcf8563-int { 474 rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; 475 }; 476 }; 477 478 usb { 479 usb2_host_pwren: usb2-host-pwren { 480 rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; 481 }; 482 483 usb3_host_pwren: usb3-host-pwren { 484 rockchip,pins = <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; 485 }; 486 487 usb3_typec_pwren: usb3-typec-pwren { 488 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; 489 }; 490 491 usbc0_int: usbc0-int { 492 rockchip,pins = <4 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; 493 }; 494 }; 495}; 496 497&pwm0 { 498 pinctrl-names = "default"; 499 pinctrl-0 = <&pwm0m2_pins>; 500 status = "okay"; 501}; 502 503&saradc { 504 vref-supply = <&vcca_1v8_s0>; 505 status = "okay"; 506}; 507 508&sdhci { 509 bus-width = <8>; 510 mmc-hs400-1_8v; 511 mmc-hs400-enhanced-strobe; 512 no-sd; 513 no-sdio; 514 non-removable; 515 vmmc-supply = <&vcc_3v3_s0>; 516 vqmmc-supply = <&vcc_1v8_s0>; 517 status = "okay"; 518}; 519 520&sdmmc { 521 bus-width = <4>; 522 cap-sd-highspeed; 523 cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>; 524 disable-wp; 525 max-frequency = <150000000>; 526 no-mmc; 527 no-sdio; 528 sd-uhs-sdr104; 529 vmmc-supply = <&vcc_3v3_s3>; 530 vqmmc-supply = <&vccio_sd_s0>; 531 status = "okay"; 532}; 533 534&spi2 { 535 assigned-clocks = <&cru CLK_SPI2>; 536 assigned-clock-rates = <200000000>; 537 num-cs = <1>; 538 pinctrl-names = "default"; 539 pinctrl-0 = <&spi2m2_cs0>, <&spi2m2_pins>; 540 status = "okay"; 541 542 pmic@0 { 543 compatible = "rockchip,rk806"; 544 reg = <0x0>; 545 #gpio-cells = <2>; 546 gpio-controller; 547 interrupt-parent = <&gpio0>; 548 interrupts = <RK_PA7 IRQ_TYPE_LEVEL_LOW>; 549 pinctrl-names = "default"; 550 pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>, 551 <&rk806_dvs2_null>, <&rk806_dvs3_null>; 552 spi-max-frequency = <1000000>; 553 system-power-controller; 554 555 vcc1-supply = <&vcc4v0_sys>; 556 vcc2-supply = <&vcc4v0_sys>; 557 vcc3-supply = <&vcc4v0_sys>; 558 vcc4-supply = <&vcc4v0_sys>; 559 vcc5-supply = <&vcc4v0_sys>; 560 vcc6-supply = <&vcc4v0_sys>; 561 vcc7-supply = <&vcc4v0_sys>; 562 vcc8-supply = <&vcc4v0_sys>; 563 vcc9-supply = <&vcc4v0_sys>; 564 vcc10-supply = <&vcc4v0_sys>; 565 vcc11-supply = <&vcc_2v0_pldo_s3>; 566 vcc12-supply = <&vcc4v0_sys>; 567 vcc13-supply = <&vcc_1v1_nldo_s3>; 568 vcc14-supply = <&vcc_1v1_nldo_s3>; 569 vcca-supply = <&vcca>; 570 571 rk806_dvs1_null: dvs1-null-pins { 572 pins = "gpio_pwrctrl1"; 573 function = "pin_fun0"; 574 }; 575 576 rk806_dvs2_null: dvs2-null-pins { 577 pins = "gpio_pwrctrl2"; 578 function = "pin_fun0"; 579 }; 580 581 rk806_dvs3_null: dvs3-null-pins { 582 pins = "gpio_pwrctrl3"; 583 function = "pin_fun0"; 584 }; 585 586 regulators { 587 vdd_gpu_s0: dcdc-reg1 { 588 regulator-name = "vdd_gpu_s0"; 589 regulator-boot-on; 590 regulator-min-microvolt = <550000>; 591 regulator-max-microvolt = <950000>; 592 regulator-ramp-delay = <12500>; 593 regulator-enable-ramp-delay = <400>; 594 595 regulator-state-mem { 596 regulator-off-in-suspend; 597 }; 598 }; 599 600 vdd_cpu_lit_s0: dcdc-reg2 { 601 regulator-name = "vdd_cpu_lit_s0"; 602 regulator-always-on; 603 regulator-boot-on; 604 regulator-min-microvolt = <550000>; 605 regulator-max-microvolt = <950000>; 606 regulator-ramp-delay = <12500>; 607 608 regulator-state-mem { 609 regulator-off-in-suspend; 610 }; 611 }; 612 613 vdd_logic_s0: dcdc-reg3 { 614 regulator-name = "vdd_logic_s0"; 615 regulator-always-on; 616 regulator-boot-on; 617 regulator-min-microvolt = <675000>; 618 regulator-max-microvolt = <750000>; 619 regulator-ramp-delay = <12500>; 620 621 regulator-state-mem { 622 regulator-off-in-suspend; 623 regulator-suspend-microvolt = <750000>; 624 }; 625 }; 626 627 vdd_vdenc_s0: dcdc-reg4 { 628 regulator-name = "vdd_vdenc_s0"; 629 regulator-always-on; 630 regulator-boot-on; 631 regulator-min-microvolt = <550000>; 632 regulator-max-microvolt = <950000>; 633 regulator-ramp-delay = <12500>; 634 635 regulator-state-mem { 636 regulator-off-in-suspend; 637 }; 638 }; 639 640 vdd_ddr_s0: dcdc-reg5 { 641 regulator-name = "vdd_ddr_s0"; 642 regulator-always-on; 643 regulator-boot-on; 644 regulator-min-microvolt = <675000>; 645 regulator-max-microvolt = <900000>; 646 regulator-ramp-delay = <12500>; 647 648 regulator-state-mem { 649 regulator-off-in-suspend; 650 regulator-suspend-microvolt = <850000>; 651 }; 652 }; 653 654 vdd2_ddr_s3: dcdc-reg6 { 655 regulator-name = "vdd2_ddr_s3"; 656 regulator-always-on; 657 regulator-boot-on; 658 659 regulator-state-mem { 660 regulator-on-in-suspend; 661 }; 662 }; 663 664 vcc_2v0_pldo_s3: dcdc-reg7 { 665 regulator-name = "vdd_2v0_pldo_s3"; 666 regulator-always-on; 667 regulator-boot-on; 668 regulator-min-microvolt = <2000000>; 669 regulator-max-microvolt = <2000000>; 670 regulator-ramp-delay = <12500>; 671 672 regulator-state-mem { 673 regulator-on-in-suspend; 674 regulator-suspend-microvolt = <2000000>; 675 }; 676 }; 677 678 vcc_3v3_s3: dcdc-reg8 { 679 regulator-name = "vcc_3v3_s3"; 680 regulator-always-on; 681 regulator-boot-on; 682 regulator-min-microvolt = <3300000>; 683 regulator-max-microvolt = <3300000>; 684 685 regulator-state-mem { 686 regulator-on-in-suspend; 687 regulator-suspend-microvolt = <3300000>; 688 }; 689 }; 690 691 vddq_ddr_s0: dcdc-reg9 { 692 regulator-name = "vddq_ddr_s0"; 693 regulator-always-on; 694 regulator-boot-on; 695 696 regulator-state-mem { 697 regulator-off-in-suspend; 698 }; 699 }; 700 701 vcc_1v8_s3: dcdc-reg10 { 702 regulator-name = "vcc_1v8_s3"; 703 regulator-always-on; 704 regulator-boot-on; 705 regulator-min-microvolt = <1800000>; 706 regulator-max-microvolt = <1800000>; 707 708 regulator-state-mem { 709 regulator-on-in-suspend; 710 regulator-suspend-microvolt = <1800000>; 711 }; 712 }; 713 714 vcc_1v8_s0: pldo-reg1 { 715 regulator-name = "vcc_1v8_s0"; 716 regulator-always-on; 717 regulator-boot-on; 718 regulator-min-microvolt = <1800000>; 719 regulator-max-microvolt = <1800000>; 720 721 regulator-state-mem { 722 regulator-off-in-suspend; 723 }; 724 }; 725 726 vcca_1v8_s0: pldo-reg2 { 727 regulator-name = "vcca_1v8_s0"; 728 regulator-always-on; 729 regulator-boot-on; 730 regulator-min-microvolt = <1800000>; 731 regulator-max-microvolt = <1800000>; 732 733 regulator-state-mem { 734 regulator-off-in-suspend; 735 regulator-suspend-microvolt = <1800000>; 736 }; 737 }; 738 739 vdda_1v2_s0: pldo-reg3 { 740 regulator-name = "vdda_1v2_s0"; 741 regulator-always-on; 742 regulator-boot-on; 743 regulator-min-microvolt = <1200000>; 744 regulator-max-microvolt = <1200000>; 745 746 regulator-state-mem { 747 regulator-off-in-suspend; 748 }; 749 }; 750 751 vcca_3v3_s0: pldo-reg4 { 752 regulator-name = "vcca_3v3_s0"; 753 regulator-always-on; 754 regulator-boot-on; 755 regulator-min-microvolt = <3300000>; 756 regulator-max-microvolt = <3300000>; 757 regulator-ramp-delay = <12500>; 758 759 regulator-state-mem { 760 regulator-off-in-suspend; 761 }; 762 }; 763 764 vccio_sd_s0: pldo-reg5 { 765 regulator-name = "vccio_sd_s0"; 766 regulator-always-on; 767 regulator-boot-on; 768 regulator-min-microvolt = <1800000>; 769 regulator-max-microvolt = <3300000>; 770 regulator-ramp-delay = <12500>; 771 772 regulator-state-mem { 773 regulator-off-in-suspend; 774 }; 775 }; 776 777 vcc_1v8_s3_pldo6: pldo-reg6 { 778 regulator-name = "vcc_1v8_s3_pldo6"; 779 regulator-always-on; 780 regulator-boot-on; 781 regulator-min-microvolt = <1800000>; 782 regulator-max-microvolt = <1800000>; 783 784 regulator-state-mem { 785 regulator-on-in-suspend; 786 regulator-suspend-microvolt = <1800000>; 787 }; 788 }; 789 790 vdd_0v75_s3: nldo-reg1 { 791 regulator-name = "vdd_0v75_s3"; 792 regulator-always-on; 793 regulator-boot-on; 794 regulator-min-microvolt = <750000>; 795 regulator-max-microvolt = <750000>; 796 797 regulator-state-mem { 798 regulator-on-in-suspend; 799 regulator-suspend-microvolt = <750000>; 800 }; 801 }; 802 803 vdda_ddr_pll_s0: nldo-reg2 { 804 regulator-name = "vdda_ddr_pll_s0"; 805 regulator-always-on; 806 regulator-boot-on; 807 regulator-min-microvolt = <900000>; 808 regulator-max-microvolt = <900000>; 809 810 regulator-state-mem { 811 regulator-off-in-suspend; 812 regulator-suspend-microvolt = <850000>; 813 }; 814 }; 815 816 vdda_0v75_s0: nldo-reg3 { 817 regulator-name = "vdda_0v75_s0"; 818 regulator-always-on; 819 regulator-boot-on; 820 regulator-min-microvolt = <837500>; 821 regulator-max-microvolt = <837500>; 822 823 regulator-state-mem { 824 regulator-off-in-suspend; 825 }; 826 }; 827 828 vdda_0v85_s0: nldo-reg4 { 829 regulator-name = "vdda_0v85_s0"; 830 regulator-always-on; 831 regulator-boot-on; 832 regulator-min-microvolt = <850000>; 833 regulator-max-microvolt = <850000>; 834 835 regulator-state-mem { 836 regulator-off-in-suspend; 837 }; 838 }; 839 840 /* Schematics show not in use */ 841 nldo-reg5 { 842 }; 843 }; 844 }; 845}; 846 847&tsadc { 848 status = "okay"; 849}; 850 851&u2phy0 { 852 status = "okay"; 853}; 854 855&u2phy0_otg { 856 status = "okay"; 857}; 858 859&u2phy2 { 860 status = "okay"; 861}; 862 863&u2phy2_host { 864 phy-supply = <&vcc5v0_usb2_host>; 865 status = "okay"; 866}; 867 868&u2phy3 { 869 status = "okay"; 870}; 871 872&u2phy3_host { 873 phy-supply = <&vcc5v0_usb3_host>; 874 status = "okay"; 875}; 876 877&uart2 { 878 pinctrl-names = "default"; 879 pinctrl-0 = <&uart2m0_xfer>; 880 status = "okay"; 881}; 882 883&usb_host0_ehci { 884 status = "okay"; 885}; 886 887&usb_host0_ohci { 888 status = "okay"; 889}; 890 891&usb_host0_xhci { 892 usb-role-switch; 893 status = "okay"; 894 895 port { 896 usb_host0_xhci_role_switch: endpoint { 897 remote-endpoint = <&usbc0_role_switch>; 898 }; 899 }; 900}; 901 902&usb_host1_ehci { 903 status = "okay"; 904}; 905 906&usb_host1_ohci { 907 status = "okay"; 908}; 909 910&usb_host2_xhci { 911 status = "okay"; 912}; 913 914&usbdp_phy0 { 915 mode-switch; 916 orientation-switch; 917 sbu1-dc-gpios = <&gpio4 RK_PA0 GPIO_ACTIVE_HIGH>; 918 sbu2-dc-gpios = <&gpio4 RK_PA1 GPIO_ACTIVE_HIGH>; 919 status = "okay"; 920 921 port { 922 #address-cells = <1>; 923 #size-cells = <0>; 924 925 usbdp_phy0_orientation_switch: endpoint@0 { 926 reg = <0>; 927 remote-endpoint = <&usbc0_orientation_switch>; 928 }; 929 930 usbdp_phy0_dp_altmode_mux: endpoint@1 { 931 reg = <1>; 932 remote-endpoint = <&usbc0_dp_altmode_mux>; 933 }; 934 }; 935}; 936 937&vop { 938 status = "okay"; 939}; 940 941&vop_mmu { 942 status = "okay"; 943}; 944 945&vp0 { 946 vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { 947 reg = <ROCKCHIP_VOP2_EP_HDMI0>; 948 remote-endpoint = <&hdmi0_in_vp0>; 949 }; 950}; 951