Is SPI Working? - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4) +--- Forum: Pine A64 Hardware, Accessories and POT (https://forum.pine64.org/forumdisplay.php?fid=32) +---- Forum: POT modules (https://forum.pine64.org/forumdisplay.php?fid=8) +---- Thread: Is SPI Working? (/showthread.php?tid=1297) |
RE: Is SPI Working? - longsleep - 07-17-2016 @martinayotte - did you disable uart3 to get spi1 going (they both use PD0 pin and thus conflict). With the fixed memor region for gmac spi0 works just fine and i am going to enable it. To enable spi1 i would have to disable uart3 or change the pins - suggestions? RE: Is SPI Working? - xalius - 07-17-2016 Would this be a usecase for devicetree overlays? What would be needed to support those? RE: Is SPI Working? - longsleep - 07-17-2016 Yes, but a newer Kern el is required for device tree overlay support. I do not see this to come to the Pine64 with the BSP Kernel ever. You will need mainline for that. RE: Is SPI Working? - martinayotte - 07-17-2016 (07-17-2016, 12:05 PM)longsleep Wrote: @martinayotte - did you disable uart3 to get spi1 going (they both use PD0 pin and thus conflict). With the fixed memor region for gmac spi0 works just fine and i am going to enable it. To enable spi1 i would have to disable uart3 or change the pins - suggestions? Yes, but not only UART3, UART4 also since SPI1 is using those 4 pins. (07-17-2016, 01:04 PM)longsleep Wrote: Yes, but a newer Kern el is required for device tree overlay support. I do not see this to come to the Pine64 with the BSP Kernel ever. You will need mainline for that. Even Mainline doesn't have it yet ... Patches from Pantelis Antoniou have been submitted several times, first time in 2013, and now after several versions, still not there. I've personally struggled to get that into Armbian 4.6.2, comparing Raspberry, Beaglebone and CHIP implementations, and pure coincidence, I've finally succeeded yesterday. Now, time to develop several overlay other the simple tests I did until now. Maybe I will start some kind of backport into PineA64 later, depending how much code differ ... RE: Is SPI Working? - User 3332 - 07-18-2016 (07-17-2016, 10:28 AM)martinayotte Wrote: You don't need CONFIG_SPI_SUN4I/CONFIG_SPI_SUN6I, but you need CONFIG_SPI_SUNXI=y Do you guys know if this will make it back into a kernel update, or do you have instructions on how to implement this? I need both Ethernet and SPI working for a project. Any help/advice would be greatly appreciated! Eric RE: Is SPI Working? - martinayotte - 07-18-2016 Yes, longsleep already merged my fix for the next builds. But if you are in hurry, and since it is in only in the DTB, it is easy to fix it yourself using dtc compiler. RE: Is SPI Working? - User 3332 - 07-18-2016 (07-18-2016, 07:36 AM)martinayotte Wrote: Yes, longsleep already merged my fix for the next builds. Thanks for the quick reply. I will wait for the next build. RE: Is SPI Working? - martinayotte - 07-18-2016 (07-17-2016, 02:34 PM)martinayotte Wrote: longsleepYes, but a newer Kern el is required for device tree overlay support. I do not see this to come to the Pine64 with the BSP Kernel ever. You will need mainline for that. Unfortunately, such backport seem to be ugly ! Even I wish to get it done, it will probably take to much effort. I'm throwing the towel for now ... RE: Is SPI Working? - alevecchio - 07-18-2016 (07-18-2016, 07:36 AM)martinayotte Wrote: Yes, longsleep already merged my fix for the next builds. Hi Martin. I was reading an article in Adafruit's website about compile a DTB and does not look so hard. Maybe i can learnd and do it myself. Can you say the files i need to change and compile? Article about Beaglebone Black Device Tree Overlay: https://learn.adafruit.com/introduction-to-the-beaglebone-black-device-tree/overview Thanks RE: Is SPI Working? - adamw - 07-19-2016 Great work guys! Just so I'm clear, will both SPI0 and SPI1 be working in the next kernel or only SPI0? |