forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/arch/arm64/boot/dts/rockchip/NK-R36S0.dtsi
....@@ -89,6 +89,25 @@
8989 regulator-boot-on;
9090 };
9191 #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
+
92111 ndj_io_init {
93112 compatible = "nk_io_control";
94113 pinctrl-names = "default";
....@@ -106,16 +125,26 @@
106125 gpio_function = <0>;
107126 };
108127
109
- hub_host2_rst {
110
- 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
111135 gpio_function = <3>;
112136 };
113137
138
+ ax88631_rst {
139
+ gpio_num = <&gpio3 RK_PB6 GPIO_ACTIVE_HIGH>; //AX88772_RST_GPIO3_B6_3V3
140
+ gpio_function = <3>;
141
+ };
142
+/*
114143 hub_host3 {
115144 gpio_num = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>; //HOST3_EN_GPIO4_B2_1V8
116145 gpio_function = <0>;
117146 };
118
-
147
+*/
119148 wake_4g {
120149 gpio_num = <&gpio1 RK_PB1 GPIO_ACTIVE_LOW>; //4G_WAKEUP_GPIO01_B1_3V3
121150 gpio_function = <0>;
....@@ -136,15 +165,56 @@
136165 gpio_function = <0>;
137166 };
138167
139
- hp_en {
140
- gpio_num = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;//HP_EN_GPIO3_A6_3V3
141
- gpio_function = <0>;
142
- };
168
+ //gpio99 {
169
+ // gpio_num = <&gpio3 RK_PA3 GPIO_ACTIVE_LOW>;//HP_EN_GPIO3_A6_3V3
170
+ // gpio_function = <1>;
171
+ //};
143172
144173 wifi_power_en {
145174 gpio_num = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8
146175 gpio_function = <0>;
147176 };
177
+ #if 0
178
+ do1 {
179
+ gpio_num = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>;
180
+ gpio_function = <0>;
181
+ };
182
+
183
+ do2 {
184
+ gpio_num = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>;
185
+ gpio_function = <0>;
186
+ };
187
+
188
+ do3 {
189
+ gpio_num = <&gpio1 RK_PD1 GPIO_ACTIVE_HIGH>;
190
+ gpio_function = <0>;
191
+ };
192
+
193
+ do4 {
194
+ gpio_num = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
195
+ gpio_function = <0>;
196
+ };
197
+
198
+ do5 {
199
+ gpio_num = <&gpio2 RK_PD6 GPIO_ACTIVE_LOW>;
200
+ gpio_function = <0>;
201
+ };
202
+
203
+ do6 {
204
+ gpio_num = <&gpio2 RK_PD7 GPIO_ACTIVE_LOW>;
205
+ gpio_function = <0>;
206
+ };
207
+
208
+ do7 {
209
+ gpio_num = <&gpio3 RK_PA0 GPIO_ACTIVE_LOW>;
210
+ gpio_function = <0>;
211
+ };
212
+
213
+ di1 {
214
+ gpio_num = <&gpio2 RK_PD5 GPIO_ACTIVE_HIGH>;
215
+ gpio_function = <1>;
216
+ };
217
+ #endif
148218 };
149219 #if 0
150220 nk_io_init {
....@@ -185,8 +255,8 @@
185255 nodka-lvds = <15>;
186256
187257 display-timings {
188
- native-mode = <&timing0>;
189
- timing0: timing0 {
258
+ native-mode = <&timing>;
259
+ timing: timing {
190260 clock-frequency = <72500000>;
191261 hactive = <1280>;
192262 vactive = <800>;
....@@ -203,8 +273,8 @@
203273 };
204274 };
205275 ports {
206
- panel_in: endpoint {
207
- remote-endpoint = <&edp_out>;
276
+ panel_in_lvds: endpoint {
277
+ remote-endpoint = <&lvds_out>;
208278 };
209279 };
210280 };
....@@ -296,7 +366,7 @@
296366 */
297367
298368 &video_phy1 {
299
- status = "okay";
369
+ status = "disabled";
300370 };
301371 &dsi1 {
302372 status = "disabled";
....@@ -307,11 +377,11 @@
307377 };
308378
309379 &dsi1_in_vp1 {
310
- status = "okay";
380
+ status = "disabled";
311381 };
312382
313383 &dsi1_panel {
314
- power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3
384
+// power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3
315385 vddio-mipi = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; //MIPI_EN_1V8_GPIO3_A4_d_3V3
316386 reset-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_LOW>; //MIPI_RST_L_GPIO3_C7
317387 vcc-5v-gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3
....@@ -331,20 +401,11 @@
331401
332402 &edp {
333403 force-hpd;
334
- status = "okay";
335
- ports {
336
- port@1 {
337
- reg = <1>;
338
- edp_out: endpoint {
339
- remote-endpoint = <&panel_in>;
340
- };
341
- };
342
- };
404
+ status = "disabled";
343405 };
344406
345407 &edp_phy {
346
- status = "okay";
347
-
408
+ status = "disabled";
348409 };
349410
350411 &edp_in_vp0 {
....@@ -352,18 +413,40 @@
352413 };
353414
354415 &edp_in_vp1 {
355
- status = "okay";
416
+ status = "disabled";
356417
357418 };
358419
359420 &route_edp {
360
- status = "okay";
421
+ status = "disabled";
361422 connect = <&vp1_out_edp>;
362423 };
363424
364425 &route_edp {
365
- status = "okay";
426
+ status = "disabled";
366427 };
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
+
367450 /*
368451 * edp_end
369452 */
....@@ -408,7 +491,7 @@
408491 phy-mode = "rgmii";
409492 clock_in_out = "output";
410493
411
- snps,reset-gpio = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>;
494
+ snps,reset-gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>;
412495 snps,reset-active-low;
413496 /* Reset time is 20ms, 100ms for rtl8211f */
414497 snps,reset-delays-us = <0 20000 100000>;
....@@ -428,7 +511,9 @@
428511 rx_delay = <0x2f>;
429512
430513 phy-handle = <&rgmii_phy0>;
514
+
431515 status = "disabled";
516
+
432517 };
433518
434519 &gmac1 {
....@@ -462,9 +547,7 @@
462547 * power-supply should switche to vcc3v3_lcd1_n
463548 * when mipi panel is connected to dsi1.
464549 */
465
-&gt1x {
466
- power-supply = <&vcc3v3_lcd0_n>;
467
-};
550
+
468551
469552 &i2c3 {
470553 status = "okay";
....@@ -483,7 +566,7 @@
483566 };
484567
485568 &i2c4 {
486
- status = "okay";
569
+ status = "disabled";
487570 gc8034: gc8034@37 {
488571 compatible = "galaxycore,gc8034";
489572 status = "okay";
....@@ -495,7 +578,6 @@
495578 reset-gpios = <&gpio3 RK_PB6 GPIO_ACTIVE_LOW>;
496579 pwdn-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_LOW>;
497580 rockchip,grf = <&grf>;
498
- power-domains = <&power RK3568_PD_VI>;
499581 rockchip,camera-module-index = <0>;
500582 rockchip,camera-module-facing = "back";
501583 rockchip,camera-module-name = "RK-CMK-8M-2-v1";
....@@ -529,7 +611,7 @@
529611 };
530612 };
531613 ov5695: ov5695@36 {
532
- status = "okay";
614
+ status = "disabled";
533615 compatible = "ovti,ov5695";
534616 reg = <0x36>;
535617 clocks = <&cru CLK_CIF_OUT>;
....@@ -582,7 +664,7 @@
582664
583665
584666 &pcie30phy {
585
- status = "okay";
667
+ status = "disabled";
586668 };
587669
588670 &pcie2x1 {
....@@ -641,12 +723,27 @@
641723 <3 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>,
642724 <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>,
643725 <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>,
644729 <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>,
645
- <2 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,//93 SPI2_CS0_M1_3V3
646
- <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>,//94 SPI2_MOSI_M1_3V3
647
- <2 RK_PD7 RK_FUNC_GPIO &pcfg_pull_none>,//95 SPI2_MISO_M1_3V3
648
- <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>,//96 SPI2_CLK_M1_3V3
649
- <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
+
650747 };
651748 };
652749 };
....@@ -672,8 +769,6 @@
672769 };
673770 };
674771 };
675
-
676
-
677772
678773
679774
....@@ -713,15 +808,6 @@
713808 pinctrl-0 = <&uart8m0_xfer &uart8m0_ctsn>;
714809 };
715810
716
-&vcc3v3_lcd0_n {
717
- gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
718
- enable-active-high;
719
-};
720
-
721
-&vcc3v3_lcd1_n {
722
- gpio = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>; //MIPI_3V3EN_GPIO3_A3_d_3V3
723
- enable-active-high;
724
-};
725811
726812 &wireless_wlan {
727813 pinctrl-names = "default";
....@@ -741,17 +827,17 @@
741827 BT,reset_gpio = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
742828 BT,wake_gpio = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>;
743829 BT,wake_host_irq = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>;
744
- status = "okay";
830
+ status = "disabled";
745831 };
746832
747833 &uart0 {
748
- status = "okay";
834
+ status = "disabled";
749835 };
750836
751837 &uart1 {
752838 pinctrl-names = "default";
753839 pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>;
754
- status = "okay";
840
+ status = "disabled";
755841 };
756842
757843 &uart3 {
....@@ -760,7 +846,7 @@
760846 };
761847
762848 &uart4 {
763
- status = "okay";
849
+ status = "disabled";
764850 pinctrl-0 = <&uart4m1_xfer>;
765851 };
766852
....@@ -769,12 +855,18 @@
769855 pinctrl-0 = <&uart5m1_xfer>;
770856 };
771857
858
+
772859 &uart7 {
773860 status = "okay";
774861 pinctrl-0 = <&uart7m1_xfer>;
775862 };
776863
864
+&uart8 {
865
+ status = "disabled";
866
+ pinctrl-0 = <&uart8m1_xfer>;
867
+};
868
+
777869 &uart9 {
778
- status = "okay";
870
+ status = "disabled";
779871 pinctrl-0 = <&uart9m1_xfer>;
780872 };