gpioiic and APDS9960 sensors
Nick Kostirya
nikolay.kostirya at i11.co
Wed Feb 19 09:27:20 UTC 2020
On Fri, 14 Feb 2020 14:15:31 +0200
Nick Kostirya via freebsd-arm <freebsd-arm at freebsd.org> wrote:
> Hello.
> I use iicbus over gpioiic on NanoPi NEO.
> All my sensors work fine, except for APDS9960 sensors.
> I have two APDS9960 sensors and and both give an error:
>
>
> > i2c -f /dev/iic0 -s
> Scanning I2C devices on /dev/iic0: 39
>
> > ktrace -t+ i2c -f /dev/iic0 -a 0x39 -d r -o 0 -c 1
>
> 1654 i2c CALL ioctl(0x3,I2CSTART,0xbfbfebf0)
> 1654 i2c RET ioctl 0
> 1654 i2c CALL ioctl(0x3,I2CWRITE,0xbfbfebf0)
> 1654 i2c RET ioctl -1 errno 2 No such file or directory
> 1654 i2c CALL ioctl(0x3,I2CSTOP,0x20056010)
> 1654 i2c RET ioctl 0
>
>
> > ktrace -t+ i2c -f /dev/iic0 -a 0x39 -d r -o 0 -c 1 -m tr
>
> 1657 i2c CALL ioctl(0x3,I2CRDWR,0xbfbfebd8)
> 1657 i2c RET ioctl -1 errno 2 No such file or directory
Maybe it is IIC_ENOACK from iicbb_ack function in iicbb.c file?
IIC_ENOACK is also 2.
Maybe sensors is very slow for iicbb?
More information about the freebsd-arm
mailing list