.. | .. |
---|
5 | 5 | |
---|
6 | 6 | /dts-v1/; |
---|
7 | 7 | |
---|
8 | | -#include <dt-bindings/display/media-bus-format.h> |
---|
9 | 8 | #include "rv1106g-evb1-v11.dts" |
---|
| 9 | +#include "rv1106-evb-ext-mcu-v10.dtsi" |
---|
10 | 10 | |
---|
11 | 11 | / { |
---|
12 | 12 | model = "Rockchip RV1106G EVB1 V11 Board + RK EVB MCU 8BIT Display V20 Ext Board"; |
---|
13 | 13 | compatible = "rockchip,rv1106g-evb1-mcu-display-v20", "rockchip,rv1106"; |
---|
14 | | - |
---|
15 | | - backlight: backlight { |
---|
16 | | - status = "okay"; |
---|
17 | | - compatible = "pwm-backlight"; |
---|
18 | | - pwms = <&pwm3 0 25000 0>; |
---|
19 | | - brightness-levels = < |
---|
20 | | - 0 1 2 3 4 5 6 7 |
---|
21 | | - 8 9 10 11 12 13 14 15 |
---|
22 | | - 16 17 18 19 20 21 22 23 |
---|
23 | | - 24 25 26 27 28 29 30 31 |
---|
24 | | - 32 33 34 35 36 37 38 39 |
---|
25 | | - 40 41 42 43 44 45 46 47 |
---|
26 | | - 48 49 50 51 52 53 54 55 |
---|
27 | | - 56 57 58 59 60 61 62 63 |
---|
28 | | - 64 65 66 67 68 69 70 71 |
---|
29 | | - 72 73 74 75 76 77 78 79 |
---|
30 | | - 80 81 82 83 84 85 86 87 |
---|
31 | | - 88 89 90 91 92 93 94 95 |
---|
32 | | - 96 97 98 99 100 101 102 103 |
---|
33 | | - 104 105 106 107 108 109 110 111 |
---|
34 | | - 112 113 114 115 116 117 118 119 |
---|
35 | | - 120 121 122 123 124 125 126 127 |
---|
36 | | - 128 129 130 131 132 133 134 135 |
---|
37 | | - 136 137 138 139 140 141 142 143 |
---|
38 | | - 144 145 146 147 148 149 150 151 |
---|
39 | | - 152 153 154 155 156 157 158 159 |
---|
40 | | - 160 161 162 163 164 165 166 167 |
---|
41 | | - 168 169 170 171 172 173 174 175 |
---|
42 | | - 176 177 178 179 180 181 182 183 |
---|
43 | | - 184 185 186 187 188 189 190 191 |
---|
44 | | - 192 193 194 195 196 197 198 199 |
---|
45 | | - 200 201 202 203 204 205 206 207 |
---|
46 | | - 208 209 210 211 212 213 214 215 |
---|
47 | | - 216 217 218 219 220 221 222 223 |
---|
48 | | - 224 225 226 227 228 229 230 231 |
---|
49 | | - 232 233 234 235 236 237 238 239 |
---|
50 | | - 240 241 242 243 244 245 246 247 |
---|
51 | | - 248 249 250 251 252 253 254 255>; |
---|
52 | | - default-brightness-level = <200>; |
---|
53 | | - }; |
---|
54 | | - |
---|
55 | | - reserved-memory { |
---|
56 | | - #address-cells = <1>; |
---|
57 | | - #size-cells = <1>; |
---|
58 | | - ranges; |
---|
59 | | - |
---|
60 | | - linux,cma { |
---|
61 | | - compatible = "shared-dma-pool"; |
---|
62 | | - inactive; |
---|
63 | | - reusable; |
---|
64 | | - size = <0x1000000>; |
---|
65 | | - linux,cma-default; |
---|
66 | | - }; |
---|
67 | | - |
---|
68 | | - drm_logo: drm-logo@00000000 { |
---|
69 | | - compatible = "rockchip,drm-logo"; |
---|
70 | | - reg = <0x0 0x0>; |
---|
71 | | - }; |
---|
72 | | - }; |
---|
73 | | -}; |
---|
74 | | - |
---|
75 | | -&display_subsystem { |
---|
76 | | - status = "okay"; |
---|
77 | | - logo-memory-region = <&drm_logo>; |
---|
78 | | -}; |
---|
79 | | - |
---|
80 | | -&pwm3 { |
---|
81 | | - status = "okay"; |
---|
82 | | - pinctrl-names = "active"; |
---|
83 | | - pinctrl-0 = <&pwm3m1_pins>; |
---|
84 | | -}; |
---|
85 | | - |
---|
86 | | -&rgb { |
---|
87 | | - status = "okay"; |
---|
88 | | - rockchip,data-sync-bypass; |
---|
89 | | - pinctrl-names = "default"; |
---|
90 | | - /* |
---|
91 | | - * rgb3x8_pins for RGB3x8(8bit) |
---|
92 | | - * rgb565_pins for RGB565(16bit) |
---|
93 | | - */ |
---|
94 | | - pinctrl-0 = <&rgb3x8_pins>; |
---|
95 | | - |
---|
96 | | - /* |
---|
97 | | - * 320x480 RGB/MCU screen K350C4516T |
---|
98 | | - */ |
---|
99 | | - mcu_panel: mcu-panel { |
---|
100 | | - /* |
---|
101 | | - * MEDIA_BUS_FMT_RGB888_3X8 for RGB3x8(8bit) |
---|
102 | | - * MEDIA_BUS_FMT_RGB565_1X16 for RGB565(16bit) |
---|
103 | | - */ |
---|
104 | | - bus-format = <MEDIA_BUS_FMT_RGB888_3X8>; |
---|
105 | | - backlight = <&backlight>; |
---|
106 | | - enable-gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>; |
---|
107 | | - enable-delay-ms = <20>; |
---|
108 | | - reset-gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>; |
---|
109 | | - reset-delay-ms = <10>; |
---|
110 | | - prepare-delay-ms = <20>; |
---|
111 | | - unprepare-delay-ms = <20>; |
---|
112 | | - disable-delay-ms = <20>; |
---|
113 | | - init-delay-ms = <10>; |
---|
114 | | - width-mm = <217>; |
---|
115 | | - height-mm = <136>; |
---|
116 | | - |
---|
117 | | - // type:0 is cmd, 1 is data |
---|
118 | | - panel-init-sequence = [ |
---|
119 | | - //type delay num val1 val2 val3 |
---|
120 | | - 00 00 01 e0 |
---|
121 | | - 01 00 01 00 |
---|
122 | | - 01 00 01 07 |
---|
123 | | - 01 00 01 0f |
---|
124 | | - 01 00 01 0d |
---|
125 | | - 01 00 01 1b |
---|
126 | | - 01 00 01 0a |
---|
127 | | - 01 00 01 3c |
---|
128 | | - |
---|
129 | | - 01 00 01 78 |
---|
130 | | - 01 00 01 4a |
---|
131 | | - 01 00 01 07 |
---|
132 | | - 01 00 01 0e |
---|
133 | | - 01 00 01 09 |
---|
134 | | - 01 00 01 1b |
---|
135 | | - 01 00 01 1e |
---|
136 | | - 01 00 01 0f |
---|
137 | | - |
---|
138 | | - 00 00 01 e1 |
---|
139 | | - 01 00 01 00 |
---|
140 | | - 01 00 01 22 |
---|
141 | | - 01 00 01 24 |
---|
142 | | - 01 00 01 06 |
---|
143 | | - 01 00 01 12 |
---|
144 | | - 01 00 01 07 |
---|
145 | | - 01 00 01 36 |
---|
146 | | - |
---|
147 | | - 01 00 01 47 |
---|
148 | | - 01 00 01 47 |
---|
149 | | - 01 00 01 06 |
---|
150 | | - 01 00 01 0a |
---|
151 | | - 01 00 01 07 |
---|
152 | | - 01 00 01 30 |
---|
153 | | - 01 00 01 37 |
---|
154 | | - 01 00 01 0f |
---|
155 | | - |
---|
156 | | - 00 00 01 c0 |
---|
157 | | - 01 00 01 10 |
---|
158 | | - 01 00 01 10 |
---|
159 | | - |
---|
160 | | - 00 00 01 c1 |
---|
161 | | - 01 00 01 41 |
---|
162 | | - |
---|
163 | | - 00 00 01 c5 |
---|
164 | | - 01 00 01 00 |
---|
165 | | - 01 00 01 22 |
---|
166 | | - 01 00 01 80 |
---|
167 | | - |
---|
168 | | - 00 00 01 36 |
---|
169 | | - 01 00 01 48 |
---|
170 | | - |
---|
171 | | - 00 00 01 3a |
---|
172 | | - 01 00 01 66 /* |
---|
173 | | - * interface pixel format: |
---|
174 | | - * 66 for RGB3x8(8bit) |
---|
175 | | - * 55 for RGB565(16bit) |
---|
176 | | - */ |
---|
177 | | - |
---|
178 | | - 00 00 01 b0 |
---|
179 | | - 01 00 01 00 |
---|
180 | | - |
---|
181 | | - 00 00 01 b1 |
---|
182 | | - 01 00 01 70 /* |
---|
183 | | - * frame rate control: |
---|
184 | | - * 70 (45hz) for RGB3x8(8bit) |
---|
185 | | - * a0 (60hz) for RGB565(16bit) |
---|
186 | | - */ |
---|
187 | | - 01 00 01 11 |
---|
188 | | - 00 00 01 b4 |
---|
189 | | - 01 00 01 02 |
---|
190 | | - 00 00 01 B6 |
---|
191 | | - 01 00 01 02 /* |
---|
192 | | - * display function control: |
---|
193 | | - * 32 for RGB |
---|
194 | | - * 02 for MCU |
---|
195 | | - */ |
---|
196 | | - 01 00 01 02 |
---|
197 | | - |
---|
198 | | - 00 00 01 b7 |
---|
199 | | - 01 00 01 c6 |
---|
200 | | - |
---|
201 | | - 00 00 01 be |
---|
202 | | - 01 00 01 00 |
---|
203 | | - 01 00 01 04 |
---|
204 | | - |
---|
205 | | - 00 00 01 e9 |
---|
206 | | - 01 00 01 00 |
---|
207 | | - |
---|
208 | | - 00 00 01 f7 |
---|
209 | | - 01 00 01 a9 |
---|
210 | | - 01 00 01 51 |
---|
211 | | - 01 00 01 2c |
---|
212 | | - 01 00 01 82 |
---|
213 | | - |
---|
214 | | - 00 78 01 11 |
---|
215 | | - 00 32 01 29 |
---|
216 | | - 00 00 01 2c |
---|
217 | | - ]; |
---|
218 | | - |
---|
219 | | - panel-exit-sequence = [ |
---|
220 | | - //type delay num val1 val2 val3 |
---|
221 | | - 00 0a 01 28 |
---|
222 | | - 00 78 01 10 |
---|
223 | | - ]; |
---|
224 | | - |
---|
225 | | - display-timings { |
---|
226 | | - native-mode = <&kd050fwfba002_timing>; |
---|
227 | | - |
---|
228 | | - kd050fwfba002_timing: timing0 { |
---|
229 | | - /* |
---|
230 | | - * 7840125 for frame rate 45Hz |
---|
231 | | - * 10453500 for frame rate 60Hz |
---|
232 | | - */ |
---|
233 | | - clock-frequency = <7840125>; |
---|
234 | | - hactive = <320>; |
---|
235 | | - vactive = <480>; |
---|
236 | | - hback-porch = <10>; |
---|
237 | | - hfront-porch = <5>; |
---|
238 | | - vback-porch = <10>; |
---|
239 | | - vfront-porch = <5>; |
---|
240 | | - hsync-len = <10>; |
---|
241 | | - vsync-len = <10>; |
---|
242 | | - hsync-active = <0>; |
---|
243 | | - vsync-active = <0>; |
---|
244 | | - de-active = <0>; |
---|
245 | | - pixelclk-active = <1>; |
---|
246 | | - }; |
---|
247 | | - }; |
---|
248 | | - |
---|
249 | | - port { |
---|
250 | | - panel_in_rgb: endpoint { |
---|
251 | | - remote-endpoint = <&rgb_out_panel>; |
---|
252 | | - }; |
---|
253 | | - }; |
---|
254 | | - }; |
---|
255 | | - |
---|
256 | | - ports { |
---|
257 | | - rgb_out: port@1 { |
---|
258 | | - reg = <1>; |
---|
259 | | - #address-cells = <1>; |
---|
260 | | - #size-cells = <0>; |
---|
261 | | - |
---|
262 | | - rgb_out_panel: endpoint@0 { |
---|
263 | | - reg = <0>; |
---|
264 | | - remote-endpoint = <&panel_in_rgb>; |
---|
265 | | - }; |
---|
266 | | - }; |
---|
267 | | - }; |
---|
268 | | -}; |
---|
269 | | - |
---|
270 | | -&rgb_in_vop { |
---|
271 | | - status = "okay"; |
---|
272 | | -}; |
---|
273 | | - |
---|
274 | | -&route_rgb { |
---|
275 | | - status = "disabled"; |
---|
276 | | -}; |
---|
277 | | - |
---|
278 | | -/* |
---|
279 | | - * The pins of sdmmc1 and lcd are multiplexed |
---|
280 | | - */ |
---|
281 | | -&sdio { |
---|
282 | | - status = "disabled"; |
---|
283 | | -}; |
---|
284 | | - |
---|
285 | | -&sdio_pwrseq { |
---|
286 | | - status = "disabled"; |
---|
287 | | -}; |
---|
288 | | - |
---|
289 | | -&vop { |
---|
290 | | - status = "okay"; |
---|
291 | | - |
---|
292 | | - /* |
---|
293 | | - * Default config is as follows: |
---|
294 | | - * |
---|
295 | | - * mcu-pix-total = <9>; |
---|
296 | | - * mcu-cs-pst = <1>; |
---|
297 | | - * mcu-cs-pend = <8>; |
---|
298 | | - * mcu-rw-pst = <2>; |
---|
299 | | - * mcu-rw-pend = <5>; |
---|
300 | | - * mcu-hold-mode = <0>; // default set to 0 |
---|
301 | | - * |
---|
302 | | - * To increase the frame rate, reduce all parameters because |
---|
303 | | - * the max dclk rate of mcu is 150M in rv1103/rv1106. |
---|
304 | | - */ |
---|
305 | | - mcu-timing { |
---|
306 | | - mcu-pix-total = <5>; |
---|
307 | | - mcu-cs-pst = <1>; |
---|
308 | | - mcu-cs-pend = <4>; |
---|
309 | | - mcu-rw-pst = <2>; |
---|
310 | | - mcu-rw-pend = <3>; |
---|
311 | | - |
---|
312 | | - mcu-hold-mode = <0>; // default set to 0 |
---|
313 | | - }; |
---|
314 | 14 | }; |
---|