Skip to content

Commit

Permalink
Input: synaptics-rmi4 - add support for F30
Browse files Browse the repository at this point in the history
RMI4 F30 supports input from clickpad buttons and controls LEDs located
on the touchpad PCB. This patch adds support of the clickpad buttons and
defers supporting LEDs for the future.

Signed-off-by: Andrew Duggan <[email protected]>
Signed-off-by: Benjamin Tissoires <[email protected]>
Tested-by: Benjamin Tissoires <[email protected]>
Tested-by: Linus Walleij <[email protected]>
Tested-by: Bjorn Andersson <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
  • Loading branch information
aduggan-syna authored and dtor committed Mar 11, 2016
1 parent b43d2c1 commit 562b42d
Show file tree
Hide file tree
Showing 6 changed files with 437 additions and 0 deletions.
9 changes: 9 additions & 0 deletions drivers/input/rmi4/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,12 @@ config RMI4_F12
Function 12 provides 2D multifinger pointing for touchscreens and
touchpads. For sensors that support relative pointing, F12 also
provides mouse input.

config RMI4_F30
bool "RMI4 Function 30 (GPIO LED)"
depends on RMI4_CORE
help
Say Y here if you want to add support for RMI4 function 30.

Function 30 provides GPIO and LED support for RMI4 devices. This
includes support for buttons on TouchPads and ClickPads.
1 change: 1 addition & 0 deletions drivers/input/rmi4/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ rmi_core-$(CONFIG_RMI4_2D_SENSOR) += rmi_2d_sensor.o
# Function drivers
rmi_core-$(CONFIG_RMI4_F11) += rmi_f11.o
rmi_core-$(CONFIG_RMI4_F12) += rmi_f12.o
rmi_core-$(CONFIG_RMI4_F30) += rmi_f30.o

# Transports
obj-$(CONFIG_RMI4_I2C) += rmi_i2c.o
3 changes: 3 additions & 0 deletions drivers/input/rmi4/rmi_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,9 @@ static struct rmi_function_handler *fn_handlers[] = {
#ifdef CONFIG_RMI4_F12
&rmi_f12_handler,
#endif
#ifdef CONFIG_RMI4_F30
&rmi_f30_handler,
#endif
};

static void __rmi_unregister_function_handlers(int start_idx)
Expand Down
1 change: 1 addition & 0 deletions drivers/input/rmi4/rmi_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,5 @@ char *rmi_f01_get_product_ID(struct rmi_function *fn);
extern struct rmi_function_handler rmi_f01_handler;
extern struct rmi_function_handler rmi_f11_handler;
extern struct rmi_function_handler rmi_f12_handler;
extern struct rmi_function_handler rmi_f30_handler;
#endif
Loading

0 comments on commit 562b42d

Please sign in to comment.