utility for pin in BBB: PX.Y --> pin_mode, pin_name

Russell Haley russ.haley at gmail.com
Wed Aug 29 16:26:49 UTC 2018


Does this help?
https://www.freebsd.org/cgi/man.cgi?gpio

Russ

On Wed, Aug 29, 2018 at 6:13 AM Nicola Mingotti <nmingotti at gmail.com> wrote:

>
> Hi,
>
> I would like to know if such utility already exists, if not I
> can start to program it.
>
> The script should work like the example below, that is,
> it gives the list of all pins (starting from their physical position on
> the board),
> their mode, and so their associated name/function.
>
> #> pinfunc
> ----------------------------
> P9.1 --
> P9.2 --
> ........
> P9.21 MODE-3 ehrpwm0B
> P9.22 MODE-3 ehrpwm0A
> P9.23 MODE-7 gpio.1.17
> .....
> ---------------------------
>
> The only way i know to read the pin mode is by direct memory
> access, as done in "devmem2". If you know other ways let me know.
>
> I saw there is "man 9 fdt_pinctrl" but it seems more for writing pin
> configuration than to read it.
>
> bye
> Nicola
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> --------------------------
> Dr. Nicola Mingotti
> R&D - Borghi Srl
> CTO - BondInsider
> --------------------------
>
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
>


More information about the freebsd-arm mailing list