old mode 100644new mode 100755| .. | .. |
|---|
| 8 | 8 | |
|---|
| 9 | 9 | #include <dt-bindings/gpio/gpio.h> |
|---|
| 10 | 10 | #include <dt-bindings/pinctrl/rockchip.h> |
|---|
| 11 | +#include <dt-bindings/display/media-bus-format.h> |
|---|
| 11 | 12 | #include "rk3568.dtsi" |
|---|
| 12 | 13 | #include "rk3568-evb.dtsi" |
|---|
| 13 | 14 | |
|---|
| .. | .. |
|---|
| 185 | 186 | gpio_function = <1>; |
|---|
| 186 | 187 | }; |
|---|
| 187 | 188 | #endif |
|---|
| 188 | | -}; |
|---|
| 189 | + }; |
|---|
| 190 | + |
|---|
| 191 | + panel: panel { |
|---|
| 192 | + compatible = "simple-panel"; |
|---|
| 193 | + backlight = <&backlight>; |
|---|
| 194 | + power-supply = <&vcc3v3_lcd1_n>; |
|---|
| 195 | + enable-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>; //LCD0_VDD_H_GPIO2_D4 |
|---|
| 196 | + edp-bl-gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>; //LCD0_PWBLK_H_GPIO0_B7 |
|---|
| 197 | + edp-bl-en = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>; //LCD0_BKLT_EN_3V3 |
|---|
| 198 | + bus-format = <MEDIA_BUS_FMT_RGB888_1X24>; |
|---|
| 199 | + bpc = <8>; |
|---|
| 200 | + prepare-delay-ms = <200>; |
|---|
| 201 | + enable-delay-ms = <20>; |
|---|
| 202 | + |
|---|
| 203 | + display-timings { |
|---|
| 204 | + native-mode = <&timing>; |
|---|
| 205 | + timing: timing { |
|---|
| 206 | + clock-frequency = <72500000>; |
|---|
| 207 | + hactive = <1280>; |
|---|
| 208 | + vactive = <800>; |
|---|
| 209 | + hfront-porch = <70>; |
|---|
| 210 | + hsync-len = <2>; |
|---|
| 211 | + hback-porch = <88>; |
|---|
| 212 | + vfront-porch = <7>; |
|---|
| 213 | + vsync-len = <4>; |
|---|
| 214 | + vback-porch = <17>; |
|---|
| 215 | + hsync-active = <21>; |
|---|
| 216 | + vsync-active = <0>; |
|---|
| 217 | + de-active = <0>; |
|---|
| 218 | + pixelclk-active = <0>; |
|---|
| 219 | + }; |
|---|
| 220 | + }; |
|---|
| 221 | + ports { |
|---|
| 222 | + panel_in_lvds: endpoint { |
|---|
| 223 | + remote-endpoint = <&lvds_out>; |
|---|
| 224 | + }; |
|---|
| 225 | + }; |
|---|
| 226 | + }; |
|---|
| 189 | 227 | }; |
|---|
| 190 | 228 | |
|---|
| 191 | 229 | &combphy0_us { |
|---|
| .. | .. |
|---|
| 285 | 323 | }; |
|---|
| 286 | 324 | |
|---|
| 287 | 325 | &edp { |
|---|
| 288 | | - hpd-gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>; |
|---|
| 326 | + //hpd-gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>; |
|---|
| 327 | + force-hpd; |
|---|
| 328 | + status = "disabled"; |
|---|
| 329 | +}; |
|---|
| 330 | + |
|---|
| 331 | +&lvds { |
|---|
| 332 | + status = "okay"; |
|---|
| 333 | + ports { |
|---|
| 334 | + port@1 { |
|---|
| 335 | + reg = <1>; |
|---|
| 336 | + lvds_out: endpoint { |
|---|
| 337 | + remote-endpoint = <&panel_in_lvds>; |
|---|
| 338 | + }; |
|---|
| 339 | + }; |
|---|
| 340 | + |
|---|
| 341 | + }; |
|---|
| 342 | +}; |
|---|
| 343 | + |
|---|
| 344 | +&route_lvds{ |
|---|
| 345 | + status = "okay"; |
|---|
| 346 | + connect = <&vp2_out_lvds>; |
|---|
| 347 | +}; |
|---|
| 348 | + |
|---|
| 349 | +&lvds_in_vp2 { |
|---|
| 289 | 350 | status = "okay"; |
|---|
| 290 | 351 | }; |
|---|
| 291 | 352 | |
|---|
| .. | .. |
|---|
| 294 | 355 | }; |
|---|
| 295 | 356 | |
|---|
| 296 | 357 | &edp_in_vp0 { |
|---|
| 297 | | - status = "okay"; |
|---|
| 358 | + status = "disabled"; |
|---|
| 298 | 359 | }; |
|---|
| 299 | 360 | |
|---|
| 300 | 361 | &edp_in_vp1 { |
|---|
| 301 | | - status = "disabled"; |
|---|
| 362 | + status = "okay"; |
|---|
| 302 | 363 | }; |
|---|
| 303 | 364 | |
|---|
| 304 | 365 | &gmac0 { |
|---|
| 305 | 366 | phy-mode = "rgmii"; |
|---|
| 306 | 367 | clock_in_out = "output"; |
|---|
| 307 | 368 | |
|---|
| 308 | | - snps,reset-gpio = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>; |
|---|
| 369 | + snps,reset-gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>; |
|---|
| 309 | 370 | snps,reset-active-low; |
|---|
| 310 | 371 | /* Reset time is 20ms, 100ms for rtl8211f */ |
|---|
| 311 | 372 | snps,reset-delays-us = <0 20000 100000>; |
|---|
| .. | .. |
|---|
| 325 | 386 | rx_delay = <0x2f>; |
|---|
| 326 | 387 | |
|---|
| 327 | 388 | phy-handle = <&rgmii_phy0>; |
|---|
| 328 | | - status = "disabled"; |
|---|
| 389 | + status = "okay"; |
|---|
| 329 | 390 | }; |
|---|
| 330 | 391 | |
|---|
| 331 | 392 | &gmac1 { |
|---|
| .. | .. |
|---|
| 359 | 420 | * power-supply should switche to vcc3v3_lcd1_n |
|---|
| 360 | 421 | * when mipi panel is connected to dsi1. |
|---|
| 361 | 422 | */ |
|---|
| 362 | | ->1x { |
|---|
| 363 | | - power-supply = <&vcc3v3_lcd0_n>; |
|---|
| 423 | + |
|---|
| 424 | + |
|---|
| 425 | +&i2c3 { |
|---|
| 426 | + status = "okay"; |
|---|
| 427 | + //mac eeprom |
|---|
| 428 | + eeprom@51 { |
|---|
| 429 | + //compatible = "atmel,24c02"; |
|---|
| 430 | + compatible = "atmel,24c256"; |
|---|
| 431 | + reg = <0x51>; |
|---|
| 432 | + }; |
|---|
| 433 | + |
|---|
| 434 | + //nk-mcu |
|---|
| 435 | + nkmcu@15 { |
|---|
| 436 | + compatible = "nk_mcu"; |
|---|
| 437 | + reg = <0x15>; |
|---|
| 438 | + }; |
|---|
| 364 | 439 | }; |
|---|
| 365 | 440 | |
|---|
| 366 | 441 | &i2c4 { |
|---|
| .. | .. |
|---|
| 448 | 523 | }; |
|---|
| 449 | 524 | |
|---|
| 450 | 525 | &video_phy0 { |
|---|
| 451 | | - status = "disabled"; |
|---|
| 526 | + status = "okay"; |
|---|
| 452 | 527 | }; |
|---|
| 453 | 528 | |
|---|
| 454 | 529 | &video_phy1 { |
|---|
| .. | .. |
|---|
| 456 | 531 | }; |
|---|
| 457 | 532 | |
|---|
| 458 | 533 | &pcie30phy { |
|---|
| 534 | + status = "disabled"; |
|---|
| 535 | +}; |
|---|
| 536 | + |
|---|
| 537 | +&pcie2x1 { |
|---|
| 538 | + reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>; |
|---|
| 539 | + vpcie3v3-supply = <&vcc3v3_pcie>; |
|---|
| 459 | 540 | status = "okay"; |
|---|
| 460 | 541 | }; |
|---|
| 461 | 542 | |
|---|
| .. | .. |
|---|
| 466 | 547 | }; |
|---|
| 467 | 548 | |
|---|
| 468 | 549 | &pinctrl { |
|---|
| 469 | | - cam { |
|---|
| 470 | | - camera_pwr: camera-pwr { |
|---|
| 471 | | - rockchip,pins = |
|---|
| 472 | | - /* camera power en */ |
|---|
| 473 | | - <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>; |
|---|
| 474 | | - }; |
|---|
| 475 | | - }; |
|---|
| 550 | + |
|---|
| 476 | 551 | headphone { |
|---|
| 477 | 552 | hp_det: hp-det { |
|---|
| 478 | 553 | rockchip,pins = <3 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>; |
|---|
| .. | .. |
|---|
| 482 | 557 | wireless-wlan { |
|---|
| 483 | 558 | wifi_host_wake_irq: wifi-host-wake-irq { |
|---|
| 484 | 559 | rockchip,pins = <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_down>; |
|---|
| 485 | | - }; |
|---|
| 486 | | - }; |
|---|
| 487 | | - |
|---|
| 488 | | - wireless-bluetooth { |
|---|
| 489 | | - uart8_gpios: uart8-gpios { |
|---|
| 490 | | - rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; |
|---|
| 491 | 560 | }; |
|---|
| 492 | 561 | }; |
|---|
| 493 | 562 | |
|---|
| .. | .. |
|---|
| 531 | 600 | }; |
|---|
| 532 | 601 | |
|---|
| 533 | 602 | &rkisp_vir0 { |
|---|
| 534 | | - status = "okay"; |
|---|
| 603 | + status = "disabled"; |
|---|
| 535 | 604 | |
|---|
| 536 | 605 | port { |
|---|
| 537 | 606 | #address-cells = <1>; |
|---|
| .. | .. |
|---|
| 549 | 618 | connect = <&vp1_out_dsi0>; |
|---|
| 550 | 619 | }; |
|---|
| 551 | 620 | |
|---|
| 621 | + |
|---|
| 622 | + |
|---|
| 552 | 623 | &route_edp { |
|---|
| 553 | | - status = "okay"; |
|---|
| 554 | | - connect = <&vp0_out_edp>; |
|---|
| 624 | + status = "disabled"; |
|---|
| 625 | + connect = <&vp1_out_edp>; |
|---|
| 555 | 626 | }; |
|---|
| 556 | 627 | |
|---|
| 557 | 628 | &sata2 { |
|---|
| .. | .. |
|---|
| 581 | 652 | }; |
|---|
| 582 | 653 | |
|---|
| 583 | 654 | &uart8 { |
|---|
| 584 | | - status = "okay"; |
|---|
| 655 | + status = "disabled"; |
|---|
| 585 | 656 | pinctrl-names = "default"; |
|---|
| 586 | 657 | pinctrl-0 = <&uart8m0_xfer &uart8m0_ctsn>; |
|---|
| 587 | 658 | }; |
|---|
| 588 | 659 | |
|---|
| 589 | 660 | &vcc3v3_lcd0_n { |
|---|
| 590 | | - gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; |
|---|
| 661 | + gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; |
|---|
| 591 | 662 | enable-active-high; |
|---|
| 592 | 663 | }; |
|---|
| 593 | 664 | |
|---|
| 594 | 665 | &vcc3v3_lcd1_n { |
|---|
| 595 | | - gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>; |
|---|
| 666 | + gpio = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>; //MIPI_3V3EN_GPIO3_A3_d_3V3 |
|---|
| 596 | 667 | enable-active-high; |
|---|
| 597 | 668 | }; |
|---|
| 598 | 669 | |
|---|
| 599 | 670 | &wireless_wlan { |
|---|
| 600 | 671 | pinctrl-names = "default"; |
|---|
| 601 | 672 | pinctrl-0 = <&wifi_host_wake_irq>; |
|---|
| 602 | | - WIFI,host_wake_irq = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>; |
|---|
| 673 | + WIFI,host_wake_irq = <&gpio2 RK_PB2 GPIO_ACTIVE_HIGH>; |
|---|
| 603 | 674 | }; |
|---|
| 604 | 675 | |
|---|
| 605 | 676 | &wireless_bluetooth { |
|---|
| 606 | 677 | compatible = "bluetooth-platdata"; |
|---|
| 607 | | - clocks = <&rk809 1>; |
|---|
| 608 | | - clock-names = "ext_clock"; |
|---|
| 609 | | - //wifi-bt-power-toggle; |
|---|
| 610 | | - uart_rts_gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>; |
|---|
| 611 | | - pinctrl-names = "default", "rts_gpio"; |
|---|
| 612 | | - pinctrl-0 = <&uart8m0_rtsn>; |
|---|
| 613 | | - pinctrl-1 = <&uart8_gpios>; |
|---|
| 614 | | - BT,reset_gpio = <&gpio3 RK_PA0 GPIO_ACTIVE_HIGH>; |
|---|
| 615 | | - BT,wake_gpio = <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>; |
|---|
| 616 | | - BT,wake_host_irq = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>; |
|---|
| 678 | + status = "disabled"; |
|---|
| 679 | +}; |
|---|
| 680 | + |
|---|
| 681 | +&uart0 { |
|---|
| 617 | 682 | status = "okay"; |
|---|
| 618 | 683 | }; |
|---|
| 684 | + |
|---|
| 685 | +&uart1 { |
|---|
| 686 | + pinctrl-names = "default"; |
|---|
| 687 | + pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>; |
|---|
| 688 | + status = "disabled"; |
|---|
| 689 | +}; |
|---|
| 690 | + |
|---|
| 691 | +&uart3 { |
|---|
| 692 | + status = "okay"; |
|---|
| 693 | + pinctrl-0 = <&uart3m1_xfer>; |
|---|
| 694 | +}; |
|---|
| 695 | + |
|---|
| 696 | +&uart4 { |
|---|
| 697 | + status = "okay"; |
|---|
| 698 | + pinctrl-0 = <&uart4m1_xfer>; |
|---|
| 699 | +}; |
|---|
| 700 | + |
|---|
| 701 | +&uart5 { |
|---|
| 702 | + status = "okay"; |
|---|
| 703 | + pinctrl-0 = <&uart5m1_xfer>; |
|---|
| 704 | +}; |
|---|
| 705 | + |
|---|
| 706 | +&uart7 { |
|---|
| 707 | + status = "okay"; |
|---|
| 708 | + pinctrl-0 = <&uart7m1_xfer>; |
|---|
| 709 | +}; |
|---|
| 710 | + |
|---|
| 711 | +&uart9 { |
|---|
| 712 | + status = "okay"; |
|---|
| 713 | + pinctrl-0 = <&uart9m1_xfer>; |
|---|
| 714 | +}; |
|---|