| .. | .. |
|---|
| 141 | 141 | gpio_function = <0>; |
|---|
| 142 | 142 | }; |
|---|
| 143 | 143 | |
|---|
| 144 | | - wifi_power_en { |
|---|
| 145 | | - gpio_num = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8 |
|---|
| 144 | + usb_ogt { |
|---|
| 145 | + gpio_num = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>; //OTG_EN_OC_GPIO0_C2 |
|---|
| 146 | 146 | gpio_function = <0>; |
|---|
| 147 | 147 | }; |
|---|
| 148 | + |
|---|
| 149 | + m2_wifi_pwr { |
|---|
| 150 | + gpio_num = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>;//WIFI_PWREN_GPIO3_C6_1V8 |
|---|
| 151 | + gpio_function = <0>; |
|---|
| 152 | + }; |
|---|
| 153 | + |
|---|
| 154 | + |
|---|
| 148 | 155 | #if 0 |
|---|
| 149 | 156 | do1 { |
|---|
| 150 | 157 | gpio_num = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>; |
|---|
| .. | .. |
|---|
| 192 | 199 | compatible = "simple-panel"; |
|---|
| 193 | 200 | backlight = <&backlight>; |
|---|
| 194 | 201 | 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 |
|---|
| 202 | + enable-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>; //LCD0_VDD_H_GPIO2_D4 |
|---|
| 203 | + edp-bl-gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>; //LCD0_PWBLK_H_GPIO0_B7 |
|---|
| 198 | 204 | edp-bl-en = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>; //LCD0_BKLT_EN_3V3 |
|---|
| 199 | 205 | bus-format = <MEDIA_BUS_FMT_RGB888_1X24>; |
|---|
| 200 | 206 | bpc = <8>; |
|---|
| 201 | 207 | prepare-delay-ms = <200>; |
|---|
| 202 | 208 | 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 | |
|---|
| 209 | 210 | display-timings { |
|---|
| 210 | | - native-mode = <&timing0>; |
|---|
| 211 | | - timing0: timing0 { |
|---|
| 211 | + native-mode = <&timing>; |
|---|
| 212 | + timing: timing { |
|---|
| 212 | 213 | clock-frequency = <72500000>; |
|---|
| 213 | 214 | hactive = <1280>; |
|---|
| 214 | 215 | vactive = <800>; |
|---|
| .. | .. |
|---|
| 225 | 226 | }; |
|---|
| 226 | 227 | }; |
|---|
| 227 | 228 | ports { |
|---|
| 228 | | - panel_in: endpoint { |
|---|
| 229 | | - remote-endpoint = <&edp_out>; |
|---|
| 229 | + panel_in_lvds: endpoint { |
|---|
| 230 | + remote-endpoint = <&lvds_out>; |
|---|
| 230 | 231 | }; |
|---|
| 231 | 232 | }; |
|---|
| 232 | 233 | }; |
|---|
| .. | .. |
|---|
| 331 | 332 | &edp { |
|---|
| 332 | 333 | //hpd-gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>; |
|---|
| 333 | 334 | force-hpd; |
|---|
| 335 | + status = "disabled"; |
|---|
| 336 | +}; |
|---|
| 337 | + |
|---|
| 338 | +&lvds { |
|---|
| 334 | 339 | status = "okay"; |
|---|
| 335 | 340 | ports { |
|---|
| 336 | 341 | port@1 { |
|---|
| 337 | 342 | reg = <1>; |
|---|
| 338 | | - edp_out: endpoint { |
|---|
| 339 | | - remote-endpoint = <&panel_in>; |
|---|
| 343 | + lvds_out: endpoint { |
|---|
| 344 | + remote-endpoint = <&panel_in_lvds>; |
|---|
| 340 | 345 | }; |
|---|
| 341 | 346 | }; |
|---|
| 342 | 347 | |
|---|
| 343 | 348 | }; |
|---|
| 349 | +}; |
|---|
| 350 | + |
|---|
| 351 | +&route_lvds{ |
|---|
| 352 | + status = "okay"; |
|---|
| 353 | + connect = <&vp2_out_lvds>; |
|---|
| 354 | +}; |
|---|
| 355 | + |
|---|
| 356 | +&lvds_in_vp2 { |
|---|
| 357 | + status = "okay"; |
|---|
| 344 | 358 | }; |
|---|
| 345 | 359 | |
|---|
| 346 | 360 | &edp_phy { |
|---|
| .. | .. |
|---|
| 359 | 373 | phy-mode = "rgmii"; |
|---|
| 360 | 374 | clock_in_out = "output"; |
|---|
| 361 | 375 | |
|---|
| 362 | | - snps,reset-gpio = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>; |
|---|
| 376 | + snps,reset-gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>; |
|---|
| 363 | 377 | snps,reset-active-low; |
|---|
| 364 | 378 | /* Reset time is 20ms, 100ms for rtl8211f */ |
|---|
| 365 | 379 | snps,reset-delays-us = <0 20000 100000>; |
|---|
| .. | .. |
|---|
| 379 | 393 | rx_delay = <0x2f>; |
|---|
| 380 | 394 | |
|---|
| 381 | 395 | phy-handle = <&rgmii_phy0>; |
|---|
| 382 | | - status = "disabled"; |
|---|
| 396 | + |
|---|
| 397 | + status = "okay"; |
|---|
| 398 | + |
|---|
| 383 | 399 | }; |
|---|
| 384 | 400 | |
|---|
| 385 | 401 | &gmac1 { |
|---|
| .. | .. |
|---|
| 516 | 532 | }; |
|---|
| 517 | 533 | |
|---|
| 518 | 534 | &video_phy0 { |
|---|
| 519 | | - status = "disabled"; |
|---|
| 535 | + status = "okay"; |
|---|
| 520 | 536 | }; |
|---|
| 521 | 537 | |
|---|
| 522 | 538 | &video_phy1 { |
|---|
| .. | .. |
|---|
| 527 | 543 | status = "okay"; |
|---|
| 528 | 544 | }; |
|---|
| 529 | 545 | |
|---|
| 546 | +&pcie2x1 { |
|---|
| 547 | + reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>; |
|---|
| 548 | + vpcie3v3-supply = <&vcc3v3_pcie>; |
|---|
| 549 | + status = "okay"; |
|---|
| 550 | +}; |
|---|
| 551 | + |
|---|
| 530 | 552 | &pcie3x2 { |
|---|
| 531 | | - reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>; |
|---|
| 553 | + reset-gpios = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>; |
|---|
| 554 | + vpcie3v3-supply = <&vcc3v3_pcie>; |
|---|
| 555 | + status = "disabled"; |
|---|
| 556 | +}; |
|---|
| 557 | + |
|---|
| 558 | +&pcie3x1 { |
|---|
| 559 | + rockchip,bifurcation; |
|---|
| 560 | + reset-gpios = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>; |
|---|
| 532 | 561 | vpcie3v3-supply = <&vcc3v3_pcie>; |
|---|
| 533 | 562 | status = "okay"; |
|---|
| 534 | 563 | }; |
|---|
| .. | .. |
|---|
| 544 | 573 | wireless-wlan { |
|---|
| 545 | 574 | wifi_host_wake_irq: wifi-host-wake-irq { |
|---|
| 546 | 575 | rockchip,pins = <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_down>; |
|---|
| 547 | | - }; |
|---|
| 548 | | - }; |
|---|
| 549 | | - |
|---|
| 550 | | - wireless-bluetooth { |
|---|
| 551 | | - uart1_gpios: uart1-gpios { |
|---|
| 552 | | - rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; |
|---|
| 553 | 576 | }; |
|---|
| 554 | 577 | }; |
|---|
| 555 | 578 | |
|---|
| .. | .. |
|---|
| 614 | 637 | |
|---|
| 615 | 638 | |
|---|
| 616 | 639 | &route_edp { |
|---|
| 617 | | - status = "okay"; |
|---|
| 640 | + status = "disabled"; |
|---|
| 618 | 641 | connect = <&vp1_out_edp>; |
|---|
| 619 | 642 | }; |
|---|
| 620 | 643 | |
|---|
| .. | .. |
|---|
| 668 | 691 | |
|---|
| 669 | 692 | &wireless_bluetooth { |
|---|
| 670 | 693 | compatible = "bluetooth-platdata"; |
|---|
| 671 | | - clocks = <&rk809 1>; |
|---|
| 672 | | - clock-names = "ext_clock"; |
|---|
| 673 | | - //wifi-bt-power-toggle; |
|---|
| 674 | | - uart_rts_gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_LOW>; |
|---|
| 675 | | - pinctrl-names = "default", "rts_gpio"; |
|---|
| 676 | | - pinctrl-0 = <&uart1m0_rtsn>; |
|---|
| 677 | | - pinctrl-1 = <&uart1_gpios>; |
|---|
| 678 | | - BT,reset_gpio = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>; |
|---|
| 679 | | - BT,wake_gpio = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>; |
|---|
| 680 | | - BT,wake_host_irq = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>; |
|---|
| 681 | | - status = "okay"; |
|---|
| 694 | + status = "disabled"; |
|---|
| 682 | 695 | }; |
|---|
| 683 | 696 | |
|---|
| 684 | 697 | &uart0 { |
|---|
| .. | .. |
|---|
| 688 | 701 | &uart1 { |
|---|
| 689 | 702 | pinctrl-names = "default"; |
|---|
| 690 | 703 | pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>; |
|---|
| 691 | | - status = "okay"; |
|---|
| 704 | + status = "disabled"; |
|---|
| 692 | 705 | }; |
|---|
| 693 | 706 | |
|---|
| 694 | 707 | &uart3 { |
|---|