overlays: mcp2515: Add support for spi3 and spi5#7254
Closed
KBeichler wants to merge 1 commit intoraspberrypi:rpi-6.12.yfrom
Closed
overlays: mcp2515: Add support for spi3 and spi5#7254KBeichler wants to merge 1 commit intoraspberrypi:rpi-6.12.yfrom
KBeichler wants to merge 1 commit intoraspberrypi:rpi-6.12.yfrom
Conversation
Contributor
|
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>
58e355c to
f4be9f7
Compare
Contributor
Author
|
Sorry about that, I changed the whitespaces back to tabs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR extends the
mcp2515overlay to support thespi3andspi5buses, 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:
__dormant__fragments to disable the default user-spacespidevdrivers on buses 3 and 5.__overrides__routing logic so the MCP2515 can be easily targeted viaconfig.txt(e.g.,dtoverlay=mcp2515,spi3-0,interrupt=25).Tested and verified working on a Raspberry Pi 5.