daniel-thompson / i2c-star

A clone of the i2c-tiny-usb based upon STM32 and libopencm3
GNU General Public License v3.0
124 stars 31 forks source link

Proposal: Use assigned USB VID/PID instead of FTDI #14

Open broth-itk opened 3 years ago

broth-itk commented 3 years ago

See

https://github.com/torvalds/linux/blob/master/drivers/i2c/busses/i2c-tiny-usb.c

Quote:

/*
 * Initially the usb i2c interface uses a vid/pid pair donated by
 * Future Technology Devices International Ltd., later a pair was
 * bought from EZPrototypes
 */
static const struct usb_device_id i2c_tiny_usb_table[] = {
    { USB_DEVICE(0x0403, 0xc631) },   /* FTDI */
    { USB_DEVICE(0x1c40, 0x0534) },   /* EZPrototypes */
    { }                               /* Terminating entry */
};

So:

    .idVendor = 0x1c40,
    .idProduct = 0x0534,

I tested the new IDs and they work fine.

tormodvolden commented 3 years ago

Just for info, here is why it was changed: https://www.mail-archive.com/i2c@lm-sensors.org/msg00680.html

However, Till has still not changed the vid/pid in his own i2c-tiny-usb project.