hc
2024-08-12 233ab1bd4c5697f5cdec94e60206e8c6ac609b4c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2022 Rockchip Electronics Co., Ltd.
 *
 */
 
#include <dt-bindings/display/rockchip_vop.h>
#include "rk3568m-serdes-evb-lp4x-v10.dtsi"
#include "rk3568-android.dtsi"
 
&i2c1 {
   status = "okay";
   clock-frequency = <10000>;
};
 
&dsi1 {
   status = "okay";
};
 
&dsi1_in_vp0 {
   status = "okay";
};
 
&dsi1_in_vp1 {
   status = "disabled";
};
 
&dsi1_panel {
   status = "okay";
   dsi,flags = <(MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET |
             MIPI_DSI_CLOCK_NON_CONTINUOUS)>;
   dsi,format = <MIPI_DSI_FMT_RGB888>;
   dsi,lanes  = <4>;
 
   panel-init-sequence = [];
   panel-exit-sequence = [];
};
 
&dsi1_timing0 {
   clock-frequency = <50000000>;
   hactive = <1024>;
   vactive = <600>;
   hfront-porch = <160>;
   hsync-len = <20>;
   hback-porch = <140>;
   vfront-porch = <12>;
   vsync-len = <3>;
   vback-porch = <20>;
   hsync-active = <0>;
   vsync-active = <0>;
   de-active = <0>;
   pixelclk-active = <1>;
};
 
&video_phy1 {
   status = "okay";
};
 
&rgb {
   status = "okay";
 
   ports {
       #address-cells = <1>;
       #size-cells = <0>;
 
       port@1 {
           reg = <1>;
           rgb_out_rkx110_x120: endpoint {
               remote-endpoint = <&rkx110_x120_in_rgb>;
           };
       };
   };
};
 
&rgb_in_vp2 {
   status = "okay";
};
 
&rkx110_reset_gpio {
   rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
};
 
&rkx110_x120 {
       enable-gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>;
       reset-gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_LOW>;
       pinctrl-names = "default";
       pinctrl-0 = <&rkx110_reset_gpio>;
};
 
&serdes_timing0 {
   clock-frequency = <50000000>;
   hactive = <1024>;
   vactive = <600>;
   hfront-porch = <160>;
   hsync-len = <20>;
   hback-porch = <140>;
   vfront-porch = <12>;
   vsync-len = <3>;
   vback-porch = <20>;
   hsync-active = <0>;
   vsync-active = <0>;
   de-active = <0>;
   pixelclk-active = <1>;
};
 
&serdes_panel {
   dsi-rx,lanes = <4>;
   //dsi-rx,video-mode;
   local-port0 = <RK_SERDES_DSI_RX0>;
   remote0-port0 = <RK_SERDES_LVDS_TX0>;
 
   ports {
       #address-cells = <1>;
       #size-cells = <0>;
 
       port@0 {
           reg = <0>;
           rkx110_x120_in_rgb: endpoint {
               remote-endpoint = <&rgb_out_rkx110_x120>;
           };
       };
   };
};
 
/* vp0 for HDMI, vp2 for rgb */
&vp0 {
   rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER0 | 1 << ROCKCHIP_VOP2_ESMART0 |
               1 << ROCKCHIP_VOP2_SMART0)>;
   rockchip,primary-plane = <ROCKCHIP_VOP2_ESMART0>;
};
 
&vp2 {
   rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER1 | 1 << ROCKCHIP_VOP2_ESMART1 |
               1 << ROCKCHIP_VOP2_SMART1)>;
   rockchip,primary-plane = <ROCKCHIP_VOP2_ESMART1>;
};