linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* GPIO controller driver pull up/down without pinctrl
@ 2019-10-11  6:26 Jay Aurabind
  2019-10-11  7:02 ` Linus Walleij
  0 siblings, 1 reply; 3+ messages in thread
From: Jay Aurabind @ 2019-10-11  6:26 UTC (permalink / raw)
  To: Linus Walleij, Thomas Petazzoni; +Cc: linux-gpio, Bartosz Golaszewski

Hi,

Quoting "Documentation/devicetree/bindings/gpio/gpio.txt":

         Optional standard bitfield specifiers for the last cell:

         [snip]

         This setting only applies to hardware with a simple on/off
         control for pull-up configuration. If the hardware has more
         elaborate pull-up configuration, it should be represented
         using a pin control binding.

So if I do not want a separate pinctrl driver, how can I do the
necessary pull up/down setup in the gpio controller driver? I could
not find any drivers using the simple interface. Is this facility
available?

-- 

Thanks and Regards,
Jay

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GPIO controller driver pull up/down without pinctrl
  2019-10-11  6:26 GPIO controller driver pull up/down without pinctrl Jay Aurabind
@ 2019-10-11  7:02 ` Linus Walleij
  2019-10-11  7:24   ` Jay Aurabind
  0 siblings, 1 reply; 3+ messages in thread
From: Linus Walleij @ 2019-10-11  7:02 UTC (permalink / raw)
  To: Jay Aurabind
  Cc: Thomas Petazzoni, open list:GPIO SUBSYSTEM, Bartosz Golaszewski

On Fri, Oct 11, 2019 at 8:26 AM Jay Aurabind <jay.aurabind@gmail.com> wrote:

> Quoting "Documentation/devicetree/bindings/gpio/gpio.txt":
>
>          Optional standard bitfield specifiers for the last cell:
>
>          [snip]
>
>          This setting only applies to hardware with a simple on/off
>          control for pull-up configuration. If the hardware has more
>          elaborate pull-up configuration, it should be represented
>          using a pin control binding.
>
> So if I do not want a separate pinctrl driver, how can I do the
> necessary pull up/down setup in the gpio controller driver? I could
> not find any drivers using the simple interface. Is this facility
> available?

See:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpio/gpio-pca953x.c
Callbacks pca953x_gpio_set_config() and what it calls further from there.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GPIO controller driver pull up/down without pinctrl
  2019-10-11  7:02 ` Linus Walleij
@ 2019-10-11  7:24   ` Jay Aurabind
  0 siblings, 0 replies; 3+ messages in thread
From: Jay Aurabind @ 2019-10-11  7:24 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Thomas Petazzoni, open list:GPIO SUBSYSTEM, Bartosz Golaszewski

On Fri, 11 Oct 2019 at 12:39, Linus Walleij <linus.walleij@linaro.org> wrote:
>
> On Fri, Oct 11, 2019 at 8:26 AM Jay Aurabind <jay.aurabind@gmail.com> wrote:
>
> > Quoting "Documentation/devicetree/bindings/gpio/gpio.txt":
> >
> >          Optional standard bitfield specifiers for the last cell:
> >
> >          [snip]
> >
> >          This setting only applies to hardware with a simple on/off
> >          control for pull-up configuration. If the hardware has more
> >          elaborate pull-up configuration, it should be represented
> >          using a pin control binding.
> >
> > So if I do not want a separate pinctrl driver, how can I do the
> > necessary pull up/down setup in the gpio controller driver? I could
> > not find any drivers using the simple interface. Is this facility
> > available?
>
> See:
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpio/gpio-pca953x.c
> Callbacks pca953x_gpio_set_config() and what it calls further from there.
>

Thank you very much for the quick response!

-- 

Thanks and Regards,
Jay

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-10-11  7:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-11  6:26 GPIO controller driver pull up/down without pinctrl Jay Aurabind
2019-10-11  7:02 ` Linus Walleij
2019-10-11  7:24   ` Jay Aurabind

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).