* Re: [periperi] How to set default GPIO pin ? [not found] ` <2862746.g5u9pdpKDi@avalon> @ 2014-09-23 15:06 ` Linus Walleij 2014-09-28 21:25 ` Laurent Pinchart 0 siblings, 1 reply; 4+ messages in thread From: Linus Walleij @ 2014-09-23 15:06 UTC (permalink / raw) To: Laurent Pinchart, linux-gpio@vger.kernel.org Cc: Kuninori Morimoto, goda (Renesas), linux-sh@vger.kernel.org, linux-arm-kernel@lists.infradead.org On Wed, Sep 10, 2014 at 10:55 AM, Laurent Pinchart <laurent.pinchart@ideasonboard.com> 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 = <....>; Yours, Linus Walleij ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [periperi] How to set default GPIO pin ? 2014-09-23 15:06 ` [periperi] How to set default GPIO pin ? Linus Walleij @ 2014-09-28 21:25 ` Laurent Pinchart 2014-09-28 23:58 ` Kuninori Morimoto 2014-09-29 8:58 ` Linus Walleij 0 siblings, 2 replies; 4+ messages in thread From: Laurent Pinchart @ 2014-09-28 21:25 UTC (permalink / raw) To: Linus Walleij Cc: linux-gpio@vger.kernel.org, Kuninori Morimoto, goda (Renesas), linux-sh@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [periperi] How to set default GPIO pin ? 2014-09-28 21:25 ` Laurent Pinchart @ 2014-09-28 23:58 ` Kuninori Morimoto 2014-09-29 8:58 ` Linus Walleij 1 sibling, 0 replies; 4+ messages in thread From: Kuninori Morimoto @ 2014-09-28 23:58 UTC (permalink / raw) To: Laurent Pinchart Cc: Linus Walleij, linux-gpio@vger.kernel.org, goda (Renesas), linux-sh@vger.kernel.org, linux-arm-kernel@lists.infradead.org Hi Laurent, Linus > > 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 ? :-) Thank you for your help OK, I try to implement this method (when I have time :) Thank you Best regards --- Kuninori Morimoto ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [periperi] How to set default GPIO pin ? 2014-09-28 21:25 ` Laurent Pinchart 2014-09-28 23:58 ` Kuninori Morimoto @ 2014-09-29 8:58 ` Linus Walleij 1 sibling, 0 replies; 4+ messages in thread From: Linus Walleij @ 2014-09-29 8:58 UTC (permalink / raw) To: Laurent Pinchart, Boris BREZILLON Cc: linux-gpio@vger.kernel.org, Kuninori Morimoto, goda (Renesas), linux-sh@vger.kernel.org, linux-arm-kernel@lists.infradead.org On Sun, Sep 28, 2014 at 11:25 PM, Laurent Pinchart <laurent.pinchart@ideasonboard.com> wrote: > 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 ? :-) There was a proposed implementation from Boris BREZILLON, but I was unhappy with parts of it, however check it and see my comments on the patch set: "[RFC PATCH] gpio: add GPIO hogging mechanism" Yours, Linus Walleij ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-09-29 8:58 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [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 2014-09-28 23:58 ` Kuninori Morimoto 2014-09-29 8:58 ` Linus Walleij
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).