Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+107 -107
+1 -1
Documentation/input/alps.rst Documentation/input/devices/alps.rst
··· 5 5 Introduction 6 6 ------------ 7 7 Currently the ALPS touchpad driver supports seven protocol versions in use by 8 - ALPS touchpads, called versions 1, 2, 3, 4, 5, 6 and 7. 8 + ALPS touchpads, called versions 1, 2, 3, 4, 5, 6, 7 and 8. 9 9 10 10 Since roughly mid-2010 several new ALPS touchpads have been released and 11 11 integrated into a variety of laptops and netbooks. These new touchpads
Documentation/input/amijoy.rst Documentation/input/devices/amijoy.rst
Documentation/input/appletouch.rst Documentation/input/devices/appletouch.rst
Documentation/input/atarikbd.rst Documentation/input/devices/atarikbd.rst
Documentation/input/bcm5974.rst Documentation/input/devices/bcm5974.rst
+2 -2
Documentation/input/cma3000_d0x.rst Documentation/input/devices/cma3000_d0x.rst
··· 1 - Kernel driver for CMA3000-D0x 2 - ============================= 1 + CMA3000-D0x Accelerometer 2 + ========================= 3 3 4 4 Supported chips: 5 5 * VTI CMA3000-D0x
+1 -7
Documentation/input/cs461x.rst Documentation/input/devices/cs461x.rst
··· 1 1 Crystal SoundFusion CS4610/CS4612/CS461 joystick 2 2 ================================================ 3 3 4 - Preface 5 - ------- 6 - 7 4 This is a new low-level driver to support analog joystick attached to 8 5 Crystal SoundFusion CS4610/CS4612/CS4615. This code is based upon 9 6 Vortex/Solo drivers as an example of decoration style, and ALSA ··· 22 25 behavior in my case was not raised the requirement of joystick calibration. 23 26 So the driver have no code to perform hardware related calibration. 24 27 25 - The patch contains minor changes of Config.in and Makefile files. All 26 - needed code have been moved to one separate file cs461x.c like ns558.c 27 28 This driver have the basic support for PCI devices only; there is no 28 - ISA or PnP ISA cards supported. AFAIK the ns558 have support for Crystal 29 - ISA and PnP ISA series. 29 + ISA or PnP ISA cards supported. 30 30 31 31 The driver works with ALSA drivers simultaneously. For example, the xracer 32 32 uses joystick as input device and PCM device as sound output in one time.
+19
Documentation/input/devices/index.rst
··· 1 + Driver-specific documentation 2 + ============================= 3 + 4 + This section provides information about various devices supported by the 5 + Linux 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`
Documentation/input/edt-ft5x06.rst Documentation/input/devices/edt-ft5x06.rst
Documentation/input/elantech.rst Documentation/input/devices/elantech.rst
+5 -5
Documentation/input/gamepad.rst
··· 1 - ----------------- 2 - Linux Gamepad API 3 - ----------------- 1 + --------------------------- 2 + Linux Gamepad Specification 3 + --------------------------- 4 4 5 5 :Author: 2013 by David Herrmann <dh.herrmann@gmail.com> 6 6 7 7 8 - Intro 9 - ~~~~~ 8 + Introduction 9 + ~~~~~~~~~~~~ 10 10 Linux provides many different input drivers for gamepad hardware. To avoid 11 11 having user-space deal with different button-mappings for each gamepad, this 12 12 document defines how gamepads are supposed to report their data.
+4 -4
Documentation/input/gpio-tilt.rst Documentation/input/devices/gpio-tilt.rst
··· 7 7 is also not limited. 8 8 9 9 10 - Data structures: 11 - ---------------- 10 + Data structures 11 + --------------- 12 12 13 13 The array of struct gpio in the gpios field is used to list the gpios 14 14 that represent the current tilt state. ··· 24 24 the elements of the gpio_tilt_axis-array. 25 25 26 26 27 - Example: 28 - -------- 27 + Example 28 + ------- 29 29 30 30 Example configuration for a single TS1003 tilt switch that rotates around 31 31 one axis in 4 steps and emits the current tilt via two GPIOs::
Documentation/input/iforce-protocol.rst Documentation/input/devices/iforce-protocol.rst
+3 -36
Documentation/input/index.rst
··· 8 8 :maxdepth: 2 9 9 :numbered: 10 10 11 - input 12 - input-programming 13 - event-codes 14 - joydev/index 15 - multi-touch-protocol 16 - gamepad 17 - gameport-programming 18 - ff 19 - notifier 20 - userio 21 - 22 - Input 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 11 + input_uapi 12 + input_kapi 13 + devices/index 47 14 48 15 .. only:: subproject and html 49 16
+1 -4
Documentation/input/input-programming.rst
··· 1 - ~~~~~~~~~~~~~~~~~~~~~~~~~ 2 - Programming input drivers 3 - ~~~~~~~~~~~~~~~~~~~~~~~~~ 4 - 1 + =============================== 5 2 Creating an input device driver 6 3 =============================== 7 4
+17
Documentation/input/input_kapi.rst
··· 1 + .. include:: <isonum.txt> 2 + 3 + ################################ 4 + Linux 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
+21
Documentation/input/input_uapi.rst
··· 1 + .. include:: <isonum.txt> 2 + 3 + ################################### 4 + Linux 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
+1 -1
Documentation/input/joystick-parport.rst Documentation/input/devices/joystick-parport.rst
··· 3 3 .. _joystick-parport: 4 4 5 5 ============================== 6 - Parallel port Joystick Drivers 6 + Parallel Port Joystick Drivers 7 7 ============================== 8 8 9 9 :Copyright: |copy| 1998-2000 Vojtech Pavlik <vojtech@ucw.cz>
Documentation/input/ntrig.rst Documentation/input/devices/ntrig.rst
Documentation/input/rotary-encoder.rst Documentation/input/devices/rotary-encoder.rst
+5 -5
Documentation/input/sentelic.rst Documentation/input/devices/sentelic.rst
··· 1 1 .. include:: <isonum.txt> 2 2 3 - =============== 4 - Sentelic Driver 5 - =============== 3 + ================= 4 + Sentelic Touchpad 5 + ================= 6 6 7 7 8 8 :Copyright: |copy| 2002-2011 Sentelic Corporation. 9 9 10 10 :Last update: Dec-07-2011 11 11 12 - Finger Sensing Pad Intellimouse Mode(scrolling wheel, 4th and 5th buttons) 13 - ========================================================================== 12 + Finger Sensing Pad Intellimouse Mode (scrolling wheel, 4th and 5th buttons) 13 + ============================================================================ 14 14 15 15 A) MSID 4: Scrolling wheel mode plus Forward page(4th button) and Backward 16 16 page (5th button)
Documentation/input/walkera0701.rst Documentation/input/devices/walkera0701.rst
+10 -12
Documentation/input/xpad.rst Documentation/input/devices/xpad.rst
··· 125 125 You just need to solder a USB connector onto the cable and keep the 126 126 yellow wire unconnected. The other pins have the same order on both 127 127 connectors so there is no magic to it. Detailed info on these matters 128 - can be found on the net ([1], [2], [3]). 128 + can be found on the net ([1]_, [2]_, [3]_). 129 129 130 130 Thanks to the trip splitter found on the cable you don't even need to cut the 131 131 original one. You can buy an extension cable and cut that instead. That way, ··· 138 138 139 139 Once you have the adapter cable, if needed, and the controller connected 140 140 the 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 199 References 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/ 205 - 206 - [3]: http://www.markosweb.com/www/xboxhackz.com/ 207 - 208 - [4]: /proc/bus/usb/devices - dump from InterAct PowerPad Pro (Germany):: 207 + :: 209 208 210 209 T: Bus=01 Lev=03 Prnt=04 Port=00 Cnt=01 Dev#= 5 Spd=12 MxCh= 0 211 210 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=32 #Cfgs= 1 ··· 213 214 I: If#= 0 Alt= 0 #EPs= 2 Cls=58(unk. ) Sub=42 Prot=00 Driver=(none) 214 215 E: Ad=81(I) Atr=03(Int.) MxPS= 32 Ivl= 10ms 215 216 E: Ad=02(O) Atr=03(Int.) MxPS= 32 Ivl= 10ms 217 + .. [5] /proc/bus/usb/devices - dump from Redoctane Xbox Dance Pad (US): 216 218 217 - [5]: /proc/bus/usb/devices - dump from Redoctane Xbox Dance Pad (US):: 219 + :: 218 220 219 221 T: Bus=01 Lev=02 Prnt=09 Port=00 Cnt=01 Dev#= 10 Spd=12 MxCh= 0 220 222 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 ··· 225 225 I: If#= 0 Alt= 0 #EPs= 2 Cls=58(unk. ) Sub=42 Prot=00 Driver=xpad 226 226 E: Ad=82(I) Atr=03(Int.) MxPS= 32 Ivl=4ms 227 227 E: Ad=02(O) Atr=03(Int.) MxPS= 32 Ivl=4ms 228 - 229 - [6]: http://lxr.free-electrons.com/ident?i=xpad_device 230 - 228 + .. [6] http://lxr.free-electrons.com/ident?i=xpad_device 231 229 232 230 233 231 Historic Edits
+17 -30
Documentation/input/yealink.rst Documentation/input/devices/yealink.rst
··· 18 18 For vendor documentation see http://www.yealink.com 19 19 20 20 21 - Compilation (stand alone version) 22 - ================================= 23 - 24 - Currently only kernel 2.6.x.y versions are supported. 25 - In order to build the yealink.ko module do:: 26 - 27 - make 28 - 29 - If you encounter problems please check if in the MAKE_OPTS variable in 30 - the Makefile is pointing to the location where your kernel sources 31 - are located, default /usr/src/linux. 32 - 33 - 34 - Troubleshooting 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 - 51 21 keyboard features 52 22 ================= 53 23 ··· 197 227 Example - playback test:: 198 228 199 229 aplay foobar.wav 230 + 231 + 232 + Troubleshooting 233 + =============== 234 + 235 + :Q: Module yealink compiled and installed without any problem but phone 236 + is not initialized and does not react to any actions. 237 + :A: If you see something like: 238 + hiddev0: USB HID v1.00 Device [Yealink Network Technology Ltd. VOIP USB Phone 239 + in dmesg, it means that the hid driver has grabbed the device first. Try to 240 + load module yealink before any other usb hid driver. Please see the 241 + instructions provided by your distribution on module configuration. 242 + 243 + :Q: Phone is working now (displays version and accepts keypad input) but I can't 244 + find the sysfs files. 245 + :A: The sysfs files are located on the particular usb endpoint. On most 246 + distributions you can do: "find /sys/ -name get_icons" for a hint. 200 247 201 248 202 249 Credits & Acknowledgments