devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Add AXP209 GPIO driver
@ 2016-07-20 14:11 Maxime Ripard
  2016-07-20 14:11 ` [PATCH v2 1/4] gpio: " Maxime Ripard
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Maxime Ripard @ 2016-07-20 14:11 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot, Lee Jones, Chen-Yu Tsai
  Cc: devicetree, linux-arm-kernel, linux-gpio, linux-kernel,
	Hans de Goede, Maxime Ripard

Hi,

The axp209 PMIC used in combination to some Allwinner SoCs has a bunch
of GPIOs accessible. Some boards use these to control their backlight
or a few LEDs.

There's supposed to be 4 of them, but the fourth one has a different
configuration register scheme, and I couldn't find any board that was
using this GPIO. It will be probably be supported eventually, but
until then, we support only the first 3 GPIOs.

Let me know what you think,
Maxime

Changes from v1:
  - Use gpiochip_add_data and gpiochip_get_data
  - Drop unneeded headers
  - Make sure gpio_get returns 0 or 1
  - Made sure it compiles
  - Rebased on linux-next

Maxime Ripard (4):
  gpio: Add AXP209 GPIO driver
  mfd: axp20x: Add AXP209 GPIO driver to the mfd
  ARM: dt: axp209: Add AXP209 GPIO driver
  ARM: sun5i: chip: Add status LED

 .../devicetree/bindings/gpio/gpio-axp209.txt       |  30 ++++
 arch/arm/boot/dts/axp209.dtsi                      |   6 +
 arch/arm/boot/dts/sun5i-r8-chip.dts                |  10 ++
 drivers/gpio/Kconfig                               |   6 +
 drivers/gpio/Makefile                              |   1 +
 drivers/gpio/gpio-axp209.c                         | 162 +++++++++++++++++++++
 drivers/mfd/axp20x.c                               |   3 +
 7 files changed, 218 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/gpio/gpio-axp209.txt
 create mode 100644 drivers/gpio/gpio-axp209.c

-- 
2.9.0


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

end of thread, other threads:[~2016-08-22 13:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-20 14:11 [PATCH v2 0/4] Add AXP209 GPIO driver Maxime Ripard
2016-07-20 14:11 ` [PATCH v2 1/4] gpio: " Maxime Ripard
2016-08-11  8:28   ` Linus Walleij
2016-07-20 14:11 ` [PATCH v2 2/4] mfd: axp20x: Add AXP209 GPIO driver to the mfd Maxime Ripard
2016-08-09  9:58   ` Lee Jones
2016-07-20 14:11 ` [PATCH v2 3/4] ARM: dt: axp209: Add AXP209 GPIO driver Maxime Ripard
2016-07-20 14:11 ` [PATCH v2 4/4] ARM: sun5i: chip: Add status LED Maxime Ripard
2016-08-22 13:36 ` [PATCH v2 0/4] Add AXP209 GPIO driver 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).