| .. | .. |
|---|
| 16 | 16 | model = "Rockchip RK3568 EVB1 DDR4 V10 Board"; |
|---|
| 17 | 17 | compatible = "rockchip,rk3568-evb1-ddr4-v10", "rockchip,rk3568"; |
|---|
| 18 | 18 | |
|---|
| 19 | | - rk_headset: rk-headset { |
|---|
| 20 | | - compatible = "rockchip_headset"; |
|---|
| 21 | | - headset_gpio = <&gpio0 RK_PD5 GPIO_ACTIVE_LOW>; |
|---|
| 22 | | - spk_ctl_gpio = <&gpio4 RK_PC2 GPIO_ACTIVE_LOW>;//AMP_SD_GPIO4_C2_3V3 |
|---|
| 23 | | - pinctrl-names = "default"; |
|---|
| 24 | | - pinctrl-0 = <&hp_det>; |
|---|
| 25 | | - }; |
|---|
| 26 | | - |
|---|
| 27 | 19 | vcc2v5_sys: vcc2v5-ddr { |
|---|
| 28 | 20 | compatible = "regulator-fixed"; |
|---|
| 29 | 21 | regulator-name = "vcc2v5-sys"; |
|---|
| .. | .. |
|---|
| 34 | 26 | vin-supply = <&vcc3v3_sys>; |
|---|
| 35 | 27 | }; |
|---|
| 36 | 28 | |
|---|
| 29 | + vcc3v3_vga: vcc3v3-vga { |
|---|
| 30 | + compatible = "regulator-fixed"; |
|---|
| 31 | + regulator-name = "vcc3v3_vga"; |
|---|
| 32 | + regulator-always-on; |
|---|
| 33 | + regulator-boot-on; |
|---|
| 34 | + gpio = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>; |
|---|
| 35 | + enable-active-high; |
|---|
| 36 | + vin-supply = <&vcc3v3_sys>; |
|---|
| 37 | + }; |
|---|
| 37 | 38 | |
|---|
| 38 | 39 | pcie30_avdd0v9: pcie30-avdd0v9 { |
|---|
| 39 | 40 | compatible = "regulator-fixed"; |
|---|
| .. | .. |
|---|
| 60 | 61 | regulator-name = "vcc3v3_pcie"; |
|---|
| 61 | 62 | regulator-min-microvolt = <3300000>; |
|---|
| 62 | 63 | regulator-max-microvolt = <3300000>; |
|---|
| 63 | | - regulator-always-on; |
|---|
| 64 | 64 | enable-active-high; |
|---|
| 65 | | - regulator-boot-on; |
|---|
| 66 | 65 | gpio = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>; |
|---|
| 67 | 66 | startup-delay-us = <5000>; |
|---|
| 68 | 67 | vin-supply = <&dc_12v>; |
|---|
| .. | .. |
|---|
| 87 | 86 | enable-active-high; |
|---|
| 88 | 87 | regulator-always-on; |
|---|
| 89 | 88 | regulator-boot-on; |
|---|
| 90 | | - }; |
|---|
| 89 | + }; |
|---|
| 91 | 90 | #endif |
|---|
| 91 | + |
|---|
| 92 | 92 | ndj_io_init { |
|---|
| 93 | 93 | compatible = "nk_io_control"; |
|---|
| 94 | 94 | pinctrl-names = "default"; |
|---|
| .. | .. |
|---|
| 186 | 186 | gpio_function = <1>; |
|---|
| 187 | 187 | }; |
|---|
| 188 | 188 | #endif |
|---|
| 189 | | - }; |
|---|
| 190 | | -#if 0 |
|---|
| 191 | | - nk_io_init { |
|---|
| 192 | | - compatible = "nk_io_control"; |
|---|
| 193 | | -// vcc3_io_en_gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; //VCC3_IO_EN_GPIO0_C4_3V3 |
|---|
| 194 | | - hub_host2_5V_rest_gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; //HUB_RST_GPIO4_D2_3V3 |
|---|
| 195 | | - hub_host3_5v_gpio = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>; //HOST3_EN_GPIO4_B2_1V8 |
|---|
| 196 | | - vcc_5v_io = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3 |
|---|
| 197 | | - vcc_12v_io = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; //VCC12_IO_EN_GPIO0_C7_3V3 |
|---|
| 198 | | - en_4g_gpio = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>; //4G_PWREN_H_GPIO0_C6 |
|---|
| 199 | | - reset_4g_gpio = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; //4G_RST_GPIO01_B2_3V3 |
|---|
| 200 | | - air_mode_4g_gpio = <&gpio1 RK_PB0 GPIO_ACTIVE_HIGH>; //4G_AIR_MODE_GPIO01_B0_3V3 |
|---|
| 201 | | - wake_4g_gpio = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>; //4G_WAKEUP_GPIO01_B1_3V3 |
|---|
| 202 | | - hp_en_gpio = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;//HP_EN_GPIO3_A6_3V3 |
|---|
| 203 | | -// spk_out_gpio = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>;//AMP_SD_GPIO4_C2_3V3 |
|---|
| 204 | | - wifi_power_en_gpio = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8 |
|---|
| 205 | | -// pcie_power_en_gpio = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;//PCIE_PWREN_H_GPIO0_D4 |
|---|
| 206 | | - pinctrl-names = "default"; |
|---|
| 207 | | - pinctrl-0 = <&nk_io_gpio>; |
|---|
| 208 | | - }; |
|---|
| 209 | | -#endif |
|---|
| 210 | | - panel: panel { |
|---|
| 189 | + }; |
|---|
| 190 | + |
|---|
| 191 | + panel: panel { |
|---|
| 211 | 192 | compatible = "simple-panel"; |
|---|
| 212 | 193 | backlight = <&backlight>; |
|---|
| 213 | 194 | power-supply = <&vcc3v3_lcd0_n>; |
|---|
| .. | .. |
|---|
| 311 | 292 | * video_phy0 needs to be enabled |
|---|
| 312 | 293 | * when dsi0 is enabled |
|---|
| 313 | 294 | */ |
|---|
| 314 | | -&video_phy0 { |
|---|
| 315 | | - status = "disabled"; |
|---|
| 316 | | -}; |
|---|
| 317 | | - |
|---|
| 318 | 295 | &dsi0 { |
|---|
| 319 | 296 | status = "disabled"; |
|---|
| 320 | 297 | }; |
|---|
| .. | .. |
|---|
| 335 | 312 | * video_phy1 needs to be enabled |
|---|
| 336 | 313 | * when dsi1 is enabled |
|---|
| 337 | 314 | */ |
|---|
| 338 | | - |
|---|
| 339 | | -&video_phy1 { |
|---|
| 340 | | - status = "okay"; |
|---|
| 341 | | -}; |
|---|
| 342 | 315 | &dsi1 { |
|---|
| 343 | 316 | status = "disabled"; |
|---|
| 344 | 317 | }; |
|---|
| .. | .. |
|---|
| 348 | 321 | }; |
|---|
| 349 | 322 | |
|---|
| 350 | 323 | &dsi1_in_vp1 { |
|---|
| 351 | | - status = "okay"; |
|---|
| 324 | + status = "disabled"; |
|---|
| 352 | 325 | }; |
|---|
| 353 | 326 | |
|---|
| 354 | 327 | &dsi1_panel { |
|---|
| 355 | | - power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3 |
|---|
| 356 | | - vddio-mipi = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; //MIPI_EN_1V8_GPIO3_A4_d_3V3 |
|---|
| 357 | | - reset-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_LOW>; //MIPI_RST_L_GPIO3_C7 |
|---|
| 358 | | - vcc-5v-gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3 |
|---|
| 359 | | - pinctrl-names = "default"; |
|---|
| 360 | | - pinctrl-0 = <&lcd1_rst_gpio>; |
|---|
| 328 | + power-supply = <&vcc3v3_lcd1_n>; |
|---|
| 361 | 329 | }; |
|---|
| 362 | | - |
|---|
| 363 | | -&route_dsi1 { |
|---|
| 364 | | - status = "disabled"; |
|---|
| 365 | | - connect = <&vp1_out_dsi1>; |
|---|
| 366 | | -}; |
|---|
| 367 | | - |
|---|
| 368 | | - |
|---|
| 369 | | -/* |
|---|
| 370 | | -* edp_start |
|---|
| 371 | | -*/ |
|---|
| 372 | 330 | |
|---|
| 373 | 331 | &edp { |
|---|
| 332 | + //hpd-gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>; |
|---|
| 374 | 333 | force-hpd; |
|---|
| 375 | 334 | status = "okay"; |
|---|
| 376 | 335 | ports { |
|---|
| .. | .. |
|---|
| 380 | 339 | remote-endpoint = <&panel_in>; |
|---|
| 381 | 340 | }; |
|---|
| 382 | 341 | }; |
|---|
| 383 | | - }; |
|---|
| 342 | + |
|---|
| 343 | + }; |
|---|
| 384 | 344 | }; |
|---|
| 385 | 345 | |
|---|
| 386 | 346 | &edp_phy { |
|---|
| 387 | | - status = "okay"; |
|---|
| 388 | | - |
|---|
| 347 | + status = "okay"; |
|---|
| 389 | 348 | }; |
|---|
| 390 | 349 | |
|---|
| 391 | 350 | &edp_in_vp0 { |
|---|
| 392 | | - status = "disabled"; |
|---|
| 393 | | -}; |
|---|
| 394 | | - |
|---|
| 395 | | -&edp_in_vp1 { |
|---|
| 396 | | - status = "okay"; |
|---|
| 397 | | - |
|---|
| 398 | | -}; |
|---|
| 399 | | - |
|---|
| 400 | | -&route_edp { |
|---|
| 401 | | - status = "okay"; |
|---|
| 402 | | - connect = <&vp1_out_edp>; |
|---|
| 403 | | -}; |
|---|
| 404 | | - |
|---|
| 405 | | -&route_edp { |
|---|
| 406 | | - status = "okay"; |
|---|
| 407 | | -}; |
|---|
| 408 | | -/* |
|---|
| 409 | | -* edp_end |
|---|
| 410 | | -*/ |
|---|
| 411 | | - |
|---|
| 412 | | -/* |
|---|
| 413 | | -* Hdmi_start |
|---|
| 414 | | -*/ |
|---|
| 415 | | - |
|---|
| 416 | | -&hdmi { |
|---|
| 417 | | - status = "okay"; |
|---|
| 418 | | - rockchip,phy-table = |
|---|
| 419 | | - <92812500 0x8009 0x0000 0x0270>, |
|---|
| 420 | | - <165000000 0x800b 0x0000 0x026d>, |
|---|
| 421 | | - <185625000 0x800b 0x0000 0x01ed>, |
|---|
| 422 | | - <297000000 0x800b 0x0000 0x01ad>, |
|---|
| 423 | | - <594000000 0x8029 0x0000 0x0088>, |
|---|
| 424 | | - <000000000 0x0000 0x0000 0x0000>; |
|---|
| 425 | | -}; |
|---|
| 426 | | - |
|---|
| 427 | | -&route_hdmi { |
|---|
| 428 | | - status = "okay"; |
|---|
| 429 | | - connect = <&vp0_out_hdmi>; |
|---|
| 430 | | -}; |
|---|
| 431 | | - |
|---|
| 432 | | -&hdmi_in_vp0 { |
|---|
| 433 | | - status = "okay"; |
|---|
| 434 | | -}; |
|---|
| 435 | | - |
|---|
| 436 | | -&hdmi_in_vp1 { |
|---|
| 437 | 351 | status = "disabled"; |
|---|
| 438 | 352 | }; |
|---|
| 439 | 353 | |
|---|
| 440 | | -&hdmi_sound { |
|---|
| 354 | +&edp_in_vp1 { |
|---|
| 441 | 355 | status = "okay"; |
|---|
| 442 | 356 | }; |
|---|
| 443 | | - |
|---|
| 444 | | -/* |
|---|
| 445 | | - * Hdmi_END |
|---|
| 446 | | -*/ |
|---|
| 447 | 357 | |
|---|
| 448 | 358 | &gmac0 { |
|---|
| 449 | 359 | phy-mode = "rgmii"; |
|---|
| .. | .. |
|---|
| 503 | 413 | * power-supply should switche to vcc3v3_lcd1_n |
|---|
| 504 | 414 | * when mipi panel is connected to dsi1. |
|---|
| 505 | 415 | */ |
|---|
| 506 | | ->1x { |
|---|
| 507 | | - power-supply = <&vcc3v3_lcd0_n>; |
|---|
| 508 | | -}; |
|---|
| 416 | + |
|---|
| 509 | 417 | |
|---|
| 510 | 418 | &i2c3 { |
|---|
| 511 | 419 | status = "okay"; |
|---|
| .. | .. |
|---|
| 524 | 432 | }; |
|---|
| 525 | 433 | |
|---|
| 526 | 434 | &i2c4 { |
|---|
| 527 | | - status = "okay"; |
|---|
| 435 | + status = "disabled"; |
|---|
| 528 | 436 | gc8034: gc8034@37 { |
|---|
| 529 | 437 | compatible = "galaxycore,gc8034"; |
|---|
| 530 | 438 | status = "okay"; |
|---|
| .. | .. |
|---|
| 570 | 478 | }; |
|---|
| 571 | 479 | }; |
|---|
| 572 | 480 | ov5695: ov5695@36 { |
|---|
| 573 | | - status = "okay"; |
|---|
| 481 | + status = "disabled"; |
|---|
| 574 | 482 | compatible = "ovti,ov5695"; |
|---|
| 575 | 483 | reg = <0x36>; |
|---|
| 576 | 484 | clocks = <&cru CLK_CIF_OUT>; |
|---|
| .. | .. |
|---|
| 593 | 501 | }; |
|---|
| 594 | 502 | }; |
|---|
| 595 | 503 | |
|---|
| 596 | | -&i2c5 { |
|---|
| 597 | | - status = "okay"; |
|---|
| 598 | | - |
|---|
| 599 | | - hym8563: hym8563@51 { |
|---|
| 600 | | - compatible = "haoyu,hym8563"; |
|---|
| 601 | | - reg = <0x51>; |
|---|
| 602 | | - #clock-cells = <0>; |
|---|
| 603 | | - clock-frequency = <32768>; |
|---|
| 604 | | - clock-output-names = "xin32k"; |
|---|
| 605 | | - /* rtc_int is not connected */ |
|---|
| 606 | | - }; |
|---|
| 607 | | -}; |
|---|
| 608 | | - |
|---|
| 609 | 504 | &mdio0 { |
|---|
| 610 | 505 | rgmii_phy0: phy@0 { |
|---|
| 611 | 506 | compatible = "ethernet-phy-ieee802.3-c22"; |
|---|
| .. | .. |
|---|
| 620 | 515 | }; |
|---|
| 621 | 516 | }; |
|---|
| 622 | 517 | |
|---|
| 518 | +&video_phy0 { |
|---|
| 519 | + status = "disabled"; |
|---|
| 520 | +}; |
|---|
| 623 | 521 | |
|---|
| 522 | +&video_phy1 { |
|---|
| 523 | + status = "disabled"; |
|---|
| 524 | +}; |
|---|
| 624 | 525 | |
|---|
| 625 | 526 | &pcie30phy { |
|---|
| 626 | | - status = "okay"; |
|---|
| 527 | + status = "disabled"; |
|---|
| 627 | 528 | }; |
|---|
| 628 | 529 | |
|---|
| 629 | 530 | &pcie2x1 { |
|---|
| .. | .. |
|---|
| 632 | 533 | status = "okay"; |
|---|
| 633 | 534 | }; |
|---|
| 634 | 535 | |
|---|
| 536 | +&pcie3x2 { |
|---|
| 537 | + reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>; |
|---|
| 538 | + vpcie3v3-supply = <&vcc3v3_pcie>; |
|---|
| 539 | + status = "okay"; |
|---|
| 540 | +}; |
|---|
| 541 | + |
|---|
| 635 | 542 | &pinctrl { |
|---|
| 636 | | -// cam { |
|---|
| 637 | | -// camera_pwr: camera-pwr { |
|---|
| 638 | | -// rockchip,pins = |
|---|
| 639 | | -// /* camera power en */ |
|---|
| 640 | | -// <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>; |
|---|
| 641 | | -// }; |
|---|
| 642 | | -// }; |
|---|
| 543 | + |
|---|
| 643 | 544 | headphone { |
|---|
| 644 | 545 | hp_det: hp-det { |
|---|
| 645 | | - rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_down>, |
|---|
| 646 | | - <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>; |
|---|
| 546 | + rockchip,pins = <3 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>; |
|---|
| 647 | 547 | }; |
|---|
| 648 | 548 | }; |
|---|
| 649 | 549 | |
|---|
| 650 | 550 | wireless-wlan { |
|---|
| 651 | 551 | wifi_host_wake_irq: wifi-host-wake-irq { |
|---|
| 652 | | - rockchip,pins = <2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>; |
|---|
| 552 | + rockchip,pins = <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_down>; |
|---|
| 653 | 553 | }; |
|---|
| 654 | 554 | }; |
|---|
| 655 | 555 | |
|---|
| .. | .. |
|---|
| 659 | 559 | }; |
|---|
| 660 | 560 | }; |
|---|
| 661 | 561 | |
|---|
| 662 | | - lcd1 { |
|---|
| 663 | | - lcd1_rst_gpio: lcd1-rst-gpio { |
|---|
| 664 | | - rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>; |
|---|
| 665 | | - }; |
|---|
| 666 | | - }; |
|---|
| 667 | | - |
|---|
| 668 | 562 | nk_io_init{ |
|---|
| 669 | 563 | nk_io_gpio: nk-io-gpio{ |
|---|
| 670 | 564 | rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| .. | .. |
|---|
| 692 | 586 | }; |
|---|
| 693 | 587 | }; |
|---|
| 694 | 588 | |
|---|
| 589 | +&rk809_sound { |
|---|
| 590 | + hp-det-gpio = <&gpio3 RK_PC2 GPIO_ACTIVE_LOW>; |
|---|
| 591 | +}; |
|---|
| 592 | + |
|---|
| 695 | 593 | &rkisp { |
|---|
| 696 | 594 | status = "disabled"; |
|---|
| 697 | 595 | }; |
|---|
| .. | .. |
|---|
| 714 | 612 | }; |
|---|
| 715 | 613 | }; |
|---|
| 716 | 614 | |
|---|
| 615 | +&route_dsi0 { |
|---|
| 616 | + status = "disabled"; |
|---|
| 617 | + connect = <&vp1_out_dsi0>; |
|---|
| 618 | +}; |
|---|
| 717 | 619 | |
|---|
| 718 | 620 | |
|---|
| 719 | 621 | |
|---|
| 622 | +&route_edp { |
|---|
| 623 | + status = "okay"; |
|---|
| 624 | + connect = <&vp1_out_edp>; |
|---|
| 625 | +}; |
|---|
| 720 | 626 | |
|---|
| 721 | 627 | &sata2 { |
|---|
| 722 | 628 | status = "okay"; |
|---|
| 723 | 629 | }; |
|---|
| 724 | 630 | |
|---|
| 725 | 631 | &sdmmc2 { |
|---|
| 726 | | - status = "disabled"; |
|---|
| 727 | | -}; |
|---|
| 728 | | - |
|---|
| 729 | | -&sdmmc1 { |
|---|
| 730 | | - max-frequency = <150000000>; |
|---|
| 731 | | - supports-sdio; |
|---|
| 732 | | - bus-width = <4>; |
|---|
| 733 | | - disable-wp; |
|---|
| 734 | | - cap-sd-highspeed; |
|---|
| 735 | | - cap-sdio-irq; |
|---|
| 736 | | - keep-power-in-suspend; |
|---|
| 737 | | - mmc-pwrseq = <&sdio_pwrseq>; |
|---|
| 738 | | - non-removable; |
|---|
| 739 | | - pinctrl-names = "default"; |
|---|
| 740 | | - pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>; |
|---|
| 741 | | - sd-uhs-sdr104; |
|---|
| 742 | | - status = "okay"; |
|---|
| 632 | + max-frequency = <150000000>; |
|---|
| 633 | + supports-sdio; |
|---|
| 634 | + bus-width = <4>; |
|---|
| 635 | + disable-wp; |
|---|
| 636 | + cap-sd-highspeed; |
|---|
| 637 | + cap-sdio-irq; |
|---|
| 638 | + keep-power-in-suspend; |
|---|
| 639 | + mmc-pwrseq = <&sdio_pwrseq>; |
|---|
| 640 | + non-removable; |
|---|
| 641 | + pinctrl-names = "default"; |
|---|
| 642 | + pinctrl-0 = <&sdmmc2m0_bus4 &sdmmc2m0_cmd &sdmmc2m0_clk>; |
|---|
| 643 | + sd-uhs-sdr104; |
|---|
| 644 | + status = "okay"; |
|---|
| 743 | 645 | }; |
|---|
| 744 | 646 | |
|---|
| 745 | 647 | &spdif_8ch { |
|---|
| .. | .. |
|---|
| 780 | 682 | pinctrl-0 = <&uart1m0_rtsn>; |
|---|
| 781 | 683 | pinctrl-1 = <&uart1_gpios>; |
|---|
| 782 | 684 | BT,reset_gpio = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>; |
|---|
| 783 | | - BT,wake_gpio = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>; |
|---|
| 784 | | - BT,wake_host_irq = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>; |
|---|
| 685 | + BT,wake_gpio = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>; |
|---|
| 686 | + BT,wake_host_irq = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>; |
|---|
| 785 | 687 | status = "okay"; |
|---|
| 786 | 688 | }; |
|---|
| 787 | 689 | |
|---|
| .. | .. |
|---|
| 818 | 720 | &uart9 { |
|---|
| 819 | 721 | status = "okay"; |
|---|
| 820 | 722 | pinctrl-0 = <&uart9m1_xfer>; |
|---|
| 821 | | -}; |
|---|
| 723 | +}; |
|---|