gpioiic and APDS9960 sensors
Nick Kostirya
nikolay.kostirya at i11.co
Fri Feb 14 12:15:41 UTC 2020
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
If I use iicbus over iichb0 on another NanoPi NEO then APDS9960 sensors work fine.
What do you think about it and is it possible to fix this error?
I use FreeBSD-12.1-STABLE-arm-armv7-GENERICSD-20191212-r355610.img
Nick.
More information about the freebsd-arm
mailing list