From owner-freebsd-embedded@FreeBSD.ORG Thu May 22 05:00:29 2014 Return-Path: Delivered-To: freebsd-embedded@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 3EA0C575 for ; Thu, 22 May 2014 05:00:29 +0000 (UTC) Received: from mail-pb0-f52.google.com (mail-pb0-f52.google.com [209.85.160.52]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0C9C824AE for ; Thu, 22 May 2014 05:00:28 +0000 (UTC) Received: by mail-pb0-f52.google.com with SMTP id rr13so2136292pbb.11 for ; Wed, 21 May 2014 22:00:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=hzGz3Vujp9ugJ7QfSPfrZqRXUuXY1atOBdIRjrW00nI=; b=GLuvFLIo23kXTYf+mPx+qqM1z1Qh1/+QqAUeq94ooHzw9al2ALQQOTxrUE4IB20ISR AviSi08buKeNmFJGobCOofbWC8zqXXjm+fgTurJIBvpcDzedr/ICHpp6DqoT3MoSfq3i oy/ztZj0+l/ORYpLRya0d4MooHF4tklV8AUOLGGURmYrgQhA4ezS5Mk7krkaL8j8MYn7 pwQYjjj8IJA4gW/Y+38CoyEtFltp+RTiPS68TB6EXv0hzfwxGOK4ZsP1kiSihVuYKrX7 zKCZeputkPx0+Z3d13gOujOtoC7pu3ZEvtAppFesJIgzE5AdB2iUg57cRtN8AioeBB60 Aufg== X-Gm-Message-State: ALoCoQldLApxbyDKg684vDkdVuhek3zyMH4oZ1hFkYa1XbJqhgZhetZ3jjGyI/03csjhNSdtDugu X-Received: by 10.67.14.69 with SMTP id fe5mr65341054pad.120.1400734827764; Wed, 21 May 2014 22:00:27 -0700 (PDT) Received: from [10.64.24.150] (dc1-prod.netflix.com. [69.53.236.251]) by mx.google.com with ESMTPSA id gr10sm10783416pbc.84.2014.05.21.22.00.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 May 2014 22:00:26 -0700 (PDT) Sender: Warner Losh Content-Type: multipart/signed; boundary="Apple-Mail=_09466805-1F4B-4B40-95DE-D9A1BF02154B"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: BeagleBone-black GPIO pins use on FreeBSD From: Warner Losh In-Reply-To: <5C8FC523-0FB1-4C84-8276-D297373874BB@felyko.com> Date: Wed, 21 May 2014 23:00:28 -0600 Message-Id: <88BF1D4E-001B-44F9-BEEB-7846BDF6A2E7@bsdimp.com> References: <5C8FC523-0FB1-4C84-8276-D297373874BB@felyko.com> To: Rui Paulo X-Mailer: Apple Mail (2.1878.2) Cc: freebsd-arm@freebsd.org, "freebsd-embedded@freebsd.org" , Luiz Otavio O Souza X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 May 2014 05:00:29 -0000 --Apple-Mail=_09466805-1F4B-4B40-95DE-D9A1BF02154B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On May 21, 2014, at 10:32 PM, Rui Paulo wrote: > On May 21, 2014, at 20:45, Luiz Otavio O Souza = wrote: >=20 >> Hi, >>=20 >> I've updated the BeagleBone-black Wiki page >> (https://wiki.freebsd.org/FreeBSD/arm/BeagleBoneBlack) with the >> default settings for the GPIO expansion headers on FreeBSD. >>=20 >> It has all the pins used for ADC (AIN), I2C, PWMs and MMC1. >>=20 >> Please let me know if i have missed something. >>=20 >> I hope this saves some time for people who is going to work with = GPIO. >=20 > This is good, but I always wished some information was present on = dmesg. This could be added to the FDT and printed automatically, e.g.: >=20 > i2c1 {=20 > location =3D "SDA header P9 pin 18, SCL header P9 pin 17"; > }; >=20 > That would print: >=20 > ti_i2c1: SDA header P9 pin 18, SCL header P9 pin 17 >=20 > If we don't want to put this in the kernel, we could at least put it = in a man page. However, a lot of embedded systems don't even have man = pages... This information can be derived mostly from the pinmux stuff that = (should be) in our .dts files. However, there=92s no standard way to = communicate these things. So the strongest we could do for this = non-standard property is =93freebsd,location=94, even though it is a = strong candidate for having it without since that describes hardware. = I=92d squirrel this away in the dev sysctl tree though, since otherwise = the boot will get rather uncomfortably chatty. Warner --Apple-Mail=_09466805-1F4B-4B40-95DE-D9A1BF02154B Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJTfYRsAAoJEGwc0Sh9sBEASm4P+QHO4jhLgnfFn/QMoXnxEZ0G AlkR3UYwXdO7y6SMCjYbei/5AE05CfExlrWEnBgF/+UNRlOzIdqFDq2b3SDtc5oB d8lNNZ39xQblGYNcyHPgGZak1j9dzGmSpCOVNLZHQr4CZnAVTDx1IUghZ22uySUF +CAAKj/qGGGX9DE3hyRF/oSKDwyfN8ZsKw7t4tBHmaE5Z4GfgCBPWU8MXqJaWmsd uDoGkfhtCkAfpMhtmVleA2u9zNDAQWZ8wV0ro++8ExH8Ps7X/b2szvFH0I0YvOaq 7/olJlz/fmkZb7G1lI5vmG1KVrlJGhp1H4pHxcrzUaB7HdEnT2O/wNaZJKlb1kgK WWk+kMpyYzRRnJfuPPXXBP8xoSuJhOVs10NuEzjuMHG/Nmz5TCJpfe49budzJUcW ur+cfgGCcuZahEisFCI6dRYXlYxdd9KRCBoG+QI1ThBhqc3nKXI0Uxo9H6XIltsC L1P6l9v6m44Hg3JYCLxAfkQjGbOwpH6xIQk51ZFpKJtVuuN7OS7dcB4lmzV0MaGo n4a9USPXJO7D3NgtnBvdk/AsbbPx4LKRLOeY45OQqPLXulh4ILXRrL3VHbMUpog/ 2RLZkQUuMfOO8nCSBRVe5qPAsB42TQLh/O6zR8Err9mccDh0krFF0UUl6vY3bTjW ng+W2AalKDTgCbsE72tA =xASl -----END PGP SIGNATURE----- --Apple-Mail=_09466805-1F4B-4B40-95DE-D9A1BF02154B--