Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Aug 2018 11:49:25 +0000 (UTC)
From:      lyd mc <alydiomc@yahoo.com>
To:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Nanopi Neo I2C
Message-ID:  <165877705.5351934.1533988165694@mail.yahoo.com>
References:  <165877705.5351934.1533988165694.ref@mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi List,
Can you help me make I2C work in this board?
I can detect the controller but cannot access it through iic ioctl.=20

root@nanopi-neo:~/prog/I2C # dmesg |grep iic
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x1c2ac00-0x1c2afff i=
rq 34 on simplebus0
iicbus0: <OFW I2C bus> on iichb0
iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1c2b000-0x1c2b3ff i=
rq 35 on simplebus0
iicbus1: <OFW I2C bus> on iichb1
iichb2: <Allwinner Integrated I2C Bus Controller> mem 0x1c2b400-0x1c2b7ff i=
rq 36 on simplebus0
iicbus2: <OFW I2C bus> on iichb2
iic0: <I2C generic I/O> on iicbus0
iic1: <I2C generic I/O> on iicbus1
iic2: <I2C generic I/O> on iicbus2

kdump output:

=C2=A0 1290 mcp=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 NAMI=C2=A0 "/dev/iic0"
=C2=A0 1290 mcp=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 RET=C2=A0=C2=A0 openat 3
=C2=A0 1290 mcp=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 CALL=C2=A0 ioctl(0x3,I2CRDWR,=
0xbfbfecd4)
=C2=A0 1290 mcp=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 RET=C2=A0=C2=A0 ioctl -1 errn=
o 2 No such file or directory

This seems to work on my RPI.

Regards,Alyd



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