forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
// Copyright (c) 2020 Fuzhou Rockchip Electronics Co., Ltd
 
/dts-v1/;
#include "rk3288-evb-rk628.dtsi"
 
/ {
   vcc33_lcd: vcc33-lcd {
       compatible = "regulator-fixed";
       regulator-name = "vcc33_lcd";
       regulator-boot-on;
       gpio = <&gpio7 RK_PA2 GPIO_ACTIVE_HIGH>;
       enable-active-high;
   };
 
   panel {
       compatible = "simple-panel";
       backlight = <&backlight>;
       power-supply = <&vcc33_lcd>;
       enable-gpios = <&gpio5 RK_PC1 GPIO_ACTIVE_HIGH>;
       prepare-delay-ms = <20>;
       enable-delay-ms = <20>;
       disable-delay-ms = <20>;
       unprepare-delay-ms = <20>;
       bus-format = <MEDIA_BUS_FMT_RGB888_1X7X4_SPWG>;
 
       display-timings {
           native-mode = <&timing0>;
 
           timing0: timing0 {
               clock-frequency = <149000000>;
               hactive = <1920>;
               vactive = <1080>;
               hback-porch = <96>;
               hfront-porch = <120>;
               vback-porch = <8>;
               vfront-porch = <33>;
               hsync-len = <64>;
               vsync-len = <4>;
               hsync-active = <0>;
               vsync-active = <0>;
               de-active = <0>;
               pixelclk-active = <0>;
           };
       };
 
       port {
           panel_in_lvds: endpoint {
               remote-endpoint = <&lvds_out_panel>;
           };
       };
   };
};
 
&rk628_lvds {
   rockchip,link-type = "dual-link-even-odd-pixels";
   status = "okay";
 
   ports {
       #address-cells = <1>;
       #size-cells = <0>;
 
       port@0 {
           reg = <0>;
 
           lvds_in_post_process: endpoint {
               remote-endpoint = <&post_process_out_lvds>;
           };
       };
 
       port@1 {
           reg = <1>;
 
           lvds_out_panel: endpoint {
               remote-endpoint = <&panel_in_lvds>;
           };
       };
   };
};
 
&rk628_combtxphy {
   status = "okay";
};
 
&rk628_post_process {
   pinctrl-names = "default";
   pinctrl-0 = <&rk628_vop_pins>;
   status = "okay";
 
   ports {
       #address-cells = <1>;
       #size-cells = <0>;
 
       port@0 {
           reg = <0>;
 
           post_process_in_rgb: endpoint {
               remote-endpoint = <&rgb_out_post_process>;
           };
       };
 
       port@1 {
           reg = <1>;
 
           post_process_out_lvds: endpoint {
               remote-endpoint = <&lvds_in_post_process>;
           };
       };
   };
};
 
&rgb {
   status = "okay";
 
   ports {
       port@1 {
           reg = <1>;
 
           rgb_out_post_process: endpoint {
               remote-endpoint = <&post_process_in_rgb>;
           };
       };
   };
};
 
&video_phy {
   status = "okay";
};
 
&rgb_in_vopb {
   status = "disabled";
};
 
&rgb_in_vopl {
   status = "okay";
};
 
&route_rgb {
   connect = <&vopl_out_rgb>;
   status = "disabled";
};
 
&vopb {
   assigned-clocks = <&cru DCLK_VOP0>;
   assigned-clock-parents = <&cru PLL_GPLL>;
};
 
&vopl {
   assigned-clocks = <&cru DCLK_VOP1>;
   assigned-clock-parents = <&cru PLL_CPLL>;
};