01-31-2018, 03:28 PM
The default config of the pins/GPIOs on the headers is defined in the so called Device Tree (DT). The DT describes the whole SoC and it's connections with their configuration, including the pins. Both the bootloader (u-boot in this case) and the Linux kernel load the DT from a binary file on boot. You can edit the DT source file with a text editor to make changes, and then use the device tree compiler (dtc) to generate a new binary DT blob.
For example the DT source for the A64 with SOPine module and baseboard:
https://git.kernel.org/pub/scm/linux/ker...si?h=v4.15 (SoC DT)
https://git.kernel.org/pub/scm/linux/ker...ts?h=v4.15 (SOPine module DT)
https://git.kernel.org/pub/scm/linux/ker...si?h=v4.15 (SOPine baseboard DT)
You can find a lot of tutorials online about how DT works...
GPIO Interrupts are possible and also configured via DT...
There are no analog inputs on A64...
For example the DT source for the A64 with SOPine module and baseboard:
https://git.kernel.org/pub/scm/linux/ker...si?h=v4.15 (SoC DT)
https://git.kernel.org/pub/scm/linux/ker...ts?h=v4.15 (SOPine module DT)
https://git.kernel.org/pub/scm/linux/ker...si?h=v4.15 (SOPine baseboard DT)
You can find a lot of tutorials online about how DT works...
GPIO Interrupts are possible and also configured via DT...
There are no analog inputs on A64...
Come have a chat in the Pine IRC channel >>