Skip to content

fix(rp2040): keep multi-lane SPI out of channel adapter - #3703

Merged
zackees merged 1 commit into
masterfrom
feat/rp2040-multilane-spi
Jul 16, 2026
Merged

zackees merged 1 commit into
masterfrom
feat/rp2040-multilane-spi

Conversation

@zackees

@zackees zackees commented Jul 16, 2026 •

Copy link
Copy Markdown
Member

Closes #3699\n\n## Summary\n- keep RP2040 PIO multi-lane SPI controllers on their dedicated MultiLaneDevice path\n- stop registering independent SpiHw2/4/8 controllers with the single-channel adapter\n- preserve the concrete dual/quad/octal implementations and transposition path\n\n## Validation\n- bash test tests/fl/channels/spi (pass)\n- bash test tests/fl/channels/adapters/spi_channel_adapter (pass)\n- bash compile rp2040 --examples Blink (fbuild daemon/zccache timeout; no source diagnostic)\n- bash lint (blocked by missing x86_64-pc-windows-msvc Rust target in the local environment)

Summary by CodeRabbit

  • Bug Fixes
    • Updated SPI channel prioritization to accurately identify true single-lane SPI hardware.
    • Removed multi-lane PIO SPI backends from unified SPI adapter registration, preventing unsupported controllers from being exposed.
    • Improved handling when no compatible SPI hardware controllers are available.

@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Jul 16, 2026
@zackees
zackees merged commit 0f29b2b into master Jul 16, 2026
9 checks passed
@coderabbitai

coderabbitai Bot commented Jul 16, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a3d073fa-60c3-4249-bb66-160dcd9025ca

📥 Commits

Reviewing files that changed from the base of the PR and between 03698b6 and 9b2ee7c.

📒 Files selected for processing (1)
  • src/platforms/arm/rp/rpcommon/init_channel_driver_rp.cpp.hpp

📝 Walkthrough

Walkthrough

The RP common SPI initialization now describes the unified adapter as single-lane hardware and removes discovery and registration of PIO-based SpiHw2, SpiHw4, and SpiHw8 controllers.

Changes

RP unified SPI adapter registration

Layer / File(s) Summary
Restrict unified SPI registration
src/platforms/arm/rp/rpcommon/init_channel_driver_rp.cpp.hpp
The priority documentation and includes are updated, and addSpiHardwareIfPossible no longer adds RP PIO-based multi-lane controllers to the unified adapter.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related issues

  • FastLED/FastLED 3700 — Also distinguishes true single-lane SPI channel selection from RP PIO-based multi-lane backends.
  • FastLED/FastLED 3659 — Covers the single-lane SPI0/SPI1 channel-driver direction reflected by this adapter change.

Possibly related PRs

  • FastLED/FastLED#3668 — Updates the same RP initialization path to move away from unified PIO multi-lane controller registration toward fixed SPI0/SPI1 handling.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/rp2040-multilane-spi

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

feat(rp2040): initialize multi-lane SpiHw2/4/8 channel controllers

1 participant