diff options
author | Johannes Roith <johannes@gnu-linux.rocks> | 2023-09-21 18:49:28 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2023-11-21 09:27:18 +0100 |
commit | 740329d7120f8608ead64b0f3417c02ca1d6b32f (patch) | |
tree | 6a497b56385c0bd2cdb6f7fe550cfcd8ab00ccdf /drivers/hid/hid-ids.h | |
parent | Merge tag 'for-linus-2023110101' of git://git.kernel.org/pub/scm/linux/kernel... (diff) | |
download | linux-740329d7120f8608ead64b0f3417c02ca1d6b32f.tar.xz linux-740329d7120f8608ead64b0f3417c02ca1d6b32f.zip |
HID: mcp2200: added driver for GPIOs of MCP2200
Added a gpiochip compatible driver to control the 8 GPIOs of
the MCP2200 by using the HID interface.
Using GPIOs with alternative functions (GP0<->SSPND, GP1<->USBCFG,
GP6<->RXLED, GP7<->TXLED) will reset the functions, if set (unset by
default).
The driver was tested while also using the UART of the chip. Setting
and reading the GPIOs has no effect on the UART communication. However,
a reset is triggered after the CONFIGURE command. If the GPIO Direction
is constantly changed, this will affect the communication at low baud
rates. This is a hardware problem of the MCP2200 and is not caused by
the driver.
Signed-off-by: Johannes Roith <johannes@gnu-linux.rocks>
Reviewed-by: Rahul Rameshbabu <sergeantsagara@protonmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-ids.h')
-rw-r--r-- | drivers/hid/hid-ids.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index f7973ccd84a2..f63e16095c10 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -917,6 +917,7 @@ #define USB_DEVICE_ID_PICK16F1454 0x0042 #define USB_DEVICE_ID_PICK16F1454_V2 0xf2f7 #define USB_DEVICE_ID_LUXAFOR 0xf372 +#define USB_DEVICE_ID_MCP2200 0x00df #define USB_DEVICE_ID_MCP2221 0x00dd #define USB_VENDOR_ID_MICROSOFT 0x045e |