forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/arch/arm64/boot/dts/rockchip/NK-R36S0.dtsi
....@@ -137,7 +137,7 @@
137137 };
138138
139139 hp_en {
140
- gpio_num = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;//HP_EN_GPIO3_A6_3V3
140
+ gpio_num = <&gpio3 RK_PA6 GPIO_ACTIVE_LOW>;//HP_EN_GPIO3_A6_3V3
141141 gpio_function = <0>;
142142 };
143143
....@@ -145,7 +145,7 @@
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>;
....@@ -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>,
....@@ -712,8 +725,6 @@
712725 };
713726 };
714727 };
715
-
716
-
717728
718729
719730