PINE64
Sopine Complete Guide - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64-LTS / SOPINE Compute Module (https://forum.pine64.org/forumdisplay.php?fid=66)
+--- Forum: Linux on PINE A64-LTS / SOPINE (https://forum.pine64.org/forumdisplay.php?fid=69)
+--- Thread: Sopine Complete Guide (/showthread.php?tid=5631)



Sopine Complete Guide - parmleyhunt - 01-30-2018

Is there any available documentation on further expanding the Sopine baseboard and/or the GPIO pi-2 and euler bus I have an available pin out list and have successfully tested in and out via custom script. As far as i can search there is not actual documentation, i would not consider myself a noob but going through a 207 page specification and only finding information that doesnt have anything todo with what i want to know. If there is something i would like the link, or if anyone is also interested in this I would be willing to collaborate to make a "plain english" documentation source


RE: Sopine Complete Guide - tllim - 01-30-2018

(01-30-2018, 09:41 AM)parmleyhunt Wrote: Is there any available documentation on further expanding the Sopine baseboard and/or the GPIO pi-2 and euler bus I have an available pin out list and have successfully tested in and out via custom script. As far as i can search there is not actual documentation, i would not consider myself a noob but going through a 207 page specification and only finding information that doesnt have anything todo with what i want to know. If there is something i would like the link, or if anyone is also interested in this I would be willing to collaborate to make a "plain english" documentation source

The SoPine and baseboard information located at PINE64 wiki site: http://wiki.pine64.org/index.php/PINE_A64-LTS/SOPine_Main_Page

If any further information is needed, I may able t supply on next week after FOSDEM event on this weekend.

We are welcome your collaborate on the PINE64 wiki and the wiki page already opened to forum user for participation.


RE: Sopine Complete Guide - parmleyhunt - 01-31-2018

Ive done a little bit of tinkering modifying circuits but have never worked with a processor before none the less an a64, the first question i have is how much of the reserved pins actually have default behaviour, and second does the a64 support gpio interrupts, and third is it possible to convert a in pin to an analog in


RE: Sopine Complete Guide - xalius - 01-31-2018

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/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi?h=v4.15 (SoC DT)
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts?h=v4.15 (SOPine module DT)
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi?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...


RE: Sopine Complete Guide - parmleyhunt - 02-01-2018

So the DT has to be modified before the edge property of the syfs will become available