forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 ee930fffee469d076998274a2ca55e13dc1efb67
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";
....@@ -106,8 +124,18 @@
106124 gpio_function = <0>;
107125 };
108126
109
- hub_host2_rst {
110
- 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
111139 gpio_function = <3>;
112140 };
113141
....@@ -136,16 +164,16 @@
136164 gpio_function = <0>;
137165 };
138166
139
- hp_en {
140
- gpio_num = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;//HP_EN_GPIO3_A6_3V3
141
- gpio_function = <0>;
142
- };
167
+ //gpio99 {
168
+ // gpio_num = <&gpio3 RK_PA3 GPIO_ACTIVE_LOW>;//HP_EN_GPIO3_A6_3V3
169
+ // gpio_function = <1>;
170
+ //};
143171
144172 wifi_power_en {
145173 gpio_num = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8
146174 gpio_function = <0>;
147175 };
148
-
176
+ #if 0
149177 do1 {
150178 gpio_num = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>;
151179 gpio_function = <0>;
....@@ -185,6 +213,7 @@
185213 gpio_num = <&gpio2 RK_PD5 GPIO_ACTIVE_HIGH>;
186214 gpio_function = <1>;
187215 };
216
+ #endif
188217 };
189218 #if 0
190219 nk_io_init {
....@@ -225,8 +254,8 @@
225254 nodka-lvds = <15>;
226255
227256 display-timings {
228
- native-mode = <&timing0>;
229
- timing0: timing0 {
257
+ native-mode = <&timing>;
258
+ timing: timing {
230259 clock-frequency = <72500000>;
231260 hactive = <1280>;
232261 vactive = <800>;
....@@ -243,8 +272,8 @@
243272 };
244273 };
245274 ports {
246
- panel_in: endpoint {
247
- remote-endpoint = <&edp_out>;
275
+ panel_in_lvds: endpoint {
276
+ remote-endpoint = <&lvds_out>;
248277 };
249278 };
250279 };
....@@ -336,7 +365,7 @@
336365 */
337366
338367 &video_phy1 {
339
- status = "okay";
368
+ status = "disabled";
340369 };
341370 &dsi1 {
342371 status = "disabled";
....@@ -347,11 +376,11 @@
347376 };
348377
349378 &dsi1_in_vp1 {
350
- status = "okay";
379
+ status = "disabled";
351380 };
352381
353382 &dsi1_panel {
354
- power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3
383
+// power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3
355384 vddio-mipi = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; //MIPI_EN_1V8_GPIO3_A4_d_3V3
356385 reset-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_LOW>; //MIPI_RST_L_GPIO3_C7
357386 vcc-5v-gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3
....@@ -371,20 +400,11 @@
371400
372401 &edp {
373402 force-hpd;
374
- status = "okay";
375
- ports {
376
- port@1 {
377
- reg = <1>;
378
- edp_out: endpoint {
379
- remote-endpoint = <&panel_in>;
380
- };
381
- };
382
- };
403
+ status = "disabled";
383404 };
384405
385406 &edp_phy {
386
- status = "okay";
387
-
407
+ status = "disabled";
388408 };
389409
390410 &edp_in_vp0 {
....@@ -392,18 +412,40 @@
392412 };
393413
394414 &edp_in_vp1 {
395
- status = "okay";
415
+ status = "disabled";
396416
397417 };
398418
399419 &route_edp {
400
- status = "okay";
420
+ status = "disabled";
401421 connect = <&vp1_out_edp>;
402422 };
403423
404424 &route_edp {
405
- status = "okay";
425
+ status = "disabled";
406426 };
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
+
407449 /*
408450 * edp_end
409451 */
....@@ -448,7 +490,7 @@
448490 phy-mode = "rgmii";
449491 clock_in_out = "output";
450492
451
- snps,reset-gpio = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>;
493
+ snps,reset-gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>;
452494 snps,reset-active-low;
453495 /* Reset time is 20ms, 100ms for rtl8211f */
454496 snps,reset-delays-us = <0 20000 100000>;
....@@ -468,7 +510,9 @@
468510 rx_delay = <0x2f>;
469511
470512 phy-handle = <&rgmii_phy0>;
513
+
471514 status = "disabled";
515
+
472516 };
473517
474518 &gmac1 {
....@@ -502,9 +546,7 @@
502546 * power-supply should switche to vcc3v3_lcd1_n
503547 * when mipi panel is connected to dsi1.
504548 */
505
-&gt1x {
506
- power-supply = <&vcc3v3_lcd0_n>;
507
-};
549
+
508550
509551 &i2c3 {
510552 status = "okay";
....@@ -523,7 +565,7 @@
523565 };
524566
525567 &i2c4 {
526
- status = "okay";
568
+ status = "disabled";
527569 gc8034: gc8034@37 {
528570 compatible = "galaxycore,gc8034";
529571 status = "okay";
....@@ -535,7 +577,6 @@
535577 reset-gpios = <&gpio3 RK_PB6 GPIO_ACTIVE_LOW>;
536578 pwdn-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_LOW>;
537579 rockchip,grf = <&grf>;
538
- power-domains = <&power RK3568_PD_VI>;
539580 rockchip,camera-module-index = <0>;
540581 rockchip,camera-module-facing = "back";
541582 rockchip,camera-module-name = "RK-CMK-8M-2-v1";
....@@ -569,7 +610,7 @@
569610 };
570611 };
571612 ov5695: ov5695@36 {
572
- status = "okay";
613
+ status = "disabled";
573614 compatible = "ovti,ov5695";
574615 reg = <0x36>;
575616 clocks = <&cru CLK_CIF_OUT>;
....@@ -622,7 +663,7 @@
622663
623664
624665 &pcie30phy {
625
- status = "okay";
666
+ status = "disabled";
626667 };
627668
628669 &pcie2x1 {
....@@ -673,7 +714,7 @@
673714 <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>,
674715 <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>,
675716 <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>,
676
- <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>,
717
+ <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>,
677718 <1 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>,
678719 <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>,
679720 <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>,
....@@ -681,11 +722,21 @@
681722 <3 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>,
682723 <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>,
683724 <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>,
684728 <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>,
685
- <2 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,//93 SPI2_CS0_M1_3V3
686
- <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>,//94 SPI2_MOSI_M1_3V3
687
- <2 RK_PD7 RK_FUNC_GPIO &pcfg_pull_none>,//95 SPI2_MISO_M1_3V3
688
- <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
689740 <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
690741 };
691742 };
....@@ -712,8 +763,6 @@
712763 };
713764 };
714765 };
715
-
716
-
717766
718767
719768
....@@ -753,15 +802,6 @@
753802 pinctrl-0 = <&uart8m0_xfer &uart8m0_ctsn>;
754803 };
755804
756
-&vcc3v3_lcd0_n {
757
- gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
758
- enable-active-high;
759
-};
760
-
761
-&vcc3v3_lcd1_n {
762
- gpio = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>; //MIPI_3V3EN_GPIO3_A3_d_3V3
763
- enable-active-high;
764
-};
765805
766806 &wireless_wlan {
767807 pinctrl-names = "default";
....@@ -781,17 +821,17 @@
781821 BT,reset_gpio = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
782822 BT,wake_gpio = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>;
783823 BT,wake_host_irq = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>;
784
- status = "okay";
824
+ status = "disabled";
785825 };
786826
787827 &uart0 {
788
- status = "okay";
828
+ status = "disabled";
789829 };
790830
791831 &uart1 {
792832 pinctrl-names = "default";
793833 pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>;
794
- status = "okay";
834
+ status = "disabled";
795835 };
796836
797837 &uart3 {
....@@ -800,7 +840,7 @@
800840 };
801841
802842 &uart4 {
803
- status = "okay";
843
+ status = "disabled";
804844 pinctrl-0 = <&uart4m1_xfer>;
805845 };
806846
....@@ -809,12 +849,18 @@
809849 pinctrl-0 = <&uart5m1_xfer>;
810850 };
811851
852
+
812853 &uart7 {
813854 status = "okay";
814855 pinctrl-0 = <&uart7m1_xfer>;
815856 };
816857
858
+&uart8 {
859
+ status = "disabled";
860
+ pinctrl-0 = <&uart8m1_xfer>;
861
+};
862
+
817863 &uart9 {
818
- status = "okay";
864
+ status = "disabled";
819865 pinctrl-0 = <&uart9m1_xfer>;
820866 };