All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
To: Leela Krishna Amudala
	<leelakrishna.a-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: "devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org"
	<devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org>,
	"thomas.ab-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org"
	<thomas.ab-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
	Alex Courbot <acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Subject: Re: <Query> Reg: Adding a gpio initialization sequence in dts is valid or not
Date: Fri, 17 Aug 2012 09:13:57 -0600	[thread overview]
Message-ID: <502E5FB5.3060307@wwwdotorg.org> (raw)
In-Reply-To: <CAL1wa8d-6qXOXS2+sVZAgnpGw0-x03WKpOhiVhSKZ3JoQZW1fw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On 08/17/2012 04:37 AM, Leela Krishna Amudala wrote:
> Hello,
> 
> I think you misinterpreted my question.
> 
...
> But I don't bother about enabling regulator and pwm for my panel.
> 
> My panel needs a sequence like
> 1. Pull up a gpio line
> 2. Maintain some delay
> 3. Pull down gpio line
> 4. Maintain some delay and
> 5. Pull up a gpio line.

Yes, I think that kind of thing is exactly what the power sequences
bindings/driver are for.

But ...

> Please find the Image shown in the attachment for better understanding.
> 
> So, to get this done I used your code and created a node like below
> and it worked for me.
> 
> backlight {
>         compatible = "pwm-backlight";
>         brightness-levels = <0 16 32 48 64 80 96 112 128 144 160 176
> 192 208 224 240 255>;
>         default-brightness-level = <12>;
> 
>         enable-gpio1 = <&gpx1 5 1 0 0>;
>         enable-gpio2 = <&gpx3 0 0 0 0>;

In your original email, you mentioned that some of those cells for the
GPIO control the state features such as pull-up/-down and
drive-strength. Those two features should really be configured by
pinctrl not by the GPIO bindings, although that's a comment on the GPIO
bindings itself, and nothing to do with power sequences.

      parent reply	other threads:[~2012-08-17 15:13 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
     [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 [this message]

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=502E5FB5.3060307@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=leelakrishna.a-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.