Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 27e34995 authored by Rabin Vincent's avatar Rabin Vincent Committed by Samuel Ortiz
Browse files

mfd: Add STMPE I/O Expander support



Add support for the STMPE family of I/O Expanders from
STMicroelectronics.  These devices include upto 24 gpios and a varying
selection of blocks, including PWM, keypad, and touchscreen controllers.
This patch adds the MFD core.

[l.fu@pengutronix.de: fix stmpe811 enable hook]
[l.fu@pengutronix.de: add touchscreen platform data]
Acked-by: default avatarLuotao Fu <l.fu@pengutronix.de>
Acked-by: default avatarLinus Walleij <linus.walleij@stericsson.com>
Signed-off-by: default avatarRabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent d2d272a9
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -186,6 +186,29 @@ config TWL4030_CODEC
	select MFD_CORE
	default n

config MFD_STMPE
	bool "Support STMicroelectronics STMPE"
	depends on I2C=y && GENERIC_HARDIRQS
	select MFD_CORE
	help
	  Support for the STMPE family of I/O Expanders from
	  STMicroelectronics.

	  Currently supported devices are:

		STMPE811: GPIO, Touchscreen
		STMPE1601: GPIO, Keypad
		STMPE2401: GPIO, Keypad
		STMPE2403: GPIO, Keypad

	  This driver provides common support for accessing the device,
	  additional drivers must be enabled in order to use the functionality
	  of the device.  Currently available sub drivers are:

		GPIO: stmpe-gpio
		Keypad: stmpe-keypad
		Touchscreen: stmpe-ts

config MFD_TC35892
	bool "Support Toshiba TC35892"
	depends on I2C=y && GENERIC_HARDIRQS
+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ obj-$(CONFIG_HTC_I2CPLD) += htc-i2cpld.o
obj-$(CONFIG_MFD_DAVINCI_VOICECODEC)	+= davinci_voicecodec.o
obj-$(CONFIG_MFD_DM355EVM_MSP)	+= dm355evm_msp.o

obj-$(CONFIG_MFD_STMPE)		+= stmpe.o
obj-$(CONFIG_MFD_TC35892)	+= tc35892.o
obj-$(CONFIG_MFD_T7L66XB)	+= t7l66xb.o tmio_core.o
obj-$(CONFIG_MFD_TC6387XB)	+= tc6387xb.o tmio_core.o

drivers/mfd/stmpe.c

0 → 100644
+915 −0

File added.

Preview size limit exceeded, changes collapsed.

drivers/mfd/stmpe.h

0 → 100644
+176 −0

File added.

Preview size limit exceeded, changes collapsed.

+197 −0

File added.

Preview size limit exceeded, changes collapsed.