All of lore.kernel.org
 help / color / mirror / Atom feed
From: Archit Taneja <a0393947@ti.com>
To: Patrick <kpa_info@yahoo.fr>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [DSS2] kernel freeze with panel driver
Date: Tue, 31 Jan 2012 16:50:35 +0530	[thread overview]
Message-ID: <4F27CE83.3070608@ti.com> (raw)
In-Reply-To: <1328007381.86237.YahooMailNeo@web29017.mail.ird.yahoo.com>

Hi,

On Tuesday 31 January 2012 04:26 PM, Patrick wrote:
> Dear mailing-list,
>
>
> I am working with a vanilla 3.0.17 kernel with some patch for my Omap4430 based board.
>
> I am using the driver video/omap2/panel-lgphilips-lb025q02.c with a very similar screen.
> I have added on my board init file the init code for both the SPI and the panel, like below.
>
> static struct omap_dss_device sb_dpi_device = {
>          .type               = OMAP_DISPLAY_TYPE_DPI,
>      .name                   = "lcd35",
>      .driver_name            = "lgphilips_lb035q02_panel",
>      .phy.dpi.data_lines     = 24,
>      .platform_enable        = sb_panel_enable_lcd,
>      .platform_disable       = sb_panel_disable_lcd,
> };
>

You have to add a channel field in this, like:

	.channel = OMAP_DSS_CHANNEL_LCD2,

On OMAP4, the DPI interface is connected to LCD2 interface and not LCD 
interface. That's why you get the error 'display 'lcd35' does not 
support manager 'lcd''

Can you try with this change and see what happens?

Archit

>
> ...
>
>
> static struct spi_board_info sb_spi_board_info[] __initdata = {
>          {
>                  .modalias               = "lgphilips_lb035q02_panel-spi",
>                  .bus_num                = 1,
>                  .chip_select            = 0,
>                  .max_speed_hz           = 500000,
>                  .mode                   = SPI_MODE_3,
>          },
> };
>
> The init of the SPI is done before the one of the panel.
>
>
> When my kernel boot he freeze (without error message) at the moment where it should do the :
> "Console: switching to colour frame buffer device..."
> But in my case it freeze somewhere just before this print.
>
> Earlier in the boot process I have the following error message:
>      OMAP DSS rev 4.0
>      omapdss MANAGER error: display 'lcd35' does not support manager 'lcd'
>
> Lcd35 is the name of the screen declared in the board config file.
> I use the followings bootargs: omapdss.def_disp=lcd35 omapdss.debug=y vram=10M
>
>
> I have tried with the video/omap2/panel-generic-display.c driver with the correct timming.
>
> The kernel boot but the screen doesn't work correctly (Only one vertical line is colored).
>
> I have tried with panel-lgphilips-lb025q02.c but with initialising only the SPI from the board config file (without calling the display init). The kernel boot but of course the screen doesn't work at all. So it seems that the problem is not from the SPI side.
>
>
> Do you have any idea why I have this problems ?
>
> Thanks in advance for your help.
>
> Patrick
>
>
>
>
>
>
>
> static struct spi_board_info sb_spi_board_info[] __initdata = {
>          {
>                  .modalias               = "lgphilips_lb035q02_panel-spi",
>                  .bus_num                = 1,
>                  .chip_select            = 0,
>                  .max_speed_hz           = 500000,
>                  .mode                   = SPI_MODE_3,
>          },
> };
>
> I init the SPI before the panel as in your overo board file.
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


  reply	other threads:[~2012-01-31 11:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-31 10:56 [DSS2] kernel freeze with panel driver Patrick
2012-01-31 11:20 ` Archit Taneja [this message]
2012-01-31 12:02   ` Re : " Patrick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F27CE83.3070608@ti.com \
    --to=a0393947@ti.com \
    --cc=kpa_info@yahoo.fr \
    --cc=linux-omap@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.