← Back to Pull requests

hw/arm: add RK3588 IOC pin multiplexing for ROCK 5B #59

Closed
unknown closed this pull request without merging on Dec 01, 2026 13:56 UTC
View on GitHub
unknown unknown commented on Nov 29, 2026 20:01 UTC
Author

Implements https://github.com/missionhub-oss/mfcp/issues/163.

Summary:

  • add the RK3588 IOC model for eight IOC register windows, including HIWORD field writes, reset values, IOMUX, pull, drive, IE, SMT and PDIS semantics;

  • route GPIO, PWM, UART, SPI and I2C controller signals through IOC pads;

  • add ROCK 5B 40-pin, fan, board pull-up and external-driver resolution;

  • preserve reset and migration behavior for IOC, controller line state, pads and board lines;

  • cover all implemented PWM, UART, I2C and SPI routes plus the complete mapped 40-pin header with qtest.
  • Model boundaries:

  • UART uses opt-in logical wire lines while retaining the standard DW8250 chardev byte stream;

  • I2C remains transaction-level and models active-low open-drain activity rather than a cycle-accurate waveform;

  • SPI exposes digital pin activity and pad-level MISO sampling, not a full electrical waveform;

  • drive strength, Schmitt thresholds, I2C clock stretching/arbitration, and cross-pin transaction conflict diagnostics remain out of scope.
  • Validation:

  • aarch64-softmmu build passes;

  • 11 affected Meson suites pass with 132 subtests;

  • rk3588-pinmux-test passes 24/24;

  • real Zephyr rockchip_pinctrl_integration passes 10/10 using the generic loader, with no Zephyr-specific QEMU source;

  • git diff --check passes;

  • checkpatch reports 0 errors for all 10 commits; only routine MAINTAINERS prompts are emitted for new files already covered by existing F: patterns.
  • All commits contain DCO sign-offs from the author and mentor.

    Diff: 190 lines (+142 / -48) across 2 files Reviewer: zevorn Review duration: 2514m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 190 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.314
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #59"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 35.9% (MEDIUM) · Higher = larger blast radius
    35.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.2% · Safe to merge
    14.2%