forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-20 e636c8d336489bf3eed5878299e6cc045bbad077
kernel/arch/arm64/boot/dts/rockchip/NK-R36S0.dtsi
....@@ -136,16 +136,16 @@
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
146146 gpio_function = <0>;
147147 };
148
-
148
+ #if 0
149149 do1 {
150150 gpio_num = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>;
151151 gpio_function = <0>;
....@@ -185,6 +185,7 @@
185185 gpio_num = <&gpio2 RK_PD5 GPIO_ACTIVE_HIGH>;
186186 gpio_function = <1>;
187187 };
188
+ #endif
188189 };
189190 #if 0
190191 nk_io_init {
....@@ -225,8 +226,8 @@
225226 nodka-lvds = <15>;
226227
227228 display-timings {
228
- native-mode = <&timing0>;
229
- timing0: timing0 {
229
+ native-mode = <&timing>;
230
+ timing: timing {
230231 clock-frequency = <72500000>;
231232 hactive = <1280>;
232233 vactive = <800>;
....@@ -243,8 +244,8 @@
243244 };
244245 };
245246 ports {
246
- panel_in: endpoint {
247
- remote-endpoint = <&edp_out>;
247
+ panel_in_lvds: endpoint {
248
+ remote-endpoint = <&lvds_out>;
248249 };
249250 };
250251 };
....@@ -311,7 +312,7 @@
311312 * when dsi0 is enabled
312313 */
313314 &video_phy0 {
314
- status = "disabled";
315
+ status = "okay";
315316 };
316317
317318 &dsi0 {
....@@ -336,7 +337,7 @@
336337 */
337338
338339 &video_phy1 {
339
- status = "okay";
340
+ status = "disabled";
340341 };
341342 &dsi1 {
342343 status = "disabled";
....@@ -347,11 +348,11 @@
347348 };
348349
349350 &dsi1_in_vp1 {
350
- status = "okay";
351
+ status = "disabled";
351352 };
352353
353354 &dsi1_panel {
354
- power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3
355
+// power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3
355356 vddio-mipi = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; //MIPI_EN_1V8_GPIO3_A4_d_3V3
356357 reset-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_LOW>; //MIPI_RST_L_GPIO3_C7
357358 vcc-5v-gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3
....@@ -371,20 +372,11 @@
371372
372373 &edp {
373374 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
- };
375
+ status = "disabled";
383376 };
384377
385378 &edp_phy {
386
- status = "okay";
387
-
379
+ status = "disabled";
388380 };
389381
390382 &edp_in_vp0 {
....@@ -392,18 +384,40 @@
392384 };
393385
394386 &edp_in_vp1 {
395
- status = "okay";
387
+ status = "disabled";
396388
397389 };
398390
399391 &route_edp {
400
- status = "okay";
392
+ status = "disabled";
401393 connect = <&vp1_out_edp>;
402394 };
403395
404396 &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 {
405418 status = "okay";
406419 };
420
+
407421 /*
408422 * edp_end
409423 */
....@@ -448,7 +462,7 @@
448462 phy-mode = "rgmii";
449463 clock_in_out = "output";
450464
451
- snps,reset-gpio = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>;
465
+ snps,reset-gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>;
452466 snps,reset-active-low;
453467 /* Reset time is 20ms, 100ms for rtl8211f */
454468 snps,reset-delays-us = <0 20000 100000>;
....@@ -468,7 +482,9 @@
468482 rx_delay = <0x2f>;
469483
470484 phy-handle = <&rgmii_phy0>;
485
+
471486 status = "disabled";
487
+
472488 };
473489
474490 &gmac1 {
....@@ -502,9 +518,7 @@
502518 * power-supply should switche to vcc3v3_lcd1_n
503519 * when mipi panel is connected to dsi1.
504520 */
505
-&gt1x {
506
- power-supply = <&vcc3v3_lcd0_n>;
507
-};
521
+
508522
509523 &i2c3 {
510524 status = "okay";
....@@ -523,7 +537,7 @@
523537 };
524538
525539 &i2c4 {
526
- status = "okay";
540
+ status = "disabled";
527541 gc8034: gc8034@37 {
528542 compatible = "galaxycore,gc8034";
529543 status = "okay";
....@@ -535,7 +549,6 @@
535549 reset-gpios = <&gpio3 RK_PB6 GPIO_ACTIVE_LOW>;
536550 pwdn-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_LOW>;
537551 rockchip,grf = <&grf>;
538
- power-domains = <&power RK3568_PD_VI>;
539552 rockchip,camera-module-index = <0>;
540553 rockchip,camera-module-facing = "back";
541554 rockchip,camera-module-name = "RK-CMK-8M-2-v1";
....@@ -569,7 +582,7 @@
569582 };
570583 };
571584 ov5695: ov5695@36 {
572
- status = "okay";
585
+ status = "disabled";
573586 compatible = "ovti,ov5695";
574587 reg = <0x36>;
575588 clocks = <&cru CLK_CIF_OUT>;
....@@ -622,7 +635,7 @@
622635
623636
624637 &pcie30phy {
625
- status = "okay";
638
+ status = "disabled";
626639 };
627640
628641 &pcie2x1 {
....@@ -673,7 +686,7 @@
673686 <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>,
674687 <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>,
675688 <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>,
676
- <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>,
689
+ <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>,
677690 <1 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>,
678691 <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>,
679692 <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>,
....@@ -681,11 +694,15 @@
681694 <3 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>,
682695 <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>,
683696 <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>,
684700 <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>,
685701 <2 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,//93 SPI2_CS0_M1_3V3
686702 <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>,//94 SPI2_MOSI_M1_3V3
687703 <2 RK_PD7 RK_FUNC_GPIO &pcfg_pull_none>,//95 SPI2_MISO_M1_3V3
688704 <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
689706 <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
690707 };
691708 };
....@@ -712,8 +729,6 @@
712729 };
713730 };
714731 };
715
-
716
-
717732
718733
719734
....@@ -758,10 +773,10 @@
758773 enable-active-high;
759774 };
760775
761
-&vcc3v3_lcd1_n {
762
- gpio = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>; //MIPI_3V3EN_GPIO3_A3_d_3V3
763
- enable-active-high;
764
-};
776
+//&vcc3v3_lcd1_n {
777
+ //gpio = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>; //MIPI_3V3EN_GPIO3_A3_d_3V3
778
+ //enable-active-high;
779
+//};
765780
766781 &wireless_wlan {
767782 pinctrl-names = "default";