Skip to content

RFC input: Synaptics RMI4 Touchscreen Driver

Christopher Heiny linux-input lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest11 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11input: RMI4 public header file and documentation.Documentation/input/rmidev.txt Documentation/input/rmisysfs.txt include/linux/rmi.h+881 -02 replies
2/11input: RMI4 core bus and sensor drivers.drivers/input/rmi4/rmi_bus.c drivers/input/rmi4/rmi_driver.c drivers/input/rmi4/rmi_driver.h+2021 -06 replies
3/11input: RMI4 physical layer drivers for I2C and SPIdrivers/input/rmi4/rmi_i2c.c drivers/input/rmi4/rmi_spi.c+1303 -00 replies
4/11input: RMI4 KConfigs and Makefiles.drivers/input/Kconfig drivers/input/Makefile drivers/input/rmi4/Kconfig +1 more+150 -00 replies
5/11input: rmidev character driver for RMI4 sensorsdrivers/input/rmi4/rmi_dev.c+446 -00 replies
6/11input: RMI4 F09 - self test.drivers/input/rmi4/rmi_f09.c+411 -00 replies
7/11input: RMI4 F01 - device controldrivers/input/rmi4/rmi_f01.c+867 -00 replies
8/11input: RMI4 F54 - analog data reportingdrivers/input/rmi4/rmi_f54.c+1506 -00 replies
9/11input: RMI F34 - firmware reflashdrivers/input/rmi4/rmi_f34.c+962 -00 replies
10/11input: RMI4 F19 - capacitive buttonsdrivers/input/rmi4/rmi_f19.c+1571 -04 replies
11/11input: RMI4 F11 - multifinger pointingdrivers/input/rmi4/rmi_f11.c+1860 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 00/11] input: Synaptics RMI4 Touchscreen Driver

This patch implements a driver supporting Synaptics ClearPad and other touchscreen sensors that use the RMI4 protocol, as defined here:

    http://www.synaptics.com/sites/default/files/511-000136-01-Rev-E-RMI4%20Intrfacing%20Guide.pdf

as well as successor documents that haven't made their way through to publication yet.

This code represents a complete refactoring and rewrite of the previously submitted patches, and supersedes all those patches. We believe that all outstanding issues arising from the previous submissions have been addressed. However, because of the quantity of new code, we are submitting this patch as an RFC and requesting feedback from the kernel community.

This patch is against the v2.6.38 tag of Linus' kernel tree, commit 521cb40b0c44418a4fd36dc633f575813d59a43d.

Included in this patch are:
- full support for an RMI virtual bus as a standard kernel bus

- physical layer implementations for I2C and SPI

- function implementations for the following RMI4 functions:
* F01 device control
* F09 self test (aka BIST)
* F11 multifinger pointing
* F19 capacitive buttons
* F34 device reflash
* F54 analog data reporting

- character device access to the RMI4 register map via rmidev

- deletion of more legacy code and behavior

The driver supports a system having one or more RMI sensors attached to it. Most devices have just a single touch sensor, but some have more than one. An example is the Fuse concept phone, which has 4 RMI sensors in it.

Each sensor is presented as a device on the RMI logical bus (/sys/bus/rmi). Devices are named/numbered in the order they are discovered on the bus, starting with /sys/bus/rmi/devices/sensor00 for the first once, .../sensor01 for the second one, and so on.

Individual RMI functions are presented as child devices of the sensor device. For example, sensor00/fn01, sensor00/fn11, and so on. Control of an RMI function's operating parameters is implemented via sysfs.

For diagnostic purposes, the rmidev interface is provided. This implements a character device (/dev/rmi0, and so on) that provides flat file access to the RMI4 register map. For more information, see the file Documentation/input/rmidev.txt.

Due to the large amount of code, we've broken this patch into 11 parts, as follows:
01 - header files and documenation
02 - core sensor and bus implementation
03 - physical layer drivers
04 - Kconfigs and Makefiles
05 - rmidev
06..11 - drivers for individual RMI functions

Comments and other feedback on this driver are welcomed.

Christopher Heiny and the Synaptics RMI4 driver team

Cc Jean Delvare <[email protected]>
Cc Linus Walleij <[email protected]>
Cc Naveen Kumar Gaddipati <[email protected]>
Cc Joeri de Gram <[email protected]>

---