Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Apr 2022 23:08:11 +0200
From:      Axel Rau <Axel.Rau@chaos1.de>
To:        hardware@freebsd.org
Subject:   Accessing I2C-Bus via ELV USB-I2C
Message-ID:  <996df5c0-ffa7-f1bf-a9e2-6dd47d7b49e6@Chaos1.DE>

next in thread | raw e-mail | index | archive | help
Next journey starts:

For the home2l project, I need a supported I2C interface via USB.
I got this one:
https://de.elv.com/elv-usb-ic-interface-usb-i2c-092255?fs=3D1805459039
Unfortunately it shows up as a serial device on FreeBSD:

ugen0.2: <Silicon Labs ELV USB-I2C-Interface> at usbus0, cfg=3D0 =
md=3DHOST=20
spd=3DFULL (12Mbps) pwr=3DON (500mA)

   bLength =3D 0x0012
   bDescriptorType =3D 0x0001
   bcdUSB =3D 0x0110
   bDeviceClass =3D 0x0000  <Probed by interface class>
   bDeviceSubClass =3D 0x0000
   bDeviceProtocol =3D 0x0000
   bMaxPacketSize0 =3D 0x0040
   idVendor =3D 0x10c4
   idProduct =3D 0xea60
   bcdDevice =3D 0x0100
   iManufacturer =3D 0x0001  <Silicon Labs>
   iProduct =3D 0x0002  <ELV USB-I2C-Interface>
   iSerialNumber =3D 0x0003  <B5AAP0EEUK6A3CIZ>
   bNumConfigurations =3D 0x0001

In loader.conf, I have:
uslcom_load=3D"YES"
iic_load=3D"YES"
iicbus_loa

But the i2c utility does not show a new bus.

 From dmesg:
root@axels-bsdbox:~ # dmesg | grep iic
ig4iic0: <Intel Sunrise Point-H I2C Controller-0> mem=20
0xdf230000-0xdf230fff irq 16 at device 21.0 on pci0
ig4iic0: Using MSI
iicbus0: <Philips I2C bus (ACPI-hinted)> on ig4iic0
iic0: <I2C generic I/O> on iicbus0
ig4iic1: <Intel Sunrise Point-H I2C Controller-1> mem=20
0xdf22f000-0xdf22ffff irq 17 at device 21.1 on pci0
ig4iic1: Using MSI
iicbus1: <Philips I2C bus (ACPI-hinted)> on ig4iic1
iic1: <I2C generic I/O> on iicbus1
root@axels-bsdbox:~ # dmesg | grep I2C
ig4iic0: <Intel Sunrise Point-H I2C Controller-0> mem=20
0xdf230000-0xdf230fff irq 16 at device 21.0 on pci0
iicbus0: <Philips I2C bus (ACPI-hinted)> on ig4iic0
iic0: <I2C generic I/O> on iicbus0
ig4iic1: <Intel Sunrise Point-H I2C Controller-1> mem=20
0xdf22f000-0xdf22ffff irq 17 at device 21.1 on pci0
iicbus1: <Philips I2C bus (ACPI-hinted)> on ig4iic1
iic1: <I2C generic I/O> on iicbus1
ugen0.2: <Silicon Labs ELV USB-I2C-Interface> at usbus0
uslcom0: <ELV USB-I2C-Interface> on usbus0

They provide a (linux) driver ("Treiber") which seems to implement the=20
I2C protocoll on top of the serial interface.
Do we have such a driver on FreeBSD, or exist other supported I2C=20
devices to be plugged into USB?

Any help appreciated,
Axel
=2D-=20
PGP-Key: CDE74120  =E2=98=80  computing @ chaos claudius



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?996df5c0-ffa7-f1bf-a9e2-6dd47d7b49e6>