linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: "linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>,
	Kuninori Morimoto <kuninori.morimoto.gx@gmail.com>,
	"goda (Renesas)" <yusuke.goda.sx@renesas.com>,
	"linux-sh@vger.kernel.org" <linux-sh@vger.kernel.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>
Subject: Re: [periperi] How to set default GPIO pin ?
Date: Mon, 29 Sep 2014 00:25:26 +0300	[thread overview]
Message-ID: <2033766.6tR9OHe7ZC@avalon> (raw)
In-Reply-To: <CACRpkdb1jF-ro3XcFHFC+Lhgi+0dEHzQYVSSLV6AWnAxiwNLdw@mail.gmail.com>

Hi Linus and Morimoto-san,

On Tuesday 23 September 2014 17:06:28 Linus Walleij wrote:
> On Wed, Sep 10, 2014 at 10:55 AM, Laurent Pinchart wrote:
> > On Sunday 31 August 2014 22:08:52 Kuninori Morimoto wrote:
> >> I know we can use "defalt" PFC settings on DT.
> >> But, how to use "defalt" GPIO pin settings on DT ?
> >> 
> >> We would like to use GPIO 7-17 as Low output,
> >> and do nothing after boot.
> > 
> > From a DT point of view I believe this is supposed to be done by
> > specifying the output-low or output-high properties in the pinctrl
> > configuration node. However, these properties are not supported by the PFC
> > driver, and there's no easy way for the PFC driver to configure GPIOs
> > handled by a different driver such as the gpio-rcar driver for instance.
> > 
> > Linus, do you have any hindsight on how this should be implemented ?
> 
> I have suggested adding GPIO hogs, so that a GPIO node can specify
> that some GPIO's specified on the local ship be hogged high or
> low at probe. Generic DT bindings and generic code in gpiolib.c.
> 
> gpios-hog-high = <....>;
> gpios-hog-low = <....>;

How about just a gpios-hog property, with a list of gpio specifiers + flags ? 
That's bikeshedding I suppose.

Morimoto-san, would you like to implement that ? :-)

-- 
Regards,

Laurent Pinchart


  reply	other threads:[~2014-09-28 21:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <8738cc0vx9.wl%kuninori.morimoto.gx@gmail.com>
     [not found] ` <2862746.g5u9pdpKDi@avalon>
2014-09-23 15:06   ` [periperi] How to set default GPIO pin ? Linus Walleij
2014-09-28 21:25     ` Laurent Pinchart [this message]
2014-09-28 23:58       ` Kuninori Morimoto
2014-09-29  8:58       ` Linus Walleij

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=2033766.6tR9OHe7ZC@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=kuninori.morimoto.gx@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-sh@vger.kernel.org \
    --cc=yusuke.goda.sx@renesas.com \
    /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).