Skip to content

Commit 67a95c2

Browse files
RishiGupta12Jiri Kosina
authored andcommitted
HID: mcp2221: add usb to i2c-smbus host bridge
MCP2221 is a USB HID to I2C/SMbus host bridge device. This commit implements i2c and smbus host adapter support. 7-bit address and i2c multi-message transaction is also supported. Signed-off-by: Rishi Gupta <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 278de45 commit 67a95c2

File tree

5 files changed

+761
-0
lines changed

5 files changed

+761
-0
lines changed

MAINTAINERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10236,6 +10236,13 @@ F: drivers/net/can/m_can/m_can.c
1023610236
F: drivers/net/can/m_can/m_can.h
1023710237
F: drivers/net/can/m_can/m_can_platform.c
1023810238

10239+
MCP2221A MICROCHIP USB-HID TO I2C BRIDGE DRIVER
10240+
M: Rishi Gupta <[email protected]>
10241+
10242+
10243+
S: Maintained
10244+
F: drivers/hid/hid-mcp2221.c
10245+
1023910246
MCP4018 AND MCP4531 MICROCHIP DIGITAL POTENTIOMETER DRIVERS
1024010247
M: Peter Rosin <[email protected]>
1024110248

drivers/hid/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,16 @@ config HID_ALPS
11451145
Say Y here if you have a Alps touchpads over i2c-hid or usbhid
11461146
and want support for its special functionalities.
11471147

1148+
config HID_MCP2221
1149+
tristate "Microchip MCP2221 HID USB-to-I2C/SMbus host support"
1150+
depends on USB_HID && I2C
1151+
---help---
1152+
Provides I2C and SMBUS host adapter functionality over USB-HID
1153+
through MCP2221 device.
1154+
1155+
To compile this driver as a module, choose M here: the module
1156+
will be called hid-mcp2221.ko.
1157+
11481158
endmenu
11491159

11501160
endif # HID

drivers/hid/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ obj-$(CONFIG_HID_LOGITECH_HIDPP) += hid-logitech-hidpp.o
7070
obj-$(CONFIG_HID_MACALLY) += hid-macally.o
7171
obj-$(CONFIG_HID_MAGICMOUSE) += hid-magicmouse.o
7272
obj-$(CONFIG_HID_MALTRON) += hid-maltron.o
73+
obj-$(CONFIG_HID_MCP2221) += hid-mcp2221.o
7374
obj-$(CONFIG_HID_MAYFLASH) += hid-mf.o
7475
obj-$(CONFIG_HID_MICROSOFT) += hid-microsoft.o
7576
obj-$(CONFIG_HID_MONTEREY) += hid-monterey.o

drivers/hid/hid-ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,7 @@
819819
#define USB_DEVICE_ID_PICK16F1454 0x0042
820820
#define USB_DEVICE_ID_PICK16F1454_V2 0xf2f7
821821
#define USB_DEVICE_ID_LUXAFOR 0xf372
822+
#define USB_DEVICE_ID_MCP2221 0x00dd
822823

823824
#define USB_VENDOR_ID_MICROSOFT 0x045e
824825
#define USB_DEVICE_ID_SIDEWINDER_GV 0x003b

0 commit comments

Comments
 (0)