1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd. 4 */ 5 6/dts-v1/; 7 8#include "dt-bindings/pwm/pwm.h" 9#include "dt-bindings/input/input.h" 10#include <dt-bindings/interrupt-controller/irq.h> 11#include "dt-bindings/usb/pd.h" 12#include "rk3399.dtsi" 13#include "rk3399-opp.dtsi" 14 15/ { 16 model = "Orange Pi RK3399 Board"; 17 compatible = "rockchip,rk3399-orangepi", "rockchip,rk3399"; 18 19 aliases { 20 mmc0 = &sdio0; 21 mmc1 = &sdmmc; 22 mmc2 = &sdhci; 23 }; 24 25 chosen { 26 stdout-path = "serial2:1500000n8"; 27 }; 28 29 clkin_gmac: external-gmac-clock { 30 compatible = "fixed-clock"; 31 clock-frequency = <125000000>; 32 clock-output-names = "clkin_gmac"; 33 #clock-cells = <0>; 34 }; 35 36 adc-keys { 37 compatible = "adc-keys"; 38 io-channels = <&saradc 1>; 39 io-channel-names = "buttons"; 40 keyup-threshold-microvolt = <1800000>; 41 poll-interval = <100>; 42 43 button-up { 44 label = "Volume Up"; 45 linux,code = <KEY_VOLUMEUP>; 46 press-threshold-microvolt = <100000>; 47 }; 48 49 button-down { 50 label = "Volume Down"; 51 linux,code = <KEY_VOLUMEDOWN>; 52 press-threshold-microvolt = <300000>; 53 }; 54 55 button-back { 56 label = "Back"; 57 linux,code = <KEY_BACK>; 58 press-threshold-microvolt = <985000>; 59 }; 60 61 button-menu { 62 label = "Menu"; 63 linux,code = <KEY_MENU>; 64 press-threshold-microvolt = <1314000>; 65 }; 66 }; 67 68 dc_12v: dc-12v { 69 compatible = "regulator-fixed"; 70 regulator-name = "dc_12v"; 71 regulator-always-on; 72 regulator-boot-on; 73 regulator-min-microvolt = <12000000>; 74 regulator-max-microvolt = <12000000>; 75 }; 76 77 keys: gpio-keys { 78 compatible = "gpio-keys"; 79 autorepeat; 80 81 key-power { 82 debounce-interval = <100>; 83 gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; 84 label = "GPIO Power"; 85 linux,code = <KEY_POWER>; 86 linux,input-type = <1>; 87 pinctrl-names = "default"; 88 pinctrl-0 = <&pwr_btn>; 89 wakeup-source; 90 }; 91 }; 92 93 sdio_pwrseq: sdio-pwrseq { 94 compatible = "mmc-pwrseq-simple"; 95 clocks = <&rk808 1>; 96 clock-names = "ext_clock"; 97 pinctrl-names = "default"; 98 pinctrl-0 = <&wifi_reg_on_h>; 99 reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>; 100 }; 101 102 /* switched by pmic_sleep */ 103 vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 { 104 compatible = "regulator-fixed"; 105 regulator-name = "vcc1v8_s3"; 106 regulator-always-on; 107 regulator-boot-on; 108 regulator-min-microvolt = <1800000>; 109 regulator-max-microvolt = <1800000>; 110 vin-supply = <&vcc_1v8>; 111 }; 112 113 vcc3v0_sd: vcc3v0-sd { 114 compatible = "regulator-fixed"; 115 enable-active-high; 116 gpio = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>; 117 pinctrl-names = "default"; 118 pinctrl-0 = <&sdmmc0_pwr_h>; 119 regulator-boot-on; 120 regulator-max-microvolt = <3000000>; 121 regulator-min-microvolt = <3000000>; 122 regulator-name = "vcc3v0_sd"; 123 vin-supply = <&vcc3v3_sys>; 124 }; 125 126 vcc3v3_sys: vcc3v3-sys { 127 compatible = "regulator-fixed"; 128 regulator-name = "vcc3v3_sys"; 129 regulator-always-on; 130 regulator-boot-on; 131 regulator-min-microvolt = <3300000>; 132 regulator-max-microvolt = <3300000>; 133 vin-supply = <&vcc_sys>; 134 }; 135 136 vcc5v0_host: vcc5v0-host-regulator { 137 compatible = "regulator-fixed"; 138 enable-active-high; 139 gpio = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>; 140 pinctrl-names = "default"; 141 pinctrl-0 = <&vcc5v0_host_en>; 142 regulator-name = "vcc5v0_host"; 143 regulator-always-on; 144 vin-supply = <&vcc_sys>; 145 }; 146 147 vbus_typec: vbus-typec-regulator { 148 compatible = "regulator-fixed"; 149 enable-active-high; 150 gpio = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>; 151 pinctrl-names = "default"; 152 pinctrl-0 = <&vcc5v0_typec_en>; 153 regulator-name = "vbus_typec"; 154 vin-supply = <&vcc_sys>; 155 }; 156 157 vcc_sys: vcc-sys { 158 compatible = "regulator-fixed"; 159 regulator-name = "vcc_sys"; 160 regulator-always-on; 161 regulator-boot-on; 162 regulator-min-microvolt = <5000000>; 163 regulator-max-microvolt = <5000000>; 164 vin-supply = <&dc_12v>; 165 }; 166 167 vdd_log: vdd-log { 168 compatible = "pwm-regulator"; 169 pwms = <&pwm2 0 25000 1>; 170 pwm-supply = <&vcc_sys>; 171 regulator-name = "vdd_log"; 172 regulator-always-on; 173 regulator-boot-on; 174 regulator-min-microvolt = <800000>; 175 regulator-max-microvolt = <1400000>; 176 }; 177}; 178 179&cpu_l0 { 180 cpu-supply = <&vdd_cpu_l>; 181}; 182 183&cpu_l1 { 184 cpu-supply = <&vdd_cpu_l>; 185}; 186 187&cpu_l2 { 188 cpu-supply = <&vdd_cpu_l>; 189}; 190 191&cpu_l3 { 192 cpu-supply = <&vdd_cpu_l>; 193}; 194 195&cpu_b0 { 196 cpu-supply = <&vdd_cpu_b>; 197}; 198 199&cpu_b1 { 200 cpu-supply = <&vdd_cpu_b>; 201}; 202 203&emmc_phy { 204 status = "okay"; 205}; 206 207&gmac { 208 assigned-clocks = <&cru SCLK_RMII_SRC>; 209 assigned-clock-parents = <&clkin_gmac>; 210 clock_in_out = "input"; 211 phy-supply = <&vcc3v3_s3>; 212 phy-mode = "rgmii"; 213 phy-handle = <&rtl8211e>; 214 pinctrl-names = "default"; 215 pinctrl-0 = <&rgmii_pins>, <&phy_intb>, <&phy_rstb>; 216 tx_delay = <0x28>; 217 rx_delay = <0x11>; 218 status = "okay"; 219 220 mdio { 221 compatible = "snps,dwmac-mdio"; 222 #address-cells = <1>; 223 #size-cells = <0>; 224 225 rtl8211e: ethernet-phy@1 { 226 reg = <1>; 227 interrupt-parent = <&gpio3>; 228 interrupts = <RK_PB2 IRQ_TYPE_LEVEL_LOW>; 229 reset-assert-us = <10000>; 230 reset-deassert-us = <30000>; 231 reset-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; 232 }; 233 }; 234}; 235 236&gpu { 237 mali-supply = <&vdd_gpu>; 238 status = "okay"; 239}; 240 241&hdmi { 242 ddc-i2c-bus = <&i2c3>; 243 status = "okay"; 244}; 245 246&hdmi_sound { 247 status = "okay"; 248}; 249 250&i2c0 { 251 clock-frequency = <400000>; 252 i2c-scl-rising-time-ns = <168>; 253 i2c-scl-falling-time-ns = <4>; 254 status = "okay"; 255 256 rk808: pmic@1b { 257 compatible = "rockchip,rk808"; 258 reg = <0x1b>; 259 interrupt-parent = <&gpio1>; 260 interrupts = <21 IRQ_TYPE_LEVEL_LOW>; 261 #clock-cells = <1>; 262 clock-output-names = "rtc_clko_soc", "rtc_clko_wifi"; 263 pinctrl-names = "default"; 264 pinctrl-0 = <&pmic_int_l>; 265 rockchip,system-power-controller; 266 wakeup-source; 267 268 vcc1-supply = <&vcc3v3_sys>; 269 vcc2-supply = <&vcc3v3_sys>; 270 vcc3-supply = <&vcc3v3_sys>; 271 vcc4-supply = <&vcc3v3_sys>; 272 vcc6-supply = <&vcc3v3_sys>; 273 vcc7-supply = <&vcc3v3_sys>; 274 vcc8-supply = <&vcc3v3_sys>; 275 vcc9-supply = <&vcc3v3_sys>; 276 vcc10-supply = <&vcc3v3_sys>; 277 vcc11-supply = <&vcc3v3_sys>; 278 vcc12-supply = <&vcc3v3_sys>; 279 vddio-supply = <&vcc_3v0>; 280 281 regulators { 282 vdd_center: DCDC_REG1 { 283 regulator-name = "vdd_center"; 284 regulator-always-on; 285 regulator-boot-on; 286 regulator-min-microvolt = <700000>; 287 regulator-max-microvolt = <1500000>; 288 regulator-ramp-delay = <6001>; 289 regulator-state-mem { 290 regulator-off-in-suspend; 291 }; 292 }; 293 294 vdd_cpu_l: DCDC_REG2 { 295 regulator-name = "vdd_cpu_l"; 296 regulator-always-on; 297 regulator-boot-on; 298 regulator-min-microvolt = <700000>; 299 regulator-max-microvolt = <1500000>; 300 regulator-ramp-delay = <6001>; 301 regulator-state-mem { 302 regulator-off-in-suspend; 303 }; 304 }; 305 306 vcc_ddr: DCDC_REG3 { 307 regulator-name = "vcc_ddr"; 308 regulator-always-on; 309 regulator-boot-on; 310 regulator-state-mem { 311 regulator-on-in-suspend; 312 }; 313 }; 314 315 vcc_1v8: DCDC_REG4 { 316 regulator-name = "vcc_1v8"; 317 regulator-always-on; 318 regulator-boot-on; 319 regulator-min-microvolt = <1800000>; 320 regulator-max-microvolt = <3300000>; 321 regulator-state-mem { 322 regulator-on-in-suspend; 323 regulator-suspend-microvolt = <1800000>; 324 }; 325 }; 326 327 vcc1v8_dvp: LDO_REG1 { 328 regulator-name = "vcc1v8_dvp"; 329 regulator-always-on; 330 regulator-boot-on; 331 regulator-min-microvolt = <1800000>; 332 regulator-max-microvolt = <3400000>; 333 regulator-state-mem { 334 regulator-off-in-suspend; 335 }; 336 }; 337 338 vcc3v0_tp: LDO_REG2 { 339 regulator-name = "vcc3v0_tp"; 340 regulator-always-on; 341 regulator-boot-on; 342 regulator-min-microvolt = <1800000>; 343 regulator-max-microvolt = <3400000>; 344 regulator-state-mem { 345 regulator-off-in-suspend; 346 }; 347 }; 348 349 vcc1v8_pmupll: LDO_REG3 { 350 regulator-name = "vcc1v8_pmupll"; 351 regulator-always-on; 352 regulator-boot-on; 353 regulator-min-microvolt = <800000>; 354 regulator-max-microvolt = <2500000>; 355 regulator-state-mem { 356 regulator-on-in-suspend; 357 regulator-suspend-microvolt = <1800000>; 358 }; 359 }; 360 361 vcc_sdio: LDO_REG4 { 362 regulator-name = "vcc_sdio"; 363 regulator-always-on; 364 regulator-boot-on; 365 regulator-min-microvolt = <1800000>; 366 regulator-max-microvolt = <3400000>; 367 regulator-state-mem { 368 regulator-on-in-suspend; 369 regulator-suspend-microvolt = <3000000>; 370 }; 371 }; 372 373 vcca3v0_codec: LDO_REG5 { 374 regulator-name = "vcca3v0_codec"; 375 regulator-always-on; 376 regulator-boot-on; 377 regulator-min-microvolt = <1800000>; 378 regulator-max-microvolt = <3400000>; 379 regulator-state-mem { 380 regulator-off-in-suspend; 381 }; 382 }; 383 384 vcc_1v5: LDO_REG6 { 385 regulator-name = "vcc_1v5"; 386 regulator-always-on; 387 regulator-boot-on; 388 regulator-min-microvolt = <800000>; 389 regulator-max-microvolt = <2500000>; 390 regulator-state-mem { 391 regulator-on-in-suspend; 392 regulator-suspend-microvolt = <1500000>; 393 }; 394 }; 395 396 vcca1v8_codec: LDO_REG7 { 397 regulator-name = "vcca1v8_codec"; 398 regulator-always-on; 399 regulator-boot-on; 400 regulator-min-microvolt = <800000>; 401 regulator-max-microvolt = <2500000>; 402 regulator-state-mem { 403 regulator-off-in-suspend; 404 }; 405 }; 406 407 vcc_3v0: LDO_REG8 { 408 regulator-name = "vcc_3v0"; 409 regulator-always-on; 410 regulator-boot-on; 411 regulator-min-microvolt = <1800000>; 412 regulator-max-microvolt = <3400000>; 413 regulator-state-mem { 414 regulator-on-in-suspend; 415 regulator-suspend-microvolt = <3000000>; 416 }; 417 }; 418 419 vcc3v3_s3: SWITCH_REG1 { 420 regulator-name = "vcc3v3_s3"; 421 regulator-always-on; 422 regulator-boot-on; 423 regulator-state-mem { 424 regulator-off-in-suspend; 425 }; 426 }; 427 428 vcc3v3_s0: SWITCH_REG2 { 429 regulator-name = "vcc3v3_s0"; 430 regulator-always-on; 431 regulator-boot-on; 432 regulator-state-mem { 433 regulator-off-in-suspend; 434 }; 435 }; 436 }; 437 }; 438 439 vdd_cpu_b: regulator@40 { 440 compatible = "silergy,syr827"; 441 reg = <0x40>; 442 fcs,suspend-voltage-selector = <1>; 443 pinctrl-names = "default"; 444 pinctrl-0 = <&cpu_b_sleep>; 445 regulator-name = "vdd_cpu_b"; 446 regulator-min-microvolt = <712500>; 447 regulator-max-microvolt = <1500000>; 448 regulator-ramp-delay = <1000>; 449 regulator-always-on; 450 regulator-boot-on; 451 vin-supply = <&vcc3v3_sys>; 452 453 regulator-state-mem { 454 regulator-off-in-suspend; 455 }; 456 }; 457 458 vdd_gpu: regulator@41 { 459 compatible = "silergy,syr828"; 460 reg = <0x41>; 461 fcs,suspend-voltage-selector = <1>; 462 pinctrl-names = "default"; 463 pinctrl-0 = <&gpu_sleep>; 464 regulator-name = "vdd_gpu"; 465 regulator-min-microvolt = <712500>; 466 regulator-max-microvolt = <1500000>; 467 regulator-ramp-delay = <1000>; 468 regulator-always-on; 469 regulator-boot-on; 470 vin-supply = <&vcc3v3_sys>; 471 472 regulator-state-mem { 473 regulator-off-in-suspend; 474 }; 475 }; 476}; 477 478&i2c1 { 479 i2c-scl-rising-time-ns = <450>; 480 i2c-scl-falling-time-ns = <15>; 481 status = "okay"; 482}; 483 484&i2c3 { 485 i2c-scl-rising-time-ns = <450>; 486 i2c-scl-falling-time-ns = <15>; 487 status = "okay"; 488}; 489 490&i2c4 { 491 clock-frequency = <400000>; 492 i2c-scl-rising-time-ns = <450>; 493 i2c-scl-falling-time-ns = <15>; 494 status = "okay"; 495 496 ak09911@c { 497 compatible = "asahi-kasei,ak09911"; 498 reg = <0x0c>; 499 vdd-supply = <&vcc3v3_s3>; 500 vid-supply = <&vcc3v3_s3>; 501 }; 502 503 mpu6500@68 { 504 compatible = "invensense,mpu6500"; 505 reg = <0x68>; 506 interrupt-parent = <&gpio1>; 507 interrupts = <RK_PC6 IRQ_TYPE_EDGE_RISING>; 508 pinctrl-names = "default"; 509 pinctrl-0 = <&gsensor_int_l>; 510 vddio-supply = <&vcc3v3_s3>; 511 }; 512 513 lsm6ds3@6a { 514 compatible = "st,lsm6ds3"; 515 reg = <0x6a>; 516 interrupt-parent = <&gpio1>; 517 interrupts = <RK_PD0 IRQ_TYPE_EDGE_RISING>; 518 pinctrl-names = "default"; 519 pinctrl-0 = <&gyr_int_l>; 520 vdd-supply = <&vcc3v3_s3>; 521 vddio-supply = <&vcc3v3_s3>; 522 }; 523 524 cm32181@10 { 525 compatible = "capella,cm32181"; 526 reg = <0x10>; 527 interrupt-parent = <&gpio4>; 528 interrupts = <RK_PD0 IRQ_TYPE_EDGE_RISING>; 529 pinctrl-names = "default"; 530 pinctrl-0 = <&light_int_l>; 531 vdd-supply = <&vcc3v3_s3>; 532 }; 533 534 fusb302@22 { 535 compatible = "fcs,fusb302"; 536 reg = <0x22>; 537 interrupt-parent = <&gpio1>; 538 interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>; 539 pinctrl-names = "default"; 540 pinctrl-0 = <&chg_cc_int_l>; 541 vbus-supply = <&vbus_typec>; 542 543 typec_con: connector { 544 compatible = "usb-c-connector"; 545 data-role = "host"; 546 label = "USB-C"; 547 op-sink-microwatt = <1000000>; 548 power-role = "dual"; 549 sink-pdos = 550 <PDO_FIXED(5000, 2500, PDO_FIXED_USB_COMM)>; 551 source-pdos = 552 <PDO_FIXED(5000, 1400, PDO_FIXED_USB_COMM)>; 553 try-power-role = "sink"; 554 555 ports { 556 #address-cells = <1>; 557 #size-cells = <0>; 558 559 port@0 { 560 reg = <0>; 561 typec_hs: endpoint { 562 remote-endpoint = <&u2phy0_typec_hs>; 563 }; 564 }; 565 port@1 { 566 reg = <1>; 567 typec_ss: endpoint { 568 remote-endpoint = <&tcphy0_typec_ss>; 569 }; 570 }; 571 port@2 { 572 reg = <2>; 573 typec_dp: endpoint { 574 remote-endpoint = <&tcphy0_typec_dp>; 575 }; 576 }; 577 }; 578 }; 579 }; 580}; 581 582&io_domains { 583 status = "okay"; 584 bt656-supply = <&vcc_3v0>; 585 audio-supply = <&vcca1v8_codec>; 586 sdmmc-supply = <&vcc_sdio>; 587 gpio1830-supply = <&vcc_3v0>; 588}; 589 590&pmu_io_domains { 591 status = "okay"; 592 pmu1830-supply = <&vcc_3v0>; 593}; 594 595&pinctrl { 596 buttons { 597 pwr_btn: pwr-btn { 598 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>; 599 }; 600 }; 601 602 gmac { 603 phy_intb: phy-intb { 604 rockchip,pins = <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>; 605 }; 606 607 phy_rstb: phy-rstb { 608 rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; 609 }; 610 }; 611 612 pmic { 613 cpu_b_sleep: cpu-b-sleep { 614 rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>; 615 }; 616 617 gpu_sleep: gpu-sleep { 618 rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>; 619 }; 620 621 pmic_int_l: pmic-int-l { 622 rockchip,pins = 623 <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>; 624 }; 625 }; 626 627 sd { 628 sdmmc0_pwr_h: sdmmc0-pwr-h { 629 rockchip,pins = 630 <0 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>; 631 }; 632 }; 633 634 usb2 { 635 vcc5v0_host_en: vcc5v0-host-en { 636 rockchip,pins = 637 <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>; 638 }; 639 640 vcc5v0_typec_en: vcc5v0-typec-en { 641 rockchip,pins = 642 <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; 643 }; 644 }; 645 646 sdio-pwrseq { 647 wifi_reg_on_h: wifi-reg-on-h { 648 rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; 649 }; 650 }; 651 652 wifi { 653 wifi_host_wake_l: wifi-host-wake-l { 654 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>; 655 }; 656 }; 657 658 bluetooth { 659 bt_reg_on_h: bt-enable-h { 660 rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; 661 }; 662 663 bt_host_wake_l: bt-host-wake-l { 664 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; 665 }; 666 667 bt_wake_l: bt-wake-l { 668 rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; 669 }; 670 }; 671 672 mpu6500 { 673 gsensor_int_l: gsensor-int-l { 674 rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; 675 }; 676 }; 677 678 lsm6ds3 { 679 gyr_int_l: gyr-int-l { 680 rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; 681 }; 682 }; 683 684 cm32181 { 685 light_int_l: light-int-l { 686 rockchip,pins = <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; 687 }; 688 }; 689 690 fusb302 { 691 chg_cc_int_l: chg-cc-int-l { 692 rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; 693 }; 694 }; 695}; 696 697&pwm0 { 698 status = "okay"; 699}; 700 701&pwm2 { 702 status = "okay"; 703}; 704 705&saradc { 706 vref-supply = <&vcca1v8_s3>; 707 status = "okay"; 708}; 709 710&sdhci { 711 bus-width = <8>; 712 mmc-hs400-1_8v; 713 mmc-hs400-enhanced-strobe; 714 non-removable; 715 status = "okay"; 716}; 717 718&sdio0 { 719 bus-width = <4>; 720 cap-sd-highspeed; 721 cap-sdio-irq; 722 clock-frequency = <50000000>; 723 disable-wp; 724 keep-power-in-suspend; 725 max-frequency = <50000000>; 726 mmc-pwrseq = <&sdio_pwrseq>; 727 non-removable; 728 pinctrl-names = "default"; 729 pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>; 730 sd-uhs-sdr104; 731 #address-cells = <1>; 732 #size-cells = <0>; 733 status = "okay"; 734 735 brcmf: wifi@1 { 736 reg = <1>; 737 compatible = "brcm,bcm4329-fmac"; 738 interrupt-parent = <&gpio0>; 739 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_HIGH>; 740 interrupt-names = "host-wake"; 741 pinctrl-names = "default"; 742 pinctrl-0 = <&wifi_host_wake_l>; 743 }; 744}; 745 746&sdmmc { 747 bus-width = <4>; 748 cap-mmc-highspeed; 749 cap-sd-highspeed; 750 cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>; 751 clock-frequency = <150000000>; 752 disable-wp; 753 max-frequency = <150000000>; 754 pinctrl-names = "default"; 755 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>; 756 vmmc-supply = <&vcc3v0_sd>; 757 vqmmc-supply = <&vcc_sdio>; 758 status = "okay"; 759}; 760 761&tcphy0 { 762 status = "okay"; 763}; 764 765&tcphy0_dp { 766 port { 767 tcphy0_typec_dp: endpoint { 768 remote-endpoint = <&typec_dp>; 769 }; 770 }; 771}; 772 773&tcphy0_usb3 { 774 port { 775 tcphy0_typec_ss: endpoint { 776 remote-endpoint = <&typec_ss>; 777 }; 778 }; 779}; 780 781&tcphy1 { 782 status = "okay"; 783}; 784 785&tsadc { 786 rockchip,hw-tshut-mode = <1>; 787 rockchip,hw-tshut-polarity = <1>; 788 status = "okay"; 789}; 790 791&u2phy0 { 792 status = "okay"; 793 794 u2phy0_otg: otg-port { 795 phy-supply = <&vbus_typec>; 796 status = "okay"; 797 }; 798 799 u2phy0_host: host-port { 800 phy-supply = <&vcc5v0_host>; 801 status = "okay"; 802 }; 803 804 port { 805 u2phy0_typec_hs: endpoint { 806 remote-endpoint = <&typec_hs>; 807 }; 808 }; 809}; 810 811&u2phy1 { 812 status = "okay"; 813 814 u2phy1_otg: otg-port { 815 status = "okay"; 816 }; 817 818 u2phy1_host: host-port { 819 phy-supply = <&vcc5v0_host>; 820 status = "okay"; 821 }; 822}; 823 824&uart0 { 825 pinctrl-names = "default"; 826 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>; 827 status = "okay"; 828 829 bluetooth { 830 compatible = "brcm,bcm43438-bt"; 831 clocks = <&rk808 1>; 832 clock-names = "lpo"; 833 device-wakeup-gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>; 834 host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; 835 shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; 836 pinctrl-names = "default"; 837 pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_reg_on_h>; 838 vbat-supply = <&vcc3v3_sys>; 839 vddio-supply = <&vcc_1v8>; 840 }; 841}; 842 843&uart2 { 844 status = "okay"; 845}; 846 847&usb_host0_ehci { 848 status = "okay"; 849}; 850 851&usb_host0_ohci { 852 status = "okay"; 853}; 854 855&usb_host1_ehci { 856 status = "okay"; 857}; 858 859&usb_host1_ohci { 860 status = "okay"; 861}; 862 863&usbdrd3_0 { 864 status = "okay"; 865}; 866 867&usbdrd_dwc3_0 { 868 status = "okay"; 869 dr_mode = "host"; 870}; 871 872&usbdrd3_1 { 873 status = "okay"; 874}; 875 876&usbdrd_dwc3_1 { 877 status = "okay"; 878 dr_mode = "host"; 879}; 880 881&vopb { 882 status = "okay"; 883}; 884 885&vopb_mmu { 886 status = "okay"; 887}; 888 889&vopl { 890 status = "okay"; 891}; 892 893&vopl_mmu { 894 status = "okay"; 895}; 896