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