From: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
To: Rob Herring <robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
thomas.ab-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org,
Alexandre Courbot
<acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Subject: Re: <Query> Reg: Adding a gpio initialization sequence in dts is valid or not
Date: Wed, 08 Aug 2012 09:38:09 -0600 [thread overview]
Message-ID: <502287E1.3040508@wwwdotorg.org> (raw)
In-Reply-To: <502269EC.2070008-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
On 08/08/2012 07:30 AM, Rob Herring wrote:
> On 08/08/2012 04:52 AM, Leela Krishna Amudala wrote:
>> Hello All,
>>
>> I came across that to set power to an LCD, few panels require a pull
>> up/pull down operation on single GPIO line
>> and few panels need some gpio line setting sequence with some delay in between.
...
>> Putting the sequence in dts file like below for an LCD which requires
>> gpio sequence
>> lcd-reset-gpio = <&gpx1 5 1 3 0>, (3 - for pull up)
>> <&gpx1 5 1 1 0>, (1 - for pull down)
>> <&gpx1 5 1 3 0>; (3 - for pull up)
>> delay = x;
>>
>> and only one gpio entry in the case of LCD which doesn't require gpio
>> sequence setting
>> lcd-reset-gpio = <&gpx1 5 1 3 0>, (3 - pull up)
>>
>> The 4 arguments in the above handle denotes
>>
>> <[phandle of the gpio controller node]
>> [pin number within the gpio controller]
>> [mux function]
>> [pull up/down]
>> [drive strength]>
Mux function, pull-up/down and drive-strength should be handled by the
pinctrl subsystem, and associated DT bindings.
I suppose the proposal in the "runtime interpreted power sequences"
thread could be extended to have an action for activating a particular
pinctrl state too.
next prev parent reply other threads:[~2012-08-08 15:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-08 9:52 <Query> Reg: Adding a gpio initialization sequence in dts is valid or not Leela Krishna Amudala
[not found] ` <CAL1wa8fjJg33vVM4ZOFuA2ACps55cahoK65MDf4ebAi9B6KUxg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-08-08 13:30 ` Rob Herring
[not found] ` <502269EC.2070008-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-08-08 15:38 ` Stephen Warren [this message]
[not found] ` <50231B55.6070007@nvidia.com>
[not found] ` <50231B55.6070007-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-08-17 10:37 ` Leela Krishna Amudala
[not found] ` <CAL1wa8d-6qXOXS2+sVZAgnpGw0-x03WKpOhiVhSKZ3JoQZW1fw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-08-17 15:13 ` Stephen Warren
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=502287E1.3040508@wwwdotorg.org \
--to=swarren-3lzwwm7+weoh9zmkesr00q@public.gmane.org \
--cc=acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=thomas.ab-Sze3O3UU22JBDgjK7y7TUQ@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 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.