xref: /linux/drivers/input/rmi4/Kconfig (revision c5e8848fc98e363ea51b68de01392366312d9efa)
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
42*c5e8848fSLyude Paulconfig RMI4_F03
43*c5e8848fSLyude Paul        bool "RMI4 Function 03 (PS2 Guest)"
44*c5e8848fSLyude Paul        depends on RMI4_CORE && SERIO
45*c5e8848fSLyude Paul        help
46*c5e8848fSLyude Paul          Say Y here if you want to add support for RMI4 function 03.
47*c5e8848fSLyude Paul
48*c5e8848fSLyude Paul          Function 03 provides PS2 guest support for RMI4 devices. This
49*c5e8848fSLyude Paul          includes support for TrackPoints on TouchPads.
50*c5e8848fSLyude Paul
51ff8f8370SAndrew Dugganconfig RMI4_2D_SENSOR
52ff8f8370SAndrew Duggan	bool
53ff8f8370SAndrew Duggan	depends on RMI4_CORE
54ff8f8370SAndrew Duggan
55ff8f8370SAndrew Dugganconfig RMI4_F11
56ff8f8370SAndrew Duggan	bool "RMI4 Function 11 (2D pointing)"
57ff8f8370SAndrew Duggan	select RMI4_2D_SENSOR
58ff8f8370SAndrew Duggan	depends on RMI4_CORE
59ff8f8370SAndrew Duggan	help
60ff8f8370SAndrew Duggan	  Say Y here if you want to add support for RMI4 function 11.
61ff8f8370SAndrew Duggan
62ff8f8370SAndrew Duggan	  Function 11 provides 2D multifinger pointing for touchscreens and
63ff8f8370SAndrew Duggan	  touchpads. For sensors that support relative pointing, F11 also
64ff8f8370SAndrew Duggan	  provides mouse input.
65b43d2c1eSAndrew Duggan
66b43d2c1eSAndrew Dugganconfig RMI4_F12
67b43d2c1eSAndrew Duggan	bool "RMI4 Function 12 (2D pointing)"
68b43d2c1eSAndrew Duggan	select RMI4_2D_SENSOR
69b43d2c1eSAndrew Duggan	depends on RMI4_CORE
70b43d2c1eSAndrew Duggan	help
71b43d2c1eSAndrew Duggan	  Say Y here if you want to add support for RMI4 function 12.
72b43d2c1eSAndrew Duggan
73b43d2c1eSAndrew Duggan	  Function 12 provides 2D multifinger pointing for touchscreens and
74b43d2c1eSAndrew Duggan	  touchpads. For sensors that support relative pointing, F12 also
75b43d2c1eSAndrew Duggan	  provides mouse input.
76562b42d3SAndrew Duggan
77562b42d3SAndrew Dugganconfig RMI4_F30
78562b42d3SAndrew Duggan	bool "RMI4 Function 30 (GPIO LED)"
79562b42d3SAndrew Duggan	depends on RMI4_CORE
80562b42d3SAndrew Duggan	help
81562b42d3SAndrew Duggan	  Say Y here if you want to add support for RMI4 function 30.
82562b42d3SAndrew Duggan
83562b42d3SAndrew Duggan	  Function 30 provides GPIO and LED support for RMI4 devices. This
84562b42d3SAndrew Duggan	  includes support for buttons on TouchPads and ClickPads.
853a762dbdSNick Dyer
8629fd0ec2SNick Dyerconfig RMI4_F34
8729fd0ec2SNick Dyer	bool "RMI4 Function 34 (Device reflash)"
8829fd0ec2SNick Dyer	depends on RMI4_CORE
8929fd0ec2SNick Dyer	select FW_LOADER
9029fd0ec2SNick Dyer	help
9129fd0ec2SNick Dyer	  Say Y here if you want to add support for RMI4 function 34.
9229fd0ec2SNick Dyer
9329fd0ec2SNick Dyer	  Function 34 provides support for upgrading the firmware on the RMI4
9429fd0ec2SNick Dyer	  device via the firmware loader interface. This is triggered using a
9529fd0ec2SNick Dyer	  sysfs attribute.
9629fd0ec2SNick Dyer
973a762dbdSNick Dyerconfig RMI4_F54
983a762dbdSNick Dyer	bool "RMI4 Function 54 (Analog diagnostics)"
993a762dbdSNick Dyer	depends on RMI4_CORE
10047d8e00cSArnd Bergmann	depends on VIDEO_V4L2=y || (RMI4_CORE=m && VIDEO_V4L2=m)
1013a762dbdSNick Dyer	select VIDEOBUF2_VMALLOC
102c762cc68SGuenter Roeck	select RMI4_F55
1033a762dbdSNick Dyer	help
1043a762dbdSNick Dyer	  Say Y here if you want to add support for RMI4 function 54
1053a762dbdSNick Dyer
1063a762dbdSNick Dyer	  Function 54 provides access to various diagnostic features in certain
1073a762dbdSNick Dyer	  RMI4 touch sensors.
1086adba43fSGuenter Roeck
1096adba43fSGuenter Roeckconfig RMI4_F55
1106adba43fSGuenter Roeck	bool "RMI4 Function 55 (Sensor tuning)"
1116adba43fSGuenter Roeck	depends on RMI4_CORE
1126adba43fSGuenter Roeck	help
1136adba43fSGuenter Roeck	  Say Y here if you want to add support for RMI4 function 55
1146adba43fSGuenter Roeck
1156adba43fSGuenter Roeck	  Function 55 provides access to the RMI4 touch sensor tuning
1166adba43fSGuenter Roeck	  mechanism.
117