forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-20 e636c8d336489bf3eed5878299e6cc045bbad077
kernel/arch/arm64/boot/dts/rockchip/NK-R36S0.dtsi
....@@ -136,10 +136,10 @@
136136 gpio_function = <0>;
137137 };
138138
139
- hp_en {
140
- gpio_num = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;//HP_EN_GPIO3_A6_3V3
141
- gpio_function = <0>;
142
- };
139
+ //gpio99 {
140
+ // gpio_num = <&gpio3 RK_PA3 GPIO_ACTIVE_LOW>;//HP_EN_GPIO3_A6_3V3
141
+ // gpio_function = <1>;
142
+ //};
143143
144144 wifi_power_en {
145145 gpio_num = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8
....@@ -226,8 +226,8 @@
226226 nodka-lvds = <15>;
227227
228228 display-timings {
229
- native-mode = <&timing0>;
230
- timing0: timing0 {
229
+ native-mode = <&timing>;
230
+ timing: timing {
231231 clock-frequency = <72500000>;
232232 hactive = <1280>;
233233 vactive = <800>;
....@@ -244,8 +244,8 @@
244244 };
245245 };
246246 ports {
247
- panel_in: endpoint {
248
- remote-endpoint = <&edp_out>;
247
+ panel_in_lvds: endpoint {
248
+ remote-endpoint = <&lvds_out>;
249249 };
250250 };
251251 };
....@@ -312,7 +312,7 @@
312312 * when dsi0 is enabled
313313 */
314314 &video_phy0 {
315
- status = "disabled";
315
+ status = "okay";
316316 };
317317
318318 &dsi0 {
....@@ -337,7 +337,7 @@
337337 */
338338
339339 &video_phy1 {
340
- status = "okay";
340
+ status = "disabled";
341341 };
342342 &dsi1 {
343343 status = "disabled";
....@@ -348,11 +348,11 @@
348348 };
349349
350350 &dsi1_in_vp1 {
351
- status = "okay";
351
+ status = "disabled";
352352 };
353353
354354 &dsi1_panel {
355
- power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3
355
+// power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3
356356 vddio-mipi = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; //MIPI_EN_1V8_GPIO3_A4_d_3V3
357357 reset-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_LOW>; //MIPI_RST_L_GPIO3_C7
358358 vcc-5v-gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3
....@@ -372,20 +372,11 @@
372372
373373 &edp {
374374 force-hpd;
375
- status = "okay";
376
- ports {
377
- port@1 {
378
- reg = <1>;
379
- edp_out: endpoint {
380
- remote-endpoint = <&panel_in>;
381
- };
382
- };
383
- };
375
+ status = "disabled";
384376 };
385377
386378 &edp_phy {
387
- status = "okay";
388
-
379
+ status = "disabled";
389380 };
390381
391382 &edp_in_vp0 {
....@@ -393,18 +384,40 @@
393384 };
394385
395386 &edp_in_vp1 {
396
- status = "okay";
387
+ status = "disabled";
397388
398389 };
399390
400391 &route_edp {
401
- status = "okay";
392
+ status = "disabled";
402393 connect = <&vp1_out_edp>;
403394 };
404395
405396 &route_edp {
397
+ status = "disabled";
398
+};
399
+
400
+&lvds {
401
+ status = "okay";
402
+ ports {
403
+ port@1 {
404
+ reg = <1>;
405
+ lvds_out:endpoint {
406
+ remote-endpoint = <&panel_in_lvds>;
407
+ };
408
+ };
409
+ };
410
+};
411
+
412
+&route_lvds{
413
+ status = "okay";
414
+ connect = <&vp1_out_lvds>;
415
+};
416
+
417
+&lvds_in_vp1 {
406418 status = "okay";
407419 };
420
+
408421 /*
409422 * edp_end
410423 */
....@@ -449,7 +462,7 @@
449462 phy-mode = "rgmii";
450463 clock_in_out = "output";
451464
452
- snps,reset-gpio = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>;
465
+ snps,reset-gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>;
453466 snps,reset-active-low;
454467 /* Reset time is 20ms, 100ms for rtl8211f */
455468 snps,reset-delays-us = <0 20000 100000>;
....@@ -469,7 +482,9 @@
469482 rx_delay = <0x2f>;
470483
471484 phy-handle = <&rgmii_phy0>;
485
+
472486 status = "disabled";
487
+
473488 };
474489
475490 &gmac1 {
....@@ -503,9 +518,7 @@
503518 * power-supply should switche to vcc3v3_lcd1_n
504519 * when mipi panel is connected to dsi1.
505520 */
506
-&gt1x {
507
- power-supply = <&vcc3v3_lcd0_n>;
508
-};
521
+
509522
510523 &i2c3 {
511524 status = "okay";
....@@ -524,7 +537,7 @@
524537 };
525538
526539 &i2c4 {
527
- status = "okay";
540
+ status = "disabled";
528541 gc8034: gc8034@37 {
529542 compatible = "galaxycore,gc8034";
530543 status = "okay";
....@@ -536,7 +549,6 @@
536549 reset-gpios = <&gpio3 RK_PB6 GPIO_ACTIVE_LOW>;
537550 pwdn-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_LOW>;
538551 rockchip,grf = <&grf>;
539
- power-domains = <&power RK3568_PD_VI>;
540552 rockchip,camera-module-index = <0>;
541553 rockchip,camera-module-facing = "back";
542554 rockchip,camera-module-name = "RK-CMK-8M-2-v1";
....@@ -570,7 +582,7 @@
570582 };
571583 };
572584 ov5695: ov5695@36 {
573
- status = "okay";
585
+ status = "disabled";
574586 compatible = "ovti,ov5695";
575587 reg = <0x36>;
576588 clocks = <&cru CLK_CIF_OUT>;
....@@ -623,7 +635,7 @@
623635
624636
625637 &pcie30phy {
626
- status = "okay";
638
+ status = "disabled";
627639 };
628640
629641 &pcie2x1 {
....@@ -674,7 +686,7 @@
674686 <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>,
675687 <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>,
676688 <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>,
677
- <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>,
689
+ <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>,
678690 <1 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>,
679691 <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>,
680692 <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>,
....@@ -682,11 +694,15 @@
682694 <3 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>,
683695 <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>,
684696 <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,
697
+ <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>,
698
+ <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>,
699
+ <3 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,
685700 <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>,
686701 <2 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,//93 SPI2_CS0_M1_3V3
687702 <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>,//94 SPI2_MOSI_M1_3V3
688703 <2 RK_PD7 RK_FUNC_GPIO &pcfg_pull_none>,//95 SPI2_MISO_M1_3V3
689704 <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>,//96 SPI2_CLK_M1_3V3
705
+ <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>,//96 SPI2_CLK_M1_3V3
690706 <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
691707 };
692708 };
....@@ -713,8 +729,6 @@
713729 };
714730 };
715731 };
716
-
717
-
718732
719733
720734
....@@ -759,10 +773,10 @@
759773 enable-active-high;
760774 };
761775
762
-&vcc3v3_lcd1_n {
763
- gpio = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>; //MIPI_3V3EN_GPIO3_A3_d_3V3
764
- enable-active-high;
765
-};
776
+//&vcc3v3_lcd1_n {
777
+ //gpio = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>; //MIPI_3V3EN_GPIO3_A3_d_3V3
778
+ //enable-active-high;
779
+//};
766780
767781 &wireless_wlan {
768782 pinctrl-names = "default";