Skip to content

Commit 6a82582

Browse files
MichaelZaidmanJiri Kosina
authored andcommitted
HID: ft260: add usb hid to i2c host bridge driver
The FTDI FT260 chip implements USB to I2C/UART bridges through two USB HID class interfaces. The first - for I2C, and the second for UART. Each interface is independent, and the kernel detects it as a separate USB hidraw device. This commit adds I2C host adapter support. Signed-off-by: Michael Zaidman <michael.zaidman@gmail.com> Tested-by: Aaron Jones (FTDI-UK) <aaron.jones@ftdichip.com Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 69aea9d commit 6a82582

5 files changed

Lines changed: 1073 additions & 0 deletions

File tree

MAINTAINERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7278,6 +7278,13 @@ F: fs/verity/
72787278
F: include/linux/fsverity.h
72797279
F: include/uapi/linux/fsverity.h
72807280

7281+
FT260 FTDI USB-HID TO I2C BRIDGE DRIVER
7282+
M: Michael Zaidman <michael.zaidman@gmail.com>
7283+
L: linux-i2c@vger.kernel.org
7284+
L: linux-input@vger.kernel.org
7285+
S: Maintained
7286+
F: drivers/hid/hid-ft260.c
7287+
72817288
FUJITSU LAPTOP EXTRAS
72827289
M: Jonathan Woithe <jwoithe@just42.net>
72837290
L: platform-driver-x86@vger.kernel.org

drivers/hid/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,17 @@ config HID_EZKEY
351351
help
352352
Support for Ezkey BTC 8193 keyboard.
353353

354+
config HID_FT260
355+
tristate "FTDI FT260 USB HID to I2C host support"
356+
depends on USB_HID && HIDRAW && I2C
357+
help
358+
Provides I2C host adapter functionality over USB-HID through FT260
359+
device. The customizable USB descriptor fields are exposed as sysfs
360+
attributes.
361+
362+
To compile this driver as a module, choose M here: the module
363+
will be called hid-ft260.
364+
354365
config HID_GEMBIRD
355366
tristate "Gembird Joypad"
356367
depends on HID

drivers/hid/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ obj-$(CONFIG_HID_ELAN) += hid-elan.o
4646
obj-$(CONFIG_HID_ELECOM) += hid-elecom.o
4747
obj-$(CONFIG_HID_ELO) += hid-elo.o
4848
obj-$(CONFIG_HID_EZKEY) += hid-ezkey.o
49+
obj-$(CONFIG_HID_FT260) += hid-ft260.o
4950
obj-$(CONFIG_HID_GEMBIRD) += hid-gembird.o
5051
obj-$(CONFIG_HID_GFRM) += hid-gfrm.o
5152
obj-$(CONFIG_HID_GLORIOUS) += hid-glorious.o

0 commit comments

Comments
 (0)