Thomas Gleixner | ec8f24b | 2019-05-19 13:07:45 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Andrew Duggan | 2b6a321 | 2016-03-10 15:35:49 -0800 | [diff] [blame] | 2 | # |
| 3 | # RMI4 configuration |
| 4 | # |
| 5 | config RMI4_CORE |
| 6 | tristate "Synaptics RMI4 bus support" |
Nick Dyer | 24d28e4 | 2018-06-05 10:17:51 -0700 | [diff] [blame] | 7 | select IRQ_DOMAIN |
Andrew Duggan | 2b6a321 | 2016-03-10 15:35:49 -0800 | [diff] [blame] | 8 | 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 Duggan | fdf5160 | 2016-03-10 15:44:27 -0800 | [diff] [blame] | 13 | |
Dmitry Torokhov | b29c139 | 2016-12-27 11:42:28 -0800 | [diff] [blame] | 14 | if RMI4_CORE |
| 15 | |
Andrew Duggan | fdf5160 | 2016-03-10 15:44:27 -0800 | [diff] [blame] | 16 | config RMI4_I2C |
| 17 | tristate "RMI4 I2C Support" |
Dmitry Torokhov | b29c139 | 2016-12-27 11:42:28 -0800 | [diff] [blame] | 18 | depends on I2C |
Andrew Duggan | fdf5160 | 2016-03-10 15:44:27 -0800 | [diff] [blame] | 19 | 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 Duggan | ff8f837 | 2016-03-10 15:47:28 -0800 | [diff] [blame] | 24 | |
Andrew Duggan | 8d99758 | 2016-03-10 15:58:12 -0800 | [diff] [blame] | 25 | config RMI4_SPI |
| 26 | tristate "RMI4 SPI Support" |
Dmitry Torokhov | b29c139 | 2016-12-27 11:42:28 -0800 | [diff] [blame] | 27 | depends on SPI |
Andrew Duggan | 8d99758 | 2016-03-10 15:58:12 -0800 | [diff] [blame] | 28 | 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 Tissoires | 82264d0 | 2016-11-08 17:05:58 -0800 | [diff] [blame] | 34 | config RMI4_SMB |
| 35 | tristate "RMI4 SMB Support" |
Dmitry Torokhov | b29c139 | 2016-12-27 11:42:28 -0800 | [diff] [blame] | 36 | depends on I2C |
Benjamin Tissoires | 82264d0 | 2016-11-08 17:05:58 -0800 | [diff] [blame] | 37 | 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 Paul | c5e8848 | 2016-12-02 16:59:07 -0800 | [diff] [blame] | 46 | config RMI4_F03 |
Dmitry Torokhov | b29c139 | 2016-12-27 11:42:28 -0800 | [diff] [blame] | 47 | bool "RMI4 Function 03 (PS2 Guest)" |
Dmitry Torokhov | d7ddad0 | 2016-12-27 11:32:55 -0800 | [diff] [blame] | 48 | depends on RMI4_CORE |
Dmitry Torokhov | b29c139 | 2016-12-27 11:42:28 -0800 | [diff] [blame] | 49 | help |
| 50 | Say Y here if you want to add support for RMI4 function 03. |
Lyude Paul | c5e8848 | 2016-12-02 16:59:07 -0800 | [diff] [blame] | 51 | |
Dmitry Torokhov | b29c139 | 2016-12-27 11:42:28 -0800 | [diff] [blame] | 52 | Function 03 provides PS2 guest support for RMI4 devices. This |
| 53 | includes support for TrackPoints on TouchPads. |
Lyude Paul | c5e8848 | 2016-12-02 16:59:07 -0800 | [diff] [blame] | 54 | |
Arnd Bergmann | 413d373 | 2017-02-07 09:59:21 -0800 | [diff] [blame] | 55 | config RMI4_F03_SERIO |
| 56 | tristate |
| 57 | depends on RMI4_CORE |
| 58 | depends on RMI4_F03 |
| 59 | default RMI4_CORE |
| 60 | select SERIO |
| 61 | |
Andrew Duggan | ff8f837 | 2016-03-10 15:47:28 -0800 | [diff] [blame] | 62 | config RMI4_2D_SENSOR |
| 63 | bool |
Andrew Duggan | ff8f837 | 2016-03-10 15:47:28 -0800 | [diff] [blame] | 64 | |
| 65 | config RMI4_F11 |
| 66 | bool "RMI4 Function 11 (2D pointing)" |
| 67 | select RMI4_2D_SENSOR |
Andrew Duggan | ff8f837 | 2016-03-10 15:47:28 -0800 | [diff] [blame] | 68 | 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 Duggan | b43d2c1 | 2016-03-10 15:55:29 -0800 | [diff] [blame] | 74 | |
| 75 | config RMI4_F12 |
| 76 | bool "RMI4 Function 12 (2D pointing)" |
| 77 | select RMI4_2D_SENSOR |
Andrew Duggan | b43d2c1 | 2016-03-10 15:55:29 -0800 | [diff] [blame] | 78 | 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 Duggan | 562b42d | 2016-03-10 15:56:58 -0800 | [diff] [blame] | 84 | |
| 85 | config RMI4_F30 |
| 86 | bool "RMI4 Function 30 (GPIO LED)" |
Andrew Duggan | 562b42d | 2016-03-10 15:56:58 -0800 | [diff] [blame] | 87 | 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 Dyer | 3a762db | 2016-07-18 18:10:37 -0300 | [diff] [blame] | 92 | |
Nick Dyer | 29fd0ec2 | 2016-11-22 17:44:12 -0800 | [diff] [blame] | 93 | config RMI4_F34 |
| 94 | bool "RMI4 Function 34 (Device reflash)" |
Nick Dyer | 29fd0ec2 | 2016-11-22 17:44:12 -0800 | [diff] [blame] | 95 | 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 Dyer | 3a762db | 2016-07-18 18:10:37 -0300 | [diff] [blame] | 103 | config RMI4_F54 |
| 104 | bool "RMI4 Function 54 (Analog diagnostics)" |
Arnd Bergmann | 47d8e00 | 2016-09-12 12:30:33 -0300 | [diff] [blame] | 105 | depends on VIDEO_V4L2=y || (RMI4_CORE=m && VIDEO_V4L2=m) |
Nick Dyer | 3a762db | 2016-07-18 18:10:37 -0300 | [diff] [blame] | 106 | select VIDEOBUF2_VMALLOC |
Guenter Roeck | c762cc6 | 2016-11-22 17:57:02 -0800 | [diff] [blame] | 107 | select RMI4_F55 |
Nick Dyer | 3a762db | 2016-07-18 18:10:37 -0300 | [diff] [blame] | 108 | 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 Roeck | 6adba43 | 2016-11-22 17:53:26 -0800 | [diff] [blame] | 113 | |
| 114 | config RMI4_F55 |
| 115 | bool "RMI4 Function 55 (Sensor tuning)" |
Guenter Roeck | 6adba43 | 2016-11-22 17:53:26 -0800 | [diff] [blame] | 116 | 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 Torokhov | b29c139 | 2016-12-27 11:42:28 -0800 | [diff] [blame] | 121 | |
| 122 | endif # RMI_CORE |