Skip to contentSkip to conversation

drivers/gpio: DA9058 GPIO driver

PATCH Superseded Anthony Olech 1 participant 1 message Apr 17, 2013

Subsystems (2)

v5 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v5 5/7 drivers/gpio: DA9058 GPIO driver

This patch is relative to linux next-20130417

This is the GPIO component driver of the Dialog DA9058 PMIC. This driver is just one component of the whole DA9058 PMIC driver. It depends on the CORE component driver of the DA9058 MFD. The meaning of the PMIC register 21 bits 1 and 5 has been documented in the driver source.

Changes relative to V4 of this patch:
- rebased to latest tagged linux-next - previously relative to mainline

---
 drivers/gpio/Kconfig       |   12 ++
 drivers/gpio/Makefile      |    1 +
 drivers/gpio/gpio-da9058.c |  377 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 390 insertions(+)
 create mode 100644 drivers/gpio/gpio-da9058.c
drivers/gpio/Kconfig +12 -0
index 6899afb..96b8b78 100644
@@ -103,6 +103,18 @@ config GPIO_DA9055
 
 	  If driver is built as a module it will be called gpio-da9055.
 
+config GPIO_DA9058
+	tristate "Dialog DA9058 GPIO"
+	depends on MFD_DA9058
+	help
+	  Say yes here to enable the GPIO driver for the DA9058 chip.
+
+	  The Dialog DA9058 PMIC chip has 2 GPIO pins that can be
+	  be controller by this driver.
+
+	  If driver is built as a module it will be called da9058-gpio.
+
+
 config GPIO_MAX730X
 	tristate
 
drivers/gpio/Makefile +1 -0
index e005ad5..dc41528 100644
@@ -19,6 +19,7 @@ obj-$(CONFIG_GPIO_ARIZONA)	+= gpio-arizona.o
 obj-$(CONFIG_GPIO_BT8XX)	+= gpio-bt8xx.o
 obj-$(CONFIG_GPIO_CLPS711X)	+= gpio-clps711x.o
 obj-$(CONFIG_GPIO_CS5535)	+= gpio-cs5535.o
+obj-$(CONFIG_GPIO_DA9058)	+= gpio-da9058.o
 obj-$(CONFIG_GPIO_DA9052)	+= gpio-da9052.o
 obj-$(CONFIG_GPIO_DA9055)	+= gpio-da9055.o
 obj-$(CONFIG_ARCH_DAVINCI)	+= gpio-davinci.o
drivers/gpio/gpio-da9058.c new file +377 -0

377 lines not on this page · raw message

Signature · 1 line
end-of-patch for NEW DRIVER V5