Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 May 2014 23:00:28 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Rui Paulo <rpaulo@felyko.com>
Cc:        freebsd-arm@freebsd.org, "freebsd-embedded@freebsd.org" <freebsd-embedded@freebsd.org>, Luiz Otavio O Souza <loos.br@gmail.com>
Subject:   Re: BeagleBone-black GPIO pins use on FreeBSD
Message-ID:  <88BF1D4E-001B-44F9-BEEB-7846BDF6A2E7@bsdimp.com>
In-Reply-To: <5C8FC523-0FB1-4C84-8276-D297373874BB@felyko.com>
References:  <CAJ8CS7qnBbC=w=uoUb2XYm-h71u5N1oFvxVODgRTZyh_xdm=Lw@mail.gmail.com> <5C8FC523-0FB1-4C84-8276-D297373874BB@felyko.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <rpaulo@felyko.com> wrote:

> On May 21, 2014, at 20:45, Luiz Otavio O Souza <loos.br@gmail.com> =
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?88BF1D4E-001B-44F9-BEEB-7846BDF6A2E7>