]> git.baikalelectronics.ru Git - kernel.git/commit
HID: add hid-cp2112 driver
authorDavid Barksdale <dbarksdale@uplogix.com>
Tue, 4 Feb 2014 18:42:48 +0000 (12:42 -0600)
committerJiri Kosina <jkosina@suse.cz>
Mon, 17 Feb 2014 22:33:17 +0000 (23:33 +0100)
commitc129e4e31110ebe8b43ab077dee087bb50fc40c3
tree0c210184edf96177cea0dfbcd0ad7c841be0586e
parent0b7a7040f21bc1a8da3640475818b1f2cd44eacb
HID: add hid-cp2112 driver

This patch adds support for the Silicon Labs CP2112 "Single-Chip HID USB to
SMBus Master Bridge."

This is a HID device driver which registers as an i2c adapter and gpiochip to
expose these functions of the CP2112. The customizable USB descriptor fields
are exposed as sysfs attributes.  The SMBus byte-read, byte-data-read/write,
and word-data-read transfer modes have been tested by talking to an i2c
sensor.  The GPIO functions and USB descriptor field programming have also
been tested.

Signed-off-by: David Barksdale <dbarksdale@uplogix.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/Kconfig
drivers/hid/Makefile
drivers/hid/hid-core.c
drivers/hid/hid-cp2112.c [new file with mode: 0644]
drivers/hid/hid-ids.h