linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] fbdev: omap2: panel-dpi: support reset-gpios and vcc regulator
@ 2015-12-20 11:13 Uwe Kleine-König
       [not found] ` <1450610002-10531-1-git-send-email-u.kleine-koenig-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Uwe Kleine-König @ 2015-12-20 11:13 UTC (permalink / raw)
  To: linux-fbdev

Hello,

these patches are what is remaining from my previous series sent
starting with
Message-Id: 1449753107-11410-1-git-send-email-uwe@kleine-koenig.org .

I split out the changes to
Documentation/devicetree/bindings/video/panel-dpi.txt in a (single)
separate patch. Also I changed the behaviour of the reset gpio to never
assert it because there are too many different needs.

Have fun
Uwe

Uwe Kleine-König (3):
  devicetree/bindings: add reset-gpios and vcc-supply for panel-dpi
  fbdev: omap2: panel-dpi: make (limited) use of a reset gpio
  fbdev: omap2: panel-dpi: implement support for a vcc regulator

 .../bindings/display/panel/panel-dpi.txt           |  2 ++
 drivers/video/fbdev/omap2/displays-new/panel-dpi.c | 23 ++++++++++++++++++++++
 2 files changed, 25 insertions(+)

-- 
2.6.2


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH v2 1/3] devicetree/bindings: add reset-gpios and vcc-supply for panel-dpi
       [not found] ` <1450610002-10531-1-git-send-email-u.kleine-koenig-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
@ 2015-12-20 11:13   ` Uwe Kleine-König
       [not found]     ` <1450610002-10531-2-git-send-email-u.kleine-koenig-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Uwe Kleine-König @ 2015-12-20 11:13 UTC (permalink / raw)
  To: Tomi Valkeinen, Jean-Christophe Plagniol-Villard
  Cc: linux-fbdev-u79uwXL29TY76Z2rM5mHXA,
	linux-omap-u79uwXL29TY76Z2rM5mHXA, kernel-bIcnvbaLZ9MEGnE8C9+IrQ,
	devicetree-u79uwXL29TY76Z2rM5mHXA

Some displays have a reset input and/or need a regulator to function
properly. Allow to specify them for panel-dpi devices.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 Documentation/devicetree/bindings/display/panel/panel-dpi.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/display/panel/panel-dpi.txt b/Documentation/devicetree/bindings/display/panel/panel-dpi.txt
index 216c894d4f99..b52ac52757df 100644
--- a/Documentation/devicetree/bindings/display/panel/panel-dpi.txt
+++ b/Documentation/devicetree/bindings/display/panel/panel-dpi.txt
@@ -7,6 +7,8 @@ Required properties:
 Optional properties:
 - label: a symbolic name for the panel
 - enable-gpios: panel enable gpio
+- reset-gpios: GPIO to control the RESET pin
+- vcc-supply: phandle of regulator that will be used to enable power to the display
 
 Required nodes:
 - "panel-timing" containing video timings
-- 
2.6.2


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 1/3] devicetree/bindings: add reset-gpios and vcc-supply for panel-dpi
       [not found]     ` <1450610002-10531-2-git-send-email-u.kleine-koenig-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
@ 2015-12-29 20:54       ` Rob Herring
  2015-12-30 10:29         ` Geert Uytterhoeven
  2016-02-16 13:06         ` Tomi Valkeinen
  0 siblings, 2 replies; 9+ messages in thread
From: Rob Herring @ 2015-12-29 20:54 UTC (permalink / raw)
  To: Uwe Kleine-König
  Cc: Tomi Valkeinen, Jean-Christophe Plagniol-Villard,
	linux-fbdev-u79uwXL29TY76Z2rM5mHXA,
	linux-omap-u79uwXL29TY76Z2rM5mHXA, kernel-bIcnvbaLZ9MEGnE8C9+IrQ,
	devicetree-u79uwXL29TY76Z2rM5mHXA

On Sun, Dec 20, 2015 at 12:13:20PM +0100, Uwe Kleine-König wrote:
> Some displays have a reset input and/or need a regulator to function
> properly. Allow to specify them for panel-dpi devices.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
>  Documentation/devicetree/bindings/display/panel/panel-dpi.txt | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/display/panel/panel-dpi.txt b/Documentation/devicetree/bindings/display/panel/panel-dpi.txt
> index 216c894d4f99..b52ac52757df 100644
> --- a/Documentation/devicetree/bindings/display/panel/panel-dpi.txt
> +++ b/Documentation/devicetree/bindings/display/panel/panel-dpi.txt
> @@ -7,6 +7,8 @@ Required properties:
>  Optional properties:
>  - label: a symbolic name for the panel
>  - enable-gpios: panel enable gpio
> +- reset-gpios: GPIO to control the RESET pin

The problem with this in a generic binding is what if the panel has 
ordering requirements like enable gpio has to be inactive when reset 
is deasserted?

> +- vcc-supply: phandle of regulator that will be used to enable power to the display

What if there are 2 supplies?

While there are limits to what can be described here, I'm okay with 
allowing these, so:

Acked-by: Rob Herring <robh@kernel.org>

Rob

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 1/3] devicetree/bindings: add reset-gpios and vcc-supply for panel-dpi
  2015-12-29 20:54       ` Rob Herring
@ 2015-12-30 10:29         ` Geert Uytterhoeven
       [not found]           ` <CAMuHMdUJPUeyhtM3=S4dOgevpnyd0TgkJy7QchPewO4KOxsWvA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2016-02-16 13:06         ` Tomi Valkeinen
  1 sibling, 1 reply; 9+ messages in thread
From: Geert Uytterhoeven @ 2015-12-30 10:29 UTC (permalink / raw)
  To: Rob Herring
  Cc: Uwe Kleine-König, Tomi Valkeinen,
	Jean-Christophe Plagniol-Villard, Linux Fbdev development list,
	linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Sascha Hauer,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On Tue, Dec 29, 2015 at 9:54 PM, Rob Herring <robh@kernel.org> wrote:
> On Sun, Dec 20, 2015 at 12:13:20PM +0100, Uwe Kleine-König wrote:
>> Some displays have a reset input and/or need a regulator to function
>> properly. Allow to specify them for panel-dpi devices.
>>
>> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
>> ---
>>  Documentation/devicetree/bindings/display/panel/panel-dpi.txt | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/display/panel/panel-dpi.txt b/Documentation/devicetree/bindings/display/panel/panel-dpi.txt
>> index 216c894d4f99..b52ac52757df 100644
>> --- a/Documentation/devicetree/bindings/display/panel/panel-dpi.txt
>> +++ b/Documentation/devicetree/bindings/display/panel/panel-dpi.txt
>> @@ -7,6 +7,8 @@ Required properties:
>>  Optional properties:
>>  - label: a symbolic name for the panel
>>  - enable-gpios: panel enable gpio
>> +- reset-gpios: GPIO to control the RESET pin
>
> The problem with this in a generic binding is what if the panel has
> ordering requirements like enable gpio has to be inactive when reset
> is deasserted?
>
>> +- vcc-supply: phandle of regulator that will be used to enable power to the display
>
> What if there are 2 supplies?

So it should be "vcc-supplies". Most properties containing phandles use plural
naming, even if Linux supports a single phandle only (e.g. "power-domains").
You also may want to add an optional "vcc-supply-names" property to
differentiate.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 1/3] devicetree/bindings: add reset-gpios and vcc-supply for panel-dpi
       [not found]           ` <CAMuHMdUJPUeyhtM3=S4dOgevpnyd0TgkJy7QchPewO4KOxsWvA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-12-30 14:44             ` Rob Herring
  0 siblings, 0 replies; 9+ messages in thread
From: Rob Herring @ 2015-12-30 14:44 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Uwe Kleine-König, Tomi Valkeinen,
	Jean-Christophe Plagniol-Villard, Linux Fbdev development list,
	linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Sascha Hauer,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On Wed, Dec 30, 2015 at 4:29 AM, Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
> On Tue, Dec 29, 2015 at 9:54 PM, Rob Herring <robh@kernel.org> wrote:
>> On Sun, Dec 20, 2015 at 12:13:20PM +0100, Uwe Kleine-König wrote:
>>> Some displays have a reset input and/or need a regulator to function
>>> properly. Allow to specify them for panel-dpi devices.
>>>
>>> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
>>> ---
>>>  Documentation/devicetree/bindings/display/panel/panel-dpi.txt | 2 ++
>>>  1 file changed, 2 insertions(+)
>>>
>>> diff --git a/Documentation/devicetree/bindings/display/panel/panel-dpi.txt b/Documentation/devicetree/bindings/display/panel/panel-dpi.txt
>>> index 216c894d4f99..b52ac52757df 100644
>>> --- a/Documentation/devicetree/bindings/display/panel/panel-dpi.txt
>>> +++ b/Documentation/devicetree/bindings/display/panel/panel-dpi.txt
>>> @@ -7,6 +7,8 @@ Required properties:
>>>  Optional properties:
>>>  - label: a symbolic name for the panel
>>>  - enable-gpios: panel enable gpio
>>> +- reset-gpios: GPIO to control the RESET pin
>>
>> The problem with this in a generic binding is what if the panel has
>> ordering requirements like enable gpio has to be inactive when reset
>> is deasserted?
>>
>>> +- vcc-supply: phandle of regulator that will be used to enable power to the display
>>
>> What if there are 2 supplies?
>
> So it should be "vcc-supplies". Most properties containing phandles use plural
> naming, even if Linux supports a single phandle only (e.g. "power-domains").
> You also may want to add an optional "vcc-supply-names" property to
> differentiate.

True, but the regulator binding is an exception and we don't do that
with it. The prefix is the name and other supplies are not going to be
called Vcc.

Rob

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 0/3] fbdev: omap2: panel-dpi: support reset-gpios and vcc regulator
  2015-12-20 11:13 [PATCH v2 0/3] fbdev: omap2: panel-dpi: support reset-gpios and vcc regulator Uwe Kleine-König
       [not found] ` <1450610002-10531-1-git-send-email-u.kleine-koenig-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
@ 2016-02-01 10:07 ` Uwe Kleine-König
  2016-02-12  7:40 ` Tomi Valkeinen
  2016-02-26 12:39 ` Tomi Valkeinen
  3 siblings, 0 replies; 9+ messages in thread
From: Uwe Kleine-König @ 2016-02-01 10:07 UTC (permalink / raw)
  To: linux-fbdev

Hello Tomi,

On Sun, Dec 20, 2015 at 12:13:19PM +0100, Uwe Kleine-König wrote:
> Hello,
> 
> these patches are what is remaining from my previous series sent
> starting with
> Message-Id: 1449753107-11410-1-git-send-email-uwe@kleine-koenig.org .
> 
> I split out the changes to
> Documentation/devicetree/bindings/video/panel-dpi.txt in a (single)
> separate patch. Also I changed the behaviour of the reset gpio to never
> assert it because there are too many different needs.
> 
> Have fun
> Uwe
> 
> Uwe Kleine-König (3):
>   devicetree/bindings: add reset-gpios and vcc-supply for panel-dpi
>   fbdev: omap2: panel-dpi: make (limited) use of a reset gpio
>   fbdev: omap2: panel-dpi: implement support for a vcc regulator

you didn't comment these patches, do you have them still on your radar?

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 0/3] fbdev: omap2: panel-dpi: support reset-gpios and vcc regulator
  2015-12-20 11:13 [PATCH v2 0/3] fbdev: omap2: panel-dpi: support reset-gpios and vcc regulator Uwe Kleine-König
       [not found] ` <1450610002-10531-1-git-send-email-u.kleine-koenig-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
  2016-02-01 10:07 ` [PATCH v2 0/3] fbdev: omap2: panel-dpi: support reset-gpios and vcc regulator Uwe Kleine-König
@ 2016-02-12  7:40 ` Tomi Valkeinen
  2016-02-26 12:39 ` Tomi Valkeinen
  3 siblings, 0 replies; 9+ messages in thread
From: Tomi Valkeinen @ 2016-02-12  7:40 UTC (permalink / raw)
  To: linux-fbdev

[-- Attachment #1: Type: text/plain, Size: 1001 bytes --]


On 01/02/16 12:07, Uwe Kleine-König wrote:
> Hello Tomi,
> 
> On Sun, Dec 20, 2015 at 12:13:19PM +0100, Uwe Kleine-König wrote:
>> Hello,
>>
>> these patches are what is remaining from my previous series sent
>> starting with
>> Message-Id: 1449753107-11410-1-git-send-email-uwe@kleine-koenig.org .
>>
>> I split out the changes to
>> Documentation/devicetree/bindings/video/panel-dpi.txt in a (single)
>> separate patch. Also I changed the behaviour of the reset gpio to never
>> assert it because there are too many different needs.
>>
>> Have fun
>> Uwe
>>
>> Uwe Kleine-König (3):
>>   devicetree/bindings: add reset-gpios and vcc-supply for panel-dpi
>>   fbdev: omap2: panel-dpi: make (limited) use of a reset gpio
>>   fbdev: omap2: panel-dpi: implement support for a vcc regulator
> 
> you didn't comment these patches, do you have them still on your radar?

Sorry, my mainline radar has been suspended for a while. I'll get back
to fbdev next week.

 Tomi


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 1/3] devicetree/bindings: add reset-gpios and vcc-supply for panel-dpi
  2015-12-29 20:54       ` Rob Herring
  2015-12-30 10:29         ` Geert Uytterhoeven
@ 2016-02-16 13:06         ` Tomi Valkeinen
  1 sibling, 0 replies; 9+ messages in thread
From: Tomi Valkeinen @ 2016-02-16 13:06 UTC (permalink / raw)
  To: Rob Herring, Uwe Kleine-König
  Cc: Jean-Christophe Plagniol-Villard,
	linux-fbdev-u79uwXL29TY76Z2rM5mHXA,
	linux-omap-u79uwXL29TY76Z2rM5mHXA, kernel-bIcnvbaLZ9MEGnE8C9+IrQ,
	devicetree-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 1705 bytes --]



On 29/12/15 22:54, Rob Herring wrote:
> On Sun, Dec 20, 2015 at 12:13:20PM +0100, Uwe Kleine-König wrote:
>> Some displays have a reset input and/or need a regulator to function
>> properly. Allow to specify them for panel-dpi devices.
>>
>> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
>> ---
>>  Documentation/devicetree/bindings/display/panel/panel-dpi.txt | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/display/panel/panel-dpi.txt b/Documentation/devicetree/bindings/display/panel/panel-dpi.txt
>> index 216c894d4f99..b52ac52757df 100644
>> --- a/Documentation/devicetree/bindings/display/panel/panel-dpi.txt
>> +++ b/Documentation/devicetree/bindings/display/panel/panel-dpi.txt
>> @@ -7,6 +7,8 @@ Required properties:
>>  Optional properties:
>>  - label: a symbolic name for the panel
>>  - enable-gpios: panel enable gpio
>> +- reset-gpios: GPIO to control the RESET pin
> 
> The problem with this in a generic binding is what if the panel has 
> ordering requirements like enable gpio has to be inactive when reset 
> is deasserted?
> 
>> +- vcc-supply: phandle of regulator that will be used to enable power to the display
> 
> What if there are 2 supplies?

Yes, I think it's an impossible task to create a really generic driver
wrt. gpios and supplies. There may be a bunch of them, and a particular
sequence to enable/disable needed, and even particular delays required
in between.

So I think the best we can do is to support (hopefully) most of the
panels by defining one sequence panel-dpi uses. If a particular panel
falls outside that, a separate driver is needed.

 Tomi


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 0/3] fbdev: omap2: panel-dpi: support reset-gpios and vcc regulator
  2015-12-20 11:13 [PATCH v2 0/3] fbdev: omap2: panel-dpi: support reset-gpios and vcc regulator Uwe Kleine-König
                   ` (2 preceding siblings ...)
  2016-02-12  7:40 ` Tomi Valkeinen
@ 2016-02-26 12:39 ` Tomi Valkeinen
  3 siblings, 0 replies; 9+ messages in thread
From: Tomi Valkeinen @ 2016-02-26 12:39 UTC (permalink / raw)
  To: linux-fbdev


[-- Attachment #1.1: Type: text/plain, Size: 1396 bytes --]

On 20/12/15 13:13, Uwe Kleine-König wrote:
> Hello,
> 
> these patches are what is remaining from my previous series sent
> starting with
> Message-Id: 1449753107-11410-1-git-send-email-uwe@kleine-koenig.org .
> 
> I split out the changes to
> Documentation/devicetree/bindings/video/panel-dpi.txt in a (single)
> separate patch. Also I changed the behaviour of the reset gpio to never
> assert it because there are too many different needs.
> 
> Have fun
> Uwe
> 
> Uwe Kleine-König (3):
>   devicetree/bindings: add reset-gpios and vcc-supply for panel-dpi
>   fbdev: omap2: panel-dpi: make (limited) use of a reset gpio
>   fbdev: omap2: panel-dpi: implement support for a vcc regulator
> 
>  .../bindings/display/panel/panel-dpi.txt           |  2 ++
>  drivers/video/fbdev/omap2/displays-new/panel-dpi.c | 23 ++++++++++++++++++++++
>  2 files changed, 25 insertions(+)

I think these look fine. However...

omapfb is now in maintenance state, and all new development should be
done for omapdrm. In v4.5 omapdss and all the panels were copied to
drivers/gpu/drm/omapdrm/.

So please send these to dri-devel list, with the path fixed (git-am does
that automatically), and subject prefix changed, and you can add my
reviewed-by.

If you really want these for omapfb, you need to convince me that they
are really needed for the legacy driver =).

 Tomi


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-02-26 12:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-20 11:13 [PATCH v2 0/3] fbdev: omap2: panel-dpi: support reset-gpios and vcc regulator Uwe Kleine-König
     [not found] ` <1450610002-10531-1-git-send-email-u.kleine-koenig-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2015-12-20 11:13   ` [PATCH v2 1/3] devicetree/bindings: add reset-gpios and vcc-supply for panel-dpi Uwe Kleine-König
     [not found]     ` <1450610002-10531-2-git-send-email-u.kleine-koenig-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2015-12-29 20:54       ` Rob Herring
2015-12-30 10:29         ` Geert Uytterhoeven
     [not found]           ` <CAMuHMdUJPUeyhtM3=S4dOgevpnyd0TgkJy7QchPewO4KOxsWvA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-12-30 14:44             ` Rob Herring
2016-02-16 13:06         ` Tomi Valkeinen
2016-02-01 10:07 ` [PATCH v2 0/3] fbdev: omap2: panel-dpi: support reset-gpios and vcc regulator Uwe Kleine-König
2016-02-12  7:40 ` Tomi Valkeinen
2016-02-26 12:39 ` Tomi Valkeinen

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).