xref: /openbmc/linux/drivers/input/rmi4/Kconfig (revision 56bbd862)
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 && SERIO
45        help
46          Say Y here if you want to add support for RMI4 function 03.
47
48          Function 03 provides PS2 guest support for RMI4 devices. This
49          includes support for TrackPoints on TouchPads.
50
51config RMI4_2D_SENSOR
52	bool
53	depends on RMI4_CORE
54
55config RMI4_F11
56	bool "RMI4 Function 11 (2D pointing)"
57	select RMI4_2D_SENSOR
58	depends on RMI4_CORE
59	help
60	  Say Y here if you want to add support for RMI4 function 11.
61
62	  Function 11 provides 2D multifinger pointing for touchscreens and
63	  touchpads. For sensors that support relative pointing, F11 also
64	  provides mouse input.
65
66config RMI4_F12
67	bool "RMI4 Function 12 (2D pointing)"
68	select RMI4_2D_SENSOR
69	depends on RMI4_CORE
70	help
71	  Say Y here if you want to add support for RMI4 function 12.
72
73	  Function 12 provides 2D multifinger pointing for touchscreens and
74	  touchpads. For sensors that support relative pointing, F12 also
75	  provides mouse input.
76
77config RMI4_F30
78	bool "RMI4 Function 30 (GPIO LED)"
79	depends on RMI4_CORE
80	help
81	  Say Y here if you want to add support for RMI4 function 30.
82
83	  Function 30 provides GPIO and LED support for RMI4 devices. This
84	  includes support for buttons on TouchPads and ClickPads.
85
86config RMI4_F34
87	bool "RMI4 Function 34 (Device reflash)"
88	depends on RMI4_CORE
89	select FW_LOADER
90	help
91	  Say Y here if you want to add support for RMI4 function 34.
92
93	  Function 34 provides support for upgrading the firmware on the RMI4
94	  device via the firmware loader interface. This is triggered using a
95	  sysfs attribute.
96
97config RMI4_F54
98	bool "RMI4 Function 54 (Analog diagnostics)"
99	depends on RMI4_CORE
100	depends on VIDEO_V4L2=y || (RMI4_CORE=m && VIDEO_V4L2=m)
101	select VIDEOBUF2_VMALLOC
102	select RMI4_F55
103	help
104	  Say Y here if you want to add support for RMI4 function 54
105
106	  Function 54 provides access to various diagnostic features in certain
107	  RMI4 touch sensors.
108
109config RMI4_F55
110	bool "RMI4 Function 55 (Sensor tuning)"
111	depends on RMI4_CORE
112	help
113	  Say Y here if you want to add support for RMI4 function 55
114
115	  Function 55 provides access to the RMI4 touch sensor tuning
116	  mechanism.
117