Skip to content

feat: driver/sdwire: add Badgerd SDWire3 auto-detection and macOS support#794

Draft
mangelajo wants to merge 1 commit into
mmahut/sdwirefrom
mmahut/sdwire3
Draft

feat: driver/sdwire: add Badgerd SDWire3 auto-detection and macOS support#794
mangelajo wants to merge 1 commit into
mmahut/sdwirefrom
mmahut/sdwire3

Conversation

@mangelajo

Copy link
Copy Markdown
Member

Summary

  • Add auto-detection and mux control for Badgerd SDWire3 (0x0BDA:0x0316) alongside existing FT200X-based SD Wire devices, without a separate driver class or config model selector.
  • Implement SDWire3 switching via kernel mass-storage driver attach/detach + USB reset, with macOS storage discovery via ioreg when system_profiler returns no USB tree.
  • Document supported device variants, shared config fields, backwards compatibility, and macOS requirements (including sudo for SDWire3 mux switching).

Stacked on #748.

Test plan

  • make pkg-test-jumpstarter-driver-sdwire
  • Verified SDWire3 init/query on macOS with connected hardware (0x0BDA:0x0316/dev/disk4)
  • Verify SDWire3 DUT/host switching on macOS with sudo uv run jmp shell ...
  • Confirm existing FT200X / programmed sd-wire behaviour unchanged on Linux

Made with Cursor

…port

Extend the SDWire driver to detect SDWire3 (0x0BDA/0x0316) alongside existing
FT200X-based devices, using kernel driver attach/detach for mux switching and
ioreg-based storage discovery on macOS when system_profiler is empty.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 05015714-d1e4-43f8-af5a-64550e6d6c1e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch mmahut/sdwire3

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 and usage tips.

@mangelajo mangelajo marked this pull request as draft June 15, 2026 12:41
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.

1 participant