| .. | .. |
|---|
| 81 | 81 | status = "okay"; |
|---|
| 82 | 82 | rockchip,data-sync-bypass; |
|---|
| 83 | 83 | pinctrl-names = "default"; |
|---|
| 84 | + /* |
|---|
| 85 | + * rgb3x8_pins for RGB3x8(8bit) |
|---|
| 86 | + * rgb565_pins for RGB565(16bit) |
|---|
| 87 | + */ |
|---|
| 84 | 88 | pinctrl-0 = <&rgb565_pins>; |
|---|
| 85 | 89 | |
|---|
| 86 | 90 | /* |
|---|
| .. | .. |
|---|
| 88 | 92 | */ |
|---|
| 89 | 93 | mcu_panel: mcu-panel { |
|---|
| 90 | 94 | /* |
|---|
| 91 | | - * MEDIA_BUS_FMT_RGB888_3X8 for serial mcu |
|---|
| 92 | | - * MEDIA_BUS_FMT_RGB565_1X16 for parallel mcu |
|---|
| 95 | + * MEDIA_BUS_FMT_RGB888_3X8 for RGB3x8(8bit) |
|---|
| 96 | + * MEDIA_BUS_FMT_RGB565_1X16 for RGB565(16bit) |
|---|
| 93 | 97 | */ |
|---|
| 94 | 98 | bus-format = <MEDIA_BUS_FMT_RGB565_1X16>; |
|---|
| 95 | 99 | backlight = <&backlight>; |
|---|
| 96 | 100 | enable-gpios = <&gpio1 RK_PA3 GPIO_ACTIVE_LOW>; |
|---|
| 97 | 101 | enable-delay-ms = <20>; |
|---|
| 98 | 102 | reset-gpios = <&gpio1 RK_PA4 GPIO_ACTIVE_LOW>; |
|---|
| 99 | | - reset-value = <0>; |
|---|
| 100 | 103 | reset-delay-ms = <10>; |
|---|
| 101 | 104 | prepare-delay-ms = <20>; |
|---|
| 102 | 105 | unprepare-delay-ms = <20>; |
|---|
| 103 | 106 | disable-delay-ms = <20>; |
|---|
| 107 | + init-delay-ms = <10>; |
|---|
| 104 | 108 | width-mm = <217>; |
|---|
| 105 | 109 | height-mm = <136>; |
|---|
| 106 | 110 | |
|---|
| .. | .. |
|---|
| 155 | 159 | 00 00 01 36 |
|---|
| 156 | 160 | 01 00 01 48 |
|---|
| 157 | 161 | |
|---|
| 158 | | - 00 00 01 3a //interface mode control |
|---|
| 159 | | - 01 00 01 55 //spi rgb:66(r1 r4 r5) mcu parallel: 55(r2 r3 r6) |
|---|
| 160 | | - // mcu serial: 77(r1 r3 r6) |
|---|
| 162 | + 00 00 01 3a |
|---|
| 163 | + 01 00 01 55 /* |
|---|
| 164 | + * interface pixel format: |
|---|
| 165 | + * 66 for RGB3x8(8bit) |
|---|
| 166 | + * 55 for RGB565(16bit) |
|---|
| 167 | + */ |
|---|
| 161 | 168 | |
|---|
| 162 | | - 00 00 01 b0 //interface mode control |
|---|
| 169 | + 00 00 01 b0 |
|---|
| 163 | 170 | 01 00 01 00 |
|---|
| 164 | 171 | |
|---|
| 165 | | - 00 00 01 b1 //frame rate 70hz |
|---|
| 166 | | - 01 00 01 b0 |
|---|
| 172 | + 00 00 01 b1 |
|---|
| 173 | + 01 00 01 a0 /* |
|---|
| 174 | + * frame rate control: |
|---|
| 175 | + * 70 (45hz) for RGB3x8(8bit) |
|---|
| 176 | + * a0 (60hz) for RGB565(16bit) |
|---|
| 177 | + */ |
|---|
| 167 | 178 | 01 00 01 11 |
|---|
| 168 | 179 | 00 00 01 b4 |
|---|
| 169 | 180 | 01 00 01 02 |
|---|
| 170 | | - 00 00 01 B6 //RGB/MCU Interface Control |
|---|
| 171 | | - 01 00 01 02 //02 mcu, 32 rgb |
|---|
| 181 | + 00 00 01 B6 |
|---|
| 182 | + 01 00 01 02 /* |
|---|
| 183 | + * display function control: |
|---|
| 184 | + * 32 for RGB |
|---|
| 185 | + * 02 for MCU |
|---|
| 186 | + */ |
|---|
| 172 | 187 | 01 00 01 02 |
|---|
| 173 | 188 | |
|---|
| 174 | 189 | 00 00 01 b7 |
|---|
| .. | .. |
|---|
| 202 | 217 | native-mode = <&kd050fwfba002_timing>; |
|---|
| 203 | 218 | |
|---|
| 204 | 219 | kd050fwfba002_timing: timing0 { |
|---|
| 205 | | - clock-frequency = <20000000>; |
|---|
| 220 | + /* |
|---|
| 221 | + * 7840125 for frame rate 45Hz |
|---|
| 222 | + * 10453500 for frame rate 60Hz |
|---|
| 223 | + */ |
|---|
| 224 | + clock-frequency = <10453500>; |
|---|
| 206 | 225 | hactive = <320>; |
|---|
| 207 | 226 | vactive = <480>; |
|---|
| 208 | 227 | hback-porch = <10>; |
|---|
| .. | .. |
|---|
| 261 | 280 | &vop { |
|---|
| 262 | 281 | status = "okay"; |
|---|
| 263 | 282 | |
|---|
| 283 | + /* |
|---|
| 284 | + * Default config is as follows: |
|---|
| 285 | + * |
|---|
| 286 | + * mcu-pix-total = <9>; |
|---|
| 287 | + * mcu-cs-pst = <1>; |
|---|
| 288 | + * mcu-cs-pend = <8>; |
|---|
| 289 | + * mcu-rw-pst = <2>; |
|---|
| 290 | + * mcu-rw-pend = <5>; |
|---|
| 291 | + * mcu-hold-mode = <0>; // default set to 0 |
|---|
| 292 | + * |
|---|
| 293 | + * To increase the frame rate, reduce all parameters because |
|---|
| 294 | + * the max dclk rate of mcu is 150M in rv1103/rv1106. |
|---|
| 295 | + */ |
|---|
| 264 | 296 | mcu-timing { |
|---|
| 265 | | - mcu-pix-total = <9>; |
|---|
| 297 | + mcu-pix-total = <5>; |
|---|
| 266 | 298 | mcu-cs-pst = <1>; |
|---|
| 267 | | - mcu-cs-pend = <8>; |
|---|
| 299 | + mcu-cs-pend = <4>; |
|---|
| 268 | 300 | mcu-rw-pst = <2>; |
|---|
| 269 | | - mcu-rw-pend = <5>; |
|---|
| 301 | + mcu-rw-pend = <3>; |
|---|
| 270 | 302 | |
|---|
| 271 | 303 | mcu-hold-mode = <0>; // default set to 0 |
|---|
| 272 | 304 | }; |
|---|