From owner-freebsd-arm@FreeBSD.ORG Thu Mar 6 14:02:57 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BD45F452 for ; Thu, 6 Mar 2014 14:02:57 +0000 (UTC) Received: from mail-we0-x22f.google.com (mail-we0-x22f.google.com [IPv6:2a00:1450:400c:c03::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 59A5386F for ; Thu, 6 Mar 2014 14:02:57 +0000 (UTC) Received: by mail-we0-f175.google.com with SMTP id q58so3115214wes.6 for ; Thu, 06 Mar 2014 06:02:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=sPUFbrEuCag7OkCiYjNkXBckXdO70EguC9aR64J2n2k=; b=pbmkjMddH47X9I9BwUH1LV+7fexzJGluvfRGFnoWWK1M22J2SdA2VTUzzs3n0AQ/N5 CllgzE+FQeRHMK7oAx7R739AzjOVCv6YOv6xOj2jc9in68ShwT8fu16vR7/Za79tIxIN TD4FEXvC8mGA/jAkkB1fsB93lD2Cib/toLw906cZqZQOiEZQgjsm/L/9B0v1TcyxEZI2 FZFFkxzUuWg/NBTgakGw+dxoX0cMcm6JDAHmVUqx7fv8v36+PU4d2oLkAgdLQSyavbye kPiFlneUuUnE+GM4iOibLk5s524ynjuboE/XRKArk0q5DIBcDXdQV2jbXBR/zxTVALD5 SH+Q== MIME-Version: 1.0 X-Received: by 10.194.178.135 with SMTP id cy7mr10349688wjc.21.1394114575761; Thu, 06 Mar 2014 06:02:55 -0800 (PST) Received: by 10.216.40.72 with HTTP; Thu, 6 Mar 2014 06:02:55 -0800 (PST) In-Reply-To: <531851D6.5060308@hot.ee> References: <531851D6.5060308@hot.ee> Date: Thu, 6 Mar 2014 11:02:55 -0300 Message-ID: Subject: Re: TI AM335x ADC support (on BeagleBone Black) From: Luiz Otavio O Souza To: "Sulev-Madis Silber (ketas)" Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Mar 2014 14:02:57 -0000 On 6 March 2014 07:45, Sulev-Madis Silber (ketas) wrote: > Hello. > > I'm trying to figure out how hard would it be to get ADC working on my BBB. > > Most of things seem to work (except some content on eMMC seemed to > interfere with eMMC / USB - works with clean eMMC). Also 11-CURRENT (at > least r262309) is stable on it while running my PERL-POE daemon [1] > > While I can fix some GPIO "just I/O" related things (like some pins seem > to be "lost"), I don't feel comfortable with writing device drivers > right now. I read almost all the AM335x related IO code and then TI ADC > driver code for Linux but I don't see myself getting anything done here > alone (or it takes years). Maybe someone else works on those things > already? I can test code to verify correct operation of ADC. > > Also, should watchdog work? It's in kernel (running "BEAGLEBONE" now) > and there is /dev/fido but that can't be used? > > > [1] http://ketas.si.pri.ee/bbb-poe-daemon/ > > > -- > ketas Hello Ketas, I've started read the ADC chapter on TRM a couple of times but i'm yet to finish it. It is on my plans write a driver for the ADC unless someone beat me here. Looks like there is no watchdog driver for am335x, another good chance for practice a little bit. Cheers, Luiz