Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPI overlay for MCP2515 on Debian KDE Plasma image #3

Open
Jamos1988 opened this issue May 8, 2023 · 4 comments
Open

SPI overlay for MCP2515 on Debian KDE Plasma image #3

Jamos1988 opened this issue May 8, 2023 · 4 comments

Comments

@Jamos1988
Copy link

Jamos1988 commented May 8, 2023

I am trying to enable SPI on the CM3. The software image I am using has rsetup, so the overlays are managed there. I can imagine it is not really built for the rk3566 but rather the ones that are in the Rock5B. So, naturally the SPI or CAN overlay is not present in the overlays I can choose so I need to make my own.

Specifically I am trying to enable the MCP2515 (which is present on the Waveshare CanHat) and I have found some online sources of people trying to do the same. So far I have found someone with a Radxa Zero, which has an rk3566 inside, that created a custom .dts

https://forum.radxa.com/t/mcp2515-overlays-for-zero/12409 and https://forum.radxa.com/t/how-to-use-canbus-on-zero-mcp2515/11601/7

I was wondering if this would be my go-to approach.
Anybody enabled the MCP2515 on the CM3, I would love to hear from you guys.

@RadxaYuntian
Copy link
Member

Hi Jamos,

I can imagine it is not really built for the rk3566 but rather the ones that are in the Rock5B. So, naturally the SPI or CAN overlay is not present in the overlays I can choose so I need to make my own.

This is because we haven't release an image for CM3 IO yet, so the testing team did not have a chance to validate various overlays to be compatible with this product.

So far I have found someone with a Radxa Zero, which has an rk3566 inside, that created a custom .dts

Radxa Zero doesn't use RK3566. However, we do have a MCP2515 overlay for ROCK 3C, which uses RK3566.

@Jamos1988
Copy link
Author

Thanks! I have tried the overlay you suggested by doing the following:

  • created mcp2515.dtbo file
  • pasted the overlay and saved
  • opened rsetup
  • choose overlays
  • choose manage 3rd party overlays
  • selected the dtbo file
  • rebooted
  • opened rsetup
  • manage overlays
  • the new overlay is not visible in the existing overlays

I then tested if SPI was enabled, by the following command:

lsmod | grep spi

However, nothing appears.
Anything I missed?

Thanks in advance.

@Jamos1988
Copy link
Author

Also tried by choosing another file format .dts however this is an invalid format.

@RadxaYuntian
Copy link
Member

That overlay is for ROCK 3C over SPI3. You will need to adapt it to your own board.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants