forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
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,25 @@
9889 regulator-boot-on;
9990 };
10091 #endif
92
+
93
+#if 0
94
+ leds: leds {
95
+ compatible = "gpio-leds";
96
+ sig_led: sig_led {
97
+ gpios = <&gpio4 RK_PC4 GPIO_ACTIVE_HIGH>;
98
+ default-state = "on";
99
+ };
100
+ };
101
+
102
+ leds: leds {
103
+ compatible = "gpio-leds";
104
+ err_led: err_led {
105
+ gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
106
+ default-state = "on";
107
+ };
108
+ };
109
+#endif
110
+
101111 ndj_io_init {
102112 compatible = "nk_io_control";
103113 pinctrl-names = "default";
....@@ -115,16 +125,26 @@
115125 gpio_function = <0>;
116126 };
117127
118
- hub_host2_rst {
119
- gpio_num = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; //HUB_RST_GPIO4_D2_3V3
128
+ vcc_3.3v {
129
+ gpio_num = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; //VCC3_IO_EN_GPIO0_C4_3V3
130
+ gpio_function = <0>;
131
+ };
132
+
133
+ ax88772_rst {
134
+ gpio_num = <&gpio3 RK_PB5 GPIO_ACTIVE_HIGH>; //AX88772_RST_GPIO3_B5_3V3
120135 gpio_function = <3>;
121136 };
122137
138
+ ax88631_rst {
139
+ gpio_num = <&gpio3 RK_PB6 GPIO_ACTIVE_HIGH>; //AX88772_RST_GPIO3_B6_3V3
140
+ gpio_function = <3>;
141
+ };
142
+/*
123143 hub_host3 {
124144 gpio_num = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>; //HOST3_EN_GPIO4_B2_1V8
125145 gpio_function = <0>;
126146 };
127
-
147
+*/
128148 wake_4g {
129149 gpio_num = <&gpio1 RK_PB1 GPIO_ACTIVE_LOW>; //4G_WAKEUP_GPIO01_B1_3V3
130150 gpio_function = <0>;
....@@ -145,10 +165,10 @@
145165 gpio_function = <0>;
146166 };
147167
148
- hp_en {
149
- gpio_num = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;//HP_EN_GPIO3_A6_3V3
150
- gpio_function = <0>;
151
- };
168
+ //gpio99 {
169
+ // gpio_num = <&gpio3 RK_PA3 GPIO_ACTIVE_LOW>;//HP_EN_GPIO3_A6_3V3
170
+ // gpio_function = <1>;
171
+ //};
152172
153173 wifi_power_en {
154174 gpio_num = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8
....@@ -235,8 +255,8 @@
235255 nodka-lvds = <15>;
236256
237257 display-timings {
238
- native-mode = <&timing0>;
239
- timing0: timing0 {
258
+ native-mode = <&timing>;
259
+ timing: timing {
240260 clock-frequency = <72500000>;
241261 hactive = <1280>;
242262 vactive = <800>;
....@@ -253,8 +273,8 @@
253273 };
254274 };
255275 ports {
256
- panel_in: endpoint {
257
- remote-endpoint = <&edp_out>;
276
+ panel_in_lvds: endpoint {
277
+ remote-endpoint = <&lvds_out>;
258278 };
259279 };
260280 };
....@@ -346,7 +366,7 @@
346366 */
347367
348368 &video_phy1 {
349
- status = "okay";
369
+ status = "disabled";
350370 };
351371 &dsi1 {
352372 status = "disabled";
....@@ -357,11 +377,11 @@
357377 };
358378
359379 &dsi1_in_vp1 {
360
- status = "okay";
380
+ status = "disabled";
361381 };
362382
363383 &dsi1_panel {
364
- power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3
384
+// power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3
365385 vddio-mipi = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; //MIPI_EN_1V8_GPIO3_A4_d_3V3
366386 reset-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_LOW>; //MIPI_RST_L_GPIO3_C7
367387 vcc-5v-gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3
....@@ -381,20 +401,11 @@
381401
382402 &edp {
383403 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
- };
404
+ status = "disabled";
394405 };
395406
396407 &edp_phy {
397
- status = "okay";
408
+ status = "disabled";
398409 };
399410
400411 &edp_in_vp0 {
....@@ -402,18 +413,40 @@
402413 };
403414
404415 &edp_in_vp1 {
405
- status = "okay";
416
+ status = "disabled";
406417
407418 };
408419
409420 &route_edp {
410
- status = "okay";
421
+ status = "disabled";
411422 connect = <&vp1_out_edp>;
412423 };
413424
414425 &route_edp {
415
- status = "okay";
426
+ status = "disabled";
416427 };
428
+
429
+&lvds {
430
+ status = "disabled";
431
+ ports {
432
+ port@1 {
433
+ reg = <1>;
434
+ lvds_out:endpoint {
435
+ remote-endpoint = <&panel_in_lvds>;
436
+ };
437
+ };
438
+ };
439
+};
440
+
441
+&route_lvds{
442
+ status = "okay";
443
+ connect = <&vp1_out_lvds>;
444
+};
445
+
446
+&lvds_in_vp1 {
447
+ status = "disabled";
448
+};
449
+
417450 /*
418451 * edp_end
419452 */
....@@ -631,7 +664,7 @@
631664
632665
633666 &pcie30phy {
634
- status = "okay";
667
+ status = "disabled";
635668 };
636669
637670 &pcie2x1 {
....@@ -690,12 +723,27 @@
690723 <3 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>,
691724 <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>,
692725 <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,
726
+ <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>,
727
+ <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>,
728
+ <3 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,
693729 <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
698
- <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
730
+ <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B0_u_3V3 DO1 8
731
+ <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B3_u_3V3 DO2 11
732
+ <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B4_u_3V3 DO3 12
733
+ <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B5_u_3V3 DO4 13
734
+ <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B6_u_3V3 DO5 14
735
+
736
+ <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C0_d_3V3 DI1 16
737
+ <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C1_d_3V3 DI2 17
738
+ <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C2_d_3V3 DI3 18
739
+ <0 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C3_d_3V3 DI4 19
740
+ <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C5_d_3V3 DI5 21
741
+ <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>,
742
+ <4 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>, //sig_led
743
+ <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>, //err_led
744
+ <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>, //run_led
745
+ <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; //HOST3_EN_GPIO4_B2_1V8
746
+
699747 };
700748 };
701749 };
....@@ -760,15 +808,6 @@
760808 pinctrl-0 = <&uart8m0_xfer &uart8m0_ctsn>;
761809 };
762810
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
-};
772811
773812 &wireless_wlan {
774813 pinctrl-names = "default";
....@@ -788,17 +827,17 @@
788827 BT,reset_gpio = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
789828 BT,wake_gpio = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>;
790829 BT,wake_host_irq = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>;
791
- status = "okay";
830
+ status = "disabled";
792831 };
793832
794833 &uart0 {
795
- status = "okay";
834
+ status = "disabled";
796835 };
797836
798837 &uart1 {
799838 pinctrl-names = "default";
800839 pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>;
801
- status = "okay";
840
+ status = "disabled";
802841 };
803842
804843 &uart3 {
....@@ -807,7 +846,7 @@
807846 };
808847
809848 &uart4 {
810
- status = "okay";
849
+ status = "disabled";
811850 pinctrl-0 = <&uart4m1_xfer>;
812851 };
813852
....@@ -816,12 +855,18 @@
816855 pinctrl-0 = <&uart5m1_xfer>;
817856 };
818857
858
+
819859 &uart7 {
820860 status = "okay";
821861 pinctrl-0 = <&uart7m1_xfer>;
822862 };
823863
864
+&uart8 {
865
+ status = "disabled";
866
+ pinctrl-0 = <&uart8m1_xfer>;
867
+};
868
+
824869 &uart9 {
825
- status = "okay";
870
+ status = "disabled";
826871 pinctrl-0 = <&uart9m1_xfer>;
827872 };