xref: /openbmc/linux/drivers/input/rmi4/Kconfig (revision a72594ca)
1#
2# RMI4 configuration
3#
4config RMI4_CORE
5	tristate "Synaptics RMI4 bus support"
6	help
7	  Say Y here if you want to support the Synaptics RMI4 bus.  This is
8	  required for all RMI4 device support.
9
10	  If unsure, say Y.
11
12if RMI4_CORE
13
14config RMI4_I2C
15	tristate "RMI4 I2C Support"
16	depends on I2C
17	help
18	  Say Y here if you want to support RMI4 devices connected to an I2C
19	  bus.
20
21	  If unsure, say Y.
22
23config RMI4_SPI
24	tristate "RMI4 SPI Support"
25	depends on SPI
26	help
27	  Say Y here if you want to support RMI4 devices connected to a SPI
28	  bus.
29
30	  If unsure, say N.
31
32config RMI4_SMB
33	tristate "RMI4 SMB Support"
34	depends on I2C
35	help
36	  Say Y here if you want to support RMI4 devices connected to an SMB
37	  bus.
38
39	  If unsure, say N.
40
41	  To compile this driver as a module, choose M here: the module will be
42	  called rmi_smbus.
43
44config RMI4_F03
45	bool "RMI4 Function 03 (PS2 Guest)"
46	depends on RMI4_CORE
47	help
48	  Say Y here if you want to add support for RMI4 function 03.
49
50	  Function 03 provides PS2 guest support for RMI4 devices. This
51	  includes support for TrackPoints on TouchPads.
52
53config RMI4_F03_SERIO
54	tristate
55	depends on RMI4_CORE
56	depends on RMI4_F03
57	default RMI4_CORE
58	select SERIO
59
60config RMI4_2D_SENSOR
61	bool
62
63config RMI4_F11
64	bool "RMI4 Function 11 (2D pointing)"
65	select RMI4_2D_SENSOR
66	help
67	  Say Y here if you want to add support for RMI4 function 11.
68
69	  Function 11 provides 2D multifinger pointing for touchscreens and
70	  touchpads. For sensors that support relative pointing, F11 also
71	  provides mouse input.
72
73config RMI4_F12
74	bool "RMI4 Function 12 (2D pointing)"
75	select RMI4_2D_SENSOR
76	help
77	  Say Y here if you want to add support for RMI4 function 12.
78
79	  Function 12 provides 2D multifinger pointing for touchscreens and
80	  touchpads. For sensors that support relative pointing, F12 also
81	  provides mouse input.
82
83config RMI4_F30
84	bool "RMI4 Function 30 (GPIO LED)"
85	help
86	  Say Y here if you want to add support for RMI4 function 30.
87
88	  Function 30 provides GPIO and LED support for RMI4 devices. This
89	  includes support for buttons on TouchPads and ClickPads.
90
91config RMI4_F34
92	bool "RMI4 Function 34 (Device reflash)"
93	select FW_LOADER
94	help
95	  Say Y here if you want to add support for RMI4 function 34.
96
97	  Function 34 provides support for upgrading the firmware on the RMI4
98	  device via the firmware loader interface. This is triggered using a
99	  sysfs attribute.
100
101config RMI4_F54
102	bool "RMI4 Function 54 (Analog diagnostics)"
103	depends on VIDEO_V4L2=y || (RMI4_CORE=m && VIDEO_V4L2=m)
104	select VIDEOBUF2_VMALLOC
105	select RMI4_F55
106	help
107	  Say Y here if you want to add support for RMI4 function 54
108
109	  Function 54 provides access to various diagnostic features in certain
110	  RMI4 touch sensors.
111
112config RMI4_F55
113	bool "RMI4 Function 55 (Sensor tuning)"
114	help
115	  Say Y here if you want to add support for RMI4 function 55
116
117	  Function 55 provides access to the RMI4 touch sensor tuning
118	  mechanism.
119
120endif # RMI_CORE
121