Skip to contentSkip to conversation

gpio: pv88080: Add GPIO function support

PATCH RESEND In review Eric Jeong 2 participants 2 messages Dec 6, 2016 – Dec 28, 2016 1 message not in the archive GPIO

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Eric Jeong

author
#1 lore raw

PATCH RESEND v3 4/4 gpio: pv88080: Add GPIO function support

From: Eric Jeong <[email protected]>

This patch adds support for PV88080 PMIC GPIOs.
PV88080 has two configurable GPIOs.

Kconfig and Makefile are updated to reflect support for PV88080 PMIC GPIO.

---
This patch applies against linux-next and next-20161117

Hi,

Change since PATCH V2
- Add the set_single_ended function
- Add property reading function
- Simplify and clarfy the funcion of gpio_chip

Change since PATCH V1
- Patch separated from PATCH V1

Regards,
Eric Jeong, Dialog Semiconductor Ltd.

 drivers/gpio/Kconfig        |   11 +++
 drivers/gpio/Makefile       |    1 +
 drivers/gpio/gpio-pv88080.c |  213 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 225 insertions(+)
 create mode 100644 drivers/gpio/gpio-pv88080.c
drivers/gpio/Kconfig +11 -0
index a9a1c8a..cb11686 100644
@@ -949,6 +949,17 @@ config GPIO_PALMAS
 	  Select this option to enable GPIO driver for the TI PALMAS
 	  series chip family.
 
+config GPIO_PV88080
+	tristate "Powerventure Semiconductor PV88080 GPIO"
+	depends on MFD_PV88080
+	help
+	  Support for GPIO pins on PV88080 PMIC.
+
+	  Say yes here to enable the GPIO driver for the PV88080 chip.
+
+	  The Powerventure PMIC chip has 2 GPIO pins that can be
+	  controlled by this driver.
+
 config GPIO_RC5T583
 	bool "RICOH RC5T583 GPIO"
 	depends on MFD_RC5T583
drivers/gpio/Makefile +1 -0
index 8043a95..2a2311e 100644
@@ -92,6 +92,7 @@ obj-$(CONFIG_GPIO_PCF857X)	+= gpio-pcf857x.o
 obj-$(CONFIG_GPIO_PCH)		+= gpio-pch.o
 obj-$(CONFIG_GPIO_PISOSR)	+= gpio-pisosr.o
 obj-$(CONFIG_GPIO_PL061)	+= gpio-pl061.o
+obj-$(CONFIG_GPIO_PV88080)	+= gpio-pv88080.o
 obj-$(CONFIG_GPIO_PXA)		+= gpio-pxa.o
 obj-$(CONFIG_GPIO_RC5T583)	+= gpio-rc5t583.o
 obj-$(CONFIG_GPIO_RDC321X)	+= gpio-rdc321x.o
drivers/gpio/gpio-pv88080.c new file +213 -0

213 lines not on this page · raw message

Signature · 1 line
end-of-patch for RESEND PATCH V3
Reviewed-by on v3 4/4
#2 lore raw
Quoted 11 lines · Eric Jeong

From: Eric Jeong <[email protected]>

This patch adds support for PV88080 PMIC GPIOs.
PV88080 has two configurable GPIOs.

Kconfig and Makefile are updated to reflect support for PV88080 PMIC GPIO.

+#include <linux/gpio.h>

Use

#include <linux/gpio/driver.h>

only.

Quoted 1 line

+#include <linux/mfd/pv88080.h>

I see this header is not yet upstream so I can't merge this driver (else I would just correct the above and merge it).

With the oneliner change:

I guess Lee needs to merge this with the MFD bits.

Yours,
Linus Walleij