From: Ezequiel Garcia <ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
To: Fabio Estevam <festevam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Ezequiel Garcia
<ezequiel-30ULvvUtt6G51wMPkGsGjgyUoB5FGQPZ@public.gmane.org>,
"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Russell King <linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>,
Daniel Vetter <daniel.vetter-/w4YWyX8dFk@public.gmane.org>,
DRI mailing list
<dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
Subject: Re: [PATCH 8/8] drm/tilcdc: panel: Add support for enable GPIO
Date: Fri, 11 Jul 2014 14:38:59 -0300 [thread overview]
Message-ID: <20140711173859.GA869@arch.cereza> (raw)
In-Reply-To: <CAOMZO5CawR9qMbm3HLf4+S3-pcf4m=VCUqm0W9LXXYzNzv2aOQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Hello Fabio,
On 11 Jul 12:08 PM, Fabio Estevam wrote:
> On Fri, Jul 11, 2014 at 11:18 AM, Ezequiel Garcia
> <ezequiel-30ULvvUtt6G51wMPkGsGjgyUoB5FGQPZ@public.gmane.org> wrote:
> > In order to support the "enable GPIO" available in many panel devices,
> > this commit adds a proper devicetree binding.
> >
> > By providing an enable GPIO in the devicetree, the driver can now turn
> > off and on the panel device, and/or the backlight device. Both the
> > backlight and the GPIO are optional properties.
> > + panel_mod->enable_gpio = devm_gpiod_get(&pdev->dev, "enable");
> > + if (IS_ERR(panel_mod->enable_gpio)) {
> > + ret = PTR_ERR(panel_mod->enable_gpio);
> > + if (ret != -ENOENT) {
>
> Shouldn't this be controlled by a regulator instead? What if the panel
> is powered from a PMIC output?
I'm not sure I understand how is that related. I have a New Heaven LCD panel
(NHD-4.3-480272EF-ATXL#-T) and it has a signal called "Display On/Off" that
I'm using to enable and disable the panel from a GPIO.
This is useful when switching the output from the panel to the HDMI for
instance, and turn off the display panel when the output goes to the HDMI.
Probably I'm missing something, I can't really see how regulators fit here.
Thanks!
--
Ezequiel García, Free Electrons
Embedded Linux, Kernel and Android Engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-07-11 17:38 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-11 14:18 [PATCH 0/8] tilcdc-panel: Backlight and GPIO devicetree support Ezequiel Garcia
[not found] ` <1405088334-11215-1-git-send-email-ezequiel-30ULvvUtt6G51wMPkGsGjgyUoB5FGQPZ@public.gmane.org>
2014-07-11 14:18 ` [PATCH 1/8] drm/tilcdc: Fix the error path in tilcdc_load() Ezequiel Garcia
2014-07-11 14:18 ` [PATCH 2/8] drm/tilcdc: panel: Add missing of_node_put Ezequiel Garcia
2014-07-11 14:18 ` [PATCH 3/8] drm/tilcdc: panel: Remove unused variable Ezequiel Garcia
2014-07-11 14:18 ` [PATCH 4/8] drm/tilcdc: panel: Spurious whitespace removal Ezequiel Garcia
2014-07-11 14:18 ` [PATCH 5/8] drm/tilcdc: panel: Use devm_kzalloc to simplify the error path Ezequiel Garcia
2014-07-11 14:18 ` [PATCH 6/8] drm/tilcdc: panel: Fix backlight devicetree support Ezequiel Garcia
2014-07-11 14:18 ` [PATCH 7/8] drm/tilcdc: panel: Set return value explicitly Ezequiel Garcia
2014-07-11 14:18 ` [PATCH 8/8] drm/tilcdc: panel: Add support for enable GPIO Ezequiel Garcia
2014-07-11 15:08 ` Fabio Estevam
[not found] ` <CAOMZO5CawR9qMbm3HLf4+S3-pcf4m=VCUqm0W9LXXYzNzv2aOQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-11 17:38 ` Ezequiel Garcia [this message]
2014-07-22 14:51 ` [PATCH 0/8] tilcdc-panel: Backlight and GPIO devicetree support Ezequiel Garcia
2014-07-24 21:25 ` Darren Etheridge
2014-07-25 14:44 ` Ezequiel Garcia
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=20140711173859.GA869@arch.cereza \
--to=ezequiel.garcia-wi1+55scjutkeb57/3fjtnbpr1lh4cv8@public.gmane.org \
--cc=daniel.vetter-/w4YWyX8dFk@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=ezequiel-30ULvvUtt6G51wMPkGsGjgyUoB5FGQPZ@public.gmane.org \
--cc=festevam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-lFZ/pmaqli7XmaaqVzeoHQ@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).