Devkit8000 4.3 inch LCD

Dear all,

           I am trying to up my devkit 4.3 inch LCD panel. I modify
following files in kernel.

--- a/arch/arm/mach-omap2/board-devkit8000.c
+++ b/arch/arm/mach-omap2/board-devkit8000.c
@@ -172,8 +172,9 @@ static struct regulator_consumer_supply
devkit8000_vsim_supply = {

static struct omap_dss_device devkit8000_lcd_device = {
   .name = "lcd",
  .driver_name = "generic_panel",
   .type = OMAP_DISPLAY_TYPE_DPI,
+ .panel.config = OMAP_DSS_LCD_TFT|OMAP_DSS_LCD_IVS|
OMAP_DSS_LCD_IHS,
   .phy.dpi.data_lines = 24,
   .platform_enable = devkit8000_panel_enable_lcd,
   .platform_disable = devkit8000_panel_disable_lcd,

--- a/drivers/video/modedb.c
+++ b/drivers/video/modedb.c
@@ -273,6 +273,18 @@ static const struct fb_videomode modedb[] = {
        /* 800x520i @ 50 Hz, 15.625 kHz hsync (PAL RGB) */
        NULL, 50, 800, 520, 58823, 144, 64, 72, 28, 80, 5,
        0, FB_VMODE_INTERLACED
+ }, {
+ /* 480x272 @ 60 Hz, Devkit8000 4.3 inch LCD */
+ NULL, 60, 480, 272, 111000, 2, 2, 2, 2, 41, 10,
+ 0, FB_VMODE_NONINTERLACED
+ }, {
+ /* 640x480 @ 60 Hz, Devkit8000 5.6 inch LCD */
+ NULL, 60, 640, 480, 39682, 16, 143, 32, 12, 1, 1,
+ 0, FB_VMODE_NONINTERLACED
+ }, {
+ /* 800x480 @ 60 Hz, Devkit8000 7 inch LCD */
+ NULL, 60, 800, 480, 24855, 210, 45, 132, 22, 1, 1,
+ 0, FB_VMODE_NONINTERLACED
     },
};

--- a/drivers/video/omap2/displays/panel-generic.c
+++ b/drivers/video/omap2/displays/panel-generic.c
@@ -66,7 +66,8 @@ static void generic_panel_power_off(struct
omap_dss_device *dssdev)

static int generic_panel_probe(struct omap_dss_device *dssdev)
{
- dssdev->panel.config = OMAP_DSS_LCD_TFT;
+ if (dssdev->panel.config == 0)
+ dssdev->panel.config = OMAP_DSS_LCD_TFT;
   dssdev->panel.timings = generic_panel_timings;

   return 0;

I use these following bootargs ( I am no sure which one is perfect)

setenv bootargs 'console=ttyO2,115200n8 noinitrd rw
ip=192.168.1.2:255.255.255.0 root=/dev/nfs nfsroot=192.168.1.1:/home/
arindam/Desktop/arm,nolock,rsize=1024,proto=tcp rootwait
omapdss.def_disp=lcd'

setenv bootargs 'console=ttyO2,115200n8 noinitrd rw
ip=192.168.1.2:255.255.255.0 root=/dev/nfs nfsroot=192.168.1.1:/home/
arindam/Desktop/arm,nolock,rsize=1024,proto=tcp rootwait
video=omapfb:mode:4.3inch_LCD'

setenv bootargs 'console=ttyO2,115200n8 noinitrd rw
ip=192.168.1.2:255.255.255.0 root=/dev/nfs nfsroot=192.168.1.1:/home/
arindam/Desktop/arm,nolock,rsize=1024,proto=tcp rootwait
omapdss.def_disp=lcd omapfb.mode=lcd:480x272'

still no luck. I am getting these following error

                    omapfb omapfb: failed to allocate framebuffer
[ 2.756195] omapfb omapfb: failed to allocate fbmem
[ 2.761383] omapfb omapfb: failed to setup omapfb
[ 2.766326] omapfb: probe of omapfb failed with error -12

Thanks & regards
Arindam Ghosh

try this
http://markmail.org/message/p6bf4qmhtvysyygn

including the patch

2011/2/18 arindam <arindam2ghosh@gmail.com>

Hello Arindam,

Dear Thomas,

                 Thanks again for your reply. I use your bootargs.
But this time kernel is hanging after

[ 2.712524] ALSA device list:
[ 2.715698] #0: omap3beagle
[ 2.719085] TCP cubic registered
[ 2.722534] NET: Registered protocol family 17
[ 2.727264] NET: Registered protocol family 15
[ 2.732025] Registering the dns_resolver key type
[ 2.737091] VFP support v0.3: implementor 41 architecture 3 part 30
variant c rev 1
[ 2.746429] Power Management for TI OMAP3.

I edied arch/arm/mach-omap2/board-devkit8000.c as following

static struct omap_dss_device devkit8000_lcd_device = {
       .name = "lcd",
       .driver_name = "generic_panel",
       .type = OMAP_DISPLAY_TYPE_DPI,
       .panel.config =
OMAP_DSS_LCD_TFT|OMAP_DSS_LCD_IVS|OMAP_DSS_LCD_IHS,
       .panel.acb = 0x28,
       .phy.dpi.data_lines = 24,
       .reset_gpio = -EINVAL, /* will be replaced */
       .platform_enable = devkit8000_panel_enable_lcd,
       .platform_disable = devkit8000_panel_disable_lcd,
};

and bootargs is

setenv bootargs 'console=ttyO2,115200n8 noinitrd rw
ip=192.168.1.2:255.255.255.0 root=/dev/nfs
nfsroot=192.168.1.1:/home/arindam/Desktop/arm,nolock,rsize=1024,proto=tcp
rootwait vram=12M omapdss.def_disp=lcd omapfb.mode=lcd:480x272'

Thanks & regards
Arindam Ghosh

Please let me know how you like the board in general

— On Fri, 2/18/11, arindam arindam2ghosh@gmail.com wrote:


> From: arindam arindam2ghosh@gmail.com
> Subject: [beagleboard] Devkit8000 4.3 inch LCD
> To: “Beagle Board” beagleboard@googlegroups.com
> Date: Friday, February 18, 2011, 5:04 AM
>
> Dear all,
>
> I am trying to up my devkit 4.3 inch LCD panel. I modify
> following files in kernel.
>
> — a/arch/arm/mach-omap2/board-devkit8000.c
> +++ b/arch/arm/mach-omap2/board-devkit8000.c
> @@ -172,8 +172,9 @@ static struct regulator_consumer_supply
> devkit8000_vsim_supply = {
>
> static struct omap_dss_device devkit8000_lcd_device = {
> .name = “lcd”,
> .driver_name = “generic_panel”,
> .type = OMAP_DISPLAY_TYPE_DPI,
> + .panel.config = OMAP_DSS_LCD_TFT|OMAP_DSS_LCD_IVS|
> OMAP_DSS_LCD_IHS,
> .phy.dpi.data_lines = 24,
> .platform_enable = devkit8000_panel_enable_lcd,
> .platform_disable = devkit8000_panel_disable_lcd,
>
> — a/drivers/video/modedb.c
> +++ b/drivers/video/modedb.c
> @@ -273,6 +273,18 @@ static const struct fb_videomode modedb = {
> /* 800x520i @ 50 Hz, 15.625 kHz hsync (PAL RGB) /
> NULL, 50, 800, 520, 58823, 144, 64, 72, 28, 80, 5,
> 0, FB_VMODE_INTERLACED
> + }, {
> + /
480x272 @ 60 Hz, Devkit8000 4.3 inch LCD /
> + NULL, 60, 480, 272, 111000, 2, 2, 2, 2, 41, 10,
> + 0, FB_VMODE_NONINTERLACED
> + }, {
> + /
640x480 @ 60 Hz, Devkit8000 5.6 inch LCD /
> + NULL, 60, 640, 480, 39682, 16, 143, 32, 12, 1, 1,
> + 0, FB_VMODE_NONINTERLACED
> + }, {
> + /
800x480 @ 60 Hz, Devkit8000 7 inch LCD */
> + NULL, 60, 800, 480, 24855, 210, 45, 132, 22, 1, 1,
> + 0, FB_VMODE_NONINTERLACED
> },
> };
>
> — a/drivers/video/omap2/displays/panel-generic.c
> +++ b/drivers/video/omap2/displays/panel-generic.c
> @@ -66,7 +66,8 @@ static void generic_panel_power_off(struct
> omap_dss_device *dssdev)
>
> static int generic_panel_probe(struct omap_dss_device *dssdev)
> {
> - dssdev->panel.config = OMAP_DSS_LCD_TFT;
> + if (dssdev->panel.config == 0)
> + dssdev->panel.config = OMAP_DSS_LCD_TFT;
> dssdev->panel.timings = generic_panel_timings;
>
> return 0;
>
> I use these following bootargs ( I am no sure which one is perfect)
>
> setenv bootargs ‘console=ttyO2,115200n8 noinitrd rw
> ip=192.168.1.2:255.255.255.0 root=/dev/nfs nfsroot=192.168.1.1:/home/
> arindam/Desktop/arm,nolock,rsize=1024,proto=tcp rootwait
> omapdss.def_disp=lcd’
>
> setenv bootargs ‘console=ttyO2,115200n8 noinitrd rw
> ip=192.168.1.2:255.255.255.0 root=/dev/nfs nfsroot=192.168.1.1:/home/
> arindam/Desktop/arm,nolock,rsize=1024,proto=tcp rootwait
> video=omapfb:mode:4.3inch_LCD’
>
> setenv bootargs ‘console=ttyO2,115200n8 noinitrd rw
> ip=192.168.1.2:255.255.255.0 root=/dev/nfs nfsroot=192.168.1.1:/home/
> arindam/Desktop/arm,nolock,rsize=1024,proto=tcp rootwait
> omapdss.def_disp=lcd omapfb.mode=lcd:480x272’
>
> still no luck. I am getting these following error
>
> omapfb omapfb: failed to allocate framebuffer
> [ 2.756195] omapfb omapfb: failed to allocate fbmem
> [ 2.761383] omapfb omapfb: failed to setup omapfb
> [ 2.766326] omapfb: probe of omapfb failed with error -12
>
> Thanks & regards
> Arindam Ghosh
>
> –
> You received this message because you are subscribed to the Google Groups “Beagle Board” group.
> To post to this group, send email to beagleboard@googlegroups.com.
> To unsubscribe from this group, send email to beagleboard+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.

|

Dear Thomas,
                   I saw whenever I use vram=12M, Its hanging.

Thanks & regards
Arindam Ghosh

Dear all,

           This time I downloaded latest devkit8000 source and modify
these two file. but again no luck.

--- a/arch/arm/mach-omap2/board-devkit8000.c
+++ b/arch/arm/mach-omap2/board-devkit8000.c
@@ -148,7 +148,7 @@ static struct regulator_consumer_supply
devkit8000_vio_supply =
   REGULATOR_SUPPLY("vcc", "spi2.0");

static struct panel_generic_dpi_data lcd_panel = {
- .name = "generic",
+ .name = "devkit_43",
   .platform_enable = devkit8000_panel_enable_lcd,
   .platform_disable = devkit8000_panel_disable_lcd,
};

--- a/drivers/video/omap2/displays/panel-generic-dpi.c
+++ b/drivers/video/omap2/displays/panel-generic-dpi.c
@@ -83,6 +83,32 @@ static struct panel_config generic_dpi_panels[] = {
     .name = "generic",
   },

+ /* Devkit8000 4.3 Inch display */
+ {
+ {
+ .x_res = 480,
+ .y_res = 272,

Hallo Arindam,

Dear all,

Still no output. Its hanging in same position. panel-generic-dpi
driver is used by kernel to setup lcd panel.

Dear all,

Now its Up :slight_smile: . I changed little configuration and now its booting perfectly.
Thanks for your support.

Thanks
Arindam Ghosh

Hi Arindam,

I'm facing the similar issue, So please provide your valuable input in
bringing up LCD on devkit8000.
Can you tell me what configuration you have changed to bring up the
LCD on devkit8000.
Please guide me to resolve this issue.

Here is the device Environment:
U-boot: U-Boot 2010.12 (Mar 14 2011 - 15:07:25)
Kernel: 2.6.38

Boot arguments:
setenv bootargs console=ttyO2,115200n8 noinitrd root=/dev/mmcblk0p2
omapdss.def_disp="lcd" init=/init rootfstype=ext3 rw rootdelay=1
nohz=off

Below is the boot messages snippet:

[ 2.916198] NET: Registered protocol family 15
[ 2.920898] Registering the dns_resolver key type
[ 2.925964] VFP support v0.3: implementor 41 architecture 3 part 30
variant c rev 1
[ 2.935302] omap_voltage_late_init: Unable to create voltage
debugfs main dir
[ 2.942932] vdd_debugfs_init: Unable to create debugfs directory
for vdd_mpu
[ 2.950408] vdd_debugfs_init: Unable to create debugfs directory
for vdd_core
[ 2.958679] Power Management for TI OMAP3.

Maybe you should use 4.3inch branch of git?
git clone -b 4.3inch git://gitorious.org/devkit8000/linux-omap-devkit8000.git