Hello! I am running Debian Linux on an SoC consisting of a Rocket CPU and related peripherals, which is in turn running on the Arty A7-100T board. I wish to add the Pmod CAN peripheral to the FPGA and access the CAN controller through Linux. I have incorporated the Pmod CAN IP in my SoC block design, and was wondering what options for Linux drivers I have.
The drivers provided alongside the IP are, as I understand, baremetal drivers. Qualitatively, how difficult would it be to port the driver to Linux and/or is it even a feasible option?
To the best of my understanding, another option is to simply treat the Pmod as a SPI device and write software to manipulate the CAN controller via SPI. Has this been done before and/or is there any reference code for this?
Most importantly, the Linux kernel has a SPI driver for the MCP25625. Is this driver compatible with the Pmod CAN peripheral?
Question
Ahmer Raza
Hello! I am running Debian Linux on an SoC consisting of a Rocket CPU and related peripherals, which is in turn running on the Arty A7-100T board. I wish to add the Pmod CAN peripheral to the FPGA and access the CAN controller through Linux. I have incorporated the Pmod CAN IP in my SoC block design, and was wondering what options for Linux drivers I have.
The drivers provided alongside the IP are, as I understand, baremetal drivers. Qualitatively, how difficult would it be to port the driver to Linux and/or is it even a feasible option?
To the best of my understanding, another option is to simply treat the Pmod as a SPI device and write software to manipulate the CAN controller via SPI. Has this been done before and/or is there any reference code for this?
Most importantly, the Linux kernel has a SPI driver for the MCP25625. Is this driver compatible with the Pmod CAN peripheral?
Thank you in advance!
Edited by Ahmer RazaLink to comment
Share on other sites
6 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now