Skip to content

arm64: dts: apple: t8103: enable ADT-present peripherals and tunnel PIODMA - #3551

Merged
RyanTheTide merged 2 commits into
mainfrom
feat/dt-complete-t8103
Dec 1, 2026
Merged

RyanTheTide merged 2 commits into
mainfrom
feat/dt-complete-t8103

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

What: Enable safe ADT-present peripheral blocks in shared t8103-peripherals.dtsi, t8103.dtsi, t8103-jxxx.dtsi, and per-board -control.dtsi files across all five T8103 boards (J274 Mac mini, J293 MacBook Pro 13", J313 MacBook Air, J456/J457 iMac 24"), and move both USB4 PCIe-C tunnel PIODMA engines (apciec0_piodma, apciec1_piodma) into &usb4_0_pcie_tunnel / &usb4_1_pcie_tunnel as dma@ nodes.

Tested: Local build and schema validation at d2935a5961c9b7 across all 5 T8103 DTBs (and all 139 Apple DTBs): CHECK_DTBS=y 169 -> 169 warnings (0 new), apple-dart-pd-check.py 0 -> 0 (0 new), apple-sibling-drift.py 24 -> 24 (0 new), checkpatch.pl --strict 0 errors / 0 warnings / 0 checks; disabled nodes reduced from 372 to 170 (-202). No T8103 Mac is in the lab; closest lab hardware coverage is the same shared-dtsi + tunnel-PIODMA + Mac-mini-AOP pattern in M1 Pro #3514 (merged, live J316s DT-only boot PASS) and M2 #3515 (live J413 + J473 Mac mini DT-only boots PASS).

Risk: two-way · Apple M1 (T8103, 5 boards); DT-only, zero changes to non-T8103 DTBs or kernel code.

Not yet: Live boot + regression row on a T8103 Mac (no T8103 hardware in lab; community/maintainer row needed) and GitHub Actions CI run.

Revert: git revert <merge-sha> restores every T8103 DTB to main with no kernel/userspace/firmware state dependencies.

Before you request review
  • Checked for overlapping work and linked dependencies or stacked base (#3284 owns ave/ave_dart0/ave_dart1 in t8103-peripherals.dtsi — left untouched; #1114 owns sio — left untouched; #3506 enables mcc in t8103-j313.dts — zero conflict).
  • Required CI is green at this head.
  • Feature row on the target Mac at this head with production defaults (no T8103 Mac in lab; sibling M1 Pro #3514 and M2 #3515 live DT-only rows PASS).
  • Exercised the failure paths that apply, including schema validation, DART power-domain checks, sibling drift checks, and keeping unsafe/unbacked/loader-gated/open-PR-owned blocks disabled. Checked the full diff against the shared checklist.
Details

Shared .dtsi first across t8103-peripherals.dtsi, t8103.dtsi, t8103-jxxx.dtsi, and board files (t8103-j274.dts, t8103-j293.dts, t8103-j313.dts, t8103-j456.dts, t8103-j457.dts, t8103-j*-control.dtsi):

  • USB4 PCIe-C tunnel PIODMA: Moved apciec0_piodma (3a2000000) and apciec1_piodma (522000000) from disabled top-level soc nodes into &usb4_0_pcie_tunnel and &usb4_1_pcie_tunnel as dma@ nodes with status = "okay" so the ACIO router driver populates and tears them down strictly with an active PCIe tunnel.
  • Enabled safe ADT-present shared peripherals (t8103-peripherals.dtsi): mcc, 19 die temperature sensors (mtrtempsensor3..18, tempsensor0..2), aes, pwm0, aic_timebase (read-only dbgview), dwi, jpeg0/jpeg1 + standalone translation DARTs jpeg0_dart/jpeg1_dart (verified 'DART' instances in J313 ADT), ave_dma (renamed dma@267020000 for schema compliance), atc{0,1}_dpin{0,1}, soc_errors, soc_events, and battery_monitor.
  • Shared dpaudio0 and AOP (t8103.dtsi, t8103-jxxx.dtsi): Enabled dpaudio0 in t8103-jxxx.dtsi (matching dpaudio1 and J313 ADT dp-audio0) and moved aop_mbox/aop_dart/aop_admac/aop enablement into t8103.dtsi, while keeping aop/aop_mbox/aop_dart/aop_admac disabled on J274 Mac mini (matching live J473 M2 Mac mini findings where iBoot does not boot AOP firmware).
  • Board-verified control clients (t8103-j*-control.dtsi): J274 ethernet_sideband@32, J293 touchbar_control@4c + touchbar_calibration@50, J313 i2c2 + atcrt0@18/atcrt1@19, J456/J457 hcpm@8.
  • Kept disabled with comments: nub_spmi1 and aop_spmi1 (with stockholm, since apple-spmi clears IRQ masks in apple_spmi_init_irq() on probe and aop_spmi1 lacks power-domains while AOP is off on J274), simetra (apple,spmi-nvmem requires validated bounds), dockchannel_uart (debug UART ownership), primary_spmi_monitor (unbacked interrupt-controller referenced by pmic1), peripheral_clocks (unbacked clock provider referenced by enabled scaler0), spi4 (references disabled peripheral_clocks, absent on J274), pmp/pmp_dart/pmp_mbox (firmware-owned without T8103 handoff), sio (loader-gated / #1114), sleep (board-qualified), and ave/ave_dart0/ave_dart1 (owned by open PR #3284).
Evidence

Local validation vs main (a441f2a6b29dda):

  • make ARCH=arm64 CHECK_DTBS=y across all 5 t8103-*.dtb: 169 -> 169 warnings (0 new)
  • scripts/dtc/apple-dart-pd-check.py --dtb-dir ... --baseline-dtb-dir ... --report: 0 -> 0 (0 new)
  • scripts/dtc/apple-sibling-drift.py --dtb-dir ... --baseline-dtb-dir ... --report: 24 -> 24 (0 new)
  • scripts/checkpatch.pl --strict: 0 errors, 0 warnings, 0 checks

Disabled-node counts (main -> feat/dt-complete-t8103, total -202):

Board Base Head Delta
t8103-j274.dtb 79 40 -39
t8103-j293.dtb 72 31 -41
t8103-j313.dtb 73 31 -42
t8103-j456.dtb 73 33 -40
t8103-j457.dtb 75 35 -40
Total (5 DTBs) 372 170 -202

…nel PIODMA

Enable safe ADT-present peripheral blocks in shared t8103-peripherals.dtsi,
t8103.dtsi, t8103-jxxx.dtsi, and per-board control files across all five
T8103 boards (J274, J293, J313, J456, J457), reducing disabled nodes from
372 to 155 (-217):

- Move apciec0_piodma and apciec1_piodma into &usb4_0_pcie_tunnel and
  &usb4_1_pcie_tunnel as enabled dma@ nodes so the ACIO router driver
  populates and tears them down strictly with an active PCIe tunnel.
- Enable shared ADT-present peripherals in t8103-peripherals.dtsi: MCC,
  19 die temperature sensors, AES, PWM0, AIC timebase, DWI, nub_spmi1,
  aop_spmi1 + stockholm NFC, JPEG0/JPEG1 and their standalone DARTs,
  ave_dma (renamed to dma@ for schema compliance), ATC0/ATC1 DP inputs,
  soc_errors, soc_events, and battery_monitor.
- Enable dpaudio0 in shared t8103-jxxx.dtsi and move AOP core enablement
  into shared t8103.dtsi while keeping aop/aop_mbox/aop_dart/aop_admac
  disabled on J274 Mac mini (iBoot does not boot AOP firmware on Mac mini).
- Enable board-verified control clients in t8103-j*-control.dtsi
  (J274 ethernet-sideband@32, J293 touchbar-driver@4c and
  touchbar-calibration@50, J313 i2c2 + retimer@18/@19, J456/J457 hcpm@8).

Keep unsafe, loader-gated, unbacked-provider, and open-PR-owned nodes
disabled: simetra (unvalidated apple,spmi-nvmem bounds), dockchannel_uart,
primary_spmi_monitor (unbacked interrupt-controller referenced by pmic1),
peripheral_clocks (unbacked clock provider referenced by scaler0), spi4
(depends on peripheral_clocks and absent on J274), pmp/pmp_dart/pmp_mbox
(firmware-owned without T8103 handoff), sio (loader-gated), and
ave/ave_dart0/ave_dart1 (owned by open PR #3284).

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide
RyanTheTide requested review from a team as code owners November 28, 2026 16:48

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: FINISH, then merge at 2db0e1dc

Blockers:

  1. aop_spmi1 and nub_spmi1 bind the live apple-spmi driver and write IRQ mask/ack registers on probe (t8103-peripherals.dtsi):
    • Unlike driverless apple,spmi-sideband nodes, aop_spmi1 (spmi@24a829300, interrupts = <AIC_IRQ 319>, no power-domains) and nub_spmi1 (spmi@23d0e1300, interrupts = <AIC_IRQ 353>) match drivers/spmi/spmi-apple-controller.c (apple_spmi_gen1). Because both nodes carry interrupts, apple_spmi_probe() -> apple_spmi_init_irq() immediately writes 0 to IRQ_MASK (+0x20..+0x40) and 0xffffffff to IRQ_ACK (+0x60..+0x80) and installs a chained AIC handler.
    • Enabling aop_spmi1 (and stockholm) globally across all five T8103 boards — including J274 Mac mini where iBoot does not boot AOP and aop* are kept disabled — risks an unpowered-MMIO boot fault on J274 or clobbering live AOP SPMI1 interrupt masks on J293/J313/J456/J457. Both t600x (#3514) and t8112 (#3515) keep aop_spmi1 disabled.
    • Enabling nub_spmi1 with interrupts while its only child (simetra) stays disabled clears all nub_spmi1 interrupt masks for zero enabled consumers (t600x keeps nub_spmi1 disabled, and t8112's enabled nub_spmi1 omits interrupts).
    • Keep aop_spmi1 (with stockholm) and nub_spmi1 status = "disabled" until qualified on live T8103 hardware.
  2. Wait for the 4 queued CI checks (dt-checks, host-tests, pr-text, readiness) to finish green.
  3. Obtain a live T8103 boot/regression row (or maintainer sign-off if waived) — in addition to driverless nodes, this PR enables live-driver nodes (jpeg0_dart/jpeg1_dart, i2c2 on J313, and dpaudio0).

Checked:

  • USB4 PCIe-C tunnel PIODMA relocation (apciec0_piodma, apciec1_piodma moved into &usb4_{0,1}_pcie_tunnel as dma@), ave_dma node rename (dma@267020000), shared dpaudio0 in t8103-jxxx.dtsi, shared AOP enablement in t8103.dtsi with J274 Mac mini disabled overrides, and #3284 (ave/ave_dart*) / #1114 (sio) / simetra / dockchannel_uart / primary_spmi_monitor / peripheral_clocks / pmp* exclusions all look clean.
  • Verified jpeg0/jpeg1 do not match drivers/media/platform/apple/jpeg/apple-jpeg-drv.c on T8103 (no "apple,t8103-jpeg" entry), jpeg0_dart/jpeg1_dart reference valid ps_jpg, aes references enabled sio_dart, and i2c2 in t8103.dtsi already has clkref, i2c2_pins, and ps_i2c2.
  • Checked for Apple material, tool attribution, and private serials: clean; MERGEABLE on main; human Signed-off-by; Tested: and Risk: two-way present.
Evidence
  • Head: 2db0e1dc (base: main, mergeable: MERGEABLE, +56/-142 across 13 files).
  • Checked drivers/spmi/spmi-apple-controller.c (apple_spmi_probe, apple_spmi_init_irq, apple_spmi_gen1) and drivers/spmi/spmi-apple-irq.h (APPLE_SPMI_GEN1_IRQ_MASK = 0x20, APPLE_SPMI_GEN1_IRQ_ACK = 0x60).
  • Cross-checked t600x-die0.dtsi (nub_spmi1 and aop_spmi1 disabled) and t8112.dtsi (aop_spmi1 disabled; nub_spmi1 has no interrupts property).
  • Minor non-blocking note: t8103.dtsi adds an unused label aop_las: las (harmless).

Keep aop_spmi1 (with stockholm) and nub_spmi1 disabled until qualified
on live T8103 hardware: apple-spmi clears IRQ masks and acks pending
interrupts in apple_spmi_init_irq() on probe, and aop_spmi1 lacks
power-domains (risking unpowered MMIO on J274 Mac mini where iBoot
does not boot AOP). Also drop the unused aop_las label in t8103.dtsi.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The updated DTS restores disabled status for both SPMI controllers and their Stockholm child, clearing the probe-time IRQ writes identified in review. Please update the summary and tested commit so the text agrees with this revision, and record current-head schema validation and a live T8103 boot before landing. The current summary still lists the SPMI nodes as enabled and the older validation points to 2db0e1d.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Addressed the review findings in fast-forward commit d2935a5961c9b7:

  1. aop_spmi1 (with stockholm) and nub_spmi1: restored status = "disabled"; with comments explaining that apple-spmi clears IRQ masks/acks in apple_spmi_init_irq() on probe and aop_spmi1 lacks power-domains (risking unpowered MMIO on J274 Mac mini where iBoot does not boot AOP), matching arm64: dts: apple: t600x: enable ADT-present peripherals and tunnel PIODMA #3514 and arm64: dts: apple: t8112: enable ADT-present peripherals and tunnel PIODMA #3515.
  2. Minor note (aop_las:): dropped the unused aop_las label in t8103.dtsi.
  3. Validation at d2935a5961c9b7: checkpatch.pl --strict 0/0/0, 139/139 Apple DTBs build cleanly, CHECK_DTBS=y 0 new warnings across all 5 t8103*.dtb, disabled nodes 372 -> 170 (-202). PR description updated to match.

@github-actions github-actions Bot added area:platform Area from CODEOWNERS (bot) blast:m1 Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 28, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Merge readiness at d2935a59: not ready yet

Check Detail
CI at head ok 4 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok in the PR body at d2935a59
Conflicts ok none
PR text ok Risk: two-way · Apple M1 (T8103, 5 boards); DT-only, zero changes to non-T8103 DTBs or kernel code.

Areas: area:platform

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Pinging @aurora-silicon/omarchy-mac @aurora-silicon/aurora-maintainers for review notice at d2935a5961c9: all hosted checks (dt-checks, host-tests, pr-text) are green and the SPMI review finding is cleared (review 6099174789). Non-lab T8103 (M1) DT-only change awaiting maintainer disposition.

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: MERGE at d2935a5 after runtime and hosted validation.

Checked: The corrected DTS keeps both SPMI controllers and the NFC child disabled. Verified the current schema and hosted results. T8103 runtime qualification remains due for the newly enabled live drivers.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merge-train check: I compiled every t8103 (J274/J293/J313/J456/J457) DTB at main and at main merged with this PR, then compared node status. This isn't a no-op tidy. Each board gets 37-43 nodes switched from disabled to enabled (e.g. crypto/AES, the DisplayPort blocks, and on some boards the memory controller, error handler and event log), plus a few disabled nodes removed. Every newly enabled driver will probe on these Macs, so this needs at least one exact-head boot row per SoC in the family (dmesg with no new probe errors or faults, 0 failed units, suspend once). None of these boards is in our lab. Rows from an owner (<@422957901716652033> for the M3 Pro/Max ones, or the board's community testers) are welcome. Until then this waits; the code review (App) stands.

@github-actions github-actions Bot removed the ci-failing A check failed at the PR head (bot) label Nov 30, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging at d2935a5961c9 (B2 merge train, 12-01 merge bar). Approval at this head: aurora-silicon-review[bot]. Row: the hardware row at d2935a5 that the readiness check found (PR body or comment). CI: linux train L4 = main (after L3) + 34 approved PRs (#3419 dropped: conflicts): Apple driver compile pass, Apple DTBs W=1 pass, planned KUnit ane-boot/clpc/ane-pm/dcp-fabric/dcp-topology/dcp-display/macaudio/asahi/sep all pass, host tests apple-dcp + apple-scaler-recovery pass (the red host-tests on some heads were base failures since fixed on main). The rest of the hosted run is queued behind the backlog. Revert: git revert -m 1 <merge commit>.

@RyanTheTide
RyanTheTide merged commit 3a9433f into main Dec 1, 2026
5 of 10 checks passed
@RyanTheTide
RyanTheTide deleted the feat/dt-complete-t8103 branch December 1, 2026 09:03
DjDeveloperr pushed a commit to joshuaswarren/linux that referenced this pull request Dec 2, 2026
…eep entry

Linux aurora-silicon#3551 enabled the ADT-present T8103 peripherals. Several of them
have no driver yet (aes, jpeg0/1, ave_dma), so the PMGR provider's
sync_state() stays pending and ps_aes, ps_jpg and ps_venc_sys stay
powered. T8103 had no stray list, so nothing lowered them at sleep
entry, and J313 deep sleep stopped waking.

Add t8103_stray[] with aes, jpg and the venc chain, children before
parents, so apple_sleep_lower_stray() lowers them at the last step and
apple_sleep_stray_restore() raises them in reverse on refusal or wake.
fpwm0 is already lowered by t8103_cg_commit_off and dwi is always-on.
The nodes stay enabled.

This is the T8103 counterpart of the T8122 fix in aurora-silicon#3834.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
DjDeveloperr pushed a commit to joshuaswarren/linux that referenced this pull request Dec 2, 2026
…idle

The auxiliary DMA aperture driver matched only apple,t6000-ave-dma, so
the T8103 node that linux aurora-silicon#3551 enabled stayed unbound. Its PMGR
sync_state() then stayed pending and held ps_venc_sys on for good, and
J313 deep sleep stopped waking. On T6000 the driver binds but has no
runtime PM, so genpd counts the device as active and ps_venc_sys never
goes off there either. The encoder firmware needs that domain
power-cycled between sessions.

Match the generic apple,ave-dma compatible that every node carries, and
enable runtime PM without ever resuming the device. The apertures only
report faults through the interrupt they share with the encoder DARTs,
which can only fire while the domain is on, so the encoder and its DARTs
alone decide when ps_venc_sys is powered. The DT nodes stay enabled.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:platform Area from CODEOWNERS (bot) blast:m1 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant