Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Feb 2020 14:15:31 +0200
From:      Nick Kostirya <nikolay.kostirya@i11.co>
To:        freebsd-arm@freebsd.org
Subject:   gpioiic and APDS9960 sensors
Message-ID:  <20200214141531.5bb948e5@i11.co>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200214141531.5bb948e5>