forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/arch/arm64/boot/dts/rockchip/NK-R36S0.dtsi
....@@ -34,15 +34,6 @@
3434 vin-supply = <&vcc3v3_sys>;
3535 };
3636
37
- vcc3v3_vga: vcc3v3-vga {
38
- compatible = "regulator-fixed";
39
- regulator-name = "vcc3v3_vga";
40
- regulator-always-on;
41
- regulator-boot-on;
42
- gpio = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>;
43
- enable-active-high;
44
- vin-supply = <&vcc3v3_sys>;
45
- };
4637
4738 pcie30_avdd0v9: pcie30-avdd0v9 {
4839 compatible = "regulator-fixed";
....@@ -98,6 +89,24 @@
9889 regulator-boot-on;
9990 };
10091 #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
+
101110 ndj_io_init {
102111 compatible = "nk_io_control";
103112 pinctrl-names = "default";
....@@ -112,6 +121,11 @@
112121
113122 vcc_12v {
114123 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
115129 gpio_function = <0>;
116130 };
117131
....@@ -145,10 +159,10 @@
145159 gpio_function = <0>;
146160 };
147161
148
- hp_en {
149
- gpio_num = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;//HP_EN_GPIO3_A6_3V3
150
- gpio_function = <0>;
151
- };
162
+ //gpio99 {
163
+ // gpio_num = <&gpio3 RK_PA3 GPIO_ACTIVE_LOW>;//HP_EN_GPIO3_A6_3V3
164
+ // gpio_function = <1>;
165
+ //};
152166
153167 wifi_power_en {
154168 gpio_num = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8
....@@ -235,8 +249,8 @@
235249 nodka-lvds = <15>;
236250
237251 display-timings {
238
- native-mode = <&timing0>;
239
- timing0: timing0 {
252
+ native-mode = <&timing>;
253
+ timing: timing {
240254 clock-frequency = <72500000>;
241255 hactive = <1280>;
242256 vactive = <800>;
....@@ -253,8 +267,8 @@
253267 };
254268 };
255269 ports {
256
- panel_in: endpoint {
257
- remote-endpoint = <&edp_out>;
270
+ panel_in_lvds: endpoint {
271
+ remote-endpoint = <&lvds_out>;
258272 };
259273 };
260274 };
....@@ -346,7 +360,7 @@
346360 */
347361
348362 &video_phy1 {
349
- status = "okay";
363
+ status = "disabled";
350364 };
351365 &dsi1 {
352366 status = "disabled";
....@@ -357,11 +371,11 @@
357371 };
358372
359373 &dsi1_in_vp1 {
360
- status = "okay";
374
+ status = "disabled";
361375 };
362376
363377 &dsi1_panel {
364
- power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3
378
+// power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3
365379 vddio-mipi = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; //MIPI_EN_1V8_GPIO3_A4_d_3V3
366380 reset-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_LOW>; //MIPI_RST_L_GPIO3_C7
367381 vcc-5v-gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3
....@@ -381,20 +395,11 @@
381395
382396 &edp {
383397 force-hpd;
384
- status = "okay";
385
- ports {
386
- port@1 {
387
- reg = <1>;
388
- edp_out: endpoint {
389
- remote-endpoint = <&panel_in>;
390
- };
391
- };
392
-
393
- };
398
+ status = "disabled";
394399 };
395400
396401 &edp_phy {
397
- status = "okay";
402
+ status = "disabled";
398403 };
399404
400405 &edp_in_vp0 {
....@@ -402,18 +407,40 @@
402407 };
403408
404409 &edp_in_vp1 {
405
- status = "okay";
410
+ status = "disabled";
406411
407412 };
408413
409414 &route_edp {
410
- status = "okay";
415
+ status = "disabled";
411416 connect = <&vp1_out_edp>;
412417 };
413418
414419 &route_edp {
415
- status = "okay";
420
+ status = "disabled";
416421 };
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
+
417444 /*
418445 * edp_end
419446 */
....@@ -631,7 +658,7 @@
631658
632659
633660 &pcie30phy {
634
- status = "okay";
661
+ status = "disabled";
635662 };
636663
637664 &pcie2x1 {
....@@ -690,11 +717,21 @@
690717 <3 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>,
691718 <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>,
692719 <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>,
693723 <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>,
694
- <2 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,//93 SPI2_CS0_M1_3V3
695
- <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>,//94 SPI2_MOSI_M1_3V3
696
- <2 RK_PD7 RK_FUNC_GPIO &pcfg_pull_none>,//95 SPI2_MISO_M1_3V3
697
- <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
698735 <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
699736 };
700737 };
....@@ -760,15 +797,6 @@
760797 pinctrl-0 = <&uart8m0_xfer &uart8m0_ctsn>;
761798 };
762799
763
-&vcc3v3_lcd0_n {
764
- gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
765
- enable-active-high;
766
-};
767
-
768
-&vcc3v3_lcd1_n {
769
- gpio = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>; //MIPI_3V3EN_GPIO3_A3_d_3V3
770
- enable-active-high;
771
-};
772800
773801 &wireless_wlan {
774802 pinctrl-names = "default";
....@@ -788,17 +816,17 @@
788816 BT,reset_gpio = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
789817 BT,wake_gpio = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>;
790818 BT,wake_host_irq = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>;
791
- status = "okay";
819
+ status = "disabled";
792820 };
793821
794822 &uart0 {
795
- status = "okay";
823
+ status = "disabled";
796824 };
797825
798826 &uart1 {
799827 pinctrl-names = "default";
800828 pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>;
801
- status = "okay";
829
+ status = "disabled";
802830 };
803831
804832 &uart3 {
....@@ -807,7 +835,7 @@
807835 };
808836
809837 &uart4 {
810
- status = "okay";
838
+ status = "disabled";
811839 pinctrl-0 = <&uart4m1_xfer>;
812840 };
813841
....@@ -816,12 +844,18 @@
816844 pinctrl-0 = <&uart5m1_xfer>;
817845 };
818846
847
+
819848 &uart7 {
820849 status = "okay";
821850 pinctrl-0 = <&uart7m1_xfer>;
822851 };
823852
853
+&uart8 {
854
+ status = "disabled";
855
+ pinctrl-0 = <&uart8m1_xfer>;
856
+};
857
+
824858 &uart9 {
825
- status = "okay";
859
+ status = "disabled";
826860 pinctrl-0 = <&uart9m1_xfer>;
827861 };