AM335x LCD Controller Driver's Guide

Introduction

LCD controller(LCDC) on AM335x is an updated version of LCDC that is found on OMAP-L138 SoC. It has following updates in comparison with OMAP-L138

  1. Interrupt configuration and status registers are different.
  2. Increased resolution of 2048*2048.
  3. 24 bits per pixel active TFT raster configuration.

So da8xx-fb LCD driver can be used by having enhancements under LCD_VERSION2 code. This update in LCDC version can be detected by reading PID register.

LCDC on AM335x SoC

  1. LCDC has 2 interface clocks, L3 peripheral and L4LS peripheral.
  2. LCDC functional clock can be mux selected among DISPLAY PLL CLKOUTM2, CORE PLLCLKOUTM5 or PER PLLCLKOUTM2. Supports MAX pixel clock of ~126MHz, configure DISPLAY PLL for 600MHz.
  3. LCD_DATA[0-15] pins are in mode0 and LCD_DATA[16-23] are in mode1.
  4. LCD is enabled on General Purpose EVM operating in profile 0/1/2 and on IP-Phone.
  5. Backlight is through eCAP0_in_PWM0_out pin, controls brightness via eCAP0 module. LCD EVM also has alternative backlight control via TLC59108 power control chip. This is via do not implement(DNI) R36 resistor on non-alpha boards, only populated in-case of non-availability of eCAP0_in_PWM0_out pin.

Driver Configuration

Make sure you have enabled LCD FB and FB console as below. Default am335x_defconfig keeps them enabled.

 Device Drivers  ---> 
         Graphics support  ---> 
            <*> Support for frame buffer devices  --->
                 <*>   DA8xx/OMAP-L1xx Framebuffer support
                 (4)     Consistent DMA memory size (MB)

Building as Loadable Kernel Module

To build the above components as modules, press 'M' key on below config option.

  • <M> DA8xx/OMAP-L1xx Framebuffer support

Enable below config options to enable Framebuffer console support and bootup logo.

            Console display driver support  --->
                    <*> Framebuffer Console support
            [*] Bootup logo  --->
                [*]   Standard black and white Linux logo
                [*]   Standard 16-color Linux logo
                [*]   Standard 224-color Linux logo

  • Enabling TLC59108 back light driver
Device Drivers  --->
         Graphics support  --->
             [*] Backlight & LCD device support  --->
                 <*>   Lowlevel Backlight controls
                 <*>   TLC59108 LCD Backlight Driver
NOTE
Please note it is not required to enable TLC59108 driver on beta boards.

Usage and Verification

  • With above specified kernel configurations, Linux bootup penguin logo will appear on LCD panel.
  • Use fbset utility to display timing parameters:
/ # fbset
mode "800x480-40"
# D: 21.429 MHz, H: 21.956 kHz, V: 40.139 Hz
geometry 800 480 800 960 32
timings 46666 64 64 32 32 48 3
accel false
rgba 8/16,8/8,8/0,0/0
endmode
/ #
  • In 24bpp configuration, testing can be done by dumping bmp image (header stripped 800*480.bmp) on LCD
$cat 800*480.bmp > /dev/fb0
  • Framebuffer console blankes out after blanking interval. Framebuffer console blanking and unblanking can be set via below sysfs interfaces.
to unblank:
$echo "0" > /sys/class/graphics/fb0/blank
to blank:
$echo "4" > /sys/class/graphics/fb0/blank
  • Default blankinterval is 10 minutes, blank event is triggered on every 10 minutes period(this will happen even if you set screen unblank as above). Blanking can be disabled altogether by appending consoleblank=0 to kernel bootargs.


转载:http://processors.wiki.ti.com/index.php/AM335x_LCD_Controller_Driver%27s_Guide

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值