Skip to content

Comments

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

Merged
pelwell merged 1 commit intoraspberrypi:rpi-6.12.yfrom
KBeichler:rpi-6.12.y
Feb 21, 2026
Merged

overlays: mcp2515: Add support for spi3 and spi5#7255
pelwell merged 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 only supported 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.

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>
@pelwell pelwell merged commit 15c0556 into raspberrypi:rpi-6.12.y Feb 21, 2026
12 checks passed
@pelwell
Copy link
Contributor

pelwell commented Feb 21, 2026

Thanks!

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