xref: /linux/drivers/input/rmi4/Kconfig (revision 6adba43fd222ea362c36296d1a6897c2e28fdc8e)
12b6a321dSAndrew Duggan#
22b6a321dSAndrew Duggan# RMI4 configuration
32b6a321dSAndrew Duggan#
42b6a321dSAndrew Dugganconfig RMI4_CORE
52b6a321dSAndrew Duggan	tristate "Synaptics RMI4 bus support"
62b6a321dSAndrew Duggan	help
72b6a321dSAndrew Duggan	  Say Y here if you want to support the Synaptics RMI4 bus.  This is
82b6a321dSAndrew Duggan	  required for all RMI4 device support.
92b6a321dSAndrew Duggan
102b6a321dSAndrew Duggan	  If unsure, say Y.
11fdf51604SAndrew Duggan
12fdf51604SAndrew Dugganconfig RMI4_I2C
13fdf51604SAndrew Duggan	tristate "RMI4 I2C Support"
14fdf51604SAndrew Duggan	depends on RMI4_CORE && I2C
15fdf51604SAndrew Duggan	help
16fdf51604SAndrew Duggan	  Say Y here if you want to support RMI4 devices connected to an I2C
17fdf51604SAndrew Duggan	  bus.
18fdf51604SAndrew Duggan
19fdf51604SAndrew Duggan	  If unsure, say Y.
20ff8f8370SAndrew Duggan
218d99758dSAndrew Dugganconfig RMI4_SPI
228d99758dSAndrew Duggan	tristate "RMI4 SPI Support"
238d99758dSAndrew Duggan	depends on RMI4_CORE && SPI
248d99758dSAndrew Duggan	help
258d99758dSAndrew Duggan	  Say Y here if you want to support RMI4 devices connected to a SPI
268d99758dSAndrew Duggan	  bus.
278d99758dSAndrew Duggan
288d99758dSAndrew Duggan	  If unsure, say N.
298d99758dSAndrew Duggan
3082264d0cSBenjamin Tissoiresconfig RMI4_SMB
3182264d0cSBenjamin Tissoires	tristate "RMI4 SMB Support"
3282264d0cSBenjamin Tissoires	depends on RMI4_CORE && I2C
3382264d0cSBenjamin Tissoires	help
3482264d0cSBenjamin Tissoires	  Say Y here if you want to support RMI4 devices connected to an SMB
3582264d0cSBenjamin Tissoires	  bus.
3682264d0cSBenjamin Tissoires
3782264d0cSBenjamin Tissoires	  If unsure, say N.
3882264d0cSBenjamin Tissoires
3982264d0cSBenjamin Tissoires	  To compile this driver as a module, choose M here: the module will be
4082264d0cSBenjamin Tissoires	  called rmi_smbus.
4182264d0cSBenjamin Tissoires
42ff8f8370SAndrew Dugganconfig RMI4_2D_SENSOR
43ff8f8370SAndrew Duggan	bool
44ff8f8370SAndrew Duggan	depends on RMI4_CORE
45ff8f8370SAndrew Duggan
46ff8f8370SAndrew Dugganconfig RMI4_F11
47ff8f8370SAndrew Duggan	bool "RMI4 Function 11 (2D pointing)"
48ff8f8370SAndrew Duggan	select RMI4_2D_SENSOR
49ff8f8370SAndrew Duggan	depends on RMI4_CORE
50ff8f8370SAndrew Duggan	help
51ff8f8370SAndrew Duggan	  Say Y here if you want to add support for RMI4 function 11.
52ff8f8370SAndrew Duggan
53ff8f8370SAndrew Duggan	  Function 11 provides 2D multifinger pointing for touchscreens and
54ff8f8370SAndrew Duggan	  touchpads. For sensors that support relative pointing, F11 also
55ff8f8370SAndrew Duggan	  provides mouse input.
56b43d2c1eSAndrew Duggan
57b43d2c1eSAndrew Dugganconfig RMI4_F12
58b43d2c1eSAndrew Duggan	bool "RMI4 Function 12 (2D pointing)"
59b43d2c1eSAndrew Duggan	select RMI4_2D_SENSOR
60b43d2c1eSAndrew Duggan	depends on RMI4_CORE
61b43d2c1eSAndrew Duggan	help
62b43d2c1eSAndrew Duggan	  Say Y here if you want to add support for RMI4 function 12.
63b43d2c1eSAndrew Duggan
64b43d2c1eSAndrew Duggan	  Function 12 provides 2D multifinger pointing for touchscreens and
65b43d2c1eSAndrew Duggan	  touchpads. For sensors that support relative pointing, F12 also
66b43d2c1eSAndrew Duggan	  provides mouse input.
67562b42d3SAndrew Duggan
68562b42d3SAndrew Dugganconfig RMI4_F30
69562b42d3SAndrew Duggan	bool "RMI4 Function 30 (GPIO LED)"
70562b42d3SAndrew Duggan	depends on RMI4_CORE
71562b42d3SAndrew Duggan	help
72562b42d3SAndrew Duggan	  Say Y here if you want to add support for RMI4 function 30.
73562b42d3SAndrew Duggan
74562b42d3SAndrew Duggan	  Function 30 provides GPIO and LED support for RMI4 devices. This
75562b42d3SAndrew Duggan	  includes support for buttons on TouchPads and ClickPads.
763a762dbdSNick Dyer
7729fd0ec2SNick Dyerconfig RMI4_F34
7829fd0ec2SNick Dyer	bool "RMI4 Function 34 (Device reflash)"
7929fd0ec2SNick Dyer	depends on RMI4_CORE
8029fd0ec2SNick Dyer	select FW_LOADER
8129fd0ec2SNick Dyer	help
8229fd0ec2SNick Dyer	  Say Y here if you want to add support for RMI4 function 34.
8329fd0ec2SNick Dyer
8429fd0ec2SNick Dyer	  Function 34 provides support for upgrading the firmware on the RMI4
8529fd0ec2SNick Dyer	  device via the firmware loader interface. This is triggered using a
8629fd0ec2SNick Dyer	  sysfs attribute.
8729fd0ec2SNick Dyer
883a762dbdSNick Dyerconfig RMI4_F54
893a762dbdSNick Dyer	bool "RMI4 Function 54 (Analog diagnostics)"
903a762dbdSNick Dyer	depends on RMI4_CORE
9147d8e00cSArnd Bergmann	depends on VIDEO_V4L2=y || (RMI4_CORE=m && VIDEO_V4L2=m)
923a762dbdSNick Dyer	select VIDEOBUF2_VMALLOC
933a762dbdSNick Dyer	help
943a762dbdSNick Dyer	  Say Y here if you want to add support for RMI4 function 54
953a762dbdSNick Dyer
963a762dbdSNick Dyer	  Function 54 provides access to various diagnostic features in certain
973a762dbdSNick Dyer	  RMI4 touch sensors.
98*6adba43fSGuenter Roeck
99*6adba43fSGuenter Roeckconfig RMI4_F55
100*6adba43fSGuenter Roeck	bool "RMI4 Function 55 (Sensor tuning)"
101*6adba43fSGuenter Roeck	depends on RMI4_CORE
102*6adba43fSGuenter Roeck	help
103*6adba43fSGuenter Roeck	  Say Y here if you want to add support for RMI4 function 55
104*6adba43fSGuenter Roeck
105*6adba43fSGuenter Roeck	  Function 55 provides access to the RMI4 touch sensor tuning
106*6adba43fSGuenter Roeck	  mechanism.
107