Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for MCP2221/MCP2221A #28

Open
kabili207 opened this issue Feb 20, 2023 · 1 comment
Open

Support for MCP2221/MCP2221A #28

kabili207 opened this issue Feb 20, 2023 · 1 comment

Comments

@kabili207
Copy link

What kind of new feature are you looking for?

These are similar to the FTDI232X chips in that they expose GPIO and I2C over USB. (They also expose UART and an ADC and DAC, but I believe those are out of scope for this periph)

Adafruit has a handy little breakout for this chip available here: https://www.adafruit.com/product/4471

Do you plan to:

  • Contribute an initial driver: Not likely. I may try to port https://github.com/ardnew/mcp2221a over to this project, but I can't make any promises
  • Write unit tests: I don't think unit tests would be possible without the actual hardware
  • Update https://github.com/periph/cmd to use the new functionality: This would already be covered by the generic i2c commands, yeah?
@kabili207
Copy link
Author

kabili207 commented Feb 20, 2023

Additional note: there is a kernel module for this in Linux (https://github.com/torvalds/linux/blob/master/drivers/hid/hid-mcp2221.c), however it's not enabled by default in any major distro and I'd really rather not have to maintain a custom kernel image long-term.

There's also the obvious point that a linux kernel module is useless on other platforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant