forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/arch/arm64/boot/dts/rockchip/NK-R36S0.dtsi
....@@ -34,15 +34,6 @@
3434 vin-supply = <&vcc3v3_sys>;
3535 };
3636
37
- vcc3v3_vga: vcc3v3-vga {
38
- compatible = "regulator-fixed";
39
- regulator-name = "vcc3v3_vga";
40
- regulator-always-on;
41
- regulator-boot-on;
42
- gpio = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>;
43
- enable-active-high;
44
- vin-supply = <&vcc3v3_sys>;
45
- };
4637
4738 pcie30_avdd0v9: pcie30-avdd0v9 {
4839 compatible = "regulator-fixed";
....@@ -146,7 +137,7 @@
146137 };
147138
148139 hp_en {
149
- 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
150141 gpio_function = <0>;
151142 };
152143
....@@ -235,8 +226,8 @@
235226 nodka-lvds = <15>;
236227
237228 display-timings {
238
- native-mode = <&timing0>;
239
- timing0: timing0 {
229
+ native-mode = <&timing>;
230
+ timing: timing {
240231 clock-frequency = <72500000>;
241232 hactive = <1280>;
242233 vactive = <800>;
....@@ -253,8 +244,8 @@
253244 };
254245 };
255246 ports {
256
- panel_in: endpoint {
257
- remote-endpoint = <&edp_out>;
247
+ panel_in_lvds: endpoint {
248
+ remote-endpoint = <&lvds_out>;
258249 };
259250 };
260251 };
....@@ -321,7 +312,7 @@
321312 * when dsi0 is enabled
322313 */
323314 &video_phy0 {
324
- status = "disabled";
315
+ status = "okay";
325316 };
326317
327318 &dsi0 {
....@@ -346,7 +337,7 @@
346337 */
347338
348339 &video_phy1 {
349
- status = "okay";
340
+ status = "disabled";
350341 };
351342 &dsi1 {
352343 status = "disabled";
....@@ -357,11 +348,11 @@
357348 };
358349
359350 &dsi1_in_vp1 {
360
- status = "okay";
351
+ status = "disabled";
361352 };
362353
363354 &dsi1_panel {
364
- power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3
355
+// power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3
365356 vddio-mipi = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; //MIPI_EN_1V8_GPIO3_A4_d_3V3
366357 reset-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_LOW>; //MIPI_RST_L_GPIO3_C7
367358 vcc-5v-gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3
....@@ -381,20 +372,11 @@
381372
382373 &edp {
383374 force-hpd;
384
- status = "okay";
385
- ports {
386
- port@1 {
387
- reg = <1>;
388
- edp_out: endpoint {
389
- remote-endpoint = <&panel_in>;
390
- };
391
- };
392
-
393
- };
375
+ status = "disabled";
394376 };
395377
396378 &edp_phy {
397
- status = "okay";
379
+ status = "disabled";
398380 };
399381
400382 &edp_in_vp0 {
....@@ -402,18 +384,40 @@
402384 };
403385
404386 &edp_in_vp1 {
405
- status = "okay";
387
+ status = "disabled";
406388
407389 };
408390
409391 &route_edp {
410
- status = "okay";
392
+ status = "disabled";
411393 connect = <&vp1_out_edp>;
412394 };
413395
414396 &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 {
415418 status = "okay";
416419 };
420
+
417421 /*
418422 * edp_end
419423 */