forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/arch/arm64/boot/dts/rockchip/NK-R36S0.dtsi
....@@ -89,6 +89,24 @@
8989 regulator-boot-on;
9090 };
9191 #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
+
92110 ndj_io_init {
93111 compatible = "nk_io_control";
94112 pinctrl-names = "default";
....@@ -103,6 +121,11 @@
103121
104122 vcc_12v {
105123 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
106129 gpio_function = <0>;
107130 };
108131
....@@ -136,15 +159,56 @@
136159 gpio_function = <0>;
137160 };
138161
139
- hp_en {
140
- gpio_num = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;//HP_EN_GPIO3_A6_3V3
141
- gpio_function = <0>;
142
- };
162
+ //gpio99 {
163
+ // gpio_num = <&gpio3 RK_PA3 GPIO_ACTIVE_LOW>;//HP_EN_GPIO3_A6_3V3
164
+ // gpio_function = <1>;
165
+ //};
143166
144167 wifi_power_en {
145168 gpio_num = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8
146169 gpio_function = <0>;
147170 };
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
148212 };
149213 #if 0
150214 nk_io_init {
....@@ -185,8 +249,8 @@
185249 nodka-lvds = <15>;
186250
187251 display-timings {
188
- native-mode = <&timing0>;
189
- timing0: timing0 {
252
+ native-mode = <&timing>;
253
+ timing: timing {
190254 clock-frequency = <72500000>;
191255 hactive = <1280>;
192256 vactive = <800>;
....@@ -203,8 +267,8 @@
203267 };
204268 };
205269 ports {
206
- panel_in: endpoint {
207
- remote-endpoint = <&edp_out>;
270
+ panel_in_lvds: endpoint {
271
+ remote-endpoint = <&lvds_out>;
208272 };
209273 };
210274 };
....@@ -296,7 +360,7 @@
296360 */
297361
298362 &video_phy1 {
299
- status = "okay";
363
+ status = "disabled";
300364 };
301365 &dsi1 {
302366 status = "disabled";
....@@ -307,11 +371,11 @@
307371 };
308372
309373 &dsi1_in_vp1 {
310
- status = "okay";
374
+ status = "disabled";
311375 };
312376
313377 &dsi1_panel {
314
- power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3
378
+// power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3
315379 vddio-mipi = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; //MIPI_EN_1V8_GPIO3_A4_d_3V3
316380 reset-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_LOW>; //MIPI_RST_L_GPIO3_C7
317381 vcc-5v-gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3
....@@ -331,20 +395,11 @@
331395
332396 &edp {
333397 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
- };
398
+ status = "disabled";
343399 };
344400
345401 &edp_phy {
346
- status = "okay";
347
-
402
+ status = "disabled";
348403 };
349404
350405 &edp_in_vp0 {
....@@ -352,18 +407,40 @@
352407 };
353408
354409 &edp_in_vp1 {
355
- status = "okay";
410
+ status = "disabled";
356411
357412 };
358413
359414 &route_edp {
360
- status = "okay";
415
+ status = "disabled";
361416 connect = <&vp1_out_edp>;
362417 };
363418
364419 &route_edp {
365
- status = "okay";
420
+ status = "disabled";
366421 };
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
+
367444 /*
368445 * edp_end
369446 */
....@@ -408,7 +485,7 @@
408485 phy-mode = "rgmii";
409486 clock_in_out = "output";
410487
411
- snps,reset-gpio = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>;
488
+ snps,reset-gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>;
412489 snps,reset-active-low;
413490 /* Reset time is 20ms, 100ms for rtl8211f */
414491 snps,reset-delays-us = <0 20000 100000>;
....@@ -428,7 +505,9 @@
428505 rx_delay = <0x2f>;
429506
430507 phy-handle = <&rgmii_phy0>;
508
+
431509 status = "disabled";
510
+
432511 };
433512
434513 &gmac1 {
....@@ -462,9 +541,7 @@
462541 * power-supply should switche to vcc3v3_lcd1_n
463542 * when mipi panel is connected to dsi1.
464543 */
465
-&gt1x {
466
- power-supply = <&vcc3v3_lcd0_n>;
467
-};
544
+
468545
469546 &i2c3 {
470547 status = "okay";
....@@ -483,7 +560,7 @@
483560 };
484561
485562 &i2c4 {
486
- status = "okay";
563
+ status = "disabled";
487564 gc8034: gc8034@37 {
488565 compatible = "galaxycore,gc8034";
489566 status = "okay";
....@@ -495,7 +572,6 @@
495572 reset-gpios = <&gpio3 RK_PB6 GPIO_ACTIVE_LOW>;
496573 pwdn-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_LOW>;
497574 rockchip,grf = <&grf>;
498
- power-domains = <&power RK3568_PD_VI>;
499575 rockchip,camera-module-index = <0>;
500576 rockchip,camera-module-facing = "back";
501577 rockchip,camera-module-name = "RK-CMK-8M-2-v1";
....@@ -529,7 +605,7 @@
529605 };
530606 };
531607 ov5695: ov5695@36 {
532
- status = "okay";
608
+ status = "disabled";
533609 compatible = "ovti,ov5695";
534610 reg = <0x36>;
535611 clocks = <&cru CLK_CIF_OUT>;
....@@ -582,7 +658,7 @@
582658
583659
584660 &pcie30phy {
585
- status = "okay";
661
+ status = "disabled";
586662 };
587663
588664 &pcie2x1 {
....@@ -641,11 +717,21 @@
641717 <3 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>,
642718 <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>,
643719 <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>,
644723 <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
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
649735 <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
650736 };
651737 };
....@@ -672,8 +758,6 @@
672758 };
673759 };
674760 };
675
-
676
-
677761
678762
679763
....@@ -713,15 +797,6 @@
713797 pinctrl-0 = <&uart8m0_xfer &uart8m0_ctsn>;
714798 };
715799
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
-};
725800
726801 &wireless_wlan {
727802 pinctrl-names = "default";
....@@ -741,17 +816,17 @@
741816 BT,reset_gpio = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
742817 BT,wake_gpio = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>;
743818 BT,wake_host_irq = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>;
744
- status = "okay";
819
+ status = "disabled";
745820 };
746821
747822 &uart0 {
748
- status = "okay";
823
+ status = "disabled";
749824 };
750825
751826 &uart1 {
752827 pinctrl-names = "default";
753828 pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>;
754
- status = "okay";
829
+ status = "disabled";
755830 };
756831
757832 &uart3 {
....@@ -760,7 +835,7 @@
760835 };
761836
762837 &uart4 {
763
- status = "okay";
838
+ status = "disabled";
764839 pinctrl-0 = <&uart4m1_xfer>;
765840 };
766841
....@@ -769,12 +844,18 @@
769844 pinctrl-0 = <&uart5m1_xfer>;
770845 };
771846
847
+
772848 &uart7 {
773849 status = "okay";
774850 pinctrl-0 = <&uart7m1_xfer>;
775851 };
776852
853
+&uart8 {
854
+ status = "disabled";
855
+ pinctrl-0 = <&uart8m1_xfer>;
856
+};
857
+
777858 &uart9 {
778
- status = "okay";
859
+ status = "disabled";
779860 pinctrl-0 = <&uart9m1_xfer>;
780861 };