From: Tomi Valkeinen <tomi.valkeinen-l0cyMroinI0@public.gmane.org>
To: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
Cc: Joachim Eastwood
<manabian-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-fbdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Archit Taneja <archit-l0cyMroinI0@public.gmane.org>,
Darren Etheridge <detheridge-l0cyMroinI0@public.gmane.org>,
Laurent Pinchart
<laurent.pinchart-ryLnwIuWjnjg/C1BVhZhaw@public.gmane.org>,
Stefan Roese
<stefan.roese-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Sebastian Reichel <sre-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>,
Robert Nelson
<robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
"Dr . H . Nikolaus Schaller"
<hns-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org>,
Marek Belisko <marek-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org>,
Sebastian Reichel <sre-GFxCN5SEZAc@public.gmane.org>,
Javier Martinez Canillas
<javier-0uQlZySMnqxg9hUCZPvPmw@public.gmane.org>,
Enric Balletbo Serra
<eballetbo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Florian Vaussard <florian.vaussard-p8DiymsW2f8@public.gmane.org>
Subject: Re: [PATCHv3 19/41] OMAPDSS: panel-dpi: Add DT support
Date: Mon, 28 Apr 2014 13:43:57 +0300 [thread overview]
Message-ID: <535E30ED.10903@ti.com> (raw)
In-Reply-To: <20140425235348.GH20807-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 2911 bytes --]
On 26/04/14 02:53, Tony Lindgren wrote:
> * Tomi Valkeinen <tomi.valkeinen-l0cyMroinI0@public.gmane.org> [140424 02:53]:
>> On 18/04/14 18:51, Tony Lindgren wrote:
>>
>>>> + gpio = of_get_gpio(node, 0);
>>>> + if (gpio_is_valid(gpio) || gpio == -ENOENT) {
>>>> + ddata->enable_gpio = gpio;
>>>> + } else {
>>>> + dev_err(&pdev->dev, "failed to parse enable gpio\n");
>>>> + return gpio;
>>>> + }
>>>
>>> We should set the GPIO polarity based on the OF_GPIO_ACTIVE_LOW like
>>> gpio_backlight_probe_dt is doing.
>>
>> Instead of doing it with the old gpio API, and checking the 'active'
>> flag everywhere, I think we can use the new gpiod API which handles the
>> polarity automatically.
>>
>> I attached prototype patches (based on -rc2) for panel dpi using that
>> approach. It's a bit messier than I'd like, because for non-DT boot we
>> need to request the gpio using the old API, and then convert it to
>> gpio_desc. We can remove that code when all the boards use DT.
>>
>> I've compiled tested this only, as I don't have DPI panels I could use.
>> I did try similar approach for TFP410, and it seemed to work fine.
>
> Got these working by updating my test patch to use enable-gpios instead
> of gpios, and had to change from GPIO_ACTIVE_LOW to GPIO_ACTIVE_HIGH.
> Are we now also breaking legacy booting by reversing the polarity?
I don't think so. The GPIOs should be active-high by default, if I'm not
mistaken, so the polarities should be the same for legacy boot with or
without those patches. Of course, I don't have the boards so I have no
idea if the polarities have been correct even before.
debugfs/gpio shows the actual value of the gpio, so you could check from
there what it is.
> In any case, looks like we have some duplicate panel code.. Turns
> out most panel dpi users for omap3 board-*.c files are just
> sharp-ls037v7dw01 panels but configured in QVGA mode. At least for
> EVM and and LDP based on looking at the pictures and the configuration
Hmm, true, board-ldp.c's panel looks very much like sharp-ls037v7dw01.
Which EVM are you talking about?
> pins (using the names kernel):
>
> QVGA = lcd MO
> reset = lcd RESB
> ...
>
> Then the enable_gpio should be just a GPIO controlled 3.3V regulator
> in most cases. I suggest we move them over to ls037v7dw01 and allow
> configuring them both for VGA and QVGA depending on the orientation.
Looking at the panel spec, it has the following pins:
RESB - reset
MO - VGA/QVGA
UD - vertical scanning direction
LR - horizontal scanning direction
INI - power on control
And it needs 3.3V power.
Are you saying that on some boards the gpio used for enable_gpio is
actually used to switch on a 3.3V regulator?
> I guess you do have some device with ls037v7dw01 since you've been
> patching it?
No, I don't have any boards with that panel.
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2014-04-28 10:43 UTC|newest]
Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-21 10:56 [PATCHv3 00/41] OMAPDSS: DT support v3 Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 01/41] ARM: OMAP2+: add omapdss_init_of() Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 02/41] ARM: OMAP2+: DT 'compatible' tweak for displays Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 03/41] OMAPDSS: add 'label' support for DT Tomi Valkeinen
[not found] ` <1390301833-24944-1-git-send-email-tomi.valkeinen-l0cyMroinI0@public.gmane.org>
2014-01-21 10:56 ` [PATCHv3 04/41] OMAPDSS: get dssdev->alias from DT alias Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 09/41] OMAPDSS: Add DT support to DSS Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 26/41] ARM: omap4-sdp.dts: add display information Tomi Valkeinen
2014-01-21 10:57 ` [PATCHv3 29/41] ARM: omap3-igep0020.dts: " Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 05/41] OMAPFB: clean up default display search Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 06/41] OMAPFB: search for default display with DT alias Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 07/41] OMAPDSS: add of helpers Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 08/41] OMAPDSS: Improve regulator names for DT Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 10/41] OMAPDSS: Add DT support to DISPC Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 11/41] OMAPDSS: Add DT support to HDMI Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 12/41] OMAPDSS: Add DT support to VENC Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 13/41] OMAPDSS: Add DT support to DSI Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 14/41] OMAPDSS: panel-dsi-cm: Add DT support Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 15/41] OMAPDSS: encoder-tfp410: " Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 16/41] OMAPDSS: connector-dvi: " Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 17/41] OMAPDSS: encoder-tpd12s015: " Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 18/41] OMAPDSS: hdmi-connector: " Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 19/41] OMAPDSS: panel-dpi: " Tomi Valkeinen
2014-04-08 0:13 ` Tony Lindgren
2014-04-08 5:38 ` Tomi Valkeinen
2014-04-08 15:29 ` Tony Lindgren
2014-04-18 15:51 ` Tony Lindgren
2014-04-24 9:52 ` Tomi Valkeinen
[not found] ` <5358DEEA.1000506-l0cyMroinI0@public.gmane.org>
2014-04-24 12:44 ` Laurent Pinchart
2014-04-24 13:12 ` Tomi Valkeinen
2014-04-25 23:53 ` Tony Lindgren
[not found] ` <20140425235348.GH20807-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2014-04-28 10:43 ` Tomi Valkeinen [this message]
2014-04-28 16:13 ` Tony Lindgren
2014-01-21 10:56 ` [PATCHv3 20/41] OMAPDSS: connector-analog-tv: " Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 21/41] OMAPDSS: acx565akm: " Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 22/41] ARM: omap2.dtsi: add omapdss information Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 23/41] ARM: omap3.dtsi: " Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 24/41] ARM: omap4.dtsi: " Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 25/41] ARM: omap4-panda.dts: add display information Tomi Valkeinen
2014-01-21 10:56 ` [PATCHv3 27/41] ARM: omap3-beagle.dts: " Tomi Valkeinen
2014-01-21 10:57 ` [PATCHv3 28/41] ARM: omap3-beagle-xm.dts: " Tomi Valkeinen
2014-01-21 10:57 ` [PATCHv3 30/41] ARM: omap3-n900.dts: " Tomi Valkeinen
2014-01-21 15:26 ` Sebastian Reichel
2014-01-24 11:46 ` Tomi Valkeinen
2014-01-21 10:57 ` [PATCHv3 31/41] OMAPDSS: remove DT hacks for regulators Tomi Valkeinen
2014-01-21 10:57 ` [PATCHv3 32/41] ARM: OMAP2+: remove pdata quirks for displays Tomi Valkeinen
2014-01-21 10:57 ` [PATCHv3 33/41] Doc/DT: Add OMAP DSS DT Bindings Tomi Valkeinen
2014-01-21 10:57 ` [PATCHv3 34/41] Doc/DT: Add DT binding documentation for Analog TV Connector Tomi Valkeinen
2014-01-21 10:57 ` [PATCHv3 35/41] Doc/DT: Add DT binding documentation for DVI Connector Tomi Valkeinen
2014-01-21 10:57 ` [PATCHv3 36/41] Doc/DT: Add DT binding documentation for HDMI Connector Tomi Valkeinen
2014-01-21 10:57 ` [PATCHv3 37/41] Doc/DT: Add DT binding documentation for MIPI DPI Panel Tomi Valkeinen
2014-01-21 10:57 ` [PATCHv3 38/41] Doc/DT: Add DT binding documentation for MIPI DSI CM Panel Tomi Valkeinen
2014-01-21 10:57 ` [PATCHv3 39/41] Doc/DT: Add DT binding documentation for Sony acx565akm panel Tomi Valkeinen
2014-01-21 15:28 ` Sebastian Reichel
2014-01-21 10:57 ` [PATCHv3 40/41] Doc/DT: Add DT binding documentation for TFP410 encoder Tomi Valkeinen
2014-01-21 10:57 ` [PATCHv3 41/41] Doc/DT: Add DT binding documentation for tpd12s015 encoder Tomi Valkeinen
2014-01-21 21:29 ` [PATCHv3 00/41] OMAPDSS: DT support v3 Nishanth Menon
2014-01-22 8:41 ` Tomi Valkeinen
2014-01-26 23:07 ` Javier Martinez Canillas
2014-03-06 7:29 ` Tomi Valkeinen
2014-03-07 16:49 ` Tony Lindgren
2014-03-10 13:22 ` Tomi Valkeinen
2014-03-10 15:41 ` Tony Lindgren
2014-03-11 10:15 ` Tomi Valkeinen
2014-03-11 16:28 ` Tony Lindgren
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=535E30ED.10903@ti.com \
--to=tomi.valkeinen-l0cymroini0@public.gmane.org \
--cc=archit-l0cyMroinI0@public.gmane.org \
--cc=detheridge-l0cyMroinI0@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=eballetbo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=florian.vaussard-p8DiymsW2f8@public.gmane.org \
--cc=hns-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org \
--cc=javier-0uQlZySMnqxg9hUCZPvPmw@public.gmane.org \
--cc=laurent.pinchart-ryLnwIuWjnjg/C1BVhZhaw@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-fbdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=manabian-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=marek-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org \
--cc=robertcnelson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=sre-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org \
--cc=sre-GFxCN5SEZAc@public.gmane.org \
--cc=stefan.roese-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).