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

[-- Attachment #1 --]

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:
> 
>> Hi,
>> 
>> 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.
>> 
>> It has all the pins used for ADC (AIN), I2C, PWMs and MMC1.
>> 
>> Please let me know if i have missed something.
>> 
>> I hope this saves some time for people who is going to work with GPIO.
> 
> 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.:
> 
> i2c1 { 
> 	location = "SDA header P9 pin 18, SCL header P9 pin 17";
> };
> 
> That would print:
> 
> ti_i2c1: SDA header P9 pin 18, SCL header P9 pin 17
> 
> 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’s no standard way to communicate these things. So the strongest we could do for this non-standard property is “freebsd,location”, even though it is a strong candidate for having it without since that describes hardware.  I’d squirrel this away in the dev sysctl tree though, since otherwise the boot will get rather uncomfortably chatty.

Warner

[-- Attachment #2 --]
-----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-----

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