blob: a212ff706f7477e67d91cd3eb477295f50073779 [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Andrew Duggan2b6a3212016-03-10 15:35:49 -08002#
3# RMI4 configuration
4#
5config RMI4_CORE
6 tristate "Synaptics RMI4 bus support"
Nick Dyer24d28e42018-06-05 10:17:51 -07007 select IRQ_DOMAIN
Andrew Duggan2b6a3212016-03-10 15:35:49 -08008 help
9 Say Y here if you want to support the Synaptics RMI4 bus. This is
10 required for all RMI4 device support.
11
12 If unsure, say Y.
Andrew Dugganfdf51602016-03-10 15:44:27 -080013
Dmitry Torokhovb29c1392016-12-27 11:42:28 -080014if RMI4_CORE
15
Andrew Dugganfdf51602016-03-10 15:44:27 -080016config RMI4_I2C
17 tristate "RMI4 I2C Support"
Dmitry Torokhovb29c1392016-12-27 11:42:28 -080018 depends on I2C
Andrew Dugganfdf51602016-03-10 15:44:27 -080019 help
20 Say Y here if you want to support RMI4 devices connected to an I2C
21 bus.
22
23 If unsure, say Y.
Andrew Dugganff8f8372016-03-10 15:47:28 -080024
Andrew Duggan8d997582016-03-10 15:58:12 -080025config RMI4_SPI
26 tristate "RMI4 SPI Support"
Dmitry Torokhovb29c1392016-12-27 11:42:28 -080027 depends on SPI
Andrew Duggan8d997582016-03-10 15:58:12 -080028 help
29 Say Y here if you want to support RMI4 devices connected to a SPI
30 bus.
31
32 If unsure, say N.
33
Benjamin Tissoires82264d02016-11-08 17:05:58 -080034config RMI4_SMB
35 tristate "RMI4 SMB Support"
Dmitry Torokhovb29c1392016-12-27 11:42:28 -080036 depends on I2C
Benjamin Tissoires82264d02016-11-08 17:05:58 -080037 help
38 Say Y here if you want to support RMI4 devices connected to an SMB
39 bus.
40
41 If unsure, say N.
42
43 To compile this driver as a module, choose M here: the module will be
44 called rmi_smbus.
45
Lyude Paulc5e88482016-12-02 16:59:07 -080046config RMI4_F03
Dmitry Torokhovb29c1392016-12-27 11:42:28 -080047 bool "RMI4 Function 03 (PS2 Guest)"
Dmitry Torokhovd7ddad02016-12-27 11:32:55 -080048 depends on RMI4_CORE
Dmitry Torokhovb29c1392016-12-27 11:42:28 -080049 help
50 Say Y here if you want to add support for RMI4 function 03.
Lyude Paulc5e88482016-12-02 16:59:07 -080051
Dmitry Torokhovb29c1392016-12-27 11:42:28 -080052 Function 03 provides PS2 guest support for RMI4 devices. This
53 includes support for TrackPoints on TouchPads.
Lyude Paulc5e88482016-12-02 16:59:07 -080054
Arnd Bergmann413d3732017-02-07 09:59:21 -080055config RMI4_F03_SERIO
56 tristate
57 depends on RMI4_CORE
58 depends on RMI4_F03
59 default RMI4_CORE
60 select SERIO
61
Andrew Dugganff8f8372016-03-10 15:47:28 -080062config RMI4_2D_SENSOR
63 bool
Andrew Dugganff8f8372016-03-10 15:47:28 -080064
65config RMI4_F11
66 bool "RMI4 Function 11 (2D pointing)"
67 select RMI4_2D_SENSOR
Andrew Dugganff8f8372016-03-10 15:47:28 -080068 help
69 Say Y here if you want to add support for RMI4 function 11.
70
71 Function 11 provides 2D multifinger pointing for touchscreens and
72 touchpads. For sensors that support relative pointing, F11 also
73 provides mouse input.
Andrew Dugganb43d2c12016-03-10 15:55:29 -080074
75config RMI4_F12
76 bool "RMI4 Function 12 (2D pointing)"
77 select RMI4_2D_SENSOR
Andrew Dugganb43d2c12016-03-10 15:55:29 -080078 help
79 Say Y here if you want to add support for RMI4 function 12.
80
81 Function 12 provides 2D multifinger pointing for touchscreens and
82 touchpads. For sensors that support relative pointing, F12 also
83 provides mouse input.
Andrew Duggan562b42d2016-03-10 15:56:58 -080084
85config RMI4_F30
86 bool "RMI4 Function 30 (GPIO LED)"
Andrew Duggan562b42d2016-03-10 15:56:58 -080087 help
88 Say Y here if you want to add support for RMI4 function 30.
89
90 Function 30 provides GPIO and LED support for RMI4 devices. This
91 includes support for buttons on TouchPads and ClickPads.
Nick Dyer3a762db2016-07-18 18:10:37 -030092
Nick Dyer29fd0ec22016-11-22 17:44:12 -080093config RMI4_F34
94 bool "RMI4 Function 34 (Device reflash)"
Nick Dyer29fd0ec22016-11-22 17:44:12 -080095 select FW_LOADER
96 help
97 Say Y here if you want to add support for RMI4 function 34.
98
99 Function 34 provides support for upgrading the firmware on the RMI4
100 device via the firmware loader interface. This is triggered using a
101 sysfs attribute.
102
Nick Dyer3a762db2016-07-18 18:10:37 -0300103config RMI4_F54
104 bool "RMI4 Function 54 (Analog diagnostics)"
Arnd Bergmann47d8e002016-09-12 12:30:33 -0300105 depends on VIDEO_V4L2=y || (RMI4_CORE=m && VIDEO_V4L2=m)
Nick Dyer3a762db2016-07-18 18:10:37 -0300106 select VIDEOBUF2_VMALLOC
Guenter Roeckc762cc62016-11-22 17:57:02 -0800107 select RMI4_F55
Nick Dyer3a762db2016-07-18 18:10:37 -0300108 help
109 Say Y here if you want to add support for RMI4 function 54
110
111 Function 54 provides access to various diagnostic features in certain
112 RMI4 touch sensors.
Guenter Roeck6adba432016-11-22 17:53:26 -0800113
114config RMI4_F55
115 bool "RMI4 Function 55 (Sensor tuning)"
Guenter Roeck6adba432016-11-22 17:53:26 -0800116 help
117 Say Y here if you want to add support for RMI4 function 55
118
119 Function 55 provides access to the RMI4 touch sensor tuning
120 mechanism.
Dmitry Torokhovb29c1392016-12-27 11:42:28 -0800121
122endif # RMI_CORE