From owner-freebsd-arm@FreeBSD.ORG Thu Mar 20 01:46:59 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9A465884 for ; Thu, 20 Mar 2014 01:46:59 +0000 (UTC) Received: from spoon.beta.com (spoon.beta.com [199.165.180.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 43405CD8 for ; Thu, 20 Mar 2014 01:46:58 +0000 (UTC) Received: from [199.165.180.42] (dhcp12.beta.com [199.165.180.42]) by spoon.beta.com (8.14.5/8.14.5) with ESMTP id s2K2Cw4f078618; Wed, 19 Mar 2014 22:12:58 -0400 (EDT) (envelope-from mcgovern@beta.com) Subject: Re: Beaglebone black: are the AIN pins available with gpioctl From: "Brian J. McGovern" To: Luiz Otavio O Souza In-Reply-To: References: <1394852976.1369.3.camel@fbsd-laptop> Content-Type: text/plain; charset="us-ascii" Organization: B.E.T.A. Date: Wed, 19 Mar 2014 21:46:42 -0400 Message-ID: <1395280002.1367.5.camel@fbsd-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.6 required=5.0 tests=RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on spoon.beta.com Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: mcgovern@beta.com List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Mar 2014 01:46:59 -0000 On Sat, 2014-03-15 at 02:23 -0300, Luiz Otavio O Souza wrote: > On 15 March 2014 00:09, Brian J. McGovern wrote: > > I'm trying to read through all the details in the Beaglebone Black > > System Reference manual, but I don't think I've seen this particular > > piece yet... Are the AIN pins available via gpioctl or another interface > > in 10.0-RELEASE? > > No, there is no support for the ADC on 10.0-RELEASE. > > I've just tested a driver for the BBB ADC, now i need to write a man > page and publish the code (on this ML). > > If everything is fine, it will be available on -head and on 10-stable soon. > > Luiz > Luiz, I grabbed your patches that you posted on 17 March, and patched them in to FreeBSD 10. Overall, the driver seems to work fine. The only issue that I'm having is that after some period of time (it has varied from a few minutes to over a half hour), the analog input freezes up, continuing to provide the last reading, despite changes on the analog input - verified via a voltage meter. The only way I've been able to recover is to reboot. Obviously, I need to do some more testing and try to figure out why its locking up, but I thought you'd like to know. -B