devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RESEND 0/2] add support for AXP209 GPIOs functions
@ 2016-11-23 14:11 Quentin Schulz
  2016-11-23 14:11 ` [PATCH RESEND 1/2] gpio: axp209: use correct register for GPIO input status Quentin Schulz
  2016-11-23 14:11 ` [PATCH RESEND 2/2] gpio: axp209: add pinctrl support Quentin Schulz
  0 siblings, 2 replies; 10+ messages in thread
From: Quentin Schulz @ 2016-11-23 14:11 UTC (permalink / raw)
  To: linus.walleij, gnurou, robh+dt, mark.rutland, wens, maxime.ripard
  Cc: Quentin Schulz, linux-gpio, devicetree, linux-kernel,
	linux-arm-kernel

The AXP209 PMIC has three GPIOs. Two of them can be muxed in other modes
(namely adc or regulator)[1] which cannot be used while the pin is in one
of GPIO modes.

This adds the possibility to use all functions of the GPIOs present in
the AXP209 PMIC thanks to the pinctrl subsystem.

An upcoming ADC driver for the AXP209 PMIC will make use of this pinctrl to
read ADC values of GPIO0 and GPIO1. At the moment, no driver is pinctrling
these GPIOs.

This patch also corrects the register used to read GPIO input status.

[1] see registers 90H, 92H and 93H at
    http://dl.linux-sunxi.org/AXP/AXP209_Datasheet_v1.0en.pdf

Quentin Schulz (2):
  gpio: axp209: use correct register for GPIO input status
  gpio: axp209: add pinctrl support

 .../devicetree/bindings/gpio/gpio-axp209.txt       |  28 +-
 drivers/gpio/gpio-axp209.c                         | 557 ++++++++++++++++++---
 2 files changed, 504 insertions(+), 81 deletions(-)

-- 

Adding Maxime Ripard (original driver author) and LKML to mail recipients.
2.9.3


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

end of thread, other threads:[~2016-12-02 12:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-23 14:11 [PATCH RESEND 0/2] add support for AXP209 GPIOs functions Quentin Schulz
2016-11-23 14:11 ` [PATCH RESEND 1/2] gpio: axp209: use correct register for GPIO input status Quentin Schulz
     [not found]   ` <20161123141151.25315-2-quentin.schulz-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2016-11-24 14:13     ` Linus Walleij
2016-11-23 14:11 ` [PATCH RESEND 2/2] gpio: axp209: add pinctrl support Quentin Schulz
     [not found]   ` <20161123141151.25315-3-quentin.schulz-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2016-11-24  0:00     ` kbuild test robot
2016-11-24 14:17     ` Linus Walleij
2016-11-29 22:13       ` Quentin Schulz
     [not found]         ` <f46c89f2-478b-93b8-5a66-12d1307d4514-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2016-12-02 12:30           ` Linus Walleij
2016-11-24 16:08   ` Chen-Yu Tsai
2016-11-25 15:17   ` Maxime Ripard

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