Skip to content

Commit 562b42d

Browse files
aduggan-synadtor
authored andcommitted
Input: synaptics-rmi4 - add support for F30
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]>
1 parent b43d2c1 commit 562b42d

File tree

6 files changed

+437
-0
lines changed

6 files changed

+437
-0
lines changed

drivers/input/rmi4/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,12 @@ config RMI4_F12
4343
Function 12 provides 2D multifinger pointing for touchscreens and
4444
touchpads. For sensors that support relative pointing, F12 also
4545
provides mouse input.
46+
47+
config RMI4_F30
48+
bool "RMI4 Function 30 (GPIO LED)"
49+
depends on RMI4_CORE
50+
help
51+
Say Y here if you want to add support for RMI4 function 30.
52+
53+
Function 30 provides GPIO and LED support for RMI4 devices. This
54+
includes support for buttons on TouchPads and ClickPads.

drivers/input/rmi4/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ rmi_core-$(CONFIG_RMI4_2D_SENSOR) += rmi_2d_sensor.o
66
# Function drivers
77
rmi_core-$(CONFIG_RMI4_F11) += rmi_f11.o
88
rmi_core-$(CONFIG_RMI4_F12) += rmi_f12.o
9+
rmi_core-$(CONFIG_RMI4_F30) += rmi_f30.o
910

1011
# Transports
1112
obj-$(CONFIG_RMI4_I2C) += rmi_i2c.o

drivers/input/rmi4/rmi_bus.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,9 @@ static struct rmi_function_handler *fn_handlers[] = {
312312
#ifdef CONFIG_RMI4_F12
313313
&rmi_f12_handler,
314314
#endif
315+
#ifdef CONFIG_RMI4_F30
316+
&rmi_f30_handler,
317+
#endif
315318
};
316319

317320
static void __rmi_unregister_function_handlers(int start_idx)

drivers/input/rmi4/rmi_driver.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,5 @@ char *rmi_f01_get_product_ID(struct rmi_function *fn);
101101
extern struct rmi_function_handler rmi_f01_handler;
102102
extern struct rmi_function_handler rmi_f11_handler;
103103
extern struct rmi_function_handler rmi_f12_handler;
104+
extern struct rmi_function_handler rmi_f30_handler;
104105
#endif

0 commit comments

Comments
 (0)