From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: Ashwin Bihari <ashwin.bihari@logicpd.com>
Cc: linux-omap <linux-omap@vger.kernel.org>,
Tony Lindgren <tony@atomide.com>
Subject: Re: [PATCH 2/2] Add LCD support for the LogicPD OMAP3530 DevKits
Date: Wed, 09 May 2012 10:16:15 +0300 [thread overview]
Message-ID: <1336547775.2724.7.camel@deskari> (raw)
In-Reply-To: <1336418480-32635-3-git-send-email-ashwin.bihari@logicpd.com>
[-- Attachment #1: Type: text/plain, Size: 1849 bytes --]
On Mon, 2012-05-07 at 15:21 -0400, Ashwin Bihari wrote:
> Use the generic DSS panel driver that provides support for
> the 4.3" Sharp LQ043T1DG01 that comes standard on the
> OMAP3530 SOM-LV and Torpedo DevKits.
>
> Signed-off-by: Ashwin Bihari <ashwin.bihari@logicpd.com>
> ---
> arch/arm/mach-omap2/board-omap3logic.c | 147 ++++++++++++++++++++++++++++++++
> 1 files changed, 147 insertions(+), 0 deletions(-)
<snip>
> +static int omap3logic_panel_enable_lcd(struct omap_dss_device *dssdev)
> +{
> + gpio_set_value(LCD_PANEL_PWR, 1);
> + if (machine_is_omap3530_lv_som())
> + gpio_set_value(OMAP3530_LV_SOM_BACKLIGHT_PWR, 1);
> + else if (machine_is_omap3_torpedo()) {
> + gpio_set_value(OMAP3530_TORPEDO_BACKLIGHT_PWR, 1);
> +
> + gpio_set_value(OMAP3530_TORPEDO_MDISP, 1);
> + }
> +
> + return 0;
> +}
> +
> +static int omap3logic_panel_disable_lcd(struct omap_dss_device *dssdev)
> +{
> + gpio_set_value(LCD_PANEL_PWR, 0);
> + if (machine_is_omap3530_lv_som())
> + gpio_set_value(OMAP3530_LV_SOM_BACKLIGHT_PWR, 0);
> + else if (machine_is_omap3_torpedo()) {
> + gpio_set_value(OMAP3530_TORPEDO_BACKLIGHT_PWR, 0);
> +
> + gpio_set_value(OMAP3530_TORPEDO_MDISP, 0);
> + }
> +
> + return 0;
> +}
This doesn't play well with device-tree. We can't do such callbacks when
we move to DT.
I know we have similar code for other boards, and this can't be properly
fixed right now, but I'm still a bit hesitant to add more such code
because I'm the one that has to clean it up later for DT =).
I can handle the LCD_PANEL_PWR gpio, but the backlight is something that
should be removed from the panel enable callbacks. You could look at
drivers/video/backlight/ and see if there's something there that could
be used for your board. Or implement a new BL driver, if nothing fits.
Tomi
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2012-05-09 7:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-07 19:21 [PATCH 0/2] Add MUSB and LCD support to LogicPD OMAP3530 DevKits Ashwin Bihari
2012-05-07 19:21 ` [PATCH 1/2] Add MSUB support for the " Ashwin Bihari
2012-05-07 19:21 ` [PATCH 2/2] Add LCD " Ashwin Bihari
2012-05-09 0:13 ` Tony Lindgren
2012-05-09 15:31 ` Ashwin Bihari
2012-05-09 7:16 ` Tomi Valkeinen [this message]
2012-05-09 15:38 ` Ashwin Bihari
2012-05-09 15:52 ` Tomi Valkeinen
2012-05-09 18:08 ` Ashwin Bihari
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=1336547775.2724.7.camel@deskari \
--to=tomi.valkeinen@ti.com \
--cc=ashwin.bihari@logicpd.com \
--cc=linux-omap@vger.kernel.org \
--cc=tony@atomide.com \
/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.