SBC like Raspberry have the 40 pin header which contains a I2C master. This is a accessible via /dev/i2c-0.

I would like to achieve the same thing on my linux laptop (ubuntu) using the FT232H chip. I can interface the FT232H using the pyftdi package, however it would be great if I could use the exact same thing on any linux machine that has a free usb port.

When I plug the device on my laptop(linux), I can only see that the UART is mounted to /dev/ttyUSB0. Anybody an idea how to 'mount' the I2C function of FT232H on /dev/i2c-0 (or /dev/i2c-1, -2, -3, ..)?

I don't know where to start looking, so any help is very welcome.


  • 1
    \$\begingroup\$ You'd need to unload the USB serial driver or get it to ignore that VID/PID and find or create and load a suitable I2C driver instead. Today userpace solutions as you described with python are typically preferred. \$\endgroup\$ – Chris Stratton Sep 15 at 22:55
  • \$\begingroup\$ @ChrisStratton, thx for quick response; the unload I get it, FT232H work either as UART, either as I2C (or SPI,...) but not both at the same time. \$\endgroup\$ – karelv Sep 15 at 22:56
  • \$\begingroup\$ @ChrisStratton, can you elaborate why userspace solution are preferred? \$\endgroup\$ – karelv Sep 15 at 22:57
  • \$\begingroup\$ Flexibility and portability, typically \$\endgroup\$ – Chris Stratton Sep 15 at 22:58
  • 1
    \$\begingroup\$ There are libftdi and libmpsse, one is the current (maybe the later) and the other deprectated, or I might be remembering that backwards. \$\endgroup\$ – Chris Stratton Sep 15 at 23:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.