Skip to contentSkip to conversation

Input: synaptics-rmi4: Add support for Synaptics RMI4 devices

PATCH Superseded Andrew Duggan 1 participant 1 message Feb 3, 2016

Subsystems (2)

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/10 Input: synaptics-rmi4: Add support for Synaptics RMI4 devices

Synaptics uses the Register Mapped Interface (RMI) protocol as a communications interface for their devices. This driver adds the core functionality needed to interface with RMI4 devices.

RMI devices can be connected to the host via several transport protocols and can supports a wide variety of functionality defined by RMI functions. Support for transport protocols and RMI functions are implemented in individual drivers. The RMI4 core driver uses a bus architecture to facilitate the various combinations of transport and function drivers needed by a particular device.

---
 drivers/input/Kconfig           |    2 +
 drivers/input/Makefile          |    2 +
 drivers/input/rmi4/Kconfig      |   10 +
 drivers/input/rmi4/Makefile     |    2 +
 drivers/input/rmi4/rmi_bus.c    |  378 ++++++++++++++
 drivers/input/rmi4/rmi_bus.h    |  186 +++++++
 drivers/input/rmi4/rmi_driver.c | 1027 +++++++++++++++++++++++++++++++++++++++
 drivers/input/rmi4/rmi_driver.h |  103 ++++
 drivers/input/rmi4/rmi_f01.c    |  574 ++++++++++++++++++++++
 include/linux/rmi.h             |  213 ++++++++
 include/uapi/linux/input.h      |    1 +
 11 files changed, 2498 insertions(+)
 create mode 100644 drivers/input/rmi4/Kconfig
 create mode 100644 drivers/input/rmi4/Makefile
 create mode 100644 drivers/input/rmi4/rmi_bus.c
 create mode 100644 drivers/input/rmi4/rmi_bus.h
 create mode 100644 drivers/input/rmi4/rmi_driver.c
 create mode 100644 drivers/input/rmi4/rmi_driver.h
 create mode 100644 drivers/input/rmi4/rmi_f01.c
 create mode 100644 include/linux/rmi.h
drivers/input/Kconfig +2 -0
index a35532e..6261874 100644
@@ -201,6 +201,8 @@ source "drivers/input/touchscreen/Kconfig"
 
 source "drivers/input/misc/Kconfig"
 
+source "drivers/input/rmi4/Kconfig"
+
 endif
 
 menu "Hardware I/O ports"
drivers/input/Makefile +2 -0
index 0c9302c..595820b 100644
@@ -26,3 +26,5 @@ obj-$(CONFIG_INPUT_TOUCHSCREEN)	+= touchscreen/
 obj-$(CONFIG_INPUT_MISC)	+= misc/
 
 obj-$(CONFIG_INPUT_APMPOWER)	+= apm-power.o
+
+obj-$(CONFIG_RMI4_CORE)		+= rmi4/
drivers/input/rmi4/Kconfig new file +10 -0
new file mode 100644
index 0000000..5ea60e3
@@ -0,0 +1,10 @@
+#
+# RMI4 configuration
+#
+config RMI4_CORE
+	tristate "Synaptics RMI4 bus support"
+	help
+	  Say Y here if you want to support the Synaptics RMI4 bus.  This is
+	  required for all RMI4 device support.
+
+	  If unsure, say Y.
drivers/input/rmi4/Makefile new file +2 -0
new file mode 100644
index 0000000..12f2197
@@ -0,0 +1,2 @@
+obj-$(CONFIG_RMI4_CORE) += rmi_core.o
+rmi_core-y := rmi_bus.o rmi_driver.o rmi_f01.o
drivers/input/rmi4/rmi_bus.c new file +378 -0

378 lines not on this page · raw message

drivers/input/rmi4/rmi_bus.h new file +186 -0

186 lines not on this page · raw message

drivers/input/rmi4/rmi_driver.c new file +1027 -0

1,027 lines not on this page · raw message

drivers/input/rmi4/rmi_driver.h new file +103 -0

103 lines not on this page · raw message

drivers/input/rmi4/rmi_f01.c new file +574 -0

574 lines not on this page · raw message

include/linux/rmi.h new file +213 -0

213 lines not on this page · raw message

include/uapi/linux/input.h +1 -0
index 2758687..0111384 100644
@@ -246,6 +246,7 @@ struct input_mask {
 #define BUS_GSC			0x1A
 #define BUS_ATARI		0x1B
 #define BUS_SPI			0x1C
+#define BUS_RMI			0x1D
 
 /*
  * MT_TOOL types
Signature · 1 line
2.5.0