From owner-freebsd-arm@FreeBSD.ORG Thu Jul 19 16:40:26 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3027E106566B for ; Thu, 19 Jul 2012 16:40:26 +0000 (UTC) (envelope-from dmarion.freebsd@gmail.com) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx1.freebsd.org (Postfix) with ESMTP id AD5808FC08 for ; Thu, 19 Jul 2012 16:40:25 +0000 (UTC) Received: by wibhr14 with SMTP id hr14so2281821wib.13 for ; Thu, 19 Jul 2012 09:40:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=V+O7Bl8KgoJBb+ecZPRmWTzZxyuu5CPrai4g7U6XwSw=; b=JHRXYskJ9HrAbuCR0wQx92w80cQgynQ2WSuNYi80gHWqNGzlksXU69Op5UJ88RG+us 9T3u5nYPj3v376KOaZBTeDa7Cu9In3MJQxattDNW2UbJNKziw5ZsCJuZCMM2PsDmqbN8 Uam3wutTNsd76kM4Wn6ZghQXwcmJ2efbzerPNMVfGTB8/QymGPAR45wu85LLNDn6mZL4 UUVlYflxqDGTvcDrL5YCEIMBCDIh1qs7/prceZd/D6W85XAgyr0TrdMj8WsGHw7TuYSF xRPn9Etk4/xMSXw/imkaN9iJBN2g2vmXjuxWPGKHh/Vtn4WpQFXsiBqmhAKTP23jPbqL n5Eg== Received: by 10.216.238.30 with SMTP id z30mr1601602weq.223.1342716014547; Thu, 19 Jul 2012 09:40:14 -0700 (PDT) Received: from dhcp-10-61-108-160.cisco.com (64-103-25-233.cisco.com. [64.103.25.233]) by mx.google.com with ESMTPS id k48sm7258866een.10.2012.07.19.09.40.12 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 Jul 2012 09:40:13 -0700 (PDT) Sender: Damjan Marion Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1485\)) From: Damjan Marion In-Reply-To: Date: Thu, 19 Jul 2012 18:40:12 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <80CCC0AE-ABC7-45B3-A1FE-78376D064A6C@freebsd.org> References: To: David Kalliecharan X-Mailer: Apple Mail (2.1485) Cc: freebsd-arm@freebsd.org Subject: Re: BeagleBone GPIO X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jul 2012 16:40:26 -0000 Hi David, GPIO driver works for 1st 32 GPIOs, and gpioctl is right tool but you=20 cannot list GPIOs, you can just toggle them. You can see list of gpios in sys/arm/ti/am335x/am335x_scm_padconf.c and might be that you will need to change settings in = sys/boot/fdt/dts/beaglebone.dts. For a proper support gpioctl tool needs complete rewrite, as it = currently=20 assumes that there is no more that 32 gpios available. Cheers, Damjan On Jul 19, 2012, at 6:29 PM, David Kalliecharan = wrote: > Hi Damjan, >=20 > I am attempting to do some work on the BeagleBone and am curious about > the GPIO driver, I was directed to you by Tim Kientzle, who has helped > me get a working system and am going to attempt to help him in any way > I can. I attempted to list off the available pins using the gpioctl > command and got the error: >=20 > # gpioctl -f /dev/gpioc0 -l > ioctl(GPIOGET): Invalid argument >=20 > Not sure if I am using the correct userland tool, as Tim informed me > that there was a tool to use and a driver you were working on and had > assumed it to be 'gpioctl'. If I can help with testing or anything let > me know (I am trying to get my feet wet with this stuff), again thanks > for taking the time to help, I really appreciate it! >=20 > Cheers, >=20 > Dave