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/pwm/pwm.h> 7#include <dt-bindings/pinctrl/rockchip.h> 8#include <dt-bindings/soc/rockchip,vop2.h> 9#include <dt-bindings/leds/common.h> 10#include "rk3566.dtsi" 11 12/ { 13 aliases { 14 ethernet0 = &gmac1; 15 mmc0 = &sdhci; 16 mmc1 = &sdmmc0; 17 }; 18 19 chosen: chosen { 20 stdout-path = "serial2:1500000n8"; 21 }; 22 23 ext_cam_clk: clock-25000000-cam { 24 compatible = "fixed-clock"; 25 clock-frequency = <25000000>; 26 clock-output-names = "ext_cam_clk"; 27 #clock-cells = <0>; 28 }; 29 30 can_mcp2515_osc: clock-8000000-mcp2515 { 31 compatible = "fixed-clock"; 32 clock-frequency = <8000000>; 33 #clock-cells = <0>; 34 }; 35 36 hdmi-con { 37 compatible = "hdmi-connector"; 38 type = "a"; 39 40 port { 41 hdmi_con_in: endpoint { 42 remote-endpoint = <&hdmi_out_con>; 43 }; 44 }; 45 }; 46 47 leds: leds { 48 compatible = "gpio-leds"; 49 50 led-0 { 51 color = <LED_COLOR_ID_BLUE>; 52 function = LED_FUNCTION_POWER; 53 gpios = <&gpio4 RK_PA1 GPIO_ACTIVE_LOW>; 54 linux,default-trigger = "default-on"; 55 pinctrl-names = "default"; 56 pinctrl-0 =<&blue_led>; 57 }; 58 59 led-1 { 60 color = <LED_COLOR_ID_GREEN>; 61 function = LED_FUNCTION_HEARTBEAT; 62 gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_LOW>; 63 linux,default-trigger = "heartbeat"; 64 pinctrl-names = "default"; 65 pinctrl-0 =<&heartbeat_led>; 66 }; 67 }; 68 69 fan: pwm-fan { 70 compatible = "pwm-fan"; 71 #cooling-cells = <2>; 72 cooling-levels = <0 50 100 150 200 255>; 73 pwms = <&pwm7 0 50000 0>; 74 }; 75 76 rk809-sound { 77 compatible = "simple-audio-card"; 78 simple-audio-card,format = "i2s"; 79 simple-audio-card,name = "Analog RK809"; 80 simple-audio-card,mclk-fs = <256>; 81 82 simple-audio-card,cpu { 83 sound-dai = <&i2s1_8ch>; 84 }; 85 86 simple-audio-card,codec { 87 sound-dai = <&rk809>; 88 }; 89 }; 90 91 sdio_pwrseq: sdio-pwrseq { 92 compatible = "mmc-pwrseq-simple"; 93 clocks = <&rk809 1>; 94 clock-names = "ext_clock"; 95 pinctrl-names = "default"; 96 pinctrl-0 = <&wifi_enable_h>; 97 post-power-on-delay-ms = <200>; 98 reset-gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_LOW>; 99 }; 100 101 vbus: regulator-vbus { 102 compatible = "regulator-fixed"; 103 regulator-name = "vbus"; 104 regulator-always-on; 105 regulator-boot-on; 106 regulator-min-microvolt = <5000000>; 107 regulator-max-microvolt = <5000000>; 108 }; 109 110 vcc12v_dcin: regulator-vcc12v-dcin { 111 compatible = "regulator-fixed"; 112 regulator-name = "vcc12v_dcin"; 113 regulator-always-on; 114 regulator-boot-on; 115 regulator-min-microvolt = <12000000>; 116 regulator-max-microvolt = <12000000>; 117 }; 118 119 vcc3v3_pcie: regulator-vcc3v3-pcie { 120 compatible = "regulator-fixed"; 121 regulator-name = "vcc3v3_pcie"; 122 enable-active-high; 123 gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; 124 pinctrl-names = "default"; 125 pinctrl-0 = <&pcie_drv>; 126 regulator-always-on; 127 regulator-boot-on; 128 regulator-min-microvolt = <3300000>; 129 regulator-max-microvolt = <3300000>; 130 vin-supply = <&vcc12v_dcin>; 131 }; 132 133 vcc3v3_sys: regulator-vcc3v3-sys { 134 compatible = "regulator-fixed"; 135 regulator-name = "vcc3v3_sys"; 136 regulator-always-on; 137 regulator-boot-on; 138 regulator-min-microvolt = <3300000>; 139 regulator-max-microvolt = <3300000>; 140 vin-supply = <&vbus>; 141 }; 142 143 vcc5v0_host: regulator-vcc5v0-host { 144 compatible = "regulator-fixed"; 145 enable-active-high; 146 gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>; 147 pinctrl-names = "default"; 148 pinctrl-0 = <&vcc5v0_host_en>; 149 regulator-name = "vcc5v0_host3"; 150 regulator-always-on; 151 regulator-min-microvolt = <5000000>; 152 regulator-max-microvolt = <5000000>; 153 }; 154 155 vcc5v0_otg: regulator-vcc5v0-otg { 156 compatible = "regulator-fixed"; 157 enable-active-high; 158 gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>; 159 pinctrl-names = "default"; 160 pinctrl-0 = <&vcc5v0_otg_en>; 161 regulator-name = "vcc5v0_otg3"; 162 regulator-always-on; 163 regulator-min-microvolt = <5000000>; 164 regulator-max-microvolt = <5000000>; 165 }; 166 167 vcc5v0_sys: regulator-vcc5v0-sys { 168 compatible = "regulator-fixed"; 169 regulator-name = "vcc5v0_sys"; 170 regulator-always-on; 171 regulator-boot-on; 172 regulator-min-microvolt = <5000000>; 173 regulator-max-microvolt = <5000000>; 174 vin-supply = <&vbus>; 175 }; 176 177 vcc5v0_usb: regulator-vcc5v0-usb { 178 compatible = "regulator-fixed"; 179 regulator-name = "vcc5v0_usb"; 180 regulator-always-on; 181 regulator-boot-on; 182 regulator-min-microvolt = <5000000>; 183 regulator-max-microvolt = <5000000>; 184 vin-supply = <&vbus>; 185 }; 186 187 vcc5v0_usb2b: regulator-vcc5v0-usb2b { 188 compatible = "regulator-fixed"; 189 enable-active-high; 190 gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; 191 pinctrl-names = "default"; 192 pinctrl-0 = <&vcc5v0_usb2b_en>; 193 regulator-name = "vcc5v0_usb2b"; 194 regulator-always-on; 195 regulator-min-microvolt = <5000000>; 196 regulator-max-microvolt = <5000000>; 197 }; 198 199 vcc5v0_usb2t: regulator-vcc5v0-usb2t { 200 compatible = "regulator-fixed"; 201 enable-active-high; 202 gpios = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>; 203 pinctrl-names = "default"; 204 pinctrl-0 = <&vcc5v0_usb2t_en>; 205 regulator-name = "vcc5v0_usb2t"; 206 regulator-always-on; 207 regulator-min-microvolt = <5000000>; 208 regulator-max-microvolt = <5000000>; 209 }; 210 211 vcc_5v: regulator-vcc-5v { 212 compatible = "regulator-fixed"; 213 regulator-name = "vcc_5v"; 214 regulator-always-on; 215 regulator-boot-on; 216 regulator-min-microvolt = <5000000>; 217 regulator-max-microvolt = <5000000>; 218 vin-supply = <&vcc12v_dcin>; 219 }; 220 221 vcc_sd: regulator-vcc-sd { 222 compatible = "regulator-fixed"; 223 regulator-max-microvolt = <3300000>; 224 regulator-min-microvolt = <3300000>; 225 regulator-name = "vcc_sd"; 226 vin-supply = <&vcc3v3_sys>; 227 }; 228}; 229 230&combphy1 { 231 status = "okay"; 232}; 233 234&combphy2 { 235 status = "okay"; 236}; 237 238&cpu0 { 239 cpu-supply = <&vdd_cpu>; 240}; 241 242&cpu1 { 243 cpu-supply = <&vdd_cpu>; 244}; 245 246&cpu2 { 247 cpu-supply = <&vdd_cpu>; 248}; 249 250&cpu3 { 251 cpu-supply = <&vdd_cpu>; 252}; 253 254&gmac1 { 255 assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>; 256 assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&cru CLK_MAC1_2TOP>; 257 assigned-clock-rates = <0>, <125000000>; 258 clock_in_out = "input"; 259 phy-handle = <&rgmii_phy0>; 260 phy-mode = "rgmii-id"; 261 pinctrl-names = "default"; 262 pinctrl-0 = <&gmac1m0_miim 263 &gmac1m0_tx_bus2 264 &gmac1m0_rx_bus2 265 &gmac1m0_rgmii_clk 266 &gmac1m0_clkinout 267 &gmac1m0_rgmii_bus>; 268 status = "okay"; 269}; 270 271&mdio1 { 272 rgmii_phy0: phy@0 { 273 compatible = "ethernet-phy-ieee802.3-c22"; 274 reset-delay-us = <20000>; 275 reset-gpios = <&gpio0 RK_PC5 GPIO_ACTIVE_LOW>; 276 reset-post-delay-us = <100000>; 277 reg = <0x0>; 278 }; 279}; 280 281&gpu { 282 mali-supply = <&vdd_gpu>; 283 status = "okay"; 284}; 285 286&hdmi { 287 avdd-0v9-supply = <&vdda0v9_image>; 288 avdd-1v8-supply = <&vcca1v8_image>; 289 status = "okay"; 290}; 291 292&hdmi_in { 293 hdmi_in_vp0: endpoint { 294 remote-endpoint = <&vp0_out_hdmi>; 295 }; 296}; 297 298&hdmi_out { 299 hdmi_out_con: endpoint { 300 remote-endpoint = <&hdmi_con_in>; 301 }; 302}; 303 304&hdmi_sound { 305 status = "okay"; 306}; 307 308&i2c0 { 309 status = "okay"; 310 311 vdd_cpu: regulator@1c { 312 compatible = "tcs,tcs4525"; 313 reg = <0x1c>; 314 regulator-name = "vdd_cpu"; 315 regulator-min-microvolt = <712500>; 316 regulator-max-microvolt = <1390000>; 317 regulator-initial-mode = <1>; 318 regulator-ramp-delay = <2300>; 319 regulator-boot-on; 320 regulator-always-on; 321 vin-supply = <&vcc5v0_sys>; 322 fcs,suspend-voltage-selector = <1>; 323 324 regulator-state-mem { 325 regulator-off-in-suspend; 326 }; 327 }; 328 329 rk809: pmic@20 { 330 compatible = "rockchip,rk809"; 331 reg = <0x20>; 332 interrupt-parent = <&gpio0>; 333 interrupts = <3 IRQ_TYPE_LEVEL_LOW>; 334 assigned-clocks = <&cru I2S1_MCLKOUT_TX>; 335 assigned-clock-parents = <&cru CLK_I2S1_8CH_TX>; 336 #clock-cells = <1>; 337 clock-names = "mclk"; 338 clocks = <&cru I2S1_MCLKOUT_TX>; 339 pinctrl-names = "default", "pmic-sleep", 340 "pmic-power-off", "pmic-reset"; 341 pinctrl-0 = <&pmic_int>, <&i2s1m0_mclk>; 342 #sound-dai-cells = <0>; 343 system-power-controller; 344 wakeup-source; 345 346 vcc1-supply = <&vcc3v3_sys>; 347 vcc2-supply = <&vcc3v3_sys>; 348 vcc3-supply = <&vcc3v3_sys>; 349 vcc4-supply = <&vcc3v3_sys>; 350 vcc5-supply = <&vcc3v3_sys>; 351 vcc6-supply = <&vcc3v3_sys>; 352 vcc7-supply = <&vcc3v3_sys>; 353 vcc8-supply = <&vcc3v3_sys>; 354 vcc9-supply = <&vcc3v3_sys>; 355 356 regulators { 357 vdd_logic: DCDC_REG1 { 358 regulator-always-on; 359 regulator-boot-on; 360 regulator-min-microvolt = <500000>; 361 regulator-max-microvolt = <1350000>; 362 regulator-ramp-delay = <6001>; 363 regulator-initial-mode = <0x2>; 364 regulator-name = "vdd_logic"; 365 366 regulator-state-mem { 367 regulator-off-in-suspend; 368 }; 369 }; 370 371 vdd_gpu: DCDC_REG2 { 372 regulator-always-on; 373 regulator-boot-on; 374 regulator-min-microvolt = <500000>; 375 regulator-max-microvolt = <1350000>; 376 regulator-ramp-delay = <6001>; 377 regulator-initial-mode = <0x2>; 378 regulator-name = "vdd_gpu"; 379 380 regulator-state-mem { 381 regulator-off-in-suspend; 382 }; 383 }; 384 385 vcc_ddr: DCDC_REG3 { 386 regulator-always-on; 387 regulator-boot-on; 388 regulator-initial-mode = <0x2>; 389 regulator-name = "vcc_ddr"; 390 391 regulator-state-mem { 392 regulator-on-in-suspend; 393 }; 394 }; 395 396 vdd_npu: DCDC_REG4 { 397 regulator-always-on; 398 regulator-boot-on; 399 regulator-min-microvolt = <500000>; 400 regulator-max-microvolt = <1350000>; 401 regulator-ramp-delay = <6001>; 402 regulator-initial-mode = <0x2>; 403 regulator-name = "vdd_npu"; 404 405 regulator-state-mem { 406 regulator-off-in-suspend; 407 }; 408 }; 409 410 vdda0v9_image: LDO_REG1 { 411 regulator-boot-on; 412 regulator-always-on; 413 regulator-min-microvolt = <900000>; 414 regulator-max-microvolt = <900000>; 415 regulator-name = "vdda0v9_image"; 416 417 regulator-state-mem { 418 regulator-off-in-suspend; 419 }; 420 }; 421 422 vdda_0v9: LDO_REG2 { 423 regulator-always-on; 424 regulator-boot-on; 425 regulator-min-microvolt = <900000>; 426 regulator-max-microvolt = <900000>; 427 regulator-name = "vdda_0v9"; 428 429 regulator-state-mem { 430 regulator-off-in-suspend; 431 }; 432 }; 433 434 vdda0v9_pmu: LDO_REG3 { 435 regulator-always-on; 436 regulator-boot-on; 437 regulator-min-microvolt = <900000>; 438 regulator-max-microvolt = <900000>; 439 regulator-name = "vdda0v9_pmu"; 440 441 regulator-state-mem { 442 regulator-on-in-suspend; 443 regulator-suspend-microvolt = <900000>; 444 }; 445 }; 446 447 vccio_acodec: LDO_REG4 { 448 regulator-always-on; 449 regulator-boot-on; 450 regulator-min-microvolt = <3000000>; 451 regulator-max-microvolt = <3000000>; 452 regulator-name = "vccio_acodec"; 453 454 regulator-state-mem { 455 regulator-off-in-suspend; 456 }; 457 }; 458 459 vccio_sd: LDO_REG5 { 460 regulator-always-on; 461 regulator-boot-on; 462 regulator-min-microvolt = <1800000>; 463 regulator-max-microvolt = <3300000>; 464 regulator-name = "vccio_sd"; 465 466 regulator-state-mem { 467 regulator-off-in-suspend; 468 }; 469 }; 470 471 vcc3v3_pmu: LDO_REG6 { 472 regulator-always-on; 473 regulator-boot-on; 474 regulator-min-microvolt = <3300000>; 475 regulator-max-microvolt = <3300000>; 476 regulator-name = "vcc3v3_pmu"; 477 478 regulator-state-mem { 479 regulator-on-in-suspend; 480 regulator-suspend-microvolt = <3300000>; 481 }; 482 }; 483 484 vcca_1v8: LDO_REG7 { 485 regulator-always-on; 486 regulator-boot-on; 487 regulator-min-microvolt = <1800000>; 488 regulator-max-microvolt = <1800000>; 489 regulator-name = "vcca_1v8"; 490 491 regulator-state-mem { 492 regulator-off-in-suspend; 493 }; 494 }; 495 496 vcca1v8_pmu: LDO_REG8 { 497 regulator-always-on; 498 regulator-boot-on; 499 regulator-min-microvolt = <1800000>; 500 regulator-max-microvolt = <1800000>; 501 regulator-name = "vcca1v8_pmu"; 502 503 regulator-state-mem { 504 regulator-on-in-suspend; 505 regulator-suspend-microvolt = <1800000>; 506 }; 507 }; 508 509 vcca1v8_image: LDO_REG9 { 510 regulator-always-on; 511 regulator-boot-on; 512 regulator-min-microvolt = <1800000>; 513 regulator-max-microvolt = <1800000>; 514 regulator-name = "vcca1v8_image"; 515 516 regulator-state-mem { 517 regulator-off-in-suspend; 518 }; 519 }; 520 521 vcc_1v8: DCDC_REG5 { 522 regulator-always-on; 523 regulator-boot-on; 524 regulator-min-microvolt = <1800000>; 525 regulator-max-microvolt = <1800000>; 526 regulator-name = "vcc_1v8"; 527 528 regulator-state-mem { 529 regulator-off-in-suspend; 530 }; 531 }; 532 533 vcc_3v3: SWITCH_REG1 { 534 regulator-always-on; 535 regulator-boot-on; 536 regulator-name = "vcc_3v3"; 537 538 regulator-state-mem { 539 regulator-off-in-suspend; 540 }; 541 }; 542 543 vcc3v3_sd: SWITCH_REG2 { 544 regulator-always-on; 545 regulator-boot-on; 546 regulator-name = "vcc3v3_sd"; 547 548 regulator-state-mem { 549 regulator-off-in-suspend; 550 }; 551 }; 552 }; 553 554 codec { 555 rockchip,mic-in-differential; 556 }; 557 }; 558}; 559 560&i2c2 { 561 pinctrl-0 = <&i2c2m1_xfer>; 562}; 563 564&i2c3 { 565 status = "okay"; 566 567 tft_tp: touchscreen@48 { 568 compatible = "ti,tsc2007"; 569 reg = <0x48>; 570 status = "okay"; 571 ti,x-plate-ohms = <660>; 572 ti,rt-thr = <3000>; 573 ti,fuzzx = <32>; 574 ti,fuzzy = <16>; 575 }; 576}; 577 578&i2s0_8ch { 579 status = "okay"; 580}; 581 582&i2s1_8ch { 583 pinctrl-names = "default"; 584 pinctrl-0 = <&i2s1m0_sclktx &i2s1m0_lrcktx &i2s1m0_sdi0 &i2s1m0_sdo0>; 585 rockchip,trcm-sync-tx-only; 586 status = "okay"; 587}; 588 589&spi1 { 590 pinctrl-names = "default"; 591 pinctrl-0 = <&spi1m1_cs0 &spi1m1_pins>; 592 593 can_mcp2515: can@0 { 594 compatible = "microchip,mcp2515"; 595 reg = <0x00>; 596 clocks = <&can_mcp2515_osc>; 597 interrupt-parent = <&gpio4>; 598 interrupts = <3 IRQ_TYPE_LEVEL_LOW>; 599 pinctrl-names = "default"; 600 pinctrl-0 = <&mcp2515_int_pin>; 601 spi-max-frequency = <10000000>; 602 vdd-supply = <&vcc3v3_sys>; 603 xceiver-supply = <&vcc3v3_sys>; 604 }; 605}; 606 607&spi3 { 608 pinctrl-names = "default"; 609 pinctrl-0 = <&spi3m1_cs0 &spi3m1_pins>; 610}; 611 612&pcie2x1 { 613 pinctrl-names = "default"; 614 pinctrl-0 = <&pcie_reset_h>; 615 reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; 616 vpcie3v3-supply = <&vcc3v3_pcie>; 617 status = "okay"; 618}; 619 620&pinctrl { 621 bt { 622 bt_enable: bt-enable-h { 623 rockchip,pins = <2 RK_PB7 RK_FUNC_GPIO &pcfg_pull_down>; 624 }; 625 626 bt_host_wake: bt-host-wake-l { 627 rockchip,pins = <2 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>; 628 }; 629 630 bt_wake: bt-wake-l { 631 rockchip,pins = <2 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>; 632 }; 633 }; 634 635 pcie { 636 pcie_drv: pcie-drv { 637 rockchip,pins = <4 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; 638 }; 639 640 pcie_reset_h: pcie-reset-h { 641 rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; 642 }; 643 }; 644 645 pmic { 646 pmic_int: pmic-int { 647 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; 648 }; 649 }; 650 651 sdio-pwrseq { 652 wifi_enable_h: wifi-enable-h { 653 rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>; 654 }; 655 656 wifi_host_wake: wifi-host-wake-l { 657 rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_down>; 658 }; 659 }; 660 661 usb { 662 vcc5v0_host_en: vcc5v0-host-en { 663 rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>; 664 }; 665 666 vcc5v0_otg_en: vcc5v0-otg-en { 667 rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; 668 }; 669 670 vcc5v0_usb2t_en: vcc5v0-usb2t-en { 671 rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; 672 }; 673 674 vcc5v0_usb2b_en: vcc5v0-usb2b-en { 675 rockchip,pins = <4 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>; 676 }; 677 }; 678 679 work-led { 680 heartbeat_led: led-heartbeat { 681 rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; 682 }; 683 684 blue_led: led-blue { 685 rockchip,pins = <4 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>; 686 }; 687 }; 688 689 mcp2515 { 690 mcp2515_int_pin: mcp2515-int-pin { 691 rockchip,pins = <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; 692 }; 693 }; 694}; 695 696&pmu_io_domains { 697 pmuio1-supply = <&vcc3v3_pmu>; 698 pmuio2-supply = <&vcc3v3_pmu>; 699 vccio1-supply = <&vcc_3v3>; 700 vccio2-supply = <&vcc_1v8>; 701 vccio3-supply = <&vccio_sd>; 702 vccio4-supply = <&vcc_1v8>; 703 vccio5-supply = <&vcc_3v3>; 704 vccio6-supply = <&vcc_3v3>; 705 vccio7-supply = <&vcc_3v3>; 706 status = "okay"; 707}; 708 709&pwm0 { 710 pinctrl-names = "default"; 711 pinctrl-0 = <&pwm0m1_pins>; 712}; 713 714&pwm12 { 715 pinctrl-names = "default"; 716 pinctrl-0 = <&pwm12m1_pins>; 717}; 718 719&pwm13 { 720 pinctrl-names = "default"; 721 pinctrl-0 = <&pwm13m1_pins>; 722}; 723 724&pwm14 { 725 pinctrl-names = "default"; 726 pinctrl-0 = <&pwm14m1_pins>; 727}; 728 729&pwm15 { 730 pinctrl-names = "default"; 731 pinctrl-0 = <&pwm15m1_pins>; 732}; 733 734&saradc { 735 vref-supply = <&vcca_1v8>; 736 status = "okay"; 737}; 738 739&sdhci { 740 bus-width = <8>; 741 max-frequency = <200000000>; 742 non-removable; 743 pinctrl-names = "default"; 744 pinctrl-0 = <&emmc_bus8 &emmc_clk &emmc_cmd>; 745 status = "okay"; 746}; 747 748&sdmmc0 { 749 max-frequency = <150000000>; 750 bus-width = <4>; 751 cap-mmc-highspeed; 752 cap-sd-highspeed; 753 disable-wp; 754 pinctrl-names = "default"; 755 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det>; 756 vmmc-supply = <&vcc_sd>; 757 vqmmc-supply = <&vccio_sd>; 758 status = "okay"; 759}; 760 761&sdmmc1 { 762 /* WiFi & BT combo module AMPAK AP6256 */ 763 #address-cells = <1>; 764 #size-cells = <0>; 765 bus-width = <4>; 766 cap-sd-highspeed; 767 cap-sdio-irq; 768 disable-wp; 769 keep-power-in-suspend; 770 max-frequency = <150000000>; 771 mmc-pwrseq = <&sdio_pwrseq>; 772 non-removable; 773 pinctrl-names = "default"; 774 pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>; 775 rockchip,default-sample-phase = <90>; 776 status = "okay"; 777 778 sdio-wifi@1 { 779 compatible = "brcm,bcm4329-fmac"; 780 reg = <1>; 781 interrupt-parent = <&gpio2>; 782 interrupts = <9 IRQ_TYPE_LEVEL_HIGH>; 783 interrupt-names = "host-wake"; 784 pinctrl-names = "default"; 785 pinctrl-0 = <&wifi_host_wake>; 786 brcm,drive-strength = <10>; 787 }; 788}; 789 790&sfc { 791 #address-cells = <1>; 792 #size-cells = <0>; 793 status = "okay"; 794}; 795 796&tsadc { 797 status = "okay"; 798}; 799 800&uart1 { 801 dma-names = "tx","rx"; 802 pinctrl-names = "default"; 803 pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn &uart1m0_rtsn>; 804 uart-has-rtscts; 805 status = "okay"; 806 807 bluetooth { 808 compatible = "brcm,bcm4345c5"; 809 clocks = <&rk809 1>; 810 clock-names = "lpo"; 811 device-wakeup-gpios = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>; 812 host-wakeup-gpios = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>; 813 shutdown-gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>; 814 pinctrl-names = "default"; 815 pinctrl-0 = <&bt_host_wake &bt_wake &bt_enable>; 816 vbat-supply = <&vcc3v3_sys>; 817 vddio-supply = <&vcca1v8_pmu>; 818 }; 819}; 820 821&uart2 { 822 status = "okay"; 823}; 824 825&uart5 { 826 pinctrl-names = "default"; 827 pinctrl-0 = <&uart5m1_xfer>; 828}; 829 830&uart7 { 831 pinctrl-names = "default"; 832 pinctrl-0 = <&uart7m2_xfer>; 833}; 834 835&usb2phy0 { 836 status = "okay"; 837}; 838 839&usb2phy0_host { 840 phy-supply = <&vcc5v0_host>; 841 status = "okay"; 842}; 843 844&usb2phy0_otg { 845 phy-supply = <&vcc5v0_otg>; 846 status = "okay"; 847}; 848 849&usb2phy1 { 850 status = "okay"; 851}; 852 853&usb2phy1_host { 854 phy-supply = <&vcc5v0_usb2t>; 855 status = "okay"; 856}; 857 858&usb2phy1_otg { 859 phy-supply = <&vcc5v0_usb2b>; 860 status = "okay"; 861}; 862 863&usb_host0_ehci { 864 status = "okay"; 865}; 866 867&usb_host0_ohci { 868 status = "okay"; 869}; 870 871&usb_host0_xhci { 872 dr_mode = "host"; 873 extcon = <&usb2phy0>; 874 status = "okay"; 875}; 876 877&usb_host1_ehci { 878 status = "okay"; 879}; 880 881&usb_host1_ohci { 882 status = "okay"; 883}; 884 885&usb_host1_xhci { 886 status = "okay"; 887}; 888 889&vop { 890 assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>; 891 assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>; 892 status = "okay"; 893}; 894 895&vop_mmu { 896 status = "okay"; 897}; 898 899&vp0 { 900 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { 901 reg = <ROCKCHIP_VOP2_EP_HDMI0>; 902 remote-endpoint = <&hdmi_in_vp0>; 903 }; 904}; 905