| .. | .. |
|---|
| 89 | 89 | regulator-boot-on; |
|---|
| 90 | 90 | }; |
|---|
| 91 | 91 | #endif |
|---|
| 92 | + |
|---|
| 93 | +#if 0 |
|---|
| 94 | + leds: leds { |
|---|
| 95 | + compatible = "gpio-leds"; |
|---|
| 96 | + sig_led: sig_led { |
|---|
| 97 | + gpios = <&gpio4 RK_PC4 GPIO_ACTIVE_HIGH>; |
|---|
| 98 | + default-state = "on"; |
|---|
| 99 | + }; |
|---|
| 100 | + }; |
|---|
| 101 | + |
|---|
| 102 | + leds: leds { |
|---|
| 103 | + compatible = "gpio-leds"; |
|---|
| 104 | + err_led: err_led { |
|---|
| 105 | + gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; |
|---|
| 106 | + default-state = "on"; |
|---|
| 107 | + }; |
|---|
| 108 | + }; |
|---|
| 109 | +#endif |
|---|
| 110 | + |
|---|
| 92 | 111 | ndj_io_init { |
|---|
| 93 | 112 | compatible = "nk_io_control"; |
|---|
| 94 | 113 | pinctrl-names = "default"; |
|---|
| .. | .. |
|---|
| 106 | 125 | gpio_function = <0>; |
|---|
| 107 | 126 | }; |
|---|
| 108 | 127 | |
|---|
| 109 | | - hub_host2_rst { |
|---|
| 110 | | - gpio_num = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; //HUB_RST_GPIO4_D2_3V3 |
|---|
| 128 | + vcc_3.3v { |
|---|
| 129 | + gpio_num = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; //VCC3_IO_EN_GPIO0_C4_3V3 |
|---|
| 130 | + gpio_function = <0>; |
|---|
| 131 | + }; |
|---|
| 132 | + |
|---|
| 133 | + ax88772_rst { |
|---|
| 134 | + gpio_num = <&gpio3 RK_PB5 GPIO_ACTIVE_HIGH>; //AX88772_RST_GPIO3_B5_3V3 |
|---|
| 111 | 135 | gpio_function = <3>; |
|---|
| 112 | 136 | }; |
|---|
| 113 | 137 | |
|---|
| 138 | + ax88631_rst { |
|---|
| 139 | + gpio_num = <&gpio3 RK_PB6 GPIO_ACTIVE_HIGH>; //AX88772_RST_GPIO3_B6_3V3 |
|---|
| 140 | + gpio_function = <3>; |
|---|
| 141 | + }; |
|---|
| 142 | +/* |
|---|
| 114 | 143 | hub_host3 { |
|---|
| 115 | 144 | gpio_num = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>; //HOST3_EN_GPIO4_B2_1V8 |
|---|
| 116 | 145 | gpio_function = <0>; |
|---|
| 117 | 146 | }; |
|---|
| 118 | | - |
|---|
| 147 | +*/ |
|---|
| 119 | 148 | wake_4g { |
|---|
| 120 | 149 | gpio_num = <&gpio1 RK_PB1 GPIO_ACTIVE_LOW>; //4G_WAKEUP_GPIO01_B1_3V3 |
|---|
| 121 | 150 | gpio_function = <0>; |
|---|
| .. | .. |
|---|
| 136 | 165 | gpio_function = <0>; |
|---|
| 137 | 166 | }; |
|---|
| 138 | 167 | |
|---|
| 139 | | - hp_en { |
|---|
| 140 | | - gpio_num = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;//HP_EN_GPIO3_A6_3V3 |
|---|
| 141 | | - gpio_function = <0>; |
|---|
| 142 | | - }; |
|---|
| 168 | + //gpio99 { |
|---|
| 169 | + // gpio_num = <&gpio3 RK_PA3 GPIO_ACTIVE_LOW>;//HP_EN_GPIO3_A6_3V3 |
|---|
| 170 | + // gpio_function = <1>; |
|---|
| 171 | + //}; |
|---|
| 143 | 172 | |
|---|
| 144 | 173 | wifi_power_en { |
|---|
| 145 | 174 | gpio_num = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8 |
|---|
| 146 | 175 | gpio_function = <0>; |
|---|
| 147 | 176 | }; |
|---|
| 148 | | - |
|---|
| 177 | + #if 0 |
|---|
| 149 | 178 | do1 { |
|---|
| 150 | 179 | gpio_num = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>; |
|---|
| 151 | 180 | gpio_function = <0>; |
|---|
| .. | .. |
|---|
| 185 | 214 | gpio_num = <&gpio2 RK_PD5 GPIO_ACTIVE_HIGH>; |
|---|
| 186 | 215 | gpio_function = <1>; |
|---|
| 187 | 216 | }; |
|---|
| 217 | + #endif |
|---|
| 188 | 218 | }; |
|---|
| 189 | 219 | #if 0 |
|---|
| 190 | 220 | nk_io_init { |
|---|
| .. | .. |
|---|
| 225 | 255 | nodka-lvds = <15>; |
|---|
| 226 | 256 | |
|---|
| 227 | 257 | display-timings { |
|---|
| 228 | | - native-mode = <&timing0>; |
|---|
| 229 | | - timing0: timing0 { |
|---|
| 258 | + native-mode = <&timing>; |
|---|
| 259 | + timing: timing { |
|---|
| 230 | 260 | clock-frequency = <72500000>; |
|---|
| 231 | 261 | hactive = <1280>; |
|---|
| 232 | 262 | vactive = <800>; |
|---|
| .. | .. |
|---|
| 243 | 273 | }; |
|---|
| 244 | 274 | }; |
|---|
| 245 | 275 | ports { |
|---|
| 246 | | - panel_in: endpoint { |
|---|
| 247 | | - remote-endpoint = <&edp_out>; |
|---|
| 276 | + panel_in_lvds: endpoint { |
|---|
| 277 | + remote-endpoint = <&lvds_out>; |
|---|
| 248 | 278 | }; |
|---|
| 249 | 279 | }; |
|---|
| 250 | 280 | }; |
|---|
| .. | .. |
|---|
| 336 | 366 | */ |
|---|
| 337 | 367 | |
|---|
| 338 | 368 | &video_phy1 { |
|---|
| 339 | | - status = "okay"; |
|---|
| 369 | + status = "disabled"; |
|---|
| 340 | 370 | }; |
|---|
| 341 | 371 | &dsi1 { |
|---|
| 342 | 372 | status = "disabled"; |
|---|
| .. | .. |
|---|
| 347 | 377 | }; |
|---|
| 348 | 378 | |
|---|
| 349 | 379 | &dsi1_in_vp1 { |
|---|
| 350 | | - status = "okay"; |
|---|
| 380 | + status = "disabled"; |
|---|
| 351 | 381 | }; |
|---|
| 352 | 382 | |
|---|
| 353 | 383 | &dsi1_panel { |
|---|
| 354 | | - power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3 |
|---|
| 384 | +// power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3 |
|---|
| 355 | 385 | vddio-mipi = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; //MIPI_EN_1V8_GPIO3_A4_d_3V3 |
|---|
| 356 | 386 | reset-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_LOW>; //MIPI_RST_L_GPIO3_C7 |
|---|
| 357 | 387 | vcc-5v-gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3 |
|---|
| .. | .. |
|---|
| 371 | 401 | |
|---|
| 372 | 402 | &edp { |
|---|
| 373 | 403 | force-hpd; |
|---|
| 374 | | - status = "okay"; |
|---|
| 375 | | - ports { |
|---|
| 376 | | - port@1 { |
|---|
| 377 | | - reg = <1>; |
|---|
| 378 | | - edp_out: endpoint { |
|---|
| 379 | | - remote-endpoint = <&panel_in>; |
|---|
| 380 | | - }; |
|---|
| 381 | | - }; |
|---|
| 382 | | - }; |
|---|
| 404 | + status = "disabled"; |
|---|
| 383 | 405 | }; |
|---|
| 384 | 406 | |
|---|
| 385 | 407 | &edp_phy { |
|---|
| 386 | | - status = "okay"; |
|---|
| 387 | | - |
|---|
| 408 | + status = "disabled"; |
|---|
| 388 | 409 | }; |
|---|
| 389 | 410 | |
|---|
| 390 | 411 | &edp_in_vp0 { |
|---|
| .. | .. |
|---|
| 392 | 413 | }; |
|---|
| 393 | 414 | |
|---|
| 394 | 415 | &edp_in_vp1 { |
|---|
| 395 | | - status = "okay"; |
|---|
| 416 | + status = "disabled"; |
|---|
| 396 | 417 | |
|---|
| 397 | 418 | }; |
|---|
| 398 | 419 | |
|---|
| 399 | 420 | &route_edp { |
|---|
| 400 | | - status = "okay"; |
|---|
| 421 | + status = "disabled"; |
|---|
| 401 | 422 | connect = <&vp1_out_edp>; |
|---|
| 402 | 423 | }; |
|---|
| 403 | 424 | |
|---|
| 404 | 425 | &route_edp { |
|---|
| 405 | | - status = "okay"; |
|---|
| 426 | + status = "disabled"; |
|---|
| 406 | 427 | }; |
|---|
| 428 | + |
|---|
| 429 | +&lvds { |
|---|
| 430 | + status = "disabled"; |
|---|
| 431 | + ports { |
|---|
| 432 | + port@1 { |
|---|
| 433 | + reg = <1>; |
|---|
| 434 | + lvds_out:endpoint { |
|---|
| 435 | + remote-endpoint = <&panel_in_lvds>; |
|---|
| 436 | + }; |
|---|
| 437 | + }; |
|---|
| 438 | + }; |
|---|
| 439 | +}; |
|---|
| 440 | + |
|---|
| 441 | +&route_lvds{ |
|---|
| 442 | + status = "okay"; |
|---|
| 443 | + connect = <&vp1_out_lvds>; |
|---|
| 444 | +}; |
|---|
| 445 | + |
|---|
| 446 | +&lvds_in_vp1 { |
|---|
| 447 | + status = "disabled"; |
|---|
| 448 | +}; |
|---|
| 449 | + |
|---|
| 407 | 450 | /* |
|---|
| 408 | 451 | * edp_end |
|---|
| 409 | 452 | */ |
|---|
| .. | .. |
|---|
| 448 | 491 | phy-mode = "rgmii"; |
|---|
| 449 | 492 | clock_in_out = "output"; |
|---|
| 450 | 493 | |
|---|
| 451 | | - snps,reset-gpio = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>; |
|---|
| 494 | + snps,reset-gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>; |
|---|
| 452 | 495 | snps,reset-active-low; |
|---|
| 453 | 496 | /* Reset time is 20ms, 100ms for rtl8211f */ |
|---|
| 454 | 497 | snps,reset-delays-us = <0 20000 100000>; |
|---|
| .. | .. |
|---|
| 468 | 511 | rx_delay = <0x2f>; |
|---|
| 469 | 512 | |
|---|
| 470 | 513 | phy-handle = <&rgmii_phy0>; |
|---|
| 514 | + |
|---|
| 471 | 515 | status = "disabled"; |
|---|
| 516 | + |
|---|
| 472 | 517 | }; |
|---|
| 473 | 518 | |
|---|
| 474 | 519 | &gmac1 { |
|---|
| .. | .. |
|---|
| 502 | 547 | * power-supply should switche to vcc3v3_lcd1_n |
|---|
| 503 | 548 | * when mipi panel is connected to dsi1. |
|---|
| 504 | 549 | */ |
|---|
| 505 | | ->1x { |
|---|
| 506 | | - power-supply = <&vcc3v3_lcd0_n>; |
|---|
| 507 | | -}; |
|---|
| 550 | + |
|---|
| 508 | 551 | |
|---|
| 509 | 552 | &i2c3 { |
|---|
| 510 | 553 | status = "okay"; |
|---|
| .. | .. |
|---|
| 523 | 566 | }; |
|---|
| 524 | 567 | |
|---|
| 525 | 568 | &i2c4 { |
|---|
| 526 | | - status = "okay"; |
|---|
| 569 | + status = "disabled"; |
|---|
| 527 | 570 | gc8034: gc8034@37 { |
|---|
| 528 | 571 | compatible = "galaxycore,gc8034"; |
|---|
| 529 | 572 | status = "okay"; |
|---|
| .. | .. |
|---|
| 535 | 578 | reset-gpios = <&gpio3 RK_PB6 GPIO_ACTIVE_LOW>; |
|---|
| 536 | 579 | pwdn-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_LOW>; |
|---|
| 537 | 580 | rockchip,grf = <&grf>; |
|---|
| 538 | | - power-domains = <&power RK3568_PD_VI>; |
|---|
| 539 | 581 | rockchip,camera-module-index = <0>; |
|---|
| 540 | 582 | rockchip,camera-module-facing = "back"; |
|---|
| 541 | 583 | rockchip,camera-module-name = "RK-CMK-8M-2-v1"; |
|---|
| .. | .. |
|---|
| 569 | 611 | }; |
|---|
| 570 | 612 | }; |
|---|
| 571 | 613 | ov5695: ov5695@36 { |
|---|
| 572 | | - status = "okay"; |
|---|
| 614 | + status = "disabled"; |
|---|
| 573 | 615 | compatible = "ovti,ov5695"; |
|---|
| 574 | 616 | reg = <0x36>; |
|---|
| 575 | 617 | clocks = <&cru CLK_CIF_OUT>; |
|---|
| .. | .. |
|---|
| 622 | 664 | |
|---|
| 623 | 665 | |
|---|
| 624 | 666 | &pcie30phy { |
|---|
| 625 | | - status = "okay"; |
|---|
| 667 | + status = "disabled"; |
|---|
| 626 | 668 | }; |
|---|
| 627 | 669 | |
|---|
| 628 | 670 | &pcie2x1 { |
|---|
| .. | .. |
|---|
| 673 | 715 | <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 674 | 716 | <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 675 | 717 | <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 676 | | - <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 718 | + <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 677 | 719 | <1 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 678 | 720 | <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 679 | 721 | <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| .. | .. |
|---|
| 681 | 723 | <3 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 682 | 724 | <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 683 | 725 | <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 726 | + <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 727 | + <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 728 | + <3 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 684 | 729 | <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 685 | | - <2 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,//93 SPI2_CS0_M1_3V3 |
|---|
| 686 | | - <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>,//94 SPI2_MOSI_M1_3V3 |
|---|
| 687 | | - <2 RK_PD7 RK_FUNC_GPIO &pcfg_pull_none>,//95 SPI2_MISO_M1_3V3 |
|---|
| 688 | | - <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>,//96 SPI2_CLK_M1_3V3 |
|---|
| 689 | | - <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; |
|---|
| 730 | + <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B0_u_3V3 DO1 8 |
|---|
| 731 | + <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B3_u_3V3 DO2 11 |
|---|
| 732 | + <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B4_u_3V3 DO3 12 |
|---|
| 733 | + <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B5_u_3V3 DO4 13 |
|---|
| 734 | + <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B6_u_3V3 DO5 14 |
|---|
| 735 | + |
|---|
| 736 | + <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C0_d_3V3 DI1 16 |
|---|
| 737 | + <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C1_d_3V3 DI2 17 |
|---|
| 738 | + <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C2_d_3V3 DI3 18 |
|---|
| 739 | + <0 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C3_d_3V3 DI4 19 |
|---|
| 740 | + <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C5_d_3V3 DI5 21 |
|---|
| 741 | + <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>, |
|---|
| 742 | + <4 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>, //sig_led |
|---|
| 743 | + <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>, //err_led |
|---|
| 744 | + <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>, //run_led |
|---|
| 745 | + <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; //HOST3_EN_GPIO4_B2_1V8 |
|---|
| 746 | + |
|---|
| 690 | 747 | }; |
|---|
| 691 | 748 | }; |
|---|
| 692 | 749 | }; |
|---|
| .. | .. |
|---|
| 712 | 769 | }; |
|---|
| 713 | 770 | }; |
|---|
| 714 | 771 | }; |
|---|
| 715 | | - |
|---|
| 716 | | - |
|---|
| 717 | 772 | |
|---|
| 718 | 773 | |
|---|
| 719 | 774 | |
|---|
| .. | .. |
|---|
| 753 | 808 | pinctrl-0 = <&uart8m0_xfer &uart8m0_ctsn>; |
|---|
| 754 | 809 | }; |
|---|
| 755 | 810 | |
|---|
| 756 | | -&vcc3v3_lcd0_n { |
|---|
| 757 | | - gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; |
|---|
| 758 | | - enable-active-high; |
|---|
| 759 | | -}; |
|---|
| 760 | | - |
|---|
| 761 | | -&vcc3v3_lcd1_n { |
|---|
| 762 | | - gpio = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>; //MIPI_3V3EN_GPIO3_A3_d_3V3 |
|---|
| 763 | | - enable-active-high; |
|---|
| 764 | | -}; |
|---|
| 765 | 811 | |
|---|
| 766 | 812 | &wireless_wlan { |
|---|
| 767 | 813 | pinctrl-names = "default"; |
|---|
| .. | .. |
|---|
| 781 | 827 | BT,reset_gpio = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>; |
|---|
| 782 | 828 | BT,wake_gpio = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>; |
|---|
| 783 | 829 | BT,wake_host_irq = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>; |
|---|
| 784 | | - status = "okay"; |
|---|
| 830 | + status = "disabled"; |
|---|
| 785 | 831 | }; |
|---|
| 786 | 832 | |
|---|
| 787 | 833 | &uart0 { |
|---|
| 788 | | - status = "okay"; |
|---|
| 834 | + status = "disabled"; |
|---|
| 789 | 835 | }; |
|---|
| 790 | 836 | |
|---|
| 791 | 837 | &uart1 { |
|---|
| 792 | 838 | pinctrl-names = "default"; |
|---|
| 793 | 839 | pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>; |
|---|
| 794 | | - status = "okay"; |
|---|
| 840 | + status = "disabled"; |
|---|
| 795 | 841 | }; |
|---|
| 796 | 842 | |
|---|
| 797 | 843 | &uart3 { |
|---|
| .. | .. |
|---|
| 800 | 846 | }; |
|---|
| 801 | 847 | |
|---|
| 802 | 848 | &uart4 { |
|---|
| 803 | | - status = "okay"; |
|---|
| 849 | + status = "disabled"; |
|---|
| 804 | 850 | pinctrl-0 = <&uart4m1_xfer>; |
|---|
| 805 | 851 | }; |
|---|
| 806 | 852 | |
|---|
| .. | .. |
|---|
| 809 | 855 | pinctrl-0 = <&uart5m1_xfer>; |
|---|
| 810 | 856 | }; |
|---|
| 811 | 857 | |
|---|
| 858 | + |
|---|
| 812 | 859 | &uart7 { |
|---|
| 813 | 860 | status = "okay"; |
|---|
| 814 | 861 | pinctrl-0 = <&uart7m1_xfer>; |
|---|
| 815 | 862 | }; |
|---|
| 816 | 863 | |
|---|
| 864 | +&uart8 { |
|---|
| 865 | + status = "disabled"; |
|---|
| 866 | + pinctrl-0 = <&uart8m1_xfer>; |
|---|
| 867 | +}; |
|---|
| 868 | + |
|---|
| 817 | 869 | &uart9 { |
|---|
| 818 | | - status = "okay"; |
|---|
| 870 | + status = "disabled"; |
|---|
| 819 | 871 | pinctrl-0 = <&uart9m1_xfer>; |
|---|
| 820 | 872 | }; |
|---|