xref: /linux/drivers/input/rmi4/Kconfig (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
22b6a321dSAndrew Duggan#
32b6a321dSAndrew Duggan# RMI4 configuration
42b6a321dSAndrew Duggan#
52b6a321dSAndrew Dugganconfig RMI4_CORE
62b6a321dSAndrew Duggan	tristate "Synaptics RMI4 bus support"
724d28e4fSNick Dyer	select IRQ_DOMAIN
82b6a321dSAndrew Duggan	help
92b6a321dSAndrew Duggan	  Say Y here if you want to support the Synaptics RMI4 bus.  This is
102b6a321dSAndrew Duggan	  required for all RMI4 device support.
112b6a321dSAndrew Duggan
122b6a321dSAndrew Duggan	  If unsure, say Y.
13fdf51604SAndrew Duggan
14b29c139aSDmitry Torokhovif RMI4_CORE
15b29c139aSDmitry Torokhov
16fdf51604SAndrew Dugganconfig RMI4_I2C
17fdf51604SAndrew Duggan	tristate "RMI4 I2C Support"
18b29c139aSDmitry Torokhov	depends on I2C
19fdf51604SAndrew Duggan	help
20fdf51604SAndrew Duggan	  Say Y here if you want to support RMI4 devices connected to an I2C
21fdf51604SAndrew Duggan	  bus.
22fdf51604SAndrew Duggan
23fdf51604SAndrew Duggan	  If unsure, say Y.
24ff8f8370SAndrew Duggan
258d99758dSAndrew Dugganconfig RMI4_SPI
268d99758dSAndrew Duggan	tristate "RMI4 SPI Support"
27b29c139aSDmitry Torokhov	depends on SPI
288d99758dSAndrew Duggan	help
298d99758dSAndrew Duggan	  Say Y here if you want to support RMI4 devices connected to a SPI
308d99758dSAndrew Duggan	  bus.
318d99758dSAndrew Duggan
328d99758dSAndrew Duggan	  If unsure, say N.
338d99758dSAndrew Duggan
3482264d0cSBenjamin Tissoiresconfig RMI4_SMB
3582264d0cSBenjamin Tissoires	tristate "RMI4 SMB Support"
36b29c139aSDmitry Torokhov	depends on I2C
3782264d0cSBenjamin Tissoires	help
3882264d0cSBenjamin Tissoires	  Say Y here if you want to support RMI4 devices connected to an SMB
3982264d0cSBenjamin Tissoires	  bus.
4082264d0cSBenjamin Tissoires
4182264d0cSBenjamin Tissoires	  If unsure, say N.
4282264d0cSBenjamin Tissoires
4382264d0cSBenjamin Tissoires	  To compile this driver as a module, choose M here: the module will be
4482264d0cSBenjamin Tissoires	  called rmi_smbus.
4582264d0cSBenjamin Tissoires
46c5e8848fSLyude Paulconfig RMI4_F03
47c5e8848fSLyude Paul	bool "RMI4 Function 03 (PS2 Guest)"
48d7ddad0aSDmitry Torokhov	depends on RMI4_CORE
49c5e8848fSLyude Paul	help
50c5e8848fSLyude Paul	  Say Y here if you want to add support for RMI4 function 03.
51c5e8848fSLyude Paul
52c5e8848fSLyude Paul	  Function 03 provides PS2 guest support for RMI4 devices. This
53c5e8848fSLyude Paul	  includes support for TrackPoints on TouchPads.
54c5e8848fSLyude Paul
55413d3732SArnd Bergmannconfig RMI4_F03_SERIO
56413d3732SArnd Bergmann	tristate
57413d3732SArnd Bergmann	depends on RMI4_CORE
58413d3732SArnd Bergmann	depends on RMI4_F03
59413d3732SArnd Bergmann	default RMI4_CORE
60413d3732SArnd Bergmann	select SERIO
61413d3732SArnd Bergmann
62ff8f8370SAndrew Dugganconfig RMI4_2D_SENSOR
63ff8f8370SAndrew Duggan	bool
64ff8f8370SAndrew Duggan
65ff8f8370SAndrew Dugganconfig RMI4_F11
66ff8f8370SAndrew Duggan	bool "RMI4 Function 11 (2D pointing)"
67ff8f8370SAndrew Duggan	select RMI4_2D_SENSOR
68ff8f8370SAndrew Duggan	help
69ff8f8370SAndrew Duggan	  Say Y here if you want to add support for RMI4 function 11.
70ff8f8370SAndrew Duggan
71ff8f8370SAndrew Duggan	  Function 11 provides 2D multifinger pointing for touchscreens and
72ff8f8370SAndrew Duggan	  touchpads. For sensors that support relative pointing, F11 also
73ff8f8370SAndrew Duggan	  provides mouse input.
74b43d2c1eSAndrew Duggan
75b43d2c1eSAndrew Dugganconfig RMI4_F12
76b43d2c1eSAndrew Duggan	bool "RMI4 Function 12 (2D pointing)"
77b43d2c1eSAndrew Duggan	select RMI4_2D_SENSOR
78b43d2c1eSAndrew Duggan	help
79b43d2c1eSAndrew Duggan	  Say Y here if you want to add support for RMI4 function 12.
80b43d2c1eSAndrew Duggan
81b43d2c1eSAndrew Duggan	  Function 12 provides 2D multifinger pointing for touchscreens and
82b43d2c1eSAndrew Duggan	  touchpads. For sensors that support relative pointing, F12 also
83b43d2c1eSAndrew Duggan	  provides mouse input.
84562b42d3SAndrew Duggan
85562b42d3SAndrew Dugganconfig RMI4_F30
86562b42d3SAndrew Duggan	bool "RMI4 Function 30 (GPIO LED)"
87562b42d3SAndrew Duggan	help
88562b42d3SAndrew Duggan	  Say Y here if you want to add support for RMI4 function 30.
89562b42d3SAndrew Duggan
90562b42d3SAndrew Duggan	  Function 30 provides GPIO and LED support for RMI4 devices. This
91562b42d3SAndrew Duggan	  includes support for buttons on TouchPads and ClickPads.
923a762dbdSNick Dyer
9329fd0ec2SNick Dyerconfig RMI4_F34
9429fd0ec2SNick Dyer	bool "RMI4 Function 34 (Device reflash)"
9529fd0ec2SNick Dyer	select FW_LOADER
9629fd0ec2SNick Dyer	help
9729fd0ec2SNick Dyer	  Say Y here if you want to add support for RMI4 function 34.
9829fd0ec2SNick Dyer
9929fd0ec2SNick Dyer	  Function 34 provides support for upgrading the firmware on the RMI4
10029fd0ec2SNick Dyer	  device via the firmware loader interface. This is triggered using a
10129fd0ec2SNick Dyer	  sysfs attribute.
10229fd0ec2SNick Dyer
1039e4c596bSVincent Huangconfig RMI4_F3A
1049e4c596bSVincent Huang	bool "RMI4 Function 3A (GPIO)"
1059e4c596bSVincent Huang	help
1069e4c596bSVincent Huang	  Say Y here if you want to add support for RMI4 function 3A.
1079e4c596bSVincent Huang
1089e4c596bSVincent Huang	  Function 3A provides GPIO support for RMI4 devices. This includes
1099e4c596bSVincent Huang	  support for buttons on TouchPads and ClickPads.
1109e4c596bSVincent Huang
1113a762dbdSNick Dyerconfig RMI4_F54
1123a762dbdSNick Dyer	bool "RMI4 Function 54 (Analog diagnostics)"
113*9958d30fSMauro Carvalho Chehab	depends on VIDEO_DEV=y || (RMI4_CORE=m && VIDEO_DEV=m)
1143a762dbdSNick Dyer	select VIDEOBUF2_VMALLOC
115c762cc68SGuenter Roeck	select RMI4_F55
1163a762dbdSNick Dyer	help
1173a762dbdSNick Dyer	  Say Y here if you want to add support for RMI4 function 54
1183a762dbdSNick Dyer
1193a762dbdSNick Dyer	  Function 54 provides access to various diagnostic features in certain
1203a762dbdSNick Dyer	  RMI4 touch sensors.
1216adba43fSGuenter Roeck
1226adba43fSGuenter Roeckconfig RMI4_F55
1236adba43fSGuenter Roeck	bool "RMI4 Function 55 (Sensor tuning)"
1246adba43fSGuenter Roeck	help
1256adba43fSGuenter Roeck	  Say Y here if you want to add support for RMI4 function 55
1266adba43fSGuenter Roeck
1276adba43fSGuenter Roeck	  Function 55 provides access to the RMI4 touch sensor tuning
1286adba43fSGuenter Roeck	  mechanism.
129b29c139aSDmitry Torokhov
130b29c139aSDmitry Torokhovendif # RMI_CORE
131