Date: Sat, 11 Aug 2018 14:36:41 +0000 (UTC) From: lyd mc <alydiomc@yahoo.com> To: Daniel Braniss <danny@cs.huji.ac.il> Cc: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Subject: Re: Nanopi Neo I2C Message-ID: <736558299.5378642.1533998201917@mail.yahoo.com> In-Reply-To: <4D0332E4-901A-45A7-93F6-0FA7D9437587@cs.huji.ac.il> References: <165877705.5351934.1533988165694.ref@mail.yahoo.com> <165877705.5351934.1533988165694@mail.yahoo.com> <4D0332E4-901A-45A7-93F6-0FA7D9437587@cs.huji.ac.il>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Daniel, I am using Current. root@nanopi-neo:~ # uname -a FreeBSD nanopi-neo 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r337527: Thu Aug=C2= =A0 9 20:21:07 +08 2018=C2=A0=C2=A0=C2=A0=C2=A0 root@mserver:/root/crochet/= work/obj/usr/src/arm.armv7/sys/GENERIC=C2=A0 arm root@nanopi-neo:~ # i2c -sHardware may not support START/STOP scanning; try= ing less-reliable read method. Scanning I2C devices on /dev/iic0: <none found> Regards,Alyd On Saturday, August 11, 2018, 10:32:01 PM GMT+8, Daniel Braniss <danny@= cs.huji.ac.il> wrote: =20 =20 =20 > On 11 Aug 2018, at 14:49, lyd mc via freebsd-arm <freebsd-arm@freebsd.org= > 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: <Allwinner Integrated I2C Bus Controller> mem 0x1c2ac00-0x1c2afff= irq 34 on simplebus0 > iicbus0: <OFW I2C bus> on iichb0 > iichb1: <Allwinner Integrated I2C Bus Controller> mem 0x1c2b000-0x1c2b3ff= irq 35 on simplebus0 > iicbus1: <OFW I2C bus> on iichb1 > iichb2: <Allwinner Integrated I2C Bus Controller> mem 0x1c2b400-0x1c2b7ff= irq 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 >=20 > kdump output: >=20 >=C2=A0 1290 mcp=C2=A0 =C2=A0 =C2=A0 NAMI=C2=A0 "/dev/iic0" >=C2=A0 1290 mcp=C2=A0 =C2=A0 =C2=A0 RET=C2=A0 openat 3 >=C2=A0 1290 mcp=C2=A0 =C2=A0 =C2=A0 CALL=C2=A0 ioctl(0x3,I2CRDWR,0xbfbfecd= 4) >=C2=A0 1290 mcp=C2=A0 =C2=A0 =C2=A0 RET=C2=A0 ioctl -1 errno 2 No such fil= e 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 =C2=A0 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" =20 From owner-freebsd-arm@freebsd.org Sat Aug 11 14:52:26 2018 Return-Path: <owner-freebsd-arm@freebsd.org> 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 CCDD5106F787 for <freebsd-arm@mailman.ysv.freebsd.org>; Sat, 11 Aug 2018 14:52:26 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x22f.google.com (mail-it0-x22f.google.com [IPv6:2607:f8b0:4001:c0b::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5905C82417 for <freebsd-arm@freebsd.org>; Sat, 11 Aug 2018 14:52:26 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x22f.google.com with SMTP id v71-v6so6801147itb.3 for <freebsd-arm@freebsd.org>; Sat, 11 Aug 2018 07:52:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:from:date:message-id:subject:to; bh=7vl6ev8jMeDYT7+MeFK+LTvxs6JVQmviz+5/yTN9itg=; b=mUhoe8eXIoVYSWfJpHXSXILa+AY6/b77RF5QHt6cn0PxEkBnuhVatBbyFIhKsG/WQW rELj7vpBzvQNupot38z+gTWM8sre3NLZG/cGDgArgQdf1aAhfDpTLa4Y+aQE0fvtVyKX YbNo0gQhRV16SlOClsmMoad77W81ZyCoyXOSmfGIrLF9nknm7kNDtiUQULwDQvqa1xVQ TtxuFOW7+dLQOLvDkt2DGJMth6PyUNcTd+PUOT0di/Wt1xNq58l8YgcqdTkk/B5Eppsm dbiN5/GpASqxjdIBN8ElMZXdZOx0YdOJezWPfOvEmwSnXMdKUXy/+SAH8HDnW6KvfVKo tAmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=7vl6ev8jMeDYT7+MeFK+LTvxs6JVQmviz+5/yTN9itg=; b=MjQYh+V2Hq1hO9fVSq9FDVXQE1qxQ6tojIdgEDtez4jvI1CUAvMRnDM3k/6bSGcAmb y6fBPnGcTfmZ3gNhJYzW1T/3zjnsHgx5ibZDQfn5/p8dxmK7yzrwx0DPBFfyQH9kYWu0 cEMf+tUbIhQkvEb0D4F7lIhpYtnCCgDpOc+zb+r8fxqcDx6zO6qv97MpW/oD78LO/ZHv M8M0i8O/6rEtd5jHp1t7WmV+umguJymD/quxm8GYoKIyA2ItS4uDUS8Xtxpl8mLlXvbD LHXSjLWj1e+XmYX7TkAqPa9RbdwFFZ472epNQOrqTSZDAqPZMk934fzAy92CzFWgwdlU VAcg== X-Gm-Message-State: AOUpUlGfAE4vx95i+iHzWQ0I3MsUTsPlKZu1XhGm/00eLMSLCBsndBkB AGUZUJPByw7BsysDMv+B7We9tWWIT51zJxTeU+rVGIdo2VI= X-Google-Smtp-Source: AA+uWPx9jCfG/ReWs1zNE7n7V6y3BG23QbBh9Rq+rUWKON1oUBnWD3IhaNE1ijxJ/ScoezKLpSvUw40IJnb4JciYzBw= X-Received: by 2002:a24:4f52:: with SMTP id c79-v6mr5632789itb.36.1533999145217; Sat, 11 Aug 2018 07:52:25 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 2002:a4f:381a:0:0:0:0:0 with HTTP; Sat, 11 Aug 2018 07:52:24 -0700 (PDT) X-Originating-IP: [2603:300b:6:5100:1052:acc7:f9de:2b6d] From: Warner Losh <imp@bsdimp.com> Date: Sat, 11 Aug 2018 08:52:24 -0600 X-Google-Sender-Auth: qf0tNw_cLYh9lBFnM_IvVPZf7A4 Message-ID: <CANCZdfo3D1P7eOkZGuLNTPdQ6V00W1-gieVYTE7R=-qaYnehbA@mail.gmail.com> Subject: Kill old, non-INTRNG code on ARM To: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." <freebsd-arm.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-arm>, <mailto:freebsd-arm-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-arm/> List-Post: <mailto:freebsd-arm@freebsd.org> List-Help: <mailto:freebsd-arm-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-arm>, <mailto:freebsd-arm-request@freebsd.org?subject=subscribe> X-List-Received-Date: Sat, 11 Aug 2018 14:52:27 -0000 One last thing, even though we're in a slush, is to kill the pre-INTRNG code. It's required for armv6 and v7 for some time (only the Amlogic 8726 boards remain broken there). And we're down to two families of chips which support armv5: rt1310 and the Marvel gear. Both of them support INTRNG. I propose we eliminate the INTRNG option and unifdef the code to remove the undefined case. Comments? Warner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?736558299.5378642.1533998201917>