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_lcd0_n>; |
|---|
| 195 | + enable-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>; //LCD0_VDD_H_GPIO2_D4 |
|---|
| 196 | + reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_LOW>; //7511_RST_GPIO3_D1 |
|---|
| 197 | + edp-bl-gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>; //LCD0_BKLT_EN_3V3 |
|---|
| 198 | + edp-bl-en = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>; //LCD0_BKLT_EN_3V3 |
|---|
| 199 | + bus-format = <MEDIA_BUS_FMT_RGB888_1X24>; |
|---|
| 200 | + bpc = <8>; |
|---|
| 201 | + prepare-delay-ms = <200>; |
|---|
| 202 | + enable-delay-ms = <20>; |
|---|
| 203 | + lvds-gpio0 = <&gpio3 RK_PD2 GPIO_ACTIVE_HIGH>; //7511_GPIO0-GPIO3_D2 |
|---|
| 204 | + lvds-gpio1 = <&gpio3 RK_PD3 GPIO_ACTIVE_HIGH>; //7511_GPIO1-GPIO3_D3 |
|---|
| 205 | + lvds-gpio2 = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>; //7511_GPIO2-GPIO3_D4 |
|---|
| 206 | + lvds-gpio3 = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>; //7511_GPIO3-GPIO3_D5 |
|---|
| 207 | + nodka-lvds = <15>; |
|---|
| 208 | + |
|---|
| 209 | + display-timings { |
|---|
| 210 | + native-mode = <&timing0>; |
|---|
| 211 | + timing0: timing0 { |
|---|
| 212 | + clock-frequency = <72500000>; |
|---|
| 213 | + hactive = <1280>; |
|---|
| 214 | + vactive = <800>; |
|---|
| 215 | + hfront-porch = <70>; |
|---|
| 216 | + hsync-len = <2>; |
|---|
| 217 | + hback-porch = <88>; |
|---|
| 218 | + vfront-porch = <7>; |
|---|
| 219 | + vsync-len = <4>; |
|---|
| 220 | + vback-porch = <17>; |
|---|
| 221 | + hsync-active = <21>; |
|---|
| 222 | + vsync-active = <0>; |
|---|
| 223 | + de-active = <0>; |
|---|
| 224 | + pixelclk-active = <0>; |
|---|
| 225 | + }; |
|---|
| 226 | + }; |
|---|
| 227 | + ports { |
|---|
| 228 | + panel_in: endpoint { |
|---|
| 229 | + remote-endpoint = <&edp_out>; |
|---|
| 230 | + }; |
|---|
| 231 | + }; |
|---|
| 232 | + }; |
|---|
| 189 | 233 | }; |
|---|
| 190 | 234 | |
|---|
| 191 | 235 | &combphy0_us { |
|---|
| .. | .. |
|---|
| 285 | 329 | }; |
|---|
| 286 | 330 | |
|---|
| 287 | 331 | &edp { |
|---|
| 288 | | - hpd-gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>; |
|---|
| 289 | | - status = "okay"; |
|---|
| 332 | + //hpd-gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>; |
|---|
| 333 | + force-hpd; |
|---|
| 334 | + status = "okay"; |
|---|
| 335 | + ports { |
|---|
| 336 | + port@1 { |
|---|
| 337 | + reg = <1>; |
|---|
| 338 | + edp_out: endpoint { |
|---|
| 339 | + remote-endpoint = <&panel_in>; |
|---|
| 340 | + }; |
|---|
| 341 | + }; |
|---|
| 342 | + |
|---|
| 343 | + }; |
|---|
| 290 | 344 | }; |
|---|
| 291 | 345 | |
|---|
| 292 | 346 | &edp_phy { |
|---|
| .. | .. |
|---|
| 294 | 348 | }; |
|---|
| 295 | 349 | |
|---|
| 296 | 350 | &edp_in_vp0 { |
|---|
| 297 | | - status = "okay"; |
|---|
| 351 | + status = "disabled"; |
|---|
| 298 | 352 | }; |
|---|
| 299 | 353 | |
|---|
| 300 | 354 | &edp_in_vp1 { |
|---|
| 301 | | - status = "disabled"; |
|---|
| 355 | + status = "okay"; |
|---|
| 302 | 356 | }; |
|---|
| 303 | 357 | |
|---|
| 304 | 358 | &gmac0 { |
|---|
| .. | .. |
|---|
| 359 | 413 | * power-supply should switche to vcc3v3_lcd1_n |
|---|
| 360 | 414 | * when mipi panel is connected to dsi1. |
|---|
| 361 | 415 | */ |
|---|
| 362 | | ->1x { |
|---|
| 363 | | - power-supply = <&vcc3v3_lcd0_n>; |
|---|
| 416 | + |
|---|
| 417 | + |
|---|
| 418 | +&i2c3 { |
|---|
| 419 | + status = "okay"; |
|---|
| 420 | + //mac eeprom |
|---|
| 421 | + eeprom@51 { |
|---|
| 422 | + //compatible = "atmel,24c02"; |
|---|
| 423 | + compatible = "atmel,24c256"; |
|---|
| 424 | + reg = <0x51>; |
|---|
| 425 | + }; |
|---|
| 426 | + |
|---|
| 427 | + //nk-mcu |
|---|
| 428 | + nkmcu@15 { |
|---|
| 429 | + compatible = "nk_mcu"; |
|---|
| 430 | + reg = <0x15>; |
|---|
| 431 | + }; |
|---|
| 364 | 432 | }; |
|---|
| 365 | 433 | |
|---|
| 366 | 434 | &i2c4 { |
|---|
| .. | .. |
|---|
| 466 | 534 | }; |
|---|
| 467 | 535 | |
|---|
| 468 | 536 | &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 | | - }; |
|---|
| 537 | + |
|---|
| 476 | 538 | headphone { |
|---|
| 477 | 539 | hp_det: hp-det { |
|---|
| 478 | 540 | rockchip,pins = <3 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>; |
|---|
| .. | .. |
|---|
| 531 | 593 | }; |
|---|
| 532 | 594 | |
|---|
| 533 | 595 | &rkisp_vir0 { |
|---|
| 534 | | - status = "okay"; |
|---|
| 596 | + status = "disabled"; |
|---|
| 535 | 597 | |
|---|
| 536 | 598 | port { |
|---|
| 537 | 599 | #address-cells = <1>; |
|---|
| .. | .. |
|---|
| 549 | 611 | connect = <&vp1_out_dsi0>; |
|---|
| 550 | 612 | }; |
|---|
| 551 | 613 | |
|---|
| 614 | + |
|---|
| 615 | + |
|---|
| 552 | 616 | &route_edp { |
|---|
| 553 | 617 | status = "okay"; |
|---|
| 554 | | - connect = <&vp0_out_edp>; |
|---|
| 618 | + connect = <&vp1_out_edp>; |
|---|
| 555 | 619 | }; |
|---|
| 556 | 620 | |
|---|
| 557 | 621 | &sata2 { |
|---|
| .. | .. |
|---|
| 581 | 645 | }; |
|---|
| 582 | 646 | |
|---|
| 583 | 647 | &uart8 { |
|---|
| 584 | | - status = "okay"; |
|---|
| 648 | + status = "disabled"; |
|---|
| 585 | 649 | pinctrl-names = "default"; |
|---|
| 586 | 650 | pinctrl-0 = <&uart8m0_xfer &uart8m0_ctsn>; |
|---|
| 587 | 651 | }; |
|---|
| 588 | 652 | |
|---|
| 589 | 653 | &vcc3v3_lcd0_n { |
|---|
| 590 | | - gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; |
|---|
| 654 | + gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; |
|---|
| 591 | 655 | enable-active-high; |
|---|
| 592 | 656 | }; |
|---|
| 593 | 657 | |
|---|
| 594 | 658 | &vcc3v3_lcd1_n { |
|---|
| 595 | | - gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>; |
|---|
| 659 | + gpio = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>; //MIPI_3V3EN_GPIO3_A3_d_3V3 |
|---|
| 596 | 660 | enable-active-high; |
|---|
| 597 | 661 | }; |
|---|
| 598 | 662 | |
|---|
| .. | .. |
|---|
| 616 | 680 | BT,wake_host_irq = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>; |
|---|
| 617 | 681 | status = "okay"; |
|---|
| 618 | 682 | }; |
|---|
| 683 | + |
|---|
| 684 | +&uart0 { |
|---|
| 685 | + status = "okay"; |
|---|
| 686 | +}; |
|---|
| 687 | + |
|---|
| 688 | +&uart1 { |
|---|
| 689 | + pinctrl-names = "default"; |
|---|
| 690 | + pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>; |
|---|
| 691 | + status = "okay"; |
|---|
| 692 | +}; |
|---|
| 693 | + |
|---|
| 694 | +&uart3 { |
|---|
| 695 | + status = "okay"; |
|---|
| 696 | + pinctrl-0 = <&uart3m1_xfer>; |
|---|
| 697 | +}; |
|---|
| 698 | + |
|---|
| 699 | +&uart4 { |
|---|
| 700 | + status = "okay"; |
|---|
| 701 | + pinctrl-0 = <&uart4m1_xfer>; |
|---|
| 702 | +}; |
|---|
| 703 | + |
|---|
| 704 | +&uart5 { |
|---|
| 705 | + status = "okay"; |
|---|
| 706 | + pinctrl-0 = <&uart5m1_xfer>; |
|---|
| 707 | +}; |
|---|
| 708 | + |
|---|
| 709 | +&uart7 { |
|---|
| 710 | + status = "okay"; |
|---|
| 711 | + pinctrl-0 = <&uart7m1_xfer>; |
|---|
| 712 | +}; |
|---|
| 713 | + |
|---|
| 714 | +&uart9 { |
|---|
| 715 | + status = "okay"; |
|---|
| 716 | + pinctrl-0 = <&uart9m1_xfer>; |
|---|
| 717 | +}; |
|---|