.. | .. |
---|
91 | 91 | status = "okay"; |
---|
92 | 92 | rockchip,data-sync-bypass; |
---|
93 | 93 | pinctrl-names = "default"; |
---|
| 94 | + /* |
---|
| 95 | + * rgb3x8_pins for RGB3x8(8bit) |
---|
| 96 | + * rgb565_pins for RGB565(16bit) |
---|
| 97 | + */ |
---|
94 | 98 | pinctrl-0 = <&rgb3x8_pins>; |
---|
95 | 99 | |
---|
96 | 100 | /* |
---|
97 | 101 | * 320x480 RGB/MCU screen K350C4516T |
---|
98 | 102 | */ |
---|
99 | 103 | mcu_panel: mcu-panel { |
---|
| 104 | + /* |
---|
| 105 | + * MEDIA_BUS_FMT_RGB888_3X8 for RGB3x8(8bit) |
---|
| 106 | + * MEDIA_BUS_FMT_RGB565_1X16 for RGB565(16bit) |
---|
| 107 | + */ |
---|
100 | 108 | bus-format = <MEDIA_BUS_FMT_RGB888_3X8>; |
---|
101 | 109 | backlight = <&backlight>; |
---|
102 | 110 | enable-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_LOW>; |
---|
103 | 111 | enable-delay-ms = <20>; |
---|
104 | 112 | reset-gpios = <&gpio3 RK_PD0 GPIO_ACTIVE_LOW>; |
---|
105 | | - reset-value = <0>; |
---|
106 | 113 | reset-delay-ms = <10>; |
---|
107 | 114 | prepare-delay-ms = <20>; |
---|
108 | 115 | unprepare-delay-ms = <20>; |
---|
109 | 116 | disable-delay-ms = <20>; |
---|
| 117 | + init-delay-ms = <10>; |
---|
110 | 118 | width-mm = <217>; |
---|
111 | 119 | height-mm = <136>; |
---|
112 | 120 | |
---|
.. | .. |
---|
161 | 169 | 00 00 01 36 |
---|
162 | 170 | 01 00 01 48 |
---|
163 | 171 | |
---|
164 | | - 00 00 01 3a //interface mode control |
---|
165 | | - 01 00 01 77 //spi rgb:66(r1 r4 r5) mcu parallel: 55(r2 r3 r6) |
---|
166 | | - // mcu serial: 77(r1 r3 r6) |
---|
| 172 | + 00 00 01 3a |
---|
| 173 | + 01 00 01 66 /* |
---|
| 174 | + * interface pixel format: |
---|
| 175 | + * 66 for RGB3x8(8bit) |
---|
| 176 | + * 55 for RGB565(16bit) |
---|
| 177 | + */ |
---|
167 | 178 | |
---|
168 | | - 00 00 01 b0 //interface mode control |
---|
| 179 | + 00 00 01 b0 |
---|
169 | 180 | 01 00 01 00 |
---|
170 | 181 | |
---|
171 | | - 00 00 01 b1 //frame rate 70hz |
---|
172 | | - 01 00 01 b0 |
---|
| 182 | + 00 00 01 b1 |
---|
| 183 | + 01 00 01 70 /* |
---|
| 184 | + * frame rate control: |
---|
| 185 | + * 70 (45hz) for RGB3x8(8bit) |
---|
| 186 | + * a0 (60hz) for RGB565(16bit) |
---|
| 187 | + */ |
---|
173 | 188 | 01 00 01 11 |
---|
174 | 189 | 00 00 01 b4 |
---|
175 | 190 | 01 00 01 02 |
---|
176 | | - 00 00 01 B6 //RGB/MCU Interface Control |
---|
177 | | - 01 00 01 02 //02 mcu, 32 rgb |
---|
| 191 | + 00 00 01 B6 |
---|
| 192 | + 01 00 01 02 /* |
---|
| 193 | + * display function control: |
---|
| 194 | + * 32 for RGB |
---|
| 195 | + * 02 for MCU |
---|
| 196 | + */ |
---|
178 | 197 | 01 00 01 02 |
---|
179 | 198 | |
---|
180 | 199 | 00 00 01 b7 |
---|
.. | .. |
---|
208 | 227 | native-mode = <&kd050fwfba002_timing>; |
---|
209 | 228 | |
---|
210 | 229 | kd050fwfba002_timing: timing0 { |
---|
211 | | - clock-frequency = <20000000>; |
---|
| 230 | + /* |
---|
| 231 | + * 7840125 for frame rate 45Hz |
---|
| 232 | + * 10453500 for frame rate 60Hz |
---|
| 233 | + */ |
---|
| 234 | + clock-frequency = <7840125>; |
---|
212 | 235 | hactive = <320>; |
---|
213 | 236 | vactive = <480>; |
---|
214 | 237 | hback-porch = <10>; |
---|
.. | .. |
---|
267 | 290 | &vop { |
---|
268 | 291 | status = "okay"; |
---|
269 | 292 | |
---|
| 293 | + /* |
---|
| 294 | + * Default config is as follows: |
---|
| 295 | + * |
---|
| 296 | + * mcu-pix-total = <9>; |
---|
| 297 | + * mcu-cs-pst = <1>; |
---|
| 298 | + * mcu-cs-pend = <8>; |
---|
| 299 | + * mcu-rw-pst = <2>; |
---|
| 300 | + * mcu-rw-pend = <5>; |
---|
| 301 | + * mcu-hold-mode = <0>; // default set to 0 |
---|
| 302 | + * |
---|
| 303 | + * To increase the frame rate, reduce all parameters because |
---|
| 304 | + * the max dclk rate of mcu is 150M in rv1103/rv1106. |
---|
| 305 | + */ |
---|
270 | 306 | mcu-timing { |
---|
271 | | - mcu-pix-total = <9>; |
---|
| 307 | + mcu-pix-total = <5>; |
---|
272 | 308 | mcu-cs-pst = <1>; |
---|
273 | | - mcu-cs-pend = <8>; |
---|
| 309 | + mcu-cs-pend = <4>; |
---|
274 | 310 | mcu-rw-pst = <2>; |
---|
275 | | - mcu-rw-pend = <5>; |
---|
| 311 | + mcu-rw-pend = <3>; |
---|
276 | 312 | |
---|
277 | 313 | mcu-hold-mode = <0>; // default set to 0 |
---|
278 | 314 | }; |
---|