1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2024 Radxa Computer (Shenzhen) Co., Ltd. 4 */ 5 6/dts-v1/; 7 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/pwm/pwm.h> 12#include <dt-bindings/soc/rockchip,vop2.h> 13#include <dt-bindings/usb/pd.h> 14#include "rk3576.dtsi" 15 16/ { 17 model = "Radxa ROCK 4D"; 18 compatible = "radxa,rock-4d", "rockchip,rk3576"; 19 20 aliases { 21 ethernet0 = &gmac0; 22 mmc0 = &sdmmc; 23 }; 24 25 chosen { 26 stdout-path = "serial0:1500000n8"; 27 }; 28 29 hdmi-con { 30 compatible = "hdmi-connector"; 31 type = "a"; 32 33 port { 34 hdmi_con_in: endpoint { 35 remote-endpoint = <&hdmi_out_con>; 36 }; 37 }; 38 }; 39 40 rfkill { 41 compatible = "rfkill-gpio"; 42 pinctrl-names = "default"; 43 pinctrl-0 = <&wifi_en_h>; 44 radio-type = "wlan"; 45 shutdown-gpios = <&gpio2 RK_PD1 GPIO_ACTIVE_HIGH>; 46 }; 47 48 leds: leds { 49 compatible = "gpio-leds"; 50 pinctrl-names = "default"; 51 pinctrl-0 = <&led_rgb_g &led_rgb_r>; 52 53 power-led { 54 color = <LED_COLOR_ID_GREEN>; 55 function = LED_FUNCTION_STATUS; 56 gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>; 57 linux,default-trigger = "default-on"; 58 }; 59 60 user-led { 61 color = <LED_COLOR_ID_BLUE>; 62 function = LED_FUNCTION_HEARTBEAT; 63 gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_LOW>; 64 linux,default-trigger = "heartbeat"; 65 }; 66 }; 67 68 vcc_5v0_dcin: regulator-vcc-5v0-dcin { 69 compatible = "regulator-fixed"; 70 regulator-always-on; 71 regulator-boot-on; 72 regulator-min-microvolt = <5000000>; 73 regulator-max-microvolt = <5000000>; 74 regulator-name = "vcc_5v0_dcin"; 75 }; 76 77 vcc_1v1_nldo_s3: regulator-vcc-1v1-nldo-s3 { 78 compatible = "regulator-fixed"; 79 regulator-always-on; 80 regulator-boot-on; 81 regulator-min-microvolt = <1100000>; 82 regulator-max-microvolt = <1100000>; 83 regulator-name = "vcc_1v1_nldo_s3"; 84 vin-supply = <&vcc_5v0_sys>; 85 }; 86 87 vcc_1v2_ufs_vccq_s0: regulator-vcc-1v2-ufs-vccq-s0 { 88 compatible = "regulator-fixed"; 89 regulator-always-on; 90 regulator-boot-on; 91 regulator-min-microvolt = <1200000>; 92 regulator-max-microvolt = <1200000>; 93 regulator-name = "vcc_1v2_ufs_vccq_s0"; 94 vin-supply = <&vcc_5v0_sys>; 95 }; 96 97 vcc_1v8_s0: regulator-vcc-1v8-s0 { 98 compatible = "regulator-fixed"; 99 regulator-always-on; 100 regulator-boot-on; 101 regulator-min-microvolt = <1800000>; 102 regulator-max-microvolt = <1800000>; 103 regulator-name = "vcc_1v8_s0"; 104 vin-supply = <&vcc_1v8_s3>; 105 }; 106 107 vcc_1v8_ufs_vccq2_s0: regulator-vcc-1v8-ufs-vccq2-s0 { 108 compatible = "regulator-fixed"; 109 regulator-always-on; 110 regulator-boot-on; 111 regulator-min-microvolt = <1800000>; 112 regulator-max-microvolt = <1800000>; 113 regulator-name = "vcc_1v8_ufs_vccq2_s0"; 114 vin-supply = <&vcc_1v8_s3>; 115 }; 116 117 vcc_2v0_pldo_s3: regulator-vcc-2v0-pldo-s3 { 118 compatible = "regulator-fixed"; 119 regulator-always-on; 120 regulator-boot-on; 121 regulator-min-microvolt = <2000000>; 122 regulator-max-microvolt = <2000000>; 123 regulator-name = "vcc_2v0_pldo_s3"; 124 vin-supply = <&vcc_5v0_sys>; 125 }; 126 127 vcc_3v3_pcie: regulator-vcc-3v3-pcie { 128 compatible = "regulator-fixed"; 129 enable-active-high; 130 gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>; 131 pinctrl-names = "default"; 132 pinctrl-0 = <&pcie_pwren>; 133 regulator-min-microvolt = <3300000>; 134 regulator-max-microvolt = <3300000>; 135 regulator-name = "vcc_3v3_pcie"; 136 startup-delay-us = <5000>; 137 vin-supply = <&vcc_5v0_sys>; 138 }; 139 140 vcc_3v3_rtc_s5: regulator-vcc-3v3-rtc-s5 { 141 compatible = "regulator-fixed"; 142 regulator-always-on; 143 regulator-boot-on; 144 regulator-min-microvolt = <3300000>; 145 regulator-max-microvolt = <3300000>; 146 regulator-name = "vcc_3v3_rtc_s5"; 147 vin-supply = <&vcc_5v0_sys>; 148 }; 149 150 vcc_3v3_s0: regulator-vcc-3v3-s0 { 151 compatible = "regulator-fixed"; 152 regulator-always-on; 153 regulator-boot-on; 154 regulator-min-microvolt = <3300000>; 155 regulator-max-microvolt = <3300000>; 156 regulator-name = "vcc_3v3_s0"; 157 vin-supply = <&vcc_3v3_s3>; 158 }; 159 160 vcc_3v3_ufs_s0: regulator-vcc-ufs-s0 { 161 compatible = "regulator-fixed"; 162 regulator-always-on; 163 regulator-boot-on; 164 regulator-min-microvolt = <3300000>; 165 regulator-max-microvolt = <3300000>; 166 regulator-name = "vcc_3v3_ufs_s0"; 167 vin-supply = <&vcc_5v0_sys>; 168 }; 169 170 vcc_3v3_wifi: regulator-vcc-3v3-wifi { 171 compatible = "regulator-fixed"; 172 enable-active-high; 173 gpios = <&gpio2 RK_PC7 GPIO_ACTIVE_HIGH>; 174 pinctrl-names = "default"; 175 pinctrl-0 = <&usb_wifi_pwr>; 176 regulator-always-on; 177 regulator-min-microvolt = <3300000>; 178 regulator-max-microvolt = <3300000>; 179 regulator-name = "vcc_3v3_wifi"; 180 vin-supply = <&vcc_3v3_s3>; 181 }; 182 183 vcc_5v0_device: regulator-vcc-5v0-device { 184 compatible = "regulator-fixed"; 185 regulator-always-on; 186 regulator-boot-on; 187 regulator-min-microvolt = <5000000>; 188 regulator-max-microvolt = <5000000>; 189 regulator-name = "vcc_5v0_device"; 190 vin-supply = <&vcc_5v0_sys>; 191 }; 192 193 vcc_5v0_host: regulator-vcc-5v0-host { 194 compatible = "regulator-fixed"; 195 enable-active-high; 196 gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>; 197 pinctrl-names = "default"; 198 pinctrl-0 = <&usb_host_pwren>; 199 regulator-always-on; 200 regulator-boot-on; 201 regulator-min-microvolt = <5000000>; 202 regulator-max-microvolt = <5000000>; 203 regulator-name = "vcc5v0_host"; 204 vin-supply = <&vcc_5v0_sys>; 205 }; 206 207 vcc_5v0_otg: regulator-vcc-5v0-otg { 208 compatible = "regulator-fixed"; 209 enable-active-high; 210 gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>; 211 pinctrl-names = "default"; 212 pinctrl-0 = <&usb_otg_pwren>; 213 regulator-always-on; 214 regulator-boot-on; 215 regulator-min-microvolt = <5000000>; 216 regulator-max-microvolt = <5000000>; 217 regulator-name = "vcc5v0_otg"; 218 vin-supply = <&vcc_5v0_sys>; 219 }; 220 221 vcc_5v0_sys: regulator-vcc-5v0-sys { 222 compatible = "regulator-fixed"; 223 regulator-always-on; 224 regulator-boot-on; 225 regulator-min-microvolt = <5000000>; 226 regulator-max-microvolt = <5000000>; 227 regulator-name = "vcc_5v0_sys"; 228 vin-supply = <&vcc_5v0_dcin>; 229 }; 230}; 231 232&combphy0_ps { 233 status = "okay"; 234}; 235 236&combphy1_psu { 237 status = "okay"; 238}; 239 240&cpu_b0 { 241 cpu-supply = <&vdd_cpu_big_s0>; 242}; 243 244&cpu_b1 { 245 cpu-supply = <&vdd_cpu_big_s0>; 246}; 247 248&cpu_b2 { 249 cpu-supply = <&vdd_cpu_big_s0>; 250}; 251 252&cpu_b3 { 253 cpu-supply = <&vdd_cpu_big_s0>; 254}; 255 256&cpu_l0 { 257 cpu-supply = <&vdd_cpu_lit_s0>; 258}; 259 260&cpu_l1 { 261 cpu-supply = <&vdd_cpu_lit_s0>; 262}; 263 264&cpu_l2 { 265 cpu-supply = <&vdd_cpu_lit_s0>; 266}; 267 268&cpu_l3 { 269 cpu-supply = <&vdd_cpu_lit_s0>; 270}; 271 272&gmac0 { 273 clock_in_out = "output"; 274 phy-handle = <&rgmii_phy0>; 275 phy-mode = "rgmii-id"; 276 pinctrl-names = "default"; 277 pinctrl-0 = <ð0m0_miim 278 ð0m0_tx_bus2 279 ð0m0_rx_bus2 280 ð0m0_rgmii_clk 281 ð0m0_rgmii_bus 282 ðm0_clk0_25m_out>; 283 status = "okay"; 284}; 285 286&gpu { 287 mali-supply = <&vdd_gpu_s0>; 288 status = "okay"; 289}; 290 291&hdmi { 292 status = "okay"; 293}; 294 295&hdmi_in { 296 hdmi_in_vp0: endpoint { 297 remote-endpoint = <&vp0_out_hdmi>; 298 }; 299}; 300 301&hdmi_out { 302 hdmi_out_con: endpoint { 303 remote-endpoint = <&hdmi_con_in>; 304 }; 305}; 306 307&hdmi_sound { 308 status = "okay"; 309}; 310 311&hdptxphy { 312 status = "okay"; 313}; 314 315&i2c1 { 316 status = "okay"; 317 318 pmic@23 { 319 compatible = "rockchip,rk806"; 320 reg = <0x23>; 321 #gpio-cells = <2>; 322 gpio-controller; 323 interrupt-parent = <&gpio0>; 324 interrupts = <6 IRQ_TYPE_LEVEL_LOW>; 325 pinctrl-names = "default"; 326 pinctrl-0 = <&pmic_pins 327 &rk806_dvs1_null 328 &rk806_dvs2_null 329 &rk806_dvs3_null>; 330 system-power-controller; 331 vcc1-supply = <&vcc_5v0_sys>; 332 vcc2-supply = <&vcc_5v0_sys>; 333 vcc3-supply = <&vcc_5v0_sys>; 334 vcc4-supply = <&vcc_5v0_sys>; 335 vcc5-supply = <&vcc_5v0_sys>; 336 vcc6-supply = <&vcc_5v0_sys>; 337 vcc7-supply = <&vcc_5v0_sys>; 338 vcc8-supply = <&vcc_5v0_sys>; 339 vcc9-supply = <&vcc_5v0_sys>; 340 vcc10-supply = <&vcc_5v0_sys>; 341 vcc11-supply = <&vcc_2v0_pldo_s3>; 342 vcc12-supply = <&vcc_5v0_sys>; 343 vcc13-supply = <&vcc_1v1_nldo_s3>; 344 vcc14-supply = <&vcc_1v1_nldo_s3>; 345 vcca-supply = <&vcc_5v0_sys>; 346 347 rk806_dvs1_null: dvs1-null-pins { 348 pins = "gpio_pwrctrl1"; 349 function = "pin_fun0"; 350 }; 351 352 rk806_dvs1_pwrdn: dvs1-pwrdn-pins { 353 pins = "gpio_pwrctrl1"; 354 function = "pin_fun2"; 355 }; 356 357 rk806_dvs1_rst: dvs1-rst-pins { 358 pins = "gpio_pwrctrl1"; 359 function = "pin_fun3"; 360 }; 361 362 rk806_dvs1_slp: dvs1-slp-pins { 363 pins = "gpio_pwrctrl1"; 364 function = "pin_fun1"; 365 }; 366 367 rk806_dvs2_dvs: dvs2-dvs-pins { 368 pins = "gpio_pwrctrl2"; 369 function = "pin_fun4"; 370 }; 371 372 rk806_dvs2_gpio: dvs2-gpio-pins { 373 pins = "gpio_pwrctrl2"; 374 function = "pin_fun5"; 375 }; 376 377 rk806_dvs2_null: dvs2-null-pins { 378 pins = "gpio_pwrctrl2"; 379 function = "pin_fun0"; 380 }; 381 382 rk806_dvs2_pwrdn: dvs2-pwrdn-pins { 383 pins = "gpio_pwrctrl2"; 384 function = "pin_fun2"; 385 }; 386 387 rk806_dvs2_rst: dvs2-rst-pins { 388 pins = "gpio_pwrctrl2"; 389 function = "pin_fun3"; 390 }; 391 392 rk806_dvs2_slp: dvs2-slp-pins { 393 pins = "gpio_pwrctrl2"; 394 function = "pin_fun1"; 395 }; 396 397 rk806_dvs3_dvs: dvs3-dvs-pins { 398 pins = "gpio_pwrctrl3"; 399 function = "pin_fun4"; 400 }; 401 402 rk806_dvs3_gpio: dvs3-gpio-pins { 403 pins = "gpio_pwrctrl3"; 404 function = "pin_fun5"; 405 }; 406 407 rk806_dvs3_null: dvs3-null-pins { 408 pins = "gpio_pwrctrl3"; 409 function = "pin_fun0"; 410 }; 411 412 rk806_dvs3_pwrdn: dvs3-pwrdn-pins { 413 pins = "gpio_pwrctrl3"; 414 function = "pin_fun2"; 415 }; 416 417 rk806_dvs3_rst: dvs3-rst-pins { 418 pins = "gpio_pwrctrl3"; 419 function = "pin_fun3"; 420 }; 421 422 rk806_dvs3_slp: dvs3-slp-pins { 423 pins = "gpio_pwrctrl3"; 424 function = "pin_fun1"; 425 }; 426 427 regulators { 428 vdd_cpu_big_s0: dcdc-reg1 { 429 regulator-always-on; 430 regulator-boot-on; 431 regulator-enable-ramp-delay = <400>; 432 regulator-min-microvolt = <550000>; 433 regulator-max-microvolt = <950000>; 434 regulator-name = "vdd_cpu_big_s0"; 435 regulator-ramp-delay = <12500>; 436 regulator-state-mem { 437 regulator-off-in-suspend; 438 }; 439 }; 440 441 vdd_npu_s0: dcdc-reg2 { 442 regulator-boot-on; 443 regulator-enable-ramp-delay = <400>; 444 regulator-min-microvolt = <550000>; 445 regulator-max-microvolt = <950000>; 446 regulator-name = "vdd_npu_s0"; 447 regulator-ramp-delay = <12500>; 448 regulator-state-mem { 449 regulator-off-in-suspend; 450 }; 451 }; 452 453 vdd_cpu_lit_s0: dcdc-reg3 { 454 regulator-always-on; 455 regulator-boot-on; 456 regulator-min-microvolt = <550000>; 457 regulator-max-microvolt = <950000>; 458 regulator-name = "vdd_cpu_lit_s0"; 459 regulator-ramp-delay = <12500>; 460 regulator-state-mem { 461 regulator-off-in-suspend; 462 regulator-suspend-microvolt = <750000>; 463 }; 464 }; 465 466 vcc_3v3_s3: dcdc-reg4 { 467 regulator-always-on; 468 regulator-boot-on; 469 regulator-min-microvolt = <3300000>; 470 regulator-max-microvolt = <3300000>; 471 regulator-name = "vcc_3v3_s3"; 472 regulator-state-mem { 473 regulator-on-in-suspend; 474 regulator-suspend-microvolt = <3300000>; 475 }; 476 }; 477 478 vdd_gpu_s0: dcdc-reg5 { 479 regulator-boot-on; 480 regulator-enable-ramp-delay = <400>; 481 regulator-min-microvolt = <550000>; 482 regulator-max-microvolt = <900000>; 483 regulator-name = "vdd_gpu_s0"; 484 regulator-ramp-delay = <12500>; 485 regulator-state-mem { 486 regulator-off-in-suspend; 487 regulator-suspend-microvolt = <850000>; 488 }; 489 }; 490 491 vddq_ddr_s0: dcdc-reg6 { 492 regulator-always-on; 493 regulator-boot-on; 494 regulator-name = "vddq_ddr_s0"; 495 regulator-state-mem { 496 regulator-off-in-suspend; 497 }; 498 }; 499 500 vdd_logic_s0: dcdc-reg7 { 501 regulator-always-on; 502 regulator-boot-on; 503 regulator-min-microvolt = <550000>; 504 regulator-max-microvolt = <800000>; 505 regulator-name = "vdd_logic_s0"; 506 regulator-state-mem { 507 regulator-off-in-suspend; 508 }; 509 }; 510 511 vcc_1v8_s3: dcdc-reg8 { 512 regulator-always-on; 513 regulator-boot-on; 514 regulator-min-microvolt = <1800000>; 515 regulator-max-microvolt = <1800000>; 516 regulator-name = "vcc_1v8_s3"; 517 regulator-state-mem { 518 regulator-on-in-suspend; 519 regulator-suspend-microvolt = <1800000>; 520 }; 521 }; 522 523 vdd2_ddr_s3: dcdc-reg9 { 524 regulator-always-on; 525 regulator-boot-on; 526 regulator-name = "vdd2_ddr_s3"; 527 regulator-state-mem { 528 regulator-on-in-suspend; 529 }; 530 }; 531 532 vdd_ddr_s0: dcdc-reg10 { 533 regulator-always-on; 534 regulator-boot-on; 535 regulator-min-microvolt = <550000>; 536 regulator-max-microvolt = <1200000>; 537 regulator-name = "vdd_ddr_s0"; 538 regulator-state-mem { 539 regulator-off-in-suspend; 540 }; 541 }; 542 543 vcca_1v8_s0: pldo-reg1 { 544 regulator-always-on; 545 regulator-boot-on; 546 regulator-min-microvolt = <1800000>; 547 regulator-max-microvolt = <1800000>; 548 regulator-name = "vcca_1v8_s0"; 549 regulator-state-mem { 550 regulator-off-in-suspend; 551 }; 552 }; 553 554 vcca1v8_pldo2_s0: pldo-reg2 { 555 regulator-always-on; 556 regulator-boot-on; 557 regulator-min-microvolt = <1800000>; 558 regulator-max-microvolt = <1800000>; 559 regulator-name = "vcca1v8_pldo2_s0"; 560 regulator-state-mem { 561 regulator-off-in-suspend; 562 }; 563 }; 564 565 vdda_1v2_s0: pldo-reg3 { 566 regulator-always-on; 567 regulator-boot-on; 568 regulator-min-microvolt = <1200000>; 569 regulator-max-microvolt = <1200000>; 570 regulator-name = "vdda_1v2_s0"; 571 regulator-state-mem { 572 regulator-off-in-suspend; 573 }; 574 }; 575 576 vcca_3v3_s0: pldo-reg4 { 577 regulator-always-on; 578 regulator-boot-on; 579 regulator-min-microvolt = <3300000>; 580 regulator-max-microvolt = <3300000>; 581 regulator-name = "vcca_3v3_s0"; 582 regulator-state-mem { 583 regulator-off-in-suspend; 584 }; 585 }; 586 587 vccio_sd_s0: pldo-reg5 { 588 regulator-always-on; 589 regulator-boot-on; 590 regulator-min-microvolt = <1800000>; 591 regulator-max-microvolt = <3300000>; 592 regulator-name = "vccio_sd_s0"; 593 regulator-state-mem { 594 regulator-off-in-suspend; 595 }; 596 }; 597 598 vcca1v8_pldo6_s3: pldo-reg6 { 599 regulator-always-on; 600 regulator-boot-on; 601 regulator-min-microvolt = <1800000>; 602 regulator-max-microvolt = <1800000>; 603 regulator-name = "vcca1v8_pldo6_s3"; 604 regulator-state-mem { 605 regulator-on-in-suspend; 606 regulator-suspend-microvolt = <1800000>; 607 }; 608 }; 609 610 vdd_0v75_s3: nldo-reg1 { 611 regulator-always-on; 612 regulator-boot-on; 613 regulator-min-microvolt = <750000>; 614 regulator-max-microvolt = <750000>; 615 regulator-name = "vdd_0v75_s3"; 616 regulator-state-mem { 617 regulator-on-in-suspend; 618 regulator-suspend-microvolt = <750000>; 619 }; 620 }; 621 622 vdda_ddr_pll_s0: nldo-reg2 { 623 regulator-always-on; 624 regulator-boot-on; 625 regulator-min-microvolt = <850000>; 626 regulator-max-microvolt = <850000>; 627 regulator-name = "vdda_ddr_pll_s0"; 628 regulator-state-mem { 629 regulator-off-in-suspend; 630 }; 631 }; 632 633 vdda0v75_hdmi_s0: nldo-reg3 { 634 regulator-always-on; 635 regulator-boot-on; 636 regulator-min-microvolt = <837500>; 637 regulator-max-microvolt = <837500>; 638 regulator-name = "vdda0v75_hdmi_s0"; 639 regulator-state-mem { 640 regulator-off-in-suspend; 641 }; 642 }; 643 644 vdda_0v85_s0: nldo-reg4 { 645 regulator-always-on; 646 regulator-boot-on; 647 regulator-min-microvolt = <850000>; 648 regulator-max-microvolt = <850000>; 649 regulator-name = "vdda_0v85_s0"; 650 regulator-state-mem { 651 regulator-off-in-suspend; 652 }; 653 }; 654 655 vdda_0v75_s0: nldo-reg5 { 656 regulator-always-on; 657 regulator-boot-on; 658 regulator-min-microvolt = <750000>; 659 regulator-max-microvolt = <750000>; 660 regulator-name = "vdda_0v75_s0"; 661 regulator-state-mem { 662 regulator-off-in-suspend; 663 }; 664 }; 665 }; 666 }; 667}; 668 669&i2c2 { 670 status = "okay"; 671 672 hym8563: rtc@51 { 673 compatible = "haoyu,hym8563"; 674 reg = <0x51>; 675 #clock-cells = <0>; 676 clock-output-names = "hym8563"; 677 interrupt-parent = <&gpio0>; 678 interrupts = <RK_PA0 IRQ_TYPE_LEVEL_LOW>; 679 pinctrl-names = "default"; 680 pinctrl-0 = <&hym8563_int>; 681 wakeup-source; 682 }; 683}; 684 685&mdio0 { 686 rgmii_phy0: ethernet-phy@1 { 687 compatible = "ethernet-phy-id001c.c916"; 688 reg = <0x1>; 689 clocks = <&cru REFCLKO25M_GMAC0_OUT>; 690 assigned-clocks = <&cru REFCLKO25M_GMAC0_OUT>; 691 assigned-clock-rates = <25000000>; 692 pinctrl-names = "default"; 693 pinctrl-0 = <&rtl8211f_rst>; 694 reset-assert-us = <20000>; 695 reset-deassert-us = <100000>; 696 reset-gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_LOW>; 697 }; 698}; 699 700&pcie0 { 701 pinctrl-names = "default"; 702 pinctrl-0 = <&pcie_reset>; 703 reset-gpios = <&gpio2 RK_PB4 GPIO_ACTIVE_HIGH>; 704 vpcie3v3-supply = <&vcc_3v3_pcie>; 705 status = "okay"; 706}; 707 708&pinctrl { 709 hym8563 { 710 hym8563_int: hym8563-int { 711 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>; 712 }; 713 }; 714 715 leds { 716 led_rgb_g: led-green-en { 717 rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>; 718 }; 719 led_rgb_r: led-red-en { 720 rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>; 721 }; 722 }; 723 724 rtl8211f { 725 rtl8211f_rst: rtl8211f-rst { 726 rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; 727 }; 728 }; 729 730 pcie { 731 pcie_pwren: pcie-pwren { 732 rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>; 733 }; 734 pcie_reset: pcie-reset { 735 rockchip,pins = <2 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>; 736 }; 737 }; 738 739 usb { 740 usb_host_pwren: usb-host-pwren { 741 rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_down>; 742 }; 743 usb_otg_pwren: usb-otg-pwren { 744 rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_down>; 745 746 }; 747 }; 748 749 wifi { 750 usb_wifi_pwr: usb-wifi-pwr { 751 rockchip,pins = <2 RK_PC7 RK_FUNC_GPIO &pcfg_pull_down>; 752 }; 753 wifi_en_h: wifi-en-h { 754 rockchip,pins = <2 RK_PD1 RK_FUNC_GPIO &pcfg_pull_down>; 755 }; 756 }; 757}; 758 759&sai6 { 760 status = "okay"; 761}; 762 763&sdmmc { 764 bus-width = <4>; 765 cap-mmc-highspeed; 766 cap-sd-highspeed; 767 disable-wp; 768 max-frequency = <200000000>; 769 no-sdio; 770 no-mmc; 771 sd-uhs-sdr104; 772 vmmc-supply = <&vcc_3v3_s3>; 773 vqmmc-supply = <&vccio_sd_s0>; 774 status = "okay"; 775}; 776 777 778&sfc0 { 779 pinctrl-names = "default"; 780 pinctrl-0 = <&fspi0_pins &fspi0_csn0>; 781 status = "okay"; 782 783 flash@0 { 784 compatible = "jedec,spi-nor"; 785 reg = <0>; 786 spi-max-frequency = <50000000>; 787 spi-rx-bus-width = <4>; 788 spi-tx-bus-width = <1>; 789 vcc-supply = <&vcc_1v8_s3>; 790 }; 791}; 792 793&u2phy0 { 794 status = "okay"; 795}; 796 797&u2phy0_otg { 798 phy-supply = <&vcc_5v0_otg>; 799 status = "okay"; 800}; 801 802&u2phy1 { 803 status = "okay"; 804}; 805 806&u2phy1_otg { 807 phy-supply = <&vcc_5v0_host>; 808 status = "okay"; 809}; 810 811&uart0 { 812 pinctrl-0 = <&uart0m0_xfer>; 813 status = "okay"; 814}; 815 816&ufshc { 817 status = "okay"; 818}; 819 820&usbdp_phy { 821 status = "okay"; 822}; 823 824&usb_drd0_dwc3 { 825 dr_mode = "host"; 826 status = "okay"; 827}; 828 829&usb_drd1_dwc3 { 830 dr_mode = "host"; 831 status = "okay"; 832}; 833 834&vop { 835 status = "okay"; 836}; 837 838&vop_mmu { 839 status = "okay"; 840}; 841 842&vp0 { 843 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { 844 reg = <ROCKCHIP_VOP2_EP_HDMI0>; 845 remote-endpoint = <&hdmi_in_vp0>; 846 }; 847}; 848