Skip to content

Comments

overlays: mcp2515: Add support for spi3 and spi5#7254

Closed
KBeichler wants to merge 1 commit intoraspberrypi:rpi-6.12.yfrom
KBeichler:rpi-6.12.y
Closed

overlays: mcp2515: Add support for spi3 and spi5#7254
KBeichler wants to merge 1 commit intoraspberrypi:rpi-6.12.yfrom
KBeichler:rpi-6.12.y

Conversation

@KBeichler
Copy link
Contributor

This PR extends the mcp2515 overlay to support the spi3 and spi5 buses, which are available on newer Raspberry Pi models like the Pi 4 and Pi 5.

Previously, the overlay was hardcoded to only support SPI0, SPI1, and SPI2. This update:

  • Adds the necessary __dormant__ fragments to disable the default user-space spidev drivers on buses 3 and 5.
  • Updates the __overrides__ routing logic so the MCP2515 can be easily targeted via config.txt (e.g., dtoverlay=mcp2515,spi3-0,interrupt=25).
  • Updates the README to reflect the newly available parameters.

Tested and verified working on a Raspberry Pi 5.

@KBeichler KBeichler closed this Feb 20, 2026
@KBeichler KBeichler reopened this Feb 20, 2026
@pelwell
Copy link
Contributor

pelwell commented Feb 20, 2026

Please don't change the formatting/whitespace - it makes it difficult to see what has really changed. If you must, make it a separate whitespace-only commit.

Extend the mcp2515 overlay to support the spi3 and spi5 buses available
on newer Raspberry Pi hardware. This adds the required dormant fragments
to disable the default spidev drivers, updates the __overrides__ routing
logic, and updates the README accordingly.

Signed-off-by: Kevin Beichler <k.beichler@gmx.com>
@KBeichler
Copy link
Contributor Author

Sorry about that, I changed the whitespaces back to tabs

@KBeichler KBeichler closed this Feb 20, 2026
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

Successfully merging this pull request may close these issues.

2 participants