On 10/6/2014 12:01 PM, Ray Madigan wrote: > I have been struggling to find a way to map which gpio pins on the BBB map > to the specific bit in the R30 & R31 registers. I am probably looking for > the wrong thing, but I can't find many references. If they are fixed, > can't be remapped, how do I find what pins are mapped?
You have to configure the pinmux for the pin(s) you want. Remember to enable the input driver, as well (also in the pinmux register). You can do this with a custom device tree overlay or by using my "universal" cape overlay (with kernel 3.8, partly supported for kernel 3.14) and the config-pin utility. On a recent RCN Debian image, just (for instance): config-pin P8.15 pruin ...to connect P8.15 to PRU 0, R31, bit 15. You may also find the pinmux spreadsheet useful, if you don't want to crawl through the TI data-sheet for the AM3358 and the BeagleBone SRM: https://github.com/cdsteinkuehler/beaglebone-black-pinmux/blob/hal_pru_generic/pinmux.ods -- Charles Steinkuehler [email protected] -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
