Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

SPI Drivers for Cyclone V SoC Devkit

I'm a Linux newbie that needs to access an SPI device via one of the SPI Master HPS peripherals on the Cyclone V SoC. If the SPI is selected/activated via Qsys, and a new SD image generated via the EDS tools, can I expect the corresponding SPI driver to show up in the \dev directory? If so, where would I find doc on the driver API?

Thanks

--John

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Found the doc I was looking for in ..\embedded\embeddedsw\socfpga\sources\linux-socfpga\Documentation\spi. Has the driver API and some test source to illustrate the API. Source looks compile ready - makefile supplied as well.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello John,

    Were you able to get the SPI up and running? I have enabled the SPI options in the Qsys, however I do not see the SPI in location '/dev ' .

    Any pointers?