BSP version: L2.6.35_11.04.01_ER
Board: iMX50 EVK RevC and RevD
Panel: T15DDS15, 128*128 262k Color 1.44 inch TFT LCD, based on ST7735R controller.
Hardware connection:
| T15DDS15 | iMX50 EVK board |
| 1. GND | |
| 2. RESET# | DISP_RESET |
| 3. RS | DISP_RS |
| 4. WR# | DISP_WR |
| 5. RD# | DISP_RD |
| 6. DB0 | DISP_DATA0 |
| 7. DB1 | DISP_DATA1 |
| 8. DB2 | DISP_DATA2 |
| 9. DB3 | DISP_DATA3 |
| 10. DB4 | DISP_DATA4 |
| 11. DB5 | DISP_DATA5 |
| 12. DB6 | DISP_DATA6 |
| 13. DB7 | DISP_DATA7 |
| 14. CS# | DISP_CS |
| 15. VCCIO | 1.8V_SW5 |
| 16. IC_ID | |
| 17. VDD | DCDC_3V15 |
| 18. VLED+ | 5V_MAIN |
| 19. VLED- | DISP_PWM |
| 20. GND | |
1. Description
This is a system 80 interface LCDIF patch and sample driver for panel gz2401 and t15dds15, it is based on L2.6.35_11.04.01_ER_source.tar.gz release. Gz2410 panel was not tested.
2. File list
-- fb_test.zip: It's a sample code which was used to fill the screen. From it you can know how to refresh the LCD panel.
-- mx50_mpu_lcd_support.patch: System 80 interface LCD driver kernel patch.
-- uboot_i80_ER1104.patch: System 80 interface LCD uboot patch. Enabled splash screen in Uboot.
3. Usage Follow the following process to build firmware image.
3.1 Follow user guide finish a build use ./ltib and leave source codes.
3.2 Apply the patch to kernel and Uboot
$ cd ltib
$ ./ltib -p kernel -m prep
$ cd rpm/BUILDS/linux-2.6.35.3/
$ patch -p1 < ~/mx50_mpu_lcd_support.patch
$ cd ../../../
$ ./ltib -p u-boot -m prep
$ cd rpm/BUILD/u-boot-2009.08/
$ patch -p1 < ~/uboot_i80_ER1104.patch
$ cd ../../../
3.3 The sample driver is gz2401 and t15dds15, so select the panel in kernel config:
Device Drivers -->
Graphics support -->
<*> Support MXC ELCDIF framebuffer MPU Panel Type -->
<*> Support MXC T15DDS15 frame buffer
<*> Support MXC GZ2401 frame buffer
3.4 Run command in /ltib directory to re-build kernel.
3.5 Boot command for new lcd: T15DDS15:
setenv bootargs_mmc 'setenv bootargs ${bootargs} console=ttymxc0 root=/dev/mmcblk0p1 rootwait rw ip=none lcd=3'
GZ2401: (This panel was not tested)
setenv bootargs_mmc 'setenv bootargs ${bootargs} console=ttymxc0 root=/dev/mmcblk0p1 rootwait rw ip=none lcd=4'
4. Test program This test program is important and you'd better run it first. From it you will know how to refresh the panel when frame buffer was change.
4.1 Change Makefile a little to meet your environment.
4.2 Make the program.
4.3 Copy it to your board and run it, you will see some white and black on screen.
Attached the files again.
Original Attachment has been moved to: fb_test.zip
Original Attachment has been moved to: uboot_i80_ER1104.patch.zip
Original Attachment has been moved to: mx50_mpu_lcd_support.patch.zip