From owner-freebsd-arm@freebsd.org Sat Aug 11 14:32:08 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E8849106EC95 for ; Sat, 11 Aug 2018 14:32:07 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 80D4481364 for ; Sat, 11 Aug 2018 14:32:07 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from imac.bk.cs.huji.ac.il ([132.65.179.42]) by kabab.cs.huji.ac.il with esmtp id 1foUvq-00053p-Bf; Sat, 11 Aug 2018 17:31:54 +0300 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Nanopi Neo I2C From: Daniel Braniss In-Reply-To: <165877705.5351934.1533988165694@mail.yahoo.com> Date: Sat, 11 Aug 2018 17:31:54 +0300 Cc: "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <4D0332E4-901A-45A7-93F6-0FA7D9437587@cs.huji.ac.il> References: <165877705.5351934.1533988165694.ref@mail.yahoo.com> <165877705.5351934.1533988165694@mail.yahoo.com> To: lyd mc X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Aug 2018 14:32:08 -0000 > On 11 Aug 2018, at 14:49, lyd mc via freebsd-arm = wrote: >=20 > 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 >=20 > root@nanopi-neo:~/prog/I2C # dmesg |grep iic > iichb0: mem = 0x1c2ac00-0x1c2afff irq 34 on simplebus0 > iicbus0: on iichb0 > iichb1: mem = 0x1c2b000-0x1c2b3ff irq 35 on simplebus0 > iicbus1: on iichb1 > iichb2: mem = 0x1c2b400-0x1c2b7ff irq 36 on simplebus0 > iicbus2: on iichb2 > iic0: on iicbus0 > iic1: on iicbus1 > iic2: on iicbus2 >=20 > kdump output: >=20 > 1290 mcp NAMI "/dev/iic0" > 1290 mcp RET openat 3 > 1290 mcp CALL ioctl(0x3,I2CRDWR,0xbfbfecd4) > 1290 mcp RET ioctl -1 errno 2 No such file or directory >=20 > This seems to work on my RPI. >=20 > Regards,Alyd what FreeBSD are you using? I have it working on CURRENT. what does=20 i2c -s say? > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"