summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2017-04-06 21:08:42 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-04-17 23:19:34 -0400
commitb08c118cde9dfd92f1f3c90544a682ee8b2ea740 (patch)
treeae9fe094c35a07f4f7e9d296c6e25b26ee8b7825
parent6c6d5752da5c9594e527e81062180bcf814ef1a0 (diff)
Input: docs - split input docs into kernel- and user-facing
Split input documentation into several groups: kernel- and user-facing, and notes about individual device drivers. Move device drivers docs into a separate subdirectory. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r--Documentation/input/devices/alps.rst (renamed from Documentation/input/alps.rst)2
-rw-r--r--Documentation/input/devices/amijoy.rst (renamed from Documentation/input/amijoy.rst)0
-rw-r--r--Documentation/input/devices/appletouch.rst (renamed from Documentation/input/appletouch.rst)0
-rw-r--r--Documentation/input/devices/atarikbd.rst (renamed from Documentation/input/atarikbd.rst)0
-rw-r--r--Documentation/input/devices/bcm5974.rst (renamed from Documentation/input/bcm5974.rst)0
-rw-r--r--Documentation/input/devices/cma3000_d0x.rst (renamed from Documentation/input/cma3000_d0x.rst)4
-rw-r--r--Documentation/input/devices/cs461x.rst (renamed from Documentation/input/cs461x.rst)8
-rw-r--r--Documentation/input/devices/edt-ft5x06.rst (renamed from Documentation/input/edt-ft5x06.rst)0
-rw-r--r--Documentation/input/devices/elantech.rst (renamed from Documentation/input/elantech.rst)0
-rw-r--r--Documentation/input/devices/gpio-tilt.rst (renamed from Documentation/input/gpio-tilt.rst)8
-rw-r--r--Documentation/input/devices/iforce-protocol.rst (renamed from Documentation/input/iforce-protocol.rst)0
-rw-r--r--Documentation/input/devices/index.rst19
-rw-r--r--Documentation/input/devices/joystick-parport.rst (renamed from Documentation/input/joystick-parport.rst)2
-rw-r--r--Documentation/input/devices/ntrig.rst (renamed from Documentation/input/ntrig.rst)0
-rw-r--r--Documentation/input/devices/rotary-encoder.rst (renamed from Documentation/input/rotary-encoder.rst)0
-rw-r--r--Documentation/input/devices/sentelic.rst (renamed from Documentation/input/sentelic.rst)10
-rw-r--r--Documentation/input/devices/walkera0701.rst (renamed from Documentation/input/walkera0701.rst)0
-rw-r--r--Documentation/input/devices/xpad.rst (renamed from Documentation/input/xpad.rst)22
-rw-r--r--Documentation/input/devices/yealink.rst (renamed from Documentation/input/yealink.rst)47
-rw-r--r--Documentation/input/gamepad.rst10
-rw-r--r--Documentation/input/index.rst39
-rw-r--r--Documentation/input/input-programming.rst5
-rw-r--r--Documentation/input/input_kapi.rst17
-rw-r--r--Documentation/input/input_uapi.rst21
24 files changed, 107 insertions, 107 deletions
diff --git a/Documentation/input/alps.rst b/Documentation/input/devices/alps.rst
index 76a71a146e50..6779148e428c 100644
--- a/Documentation/input/alps.rst
+++ b/Documentation/input/devices/alps.rst
@@ -5,7 +5,7 @@ ALPS Touchpad Protocol
5Introduction 5Introduction
6------------ 6------------
7Currently the ALPS touchpad driver supports seven protocol versions in use by 7Currently the ALPS touchpad driver supports seven protocol versions in use by
8ALPS touchpads, called versions 1, 2, 3, 4, 5, 6 and 7. 8ALPS touchpads, called versions 1, 2, 3, 4, 5, 6, 7 and 8.
9 9
10Since roughly mid-2010 several new ALPS touchpads have been released and 10Since roughly mid-2010 several new ALPS touchpads have been released and
11integrated into a variety of laptops and netbooks. These new touchpads 11integrated into a variety of laptops and netbooks. These new touchpads
diff --git a/Documentation/input/amijoy.rst b/Documentation/input/devices/amijoy.rst
index 8df7b11cd98d..8df7b11cd98d 100644
--- a/Documentation/input/amijoy.rst
+++ b/Documentation/input/devices/amijoy.rst
diff --git a/Documentation/input/appletouch.rst b/Documentation/input/devices/appletouch.rst
index c94470e66533..c94470e66533 100644
--- a/Documentation/input/appletouch.rst
+++ b/Documentation/input/devices/appletouch.rst
diff --git a/Documentation/input/atarikbd.rst b/Documentation/input/devices/atarikbd.rst
index 745e7a1ff122..745e7a1ff122 100644
--- a/Documentation/input/atarikbd.rst
+++ b/Documentation/input/devices/atarikbd.rst
diff --git a/Documentation/input/bcm5974.rst b/Documentation/input/devices/bcm5974.rst
index 4aca199b0aa6..4aca199b0aa6 100644
--- a/Documentation/input/bcm5974.rst
+++ b/Documentation/input/devices/bcm5974.rst
diff --git a/Documentation/input/cma3000_d0x.rst b/Documentation/input/devices/cma3000_d0x.rst
index 6f40c17c1aca..8bc8e61487b0 100644
--- a/Documentation/input/cma3000_d0x.rst
+++ b/Documentation/input/devices/cma3000_d0x.rst
@@ -1,5 +1,5 @@
1Kernel driver for CMA3000-D0x 1CMA3000-D0x Accelerometer
2============================= 2=========================
3 3
4Supported chips: 4Supported chips:
5* VTI CMA3000-D0x 5* VTI CMA3000-D0x
diff --git a/Documentation/input/cs461x.rst b/Documentation/input/devices/cs461x.rst
index 1450436dcc9e..b1e6d508ad26 100644
--- a/Documentation/input/cs461x.rst
+++ b/Documentation/input/devices/cs461x.rst
@@ -1,9 +1,6 @@
1Crystal SoundFusion CS4610/CS4612/CS461 joystick 1Crystal SoundFusion CS4610/CS4612/CS461 joystick
2================================================ 2================================================
3 3
4Preface
5-------
6
7This is a new low-level driver to support analog joystick attached to 4This is a new low-level driver to support analog joystick attached to
8Crystal SoundFusion CS4610/CS4612/CS4615. This code is based upon 5Crystal SoundFusion CS4610/CS4612/CS4615. This code is based upon
9Vortex/Solo drivers as an example of decoration style, and ALSA 6Vortex/Solo drivers as an example of decoration style, and ALSA
@@ -25,11 +22,8 @@ screen in VJOYD); I have no documentation on my chip; and the existing
25behavior in my case was not raised the requirement of joystick calibration. 22behavior in my case was not raised the requirement of joystick calibration.
26So the driver have no code to perform hardware related calibration. 23So the driver have no code to perform hardware related calibration.
27 24
28The patch contains minor changes of Config.in and Makefile files. All
29needed code have been moved to one separate file cs461x.c like ns558.c
30This driver have the basic support for PCI devices only; there is no 25This driver have the basic support for PCI devices only; there is no
31ISA or PnP ISA cards supported. AFAIK the ns558 have support for Crystal 26ISA or PnP ISA cards supported.
32ISA and PnP ISA series.
33 27
34The driver works with ALSA drivers simultaneously. For example, the xracer 28The driver works with ALSA drivers simultaneously. For example, the xracer
35uses joystick as input device and PCM device as sound output in one time. 29uses joystick as input device and PCM device as sound output in one time.
diff --git a/Documentation/input/edt-ft5x06.rst b/Documentation/input/devices/edt-ft5x06.rst
index 2032f0b7a8fa..2032f0b7a8fa 100644
--- a/Documentation/input/edt-ft5x06.rst
+++ b/Documentation/input/devices/edt-ft5x06.rst
diff --git a/Documentation/input/elantech.rst b/Documentation/input/devices/elantech.rst
index c3374a7ce7af..c3374a7ce7af 100644
--- a/Documentation/input/elantech.rst
+++ b/Documentation/input/devices/elantech.rst
diff --git a/Documentation/input/gpio-tilt.rst b/Documentation/input/devices/gpio-tilt.rst
index 23de9eff6a34..fa6e64570aa7 100644
--- a/Documentation/input/gpio-tilt.rst
+++ b/Documentation/input/devices/gpio-tilt.rst
@@ -7,8 +7,8 @@ i.e. each tilt switch providing one axis, and the number of axes
7is also not limited. 7is also not limited.
8 8
9 9
10Data structures: 10Data structures
11---------------- 11---------------
12 12
13The array of struct gpio in the gpios field is used to list the gpios 13The array of struct gpio in the gpios field is used to list the gpios
14that represent the current tilt state. 14that represent the current tilt state.
@@ -24,8 +24,8 @@ In the same manner the values stored in the axes array correspond to
24the elements of the gpio_tilt_axis-array. 24the elements of the gpio_tilt_axis-array.
25 25
26 26
27Example: 27Example
28-------- 28-------
29 29
30Example configuration for a single TS1003 tilt switch that rotates around 30Example configuration for a single TS1003 tilt switch that rotates around
31one axis in 4 steps and emits the current tilt via two GPIOs:: 31one axis in 4 steps and emits the current tilt via two GPIOs::
diff --git a/Documentation/input/iforce-protocol.rst b/Documentation/input/devices/iforce-protocol.rst
index 8634beac3fdb..8634beac3fdb 100644
--- a/Documentation/input/iforce-protocol.rst
+++ b/Documentation/input/devices/iforce-protocol.rst
diff --git a/Documentation/input/devices/index.rst b/Documentation/input/devices/index.rst
new file mode 100644
index 000000000000..95a453782bad
--- /dev/null
+++ b/Documentation/input/devices/index.rst
@@ -0,0 +1,19 @@
1Driver-specific documentation
2=============================
3
4This section provides information about various devices supported by the
5Linux kernel, their protocols, and driver details.
6
7.. toctree::
8 :maxdepth: 2
9 :numbered:
10 :glob:
11
12 *
13
14.. only:: subproject and html
15
16 Indices
17 =======
18
19 * :ref:`genindex`
diff --git a/Documentation/input/joystick-parport.rst b/Documentation/input/devices/joystick-parport.rst
index cc2ab871e701..e8ce16ee799a 100644
--- a/Documentation/input/joystick-parport.rst
+++ b/Documentation/input/devices/joystick-parport.rst
@@ -3,7 +3,7 @@
3.. _joystick-parport: 3.. _joystick-parport:
4 4
5============================== 5==============================
6Parallel port Joystick Drivers 6Parallel Port Joystick Drivers
7============================== 7==============================
8 8
9:Copyright: |copy| 1998-2000 Vojtech Pavlik <vojtech@ucw.cz> 9:Copyright: |copy| 1998-2000 Vojtech Pavlik <vojtech@ucw.cz>
diff --git a/Documentation/input/ntrig.rst b/Documentation/input/devices/ntrig.rst
index a6b22ce6c61c..a6b22ce6c61c 100644
--- a/Documentation/input/ntrig.rst
+++ b/Documentation/input/devices/ntrig.rst
diff --git a/Documentation/input/rotary-encoder.rst b/Documentation/input/devices/rotary-encoder.rst
index b07b20a295ac..b07b20a295ac 100644
--- a/Documentation/input/rotary-encoder.rst
+++ b/Documentation/input/devices/rotary-encoder.rst
diff --git a/Documentation/input/sentelic.rst b/Documentation/input/devices/sentelic.rst
index d1a476f973b1..d7ad603dd77e 100644
--- a/Documentation/input/sentelic.rst
+++ b/Documentation/input/devices/sentelic.rst
@@ -1,16 +1,16 @@
1.. include:: <isonum.txt> 1.. include:: <isonum.txt>
2 2
3=============== 3=================
4Sentelic Driver 4Sentelic Touchpad
5=============== 5=================
6 6
7 7
8:Copyright: |copy| 2002-2011 Sentelic Corporation. 8:Copyright: |copy| 2002-2011 Sentelic Corporation.
9 9
10:Last update: Dec-07-2011 10:Last update: Dec-07-2011
11 11
12Finger Sensing Pad Intellimouse Mode(scrolling wheel, 4th and 5th buttons) 12Finger Sensing Pad Intellimouse Mode (scrolling wheel, 4th and 5th buttons)
13========================================================================== 13============================================================================
14 14
15A) MSID 4: Scrolling wheel mode plus Forward page(4th button) and Backward 15A) MSID 4: Scrolling wheel mode plus Forward page(4th button) and Backward
16 page (5th button) 16 page (5th button)
diff --git a/Documentation/input/walkera0701.rst b/Documentation/input/devices/walkera0701.rst
index 2adda99ca717..2adda99ca717 100644
--- a/Documentation/input/walkera0701.rst
+++ b/Documentation/input/devices/walkera0701.rst
diff --git a/Documentation/input/xpad.rst b/Documentation/input/devices/xpad.rst
index 0bae002cf17a..80028433b460 100644
--- a/Documentation/input/xpad.rst
+++ b/Documentation/input/devices/xpad.rst
@@ -125,7 +125,7 @@ the controller device) with the only difference in a nonstandard connector
125You just need to solder a USB connector onto the cable and keep the 125You just need to solder a USB connector onto the cable and keep the
126yellow wire unconnected. The other pins have the same order on both 126yellow wire unconnected. The other pins have the same order on both
127connectors so there is no magic to it. Detailed info on these matters 127connectors so there is no magic to it. Detailed info on these matters
128can be found on the net ([1], [2], [3]). 128can be found on the net ([1]_, [2]_, [3]_).
129 129
130Thanks to the trip splitter found on the cable you don't even need to cut the 130Thanks to the trip splitter found on the cable you don't even need to cut the
131original one. You can buy an extension cable and cut that instead. That way, 131original one. You can buy an extension cable and cut that instead. That way,
@@ -138,7 +138,7 @@ Driver Installation
138 138
139Once you have the adapter cable, if needed, and the controller connected 139Once you have the adapter cable, if needed, and the controller connected
140the xpad module should be auto loaded. To confirm you can cat 140the xpad module should be auto loaded. To confirm you can cat
141/proc/bus/usb/devices. There should be an entry like the one at the end [4]. 141/proc/bus/usb/devices. There should be an entry like the one at the end [4]_.
142 142
143 143
144 144
@@ -199,13 +199,12 @@ the basic functionality.
199References 199References
200========== 200==========
201 201
202[1]: http://euc.jp/periphs/xbox-controller.ja.html (ITO Takayuki) 202.. [1] http://euc.jp/periphs/xbox-controller.ja.html (ITO Takayuki)
203.. [2] http://xpad.xbox-scene.com/
204.. [3] http://www.markosweb.com/www/xboxhackz.com/
205.. [4] /proc/bus/usb/devices - dump from InterAct PowerPad Pro (Germany):
203 206
204[2]: http://xpad.xbox-scene.com/ 207 ::
205
206[3]: http://www.markosweb.com/www/xboxhackz.com/
207
208[4]: /proc/bus/usb/devices - dump from InterAct PowerPad Pro (Germany)::
209 208
210 T: Bus=01 Lev=03 Prnt=04 Port=00 Cnt=01 Dev#= 5 Spd=12 MxCh= 0 209 T: Bus=01 Lev=03 Prnt=04 Port=00 Cnt=01 Dev#= 5 Spd=12 MxCh= 0
211 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=32 #Cfgs= 1 210 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=32 #Cfgs= 1
@@ -214,8 +213,9 @@ References
214 I: If#= 0 Alt= 0 #EPs= 2 Cls=58(unk. ) Sub=42 Prot=00 Driver=(none) 213 I: If#= 0 Alt= 0 #EPs= 2 Cls=58(unk. ) Sub=42 Prot=00 Driver=(none)
215 E: Ad=81(I) Atr=03(Int.) MxPS= 32 Ivl= 10ms 214 E: Ad=81(I) Atr=03(Int.) MxPS= 32 Ivl= 10ms
216 E: Ad=02(O) Atr=03(Int.) MxPS= 32 Ivl= 10ms 215 E: Ad=02(O) Atr=03(Int.) MxPS= 32 Ivl= 10ms
216.. [5] /proc/bus/usb/devices - dump from Redoctane Xbox Dance Pad (US):
217 217
218[5]: /proc/bus/usb/devices - dump from Redoctane Xbox Dance Pad (US):: 218 ::
219 219
220 T: Bus=01 Lev=02 Prnt=09 Port=00 Cnt=01 Dev#= 10 Spd=12 MxCh= 0 220 T: Bus=01 Lev=02 Prnt=09 Port=00 Cnt=01 Dev#= 10 Spd=12 MxCh= 0
221 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 221 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
@@ -225,9 +225,7 @@ References
225 I: If#= 0 Alt= 0 #EPs= 2 Cls=58(unk. ) Sub=42 Prot=00 Driver=xpad 225 I: If#= 0 Alt= 0 #EPs= 2 Cls=58(unk. ) Sub=42 Prot=00 Driver=xpad
226 E: Ad=82(I) Atr=03(Int.) MxPS= 32 Ivl=4ms 226 E: Ad=82(I) Atr=03(Int.) MxPS= 32 Ivl=4ms
227 E: Ad=02(O) Atr=03(Int.) MxPS= 32 Ivl=4ms 227 E: Ad=02(O) Atr=03(Int.) MxPS= 32 Ivl=4ms
228 228.. [6] http://lxr.free-electrons.com/ident?i=xpad_device
229[6]: http://lxr.free-electrons.com/ident?i=xpad_device
230
231 229
232 230
233Historic Edits 231Historic Edits
diff --git a/Documentation/input/yealink.rst b/Documentation/input/devices/yealink.rst
index b231d8baf4bb..bb5a1aafeca2 100644
--- a/Documentation/input/yealink.rst
+++ b/Documentation/input/devices/yealink.rst
@@ -18,36 +18,6 @@ The p1k is a relatively cheap usb 1.1 phone with:
18For vendor documentation see http://www.yealink.com 18For vendor documentation see http://www.yealink.com
19 19
20 20
21Compilation (stand alone version)
22=================================
23
24Currently only kernel 2.6.x.y versions are supported.
25In order to build the yealink.ko module do::
26
27 make
28
29If you encounter problems please check if in the MAKE_OPTS variable in
30the Makefile is pointing to the location where your kernel sources
31are located, default /usr/src/linux.
32
33
34Troubleshooting
35~~~~~~~~~~~~~~~
36
37:Q: Module yealink compiled and installed without any problem but phone
38 is not initialized and does not react to any actions.
39:A: If you see something like:
40 hiddev0: USB HID v1.00 Device [Yealink Network Technology Ltd. VOIP USB Phone
41 in dmesg, it means that the hid driver has grabbed the device first. Try to
42 load module yealink before any other usb hid driver. Please see the
43 instructions provided by your distribution on module configuration.
44
45:Q: Phone is working now (displays version and accepts keypad input) but I can't
46 find the sysfs files.
47:A: The sysfs files are located on the particular usb endpoint. On most
48 distributions you can do: "find /sys/ -name get_icons" for a hint.
49
50
51keyboard features 21keyboard features
52================= 22=================
53 23
@@ -229,6 +199,23 @@ limit of the device.
229 aplay foobar.wav 199 aplay foobar.wav
230 200
231 201
202Troubleshooting
203===============
204
205:Q: Module yealink compiled and installed without any problem but phone
206 is not initialized and does not react to any actions.
207:A: If you see something like:
208 hiddev0: USB HID v1.00 Device [Yealink Network Technology Ltd. VOIP USB Phone
209 in dmesg, it means that the hid driver has grabbed the device first. Try to
210 load module yealink before any other usb hid driver. Please see the
211 instructions provided by your distribution on module configuration.
212
213:Q: Phone is working now (displays version and accepts keypad input) but I can't
214 find the sysfs files.
215:A: The sysfs files are located on the particular usb endpoint. On most
216 distributions you can do: "find /sys/ -name get_icons" for a hint.
217
218
232Credits & Acknowledgments 219Credits & Acknowledgments
233========================= 220=========================
234 221
diff --git a/Documentation/input/gamepad.rst b/Documentation/input/gamepad.rst
index 1bc4555c0ccb..4d5e7fb80a84 100644
--- a/Documentation/input/gamepad.rst
+++ b/Documentation/input/gamepad.rst
@@ -1,12 +1,12 @@
1----------------- 1---------------------------
2Linux Gamepad API 2Linux Gamepad Specification
3----------------- 3---------------------------
4 4
5:Author: 2013 by David Herrmann <dh.herrmann@gmail.com> 5:Author: 2013 by David Herrmann <dh.herrmann@gmail.com>
6 6
7 7
8Intro 8Introduction
9~~~~~ 9~~~~~~~~~~~~
10Linux provides many different input drivers for gamepad hardware. To avoid 10Linux provides many different input drivers for gamepad hardware. To avoid
11having user-space deal with different button-mappings for each gamepad, this 11having user-space deal with different button-mappings for each gamepad, this
12document defines how gamepads are supposed to report their data. 12document defines how gamepads are supposed to report their data.
diff --git a/Documentation/input/index.rst b/Documentation/input/index.rst
index b25a67198a65..7a3e71c2bd00 100644
--- a/Documentation/input/index.rst
+++ b/Documentation/input/index.rst
@@ -8,42 +8,9 @@ Contents:
8 :maxdepth: 2 8 :maxdepth: 2
9 :numbered: 9 :numbered:
10 10
11 input 11 input_uapi
12 input-programming 12 input_kapi
13 event-codes 13 devices/index
14 joydev/index
15 multi-touch-protocol
16 gamepad
17 gameport-programming
18 ff
19 notifier
20 userio
21
22Input drivers
23=============
24
25.. toctree::
26 :maxdepth: 2
27 :numbered:
28
29 alps
30 amijoy
31 appletouch
32 atarikbd
33 bcm5974
34 cma3000_d0x
35 cs461x
36 edt-ft5x06
37 elantech
38 iforce-protocol
39 joystick-parport
40 gpio-tilt
41 ntrig
42 rotary-encoder
43 sentelic
44 walkera0701
45 xpad
46 yealink
47 14
48.. only:: subproject and html 15.. only:: subproject and html
49 16
diff --git a/Documentation/input/input-programming.rst b/Documentation/input/input-programming.rst
index 4d3b22222e93..57dbab652cfa 100644
--- a/Documentation/input/input-programming.rst
+++ b/Documentation/input/input-programming.rst
@@ -1,7 +1,4 @@
1~~~~~~~~~~~~~~~~~~~~~~~~~ 1===============================
2Programming input drivers
3~~~~~~~~~~~~~~~~~~~~~~~~~
4
5Creating an input device driver 2Creating an input device driver
6=============================== 3===============================
7 4
diff --git a/Documentation/input/input_kapi.rst b/Documentation/input/input_kapi.rst
new file mode 100644
index 000000000000..41f1b7e6b78e
--- /dev/null
+++ b/Documentation/input/input_kapi.rst
@@ -0,0 +1,17 @@
1.. include:: <isonum.txt>
2
3################################
4Linux Input Subsystem kernel API
5################################
6
7.. class:: toc-title
8
9 Table of Contents
10
11.. toctree::
12 :maxdepth: 2
13 :numbered:
14
15 input-programming
16 gameport-programming
17 notifier
diff --git a/Documentation/input/input_uapi.rst b/Documentation/input/input_uapi.rst
new file mode 100644
index 000000000000..12ef8974a773
--- /dev/null
+++ b/Documentation/input/input_uapi.rst
@@ -0,0 +1,21 @@
1.. include:: <isonum.txt>
2
3###################################
4Linux Input Subsystem userspace API
5###################################
6
7.. class:: toc-title
8
9 Table of Contents
10
11.. toctree::
12 :maxdepth: 2
13 :numbered:
14
15 input
16 event-codes
17 multi-touch-protocol
18 gamepad
19 ff
20 joydev/index
21 userio