.. | .. |
---|
89 | 89 | regulator-boot-on; |
---|
90 | 90 | }; |
---|
91 | 91 | #endif |
---|
| 92 | + |
---|
| 93 | + leds: leds { |
---|
| 94 | + compatible = "gpio-leds"; |
---|
| 95 | + sig_led: sig_led { |
---|
| 96 | + gpios = <&gpio4 RK_PC3 GPIO_ACTIVE_HIGH>; |
---|
| 97 | + default-state = "on"; |
---|
| 98 | + }; |
---|
| 99 | + }; |
---|
| 100 | + |
---|
| 101 | + leds: leds { |
---|
| 102 | + compatible = "gpio-leds"; |
---|
| 103 | + err_led: err_led { |
---|
| 104 | + gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; |
---|
| 105 | + default-state = "on"; |
---|
| 106 | + }; |
---|
| 107 | + }; |
---|
| 108 | + |
---|
| 109 | + |
---|
92 | 110 | ndj_io_init { |
---|
93 | 111 | compatible = "nk_io_control"; |
---|
94 | 112 | pinctrl-names = "default"; |
---|
95 | 113 | pinctrl-0 = <&nk_io_gpio>; |
---|
| 114 | + |
---|
| 115 | + //gpio_op0 = <&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>; |
---|
| 116 | + |
---|
96 | 117 | vcc_5v { |
---|
97 | 118 | gpio_num = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3 |
---|
98 | 119 | gpio_function = <0>; |
---|
.. | .. |
---|
100 | 121 | |
---|
101 | 122 | vcc_12v { |
---|
102 | 123 | gpio_num = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; //VCC12_IO_EN_GPIO0_C7_3V3 |
---|
| 124 | + gpio_function = <0>; |
---|
| 125 | + }; |
---|
| 126 | + |
---|
| 127 | + vcc_3.3v { |
---|
| 128 | + gpio_num = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; //VCC3_IO_EN_GPIO0_C4_3V3 |
---|
103 | 129 | gpio_function = <0>; |
---|
104 | 130 | }; |
---|
105 | 131 | |
---|
.. | .. |
---|
133 | 159 | gpio_function = <0>; |
---|
134 | 160 | }; |
---|
135 | 161 | |
---|
136 | | - hp_en { |
---|
137 | | - gpio_num = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;//HP_EN_GPIO3_A6_3V3 |
---|
138 | | - gpio_function = <0>; |
---|
139 | | - }; |
---|
| 162 | + //gpio99 { |
---|
| 163 | + // gpio_num = <&gpio3 RK_PA3 GPIO_ACTIVE_LOW>;//HP_EN_GPIO3_A6_3V3 |
---|
| 164 | + // gpio_function = <1>; |
---|
| 165 | + //}; |
---|
140 | 166 | |
---|
141 | 167 | wifi_power_en { |
---|
142 | 168 | gpio_num = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8 |
---|
143 | 169 | gpio_function = <0>; |
---|
144 | 170 | }; |
---|
| 171 | + #if 0 |
---|
| 172 | + do1 { |
---|
| 173 | + gpio_num = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>; |
---|
| 174 | + gpio_function = <0>; |
---|
| 175 | + }; |
---|
| 176 | + |
---|
| 177 | + do2 { |
---|
| 178 | + gpio_num = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>; |
---|
| 179 | + gpio_function = <0>; |
---|
| 180 | + }; |
---|
| 181 | + |
---|
| 182 | + do3 { |
---|
| 183 | + gpio_num = <&gpio1 RK_PD1 GPIO_ACTIVE_HIGH>; |
---|
| 184 | + gpio_function = <0>; |
---|
| 185 | + }; |
---|
| 186 | + |
---|
| 187 | + do4 { |
---|
| 188 | + gpio_num = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>; |
---|
| 189 | + gpio_function = <0>; |
---|
| 190 | + }; |
---|
| 191 | + |
---|
| 192 | + do5 { |
---|
| 193 | + gpio_num = <&gpio2 RK_PD6 GPIO_ACTIVE_LOW>; |
---|
| 194 | + gpio_function = <0>; |
---|
| 195 | + }; |
---|
| 196 | + |
---|
| 197 | + do6 { |
---|
| 198 | + gpio_num = <&gpio2 RK_PD7 GPIO_ACTIVE_LOW>; |
---|
| 199 | + gpio_function = <0>; |
---|
| 200 | + }; |
---|
| 201 | + |
---|
| 202 | + do7 { |
---|
| 203 | + gpio_num = <&gpio3 RK_PA0 GPIO_ACTIVE_LOW>; |
---|
| 204 | + gpio_function = <0>; |
---|
| 205 | + }; |
---|
| 206 | + |
---|
| 207 | + di1 { |
---|
| 208 | + gpio_num = <&gpio2 RK_PD5 GPIO_ACTIVE_HIGH>; |
---|
| 209 | + gpio_function = <1>; |
---|
| 210 | + }; |
---|
| 211 | + #endif |
---|
145 | 212 | }; |
---|
146 | 213 | #if 0 |
---|
147 | 214 | nk_io_init { |
---|
.. | .. |
---|
182 | 249 | nodka-lvds = <15>; |
---|
183 | 250 | |
---|
184 | 251 | display-timings { |
---|
185 | | - native-mode = <&timing0>; |
---|
186 | | - timing0: timing0 { |
---|
| 252 | + native-mode = <&timing>; |
---|
| 253 | + timing: timing { |
---|
187 | 254 | clock-frequency = <72500000>; |
---|
188 | 255 | hactive = <1280>; |
---|
189 | 256 | vactive = <800>; |
---|
.. | .. |
---|
200 | 267 | }; |
---|
201 | 268 | }; |
---|
202 | 269 | ports { |
---|
203 | | - panel_in: endpoint { |
---|
204 | | - remote-endpoint = <&edp_out>; |
---|
| 270 | + panel_in_lvds: endpoint { |
---|
| 271 | + remote-endpoint = <&lvds_out>; |
---|
205 | 272 | }; |
---|
206 | 273 | }; |
---|
207 | 274 | }; |
---|
.. | .. |
---|
293 | 360 | */ |
---|
294 | 361 | |
---|
295 | 362 | &video_phy1 { |
---|
296 | | - status = "okay"; |
---|
| 363 | + status = "disabled"; |
---|
297 | 364 | }; |
---|
298 | 365 | &dsi1 { |
---|
299 | 366 | status = "disabled"; |
---|
.. | .. |
---|
304 | 371 | }; |
---|
305 | 372 | |
---|
306 | 373 | &dsi1_in_vp1 { |
---|
307 | | - status = "okay"; |
---|
| 374 | + status = "disabled"; |
---|
308 | 375 | }; |
---|
309 | 376 | |
---|
310 | 377 | &dsi1_panel { |
---|
311 | | - power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3 |
---|
| 378 | +// power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3 |
---|
312 | 379 | vddio-mipi = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; //MIPI_EN_1V8_GPIO3_A4_d_3V3 |
---|
313 | 380 | reset-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_LOW>; //MIPI_RST_L_GPIO3_C7 |
---|
314 | 381 | vcc-5v-gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3 |
---|
.. | .. |
---|
328 | 395 | |
---|
329 | 396 | &edp { |
---|
330 | 397 | force-hpd; |
---|
331 | | - status = "okay"; |
---|
332 | | - ports { |
---|
333 | | - port@1 { |
---|
334 | | - reg = <1>; |
---|
335 | | - edp_out: endpoint { |
---|
336 | | - remote-endpoint = <&panel_in>; |
---|
337 | | - }; |
---|
338 | | - }; |
---|
339 | | - }; |
---|
| 398 | + status = "disabled"; |
---|
340 | 399 | }; |
---|
341 | 400 | |
---|
342 | 401 | &edp_phy { |
---|
343 | | - status = "okay"; |
---|
344 | | - |
---|
| 402 | + status = "disabled"; |
---|
345 | 403 | }; |
---|
346 | 404 | |
---|
347 | 405 | &edp_in_vp0 { |
---|
.. | .. |
---|
349 | 407 | }; |
---|
350 | 408 | |
---|
351 | 409 | &edp_in_vp1 { |
---|
352 | | - status = "okay"; |
---|
| 410 | + status = "disabled"; |
---|
353 | 411 | |
---|
354 | 412 | }; |
---|
355 | 413 | |
---|
356 | 414 | &route_edp { |
---|
357 | | - status = "okay"; |
---|
| 415 | + status = "disabled"; |
---|
358 | 416 | connect = <&vp1_out_edp>; |
---|
359 | 417 | }; |
---|
360 | 418 | |
---|
361 | 419 | &route_edp { |
---|
362 | | - status = "okay"; |
---|
| 420 | + status = "disabled"; |
---|
363 | 421 | }; |
---|
| 422 | + |
---|
| 423 | +&lvds { |
---|
| 424 | + status = "disabled"; |
---|
| 425 | + ports { |
---|
| 426 | + port@1 { |
---|
| 427 | + reg = <1>; |
---|
| 428 | + lvds_out:endpoint { |
---|
| 429 | + remote-endpoint = <&panel_in_lvds>; |
---|
| 430 | + }; |
---|
| 431 | + }; |
---|
| 432 | + }; |
---|
| 433 | +}; |
---|
| 434 | + |
---|
| 435 | +&route_lvds{ |
---|
| 436 | + status = "okay"; |
---|
| 437 | + connect = <&vp1_out_lvds>; |
---|
| 438 | +}; |
---|
| 439 | + |
---|
| 440 | +&lvds_in_vp1 { |
---|
| 441 | + status = "disabled"; |
---|
| 442 | +}; |
---|
| 443 | + |
---|
364 | 444 | /* |
---|
365 | 445 | * edp_end |
---|
366 | 446 | */ |
---|
.. | .. |
---|
405 | 485 | phy-mode = "rgmii"; |
---|
406 | 486 | clock_in_out = "output"; |
---|
407 | 487 | |
---|
408 | | - snps,reset-gpio = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>; |
---|
| 488 | + snps,reset-gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>; |
---|
409 | 489 | snps,reset-active-low; |
---|
410 | 490 | /* Reset time is 20ms, 100ms for rtl8211f */ |
---|
411 | 491 | snps,reset-delays-us = <0 20000 100000>; |
---|
.. | .. |
---|
425 | 505 | rx_delay = <0x2f>; |
---|
426 | 506 | |
---|
427 | 507 | phy-handle = <&rgmii_phy0>; |
---|
| 508 | + |
---|
428 | 509 | status = "disabled"; |
---|
| 510 | + |
---|
429 | 511 | }; |
---|
430 | 512 | |
---|
431 | 513 | &gmac1 { |
---|
.. | .. |
---|
459 | 541 | * power-supply should switche to vcc3v3_lcd1_n |
---|
460 | 542 | * when mipi panel is connected to dsi1. |
---|
461 | 543 | */ |
---|
462 | | ->1x { |
---|
463 | | - power-supply = <&vcc3v3_lcd0_n>; |
---|
464 | | -}; |
---|
| 544 | + |
---|
465 | 545 | |
---|
466 | 546 | &i2c3 { |
---|
467 | 547 | status = "okay"; |
---|
.. | .. |
---|
480 | 560 | }; |
---|
481 | 561 | |
---|
482 | 562 | &i2c4 { |
---|
483 | | - status = "okay"; |
---|
| 563 | + status = "disabled"; |
---|
484 | 564 | gc8034: gc8034@37 { |
---|
485 | 565 | compatible = "galaxycore,gc8034"; |
---|
486 | 566 | status = "okay"; |
---|
.. | .. |
---|
492 | 572 | reset-gpios = <&gpio3 RK_PB6 GPIO_ACTIVE_LOW>; |
---|
493 | 573 | pwdn-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_LOW>; |
---|
494 | 574 | rockchip,grf = <&grf>; |
---|
495 | | - power-domains = <&power RK3568_PD_VI>; |
---|
496 | 575 | rockchip,camera-module-index = <0>; |
---|
497 | 576 | rockchip,camera-module-facing = "back"; |
---|
498 | 577 | rockchip,camera-module-name = "RK-CMK-8M-2-v1"; |
---|
.. | .. |
---|
526 | 605 | }; |
---|
527 | 606 | }; |
---|
528 | 607 | ov5695: ov5695@36 { |
---|
529 | | - status = "okay"; |
---|
| 608 | + status = "disabled"; |
---|
530 | 609 | compatible = "ovti,ov5695"; |
---|
531 | 610 | reg = <0x36>; |
---|
532 | 611 | clocks = <&cru CLK_CIF_OUT>; |
---|
.. | .. |
---|
579 | 658 | |
---|
580 | 659 | |
---|
581 | 660 | &pcie30phy { |
---|
582 | | - status = "okay"; |
---|
| 661 | + status = "disabled"; |
---|
583 | 662 | }; |
---|
584 | 663 | |
---|
585 | 664 | &pcie2x1 { |
---|
.. | .. |
---|
638 | 717 | <3 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
639 | 718 | <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
640 | 719 | <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
| 720 | + <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
| 721 | + <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
| 722 | + <3 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
641 | 723 | <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
642 | | - <2 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,//93 SPI2_CS0_M1_3V3 |
---|
643 | | - <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>,//94 SPI2_MOSI_M1_3V3 |
---|
644 | | - <2 RK_PD7 RK_FUNC_GPIO &pcfg_pull_none>,//95 SPI2_MISO_M1_3V3 |
---|
645 | | - <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>,//96 SPI2_CLK_M1_3V3 |
---|
| 724 | + <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B0_u_3V3 DO1 |
---|
| 725 | + <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B3_u_3V3 DO2 |
---|
| 726 | + <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B4_u_3V3 DO3 |
---|
| 727 | + <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B5_u_3V3 DO4 |
---|
| 728 | + <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B6_u_3V3 DO5 |
---|
| 729 | + |
---|
| 730 | + <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C0_d_3V3 DI1_1 |
---|
| 731 | + <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C1_d_3V3 DI2_1 |
---|
| 732 | + <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C2_d_3V3 DI3_1 |
---|
| 733 | + <0 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C3_d_3V3 DI4_1 |
---|
| 734 | + <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C5_d_3V3 DI5_1 |
---|
646 | 735 | <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; |
---|
647 | 736 | }; |
---|
648 | 737 | }; |
---|
.. | .. |
---|
669 | 758 | }; |
---|
670 | 759 | }; |
---|
671 | 760 | }; |
---|
672 | | - |
---|
673 | | - |
---|
674 | 761 | |
---|
675 | 762 | |
---|
676 | 763 | |
---|
.. | .. |
---|
710 | 797 | pinctrl-0 = <&uart8m0_xfer &uart8m0_ctsn>; |
---|
711 | 798 | }; |
---|
712 | 799 | |
---|
713 | | -&vcc3v3_lcd0_n { |
---|
714 | | - gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; |
---|
715 | | - enable-active-high; |
---|
716 | | -}; |
---|
717 | | - |
---|
718 | | -&vcc3v3_lcd1_n { |
---|
719 | | - gpio = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>; //MIPI_3V3EN_GPIO3_A3_d_3V3 |
---|
720 | | - enable-active-high; |
---|
721 | | -}; |
---|
722 | 800 | |
---|
723 | 801 | &wireless_wlan { |
---|
724 | 802 | pinctrl-names = "default"; |
---|
.. | .. |
---|
738 | 816 | BT,reset_gpio = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>; |
---|
739 | 817 | BT,wake_gpio = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>; |
---|
740 | 818 | BT,wake_host_irq = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>; |
---|
741 | | - status = "okay"; |
---|
| 819 | + status = "disabled"; |
---|
742 | 820 | }; |
---|
743 | 821 | |
---|
744 | 822 | &uart0 { |
---|
745 | | - status = "okay"; |
---|
| 823 | + status = "disabled"; |
---|
746 | 824 | }; |
---|
747 | 825 | |
---|
748 | 826 | &uart1 { |
---|
749 | 827 | pinctrl-names = "default"; |
---|
750 | 828 | pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>; |
---|
751 | | - status = "okay"; |
---|
| 829 | + status = "disabled"; |
---|
752 | 830 | }; |
---|
753 | 831 | |
---|
754 | 832 | &uart3 { |
---|
.. | .. |
---|
757 | 835 | }; |
---|
758 | 836 | |
---|
759 | 837 | &uart4 { |
---|
760 | | - status = "okay"; |
---|
| 838 | + status = "disabled"; |
---|
761 | 839 | pinctrl-0 = <&uart4m1_xfer>; |
---|
762 | 840 | }; |
---|
763 | 841 | |
---|
.. | .. |
---|
766 | 844 | pinctrl-0 = <&uart5m1_xfer>; |
---|
767 | 845 | }; |
---|
768 | 846 | |
---|
| 847 | + |
---|
769 | 848 | &uart7 { |
---|
770 | 849 | status = "okay"; |
---|
771 | 850 | pinctrl-0 = <&uart7m1_xfer>; |
---|
772 | 851 | }; |
---|
773 | 852 | |
---|
| 853 | +&uart8 { |
---|
| 854 | + status = "disabled"; |
---|
| 855 | + pinctrl-0 = <&uart8m1_xfer>; |
---|
| 856 | +}; |
---|
| 857 | + |
---|
774 | 858 | &uart9 { |
---|
775 | | - status = "okay"; |
---|
| 859 | + status = "disabled"; |
---|
776 | 860 | pinctrl-0 = <&uart9m1_xfer>; |
---|
777 | 861 | }; |
---|