.. | .. |
---|
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_PC4 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>; |
---|
.. | .. |
---|
103 | 124 | gpio_function = <0>; |
---|
104 | 125 | }; |
---|
105 | 126 | |
---|
106 | | - hub_host2_rst { |
---|
107 | | - gpio_num = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; //HUB_RST_GPIO4_D2_3V3 |
---|
| 127 | + vcc_3.3v { |
---|
| 128 | + gpio_num = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; //VCC3_IO_EN_GPIO0_C4_3V3 |
---|
| 129 | + gpio_function = <0>; |
---|
| 130 | + }; |
---|
| 131 | + |
---|
| 132 | + ax88772_rst { |
---|
| 133 | + gpio_num = <&gpio3 RK_PB5 GPIO_ACTIVE_HIGH>; //AX88772_RST_GPIO3_B5_3V3 |
---|
| 134 | + gpio_function = <3>; |
---|
| 135 | + }; |
---|
| 136 | + |
---|
| 137 | + ax88631_rst { |
---|
| 138 | + gpio_num = <&gpio3 RK_PB6 GPIO_ACTIVE_HIGH>; //AX88772_RST_GPIO3_B6_3V3 |
---|
108 | 139 | gpio_function = <3>; |
---|
109 | 140 | }; |
---|
110 | 141 | |
---|
.. | .. |
---|
133 | 164 | gpio_function = <0>; |
---|
134 | 165 | }; |
---|
135 | 166 | |
---|
136 | | - hp_en { |
---|
137 | | - gpio_num = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;//HP_EN_GPIO3_A6_3V3 |
---|
138 | | - gpio_function = <0>; |
---|
139 | | - }; |
---|
| 167 | + //gpio99 { |
---|
| 168 | + // gpio_num = <&gpio3 RK_PA3 GPIO_ACTIVE_LOW>;//HP_EN_GPIO3_A6_3V3 |
---|
| 169 | + // gpio_function = <1>; |
---|
| 170 | + //}; |
---|
140 | 171 | |
---|
141 | 172 | wifi_power_en { |
---|
142 | 173 | gpio_num = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8 |
---|
143 | 174 | gpio_function = <0>; |
---|
144 | 175 | }; |
---|
| 176 | + #if 0 |
---|
| 177 | + do1 { |
---|
| 178 | + gpio_num = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>; |
---|
| 179 | + gpio_function = <0>; |
---|
| 180 | + }; |
---|
| 181 | + |
---|
| 182 | + do2 { |
---|
| 183 | + gpio_num = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>; |
---|
| 184 | + gpio_function = <0>; |
---|
| 185 | + }; |
---|
| 186 | + |
---|
| 187 | + do3 { |
---|
| 188 | + gpio_num = <&gpio1 RK_PD1 GPIO_ACTIVE_HIGH>; |
---|
| 189 | + gpio_function = <0>; |
---|
| 190 | + }; |
---|
| 191 | + |
---|
| 192 | + do4 { |
---|
| 193 | + gpio_num = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>; |
---|
| 194 | + gpio_function = <0>; |
---|
| 195 | + }; |
---|
| 196 | + |
---|
| 197 | + do5 { |
---|
| 198 | + gpio_num = <&gpio2 RK_PD6 GPIO_ACTIVE_LOW>; |
---|
| 199 | + gpio_function = <0>; |
---|
| 200 | + }; |
---|
| 201 | + |
---|
| 202 | + do6 { |
---|
| 203 | + gpio_num = <&gpio2 RK_PD7 GPIO_ACTIVE_LOW>; |
---|
| 204 | + gpio_function = <0>; |
---|
| 205 | + }; |
---|
| 206 | + |
---|
| 207 | + do7 { |
---|
| 208 | + gpio_num = <&gpio3 RK_PA0 GPIO_ACTIVE_LOW>; |
---|
| 209 | + gpio_function = <0>; |
---|
| 210 | + }; |
---|
| 211 | + |
---|
| 212 | + di1 { |
---|
| 213 | + gpio_num = <&gpio2 RK_PD5 GPIO_ACTIVE_HIGH>; |
---|
| 214 | + gpio_function = <1>; |
---|
| 215 | + }; |
---|
| 216 | + #endif |
---|
145 | 217 | }; |
---|
146 | 218 | #if 0 |
---|
147 | 219 | nk_io_init { |
---|
.. | .. |
---|
182 | 254 | nodka-lvds = <15>; |
---|
183 | 255 | |
---|
184 | 256 | display-timings { |
---|
185 | | - native-mode = <&timing0>; |
---|
186 | | - timing0: timing0 { |
---|
| 257 | + native-mode = <&timing>; |
---|
| 258 | + timing: timing { |
---|
187 | 259 | clock-frequency = <72500000>; |
---|
188 | 260 | hactive = <1280>; |
---|
189 | 261 | vactive = <800>; |
---|
.. | .. |
---|
200 | 272 | }; |
---|
201 | 273 | }; |
---|
202 | 274 | ports { |
---|
203 | | - panel_in: endpoint { |
---|
204 | | - remote-endpoint = <&edp_out>; |
---|
| 275 | + panel_in_lvds: endpoint { |
---|
| 276 | + remote-endpoint = <&lvds_out>; |
---|
205 | 277 | }; |
---|
206 | 278 | }; |
---|
207 | 279 | }; |
---|
.. | .. |
---|
293 | 365 | */ |
---|
294 | 366 | |
---|
295 | 367 | &video_phy1 { |
---|
296 | | - status = "okay"; |
---|
| 368 | + status = "disabled"; |
---|
297 | 369 | }; |
---|
298 | 370 | &dsi1 { |
---|
299 | 371 | status = "disabled"; |
---|
.. | .. |
---|
304 | 376 | }; |
---|
305 | 377 | |
---|
306 | 378 | &dsi1_in_vp1 { |
---|
307 | | - status = "okay"; |
---|
| 379 | + status = "disabled"; |
---|
308 | 380 | }; |
---|
309 | 381 | |
---|
310 | 382 | &dsi1_panel { |
---|
311 | | - power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3 |
---|
| 383 | +// power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3 |
---|
312 | 384 | vddio-mipi = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; //MIPI_EN_1V8_GPIO3_A4_d_3V3 |
---|
313 | 385 | reset-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_LOW>; //MIPI_RST_L_GPIO3_C7 |
---|
314 | 386 | vcc-5v-gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3 |
---|
.. | .. |
---|
328 | 400 | |
---|
329 | 401 | &edp { |
---|
330 | 402 | 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 | | - }; |
---|
| 403 | + status = "disabled"; |
---|
340 | 404 | }; |
---|
341 | 405 | |
---|
342 | 406 | &edp_phy { |
---|
343 | | - status = "okay"; |
---|
344 | | - |
---|
| 407 | + status = "disabled"; |
---|
345 | 408 | }; |
---|
346 | 409 | |
---|
347 | 410 | &edp_in_vp0 { |
---|
.. | .. |
---|
349 | 412 | }; |
---|
350 | 413 | |
---|
351 | 414 | &edp_in_vp1 { |
---|
352 | | - status = "okay"; |
---|
| 415 | + status = "disabled"; |
---|
353 | 416 | |
---|
354 | 417 | }; |
---|
355 | 418 | |
---|
356 | 419 | &route_edp { |
---|
357 | | - status = "okay"; |
---|
| 420 | + status = "disabled"; |
---|
358 | 421 | connect = <&vp1_out_edp>; |
---|
359 | 422 | }; |
---|
360 | 423 | |
---|
361 | 424 | &route_edp { |
---|
362 | | - status = "okay"; |
---|
| 425 | + status = "disabled"; |
---|
363 | 426 | }; |
---|
| 427 | + |
---|
| 428 | +&lvds { |
---|
| 429 | + status = "disabled"; |
---|
| 430 | + ports { |
---|
| 431 | + port@1 { |
---|
| 432 | + reg = <1>; |
---|
| 433 | + lvds_out:endpoint { |
---|
| 434 | + remote-endpoint = <&panel_in_lvds>; |
---|
| 435 | + }; |
---|
| 436 | + }; |
---|
| 437 | + }; |
---|
| 438 | +}; |
---|
| 439 | + |
---|
| 440 | +&route_lvds{ |
---|
| 441 | + status = "okay"; |
---|
| 442 | + connect = <&vp1_out_lvds>; |
---|
| 443 | +}; |
---|
| 444 | + |
---|
| 445 | +&lvds_in_vp1 { |
---|
| 446 | + status = "disabled"; |
---|
| 447 | +}; |
---|
| 448 | + |
---|
364 | 449 | /* |
---|
365 | 450 | * edp_end |
---|
366 | 451 | */ |
---|
.. | .. |
---|
405 | 490 | phy-mode = "rgmii"; |
---|
406 | 491 | clock_in_out = "output"; |
---|
407 | 492 | |
---|
408 | | - snps,reset-gpio = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>; |
---|
| 493 | + snps,reset-gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>; |
---|
409 | 494 | snps,reset-active-low; |
---|
410 | 495 | /* Reset time is 20ms, 100ms for rtl8211f */ |
---|
411 | 496 | snps,reset-delays-us = <0 20000 100000>; |
---|
.. | .. |
---|
425 | 510 | rx_delay = <0x2f>; |
---|
426 | 511 | |
---|
427 | 512 | phy-handle = <&rgmii_phy0>; |
---|
| 513 | + |
---|
428 | 514 | status = "disabled"; |
---|
| 515 | + |
---|
429 | 516 | }; |
---|
430 | 517 | |
---|
431 | 518 | &gmac1 { |
---|
.. | .. |
---|
459 | 546 | * power-supply should switche to vcc3v3_lcd1_n |
---|
460 | 547 | * when mipi panel is connected to dsi1. |
---|
461 | 548 | */ |
---|
462 | | ->1x { |
---|
463 | | - power-supply = <&vcc3v3_lcd0_n>; |
---|
464 | | -}; |
---|
| 549 | + |
---|
465 | 550 | |
---|
466 | 551 | &i2c3 { |
---|
467 | 552 | status = "okay"; |
---|
.. | .. |
---|
480 | 565 | }; |
---|
481 | 566 | |
---|
482 | 567 | &i2c4 { |
---|
483 | | - status = "okay"; |
---|
| 568 | + status = "disabled"; |
---|
484 | 569 | gc8034: gc8034@37 { |
---|
485 | 570 | compatible = "galaxycore,gc8034"; |
---|
486 | 571 | status = "okay"; |
---|
.. | .. |
---|
492 | 577 | reset-gpios = <&gpio3 RK_PB6 GPIO_ACTIVE_LOW>; |
---|
493 | 578 | pwdn-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_LOW>; |
---|
494 | 579 | rockchip,grf = <&grf>; |
---|
495 | | - power-domains = <&power RK3568_PD_VI>; |
---|
496 | 580 | rockchip,camera-module-index = <0>; |
---|
497 | 581 | rockchip,camera-module-facing = "back"; |
---|
498 | 582 | rockchip,camera-module-name = "RK-CMK-8M-2-v1"; |
---|
.. | .. |
---|
526 | 610 | }; |
---|
527 | 611 | }; |
---|
528 | 612 | ov5695: ov5695@36 { |
---|
529 | | - status = "okay"; |
---|
| 613 | + status = "disabled"; |
---|
530 | 614 | compatible = "ovti,ov5695"; |
---|
531 | 615 | reg = <0x36>; |
---|
532 | 616 | clocks = <&cru CLK_CIF_OUT>; |
---|
.. | .. |
---|
579 | 663 | |
---|
580 | 664 | |
---|
581 | 665 | &pcie30phy { |
---|
582 | | - status = "okay"; |
---|
| 666 | + status = "disabled"; |
---|
583 | 667 | }; |
---|
584 | 668 | |
---|
585 | 669 | &pcie2x1 { |
---|
.. | .. |
---|
638 | 722 | <3 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
639 | 723 | <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
640 | 724 | <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
| 725 | + <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
| 726 | + <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
| 727 | + <3 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
641 | 728 | <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 |
---|
| 729 | + <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B0_u_3V3 DO1 8 |
---|
| 730 | + <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B3_u_3V3 DO2 11 |
---|
| 731 | + <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B4_u_3V3 DO3 12 |
---|
| 732 | + <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B5_u_3V3 DO4 13 |
---|
| 733 | + <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B6_u_3V3 DO5 14 |
---|
| 734 | + |
---|
| 735 | + <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C0_d_3V3 DI1 16 |
---|
| 736 | + <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C1_d_3V3 DI2 17 |
---|
| 737 | + <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C2_d_3V3 DI3 18 |
---|
| 738 | + <0 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C3_d_3V3 DI4 19 |
---|
| 739 | + <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C5_d_3V3 DI5 21 |
---|
646 | 740 | <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; |
---|
647 | 741 | }; |
---|
648 | 742 | }; |
---|
.. | .. |
---|
669 | 763 | }; |
---|
670 | 764 | }; |
---|
671 | 765 | }; |
---|
672 | | - |
---|
673 | | - |
---|
674 | 766 | |
---|
675 | 767 | |
---|
676 | 768 | |
---|
.. | .. |
---|
710 | 802 | pinctrl-0 = <&uart8m0_xfer &uart8m0_ctsn>; |
---|
711 | 803 | }; |
---|
712 | 804 | |
---|
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 | 805 | |
---|
723 | 806 | &wireless_wlan { |
---|
724 | 807 | pinctrl-names = "default"; |
---|
.. | .. |
---|
738 | 821 | BT,reset_gpio = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>; |
---|
739 | 822 | BT,wake_gpio = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>; |
---|
740 | 823 | BT,wake_host_irq = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>; |
---|
741 | | - status = "okay"; |
---|
| 824 | + status = "disabled"; |
---|
742 | 825 | }; |
---|
743 | 826 | |
---|
744 | 827 | &uart0 { |
---|
745 | | - status = "okay"; |
---|
| 828 | + status = "disabled"; |
---|
746 | 829 | }; |
---|
747 | 830 | |
---|
748 | 831 | &uart1 { |
---|
749 | 832 | pinctrl-names = "default"; |
---|
750 | 833 | pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>; |
---|
751 | | - status = "okay"; |
---|
| 834 | + status = "disabled"; |
---|
752 | 835 | }; |
---|
753 | 836 | |
---|
754 | 837 | &uart3 { |
---|
.. | .. |
---|
757 | 840 | }; |
---|
758 | 841 | |
---|
759 | 842 | &uart4 { |
---|
760 | | - status = "okay"; |
---|
| 843 | + status = "disabled"; |
---|
761 | 844 | pinctrl-0 = <&uart4m1_xfer>; |
---|
762 | 845 | }; |
---|
763 | 846 | |
---|
.. | .. |
---|
766 | 849 | pinctrl-0 = <&uart5m1_xfer>; |
---|
767 | 850 | }; |
---|
768 | 851 | |
---|
| 852 | + |
---|
769 | 853 | &uart7 { |
---|
770 | 854 | status = "okay"; |
---|
771 | 855 | pinctrl-0 = <&uart7m1_xfer>; |
---|
772 | 856 | }; |
---|
773 | 857 | |
---|
| 858 | +&uart8 { |
---|
| 859 | + status = "disabled"; |
---|
| 860 | + pinctrl-0 = <&uart8m1_xfer>; |
---|
| 861 | +}; |
---|
| 862 | + |
---|
774 | 863 | &uart9 { |
---|
775 | | - status = "okay"; |
---|
| 864 | + status = "disabled"; |
---|
776 | 865 | pinctrl-0 = <&uart9m1_xfer>; |
---|
777 | 866 | }; |
---|