Date: Mon, 11 Jul 2022 07:08:02 -0700 From: John Kennedy <warlock@phouka.net> To: "Daniel O'Connor" <darius@dons.net.au> Cc: freebsd-arm@freebsd.org Subject: Re: i2c bus via USB adapter Message-ID: <YswuwrUSC7F/tEXh@phouka1.phouka.net> In-Reply-To: <22B46606-5269-4691-A030-2F07BF0E45BF@dons.net.au> References: <YsuIZS0/IrLjsVvR@phouka1.phouka.net> <22B46606-5269-4691-A030-2F07BF0E45BF@dons.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 11, 2022 at 03:56:34PM +0930, Daniel O'Connor wrote: > Checking the MCP2221 data sheet shows it does present itself as UART (since it is a UART) and HID (for I2C control) > HID is common because it means you don't need a custom driver (and the associated cost/PITA factor with signing one for Windows & OSX). Hmm. I think you're getting my brain on the right track. Yeah, this is totally intended for people to plug into any old desktop and interface with i2c devices in an OS-agnostic way. > Something like this should work on FreeBSD: https://github.com/ZakKemble/libmcp2221 > (Might take a bit of porting though) I know Adafruit generally makes their code available, although I think they're more GPL (and aimed towards arduino). I was initially trying to keep my brain license-clean if I was going to mess with kernel code.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YswuwrUSC7F/tEXh>