Other Parts Discussed in Thread: AM6548, TLV320AIC3106
Hi Forum,
I am trying to configure GPIO pins as inputs or outputs, and then write to or read from them using simple command-line utilities in Linux. I am using the Processor SDK for Linux, 06.00.00.07.
Can someone provide example of configuring pins for inputs (possibly with pull-ups or pull-downs, or floating), and as outputs from the command line? And some examples for then reading or writing to the configured pins from the command line?
Also, I know that there is some sort of mapping between Linux GPIO numbers and the physical GPIO pins on the AM6548. Can anyone explain where this mapping is described? For examples, there are various processor sections for GPIO0, GPIO1, WKUP_GPIO, etc., but I have no idea how these pins correspond to Linux GPIO integer values.
Some concrete examples (or a pointer to a good reference on the topic) would be greatly appreciated. Our custom board is largely based on the EVM for the AM65x, but of course we have some pins that are dedicated to GPIO for various inputs and outputs. We have a couple of outputs connected to drive LEDs, and just getting a sanity check on being able to turn those on and off would be a huge confidence boost. Likewise, connecting a logic high or logic low to a GPIO input and being able to read it would greatly increase confidence.
I'd like to do this for all of the GPIO we have available on our board, which is why I am requesting the mapping between the Linux GPIO number and the actual GPIOx_nn pin on the AM6548.
If there is an easier way to do this, I am certainly open to suggestions. I am a relative novice with embedded Linux, and we are just bringing our first AM6548 design to life.
Thanks for your time and help!
Scott