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,6 +145,47 @@
145145 gpio_num = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8
146146 gpio_function = <0>;
147147 };
148
+ #if 0
149
+ do1 {
150
+ gpio_num = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>;
151
+ gpio_function = <0>;
152
+ };
153
+
154
+ do2 {
155
+ gpio_num = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>;
156
+ gpio_function = <0>;
157
+ };
158
+
159
+ do3 {
160
+ gpio_num = <&gpio1 RK_PD1 GPIO_ACTIVE_HIGH>;
161
+ gpio_function = <0>;
162
+ };
163
+
164
+ do4 {
165
+ gpio_num = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
166
+ gpio_function = <0>;
167
+ };
168
+
169
+ do5 {
170
+ gpio_num = <&gpio2 RK_PD6 GPIO_ACTIVE_LOW>;
171
+ gpio_function = <0>;
172
+ };
173
+
174
+ do6 {
175
+ gpio_num = <&gpio2 RK_PD7 GPIO_ACTIVE_LOW>;
176
+ gpio_function = <0>;
177
+ };
178
+
179
+ do7 {
180
+ gpio_num = <&gpio3 RK_PA0 GPIO_ACTIVE_LOW>;
181
+ gpio_function = <0>;
182
+ };
183
+
184
+ di1 {
185
+ gpio_num = <&gpio2 RK_PD5 GPIO_ACTIVE_HIGH>;
186
+ gpio_function = <1>;
187
+ };
188
+ #endif
148189 };
149190 #if 0
150191 nk_io_init {
....@@ -185,8 +226,8 @@
185226 nodka-lvds = <15>;
186227
187228 display-timings {
188
- native-mode = <&timing0>;
189
- timing0: timing0 {
229
+ native-mode = <&timing>;
230
+ timing: timing {
190231 clock-frequency = <72500000>;
191232 hactive = <1280>;
192233 vactive = <800>;
....@@ -203,8 +244,8 @@
203244 };
204245 };
205246 ports {
206
- panel_in: endpoint {
207
- remote-endpoint = <&edp_out>;
247
+ panel_in_lvds: endpoint {
248
+ remote-endpoint = <&lvds_out>;
208249 };
209250 };
210251 };
....@@ -271,7 +312,7 @@
271312 * when dsi0 is enabled
272313 */
273314 &video_phy0 {
274
- status = "disabled";
315
+ status = "okay";
275316 };
276317
277318 &dsi0 {
....@@ -296,7 +337,7 @@
296337 */
297338
298339 &video_phy1 {
299
- status = "okay";
340
+ status = "disabled";
300341 };
301342 &dsi1 {
302343 status = "disabled";
....@@ -307,11 +348,11 @@
307348 };
308349
309350 &dsi1_in_vp1 {
310
- status = "okay";
351
+ status = "disabled";
311352 };
312353
313354 &dsi1_panel {
314
- power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3
355
+// power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3
315356 vddio-mipi = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; //MIPI_EN_1V8_GPIO3_A4_d_3V3
316357 reset-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_LOW>; //MIPI_RST_L_GPIO3_C7
317358 vcc-5v-gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3
....@@ -331,20 +372,11 @@
331372
332373 &edp {
333374 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
- };
375
+ status = "disabled";
343376 };
344377
345378 &edp_phy {
346
- status = "okay";
347
-
379
+ status = "disabled";
348380 };
349381
350382 &edp_in_vp0 {
....@@ -352,18 +384,40 @@
352384 };
353385
354386 &edp_in_vp1 {
355
- status = "okay";
387
+ status = "disabled";
356388
357389 };
358390
359391 &route_edp {
360
- status = "okay";
392
+ status = "disabled";
361393 connect = <&vp1_out_edp>;
362394 };
363395
364396 &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 {
365418 status = "okay";
366419 };
420
+
367421 /*
368422 * edp_end
369423 */
....@@ -408,7 +462,7 @@
408462 phy-mode = "rgmii";
409463 clock_in_out = "output";
410464
411
- snps,reset-gpio = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>;
465
+ snps,reset-gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>;
412466 snps,reset-active-low;
413467 /* Reset time is 20ms, 100ms for rtl8211f */
414468 snps,reset-delays-us = <0 20000 100000>;
....@@ -428,7 +482,9 @@
428482 rx_delay = <0x2f>;
429483
430484 phy-handle = <&rgmii_phy0>;
485
+
431486 status = "disabled";
487
+
432488 };
433489
434490 &gmac1 {
....@@ -462,9 +518,7 @@
462518 * power-supply should switche to vcc3v3_lcd1_n
463519 * when mipi panel is connected to dsi1.
464520 */
465
-&gt1x {
466
- power-supply = <&vcc3v3_lcd0_n>;
467
-};
521
+
468522
469523 &i2c3 {
470524 status = "okay";
....@@ -483,7 +537,7 @@
483537 };
484538
485539 &i2c4 {
486
- status = "okay";
540
+ status = "disabled";
487541 gc8034: gc8034@37 {
488542 compatible = "galaxycore,gc8034";
489543 status = "okay";
....@@ -495,7 +549,6 @@
495549 reset-gpios = <&gpio3 RK_PB6 GPIO_ACTIVE_LOW>;
496550 pwdn-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_LOW>;
497551 rockchip,grf = <&grf>;
498
- power-domains = <&power RK3568_PD_VI>;
499552 rockchip,camera-module-index = <0>;
500553 rockchip,camera-module-facing = "back";
501554 rockchip,camera-module-name = "RK-CMK-8M-2-v1";
....@@ -529,7 +582,7 @@
529582 };
530583 };
531584 ov5695: ov5695@36 {
532
- status = "okay";
585
+ status = "disabled";
533586 compatible = "ovti,ov5695";
534587 reg = <0x36>;
535588 clocks = <&cru CLK_CIF_OUT>;
....@@ -672,8 +725,6 @@
672725 };
673726 };
674727 };
675
-
676
-
677728
678729
679730