hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
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
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
// Copyright (c) 2020 Fuzhou Rockchip Electronics Co., Ltd
 
/dts-v1/;
#include "rk3288-evb-rk628.dtsi"
 
/ {
   model = "Rockchip RK3288 EVB RK628 Board";
   compatible = "rockchip,rk3288-evb-rk628", "rockchip,rk3288";
 
   panel {
       compatible = "simple-panel";
       backlight = <&backlight>;
       enable-gpios = <&gpio7 RK_PA2 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 = <48000000>;
               hactive = <1024>;
               vactive = <600>;
               hback-porch = <90>;
               hfront-porch = <90>;
               vback-porch = <10>;
               vfront-porch = <10>;
               hsync-len = <90>;
               vsync-len = <10>;
               hsync-active = <0>;
               vsync-active = <0>;
               de-active = <0>;
               pixelclk-active = <0>;
           };
       };
 
       port {
           panel_in_lvds: endpoint {
               remote-endpoint = <&lvds_out_panel>;
           };
       };
   };
};
 
&rk628_lvds {
   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>;
};