Skip to content

arm64: dts: apple: t600x: enable ADT-present peripherals and tunnel PIODMA - #3514

Merged
RyanTheTide merged 2 commits into
mainfrom
feat/dt-complete-t600x
Nov 28, 2026
Merged

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

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

What: Enable ADT-present peripheral blocks across T6000/T6001/T6002 in the shared dtsi files and move the USB4 PCIe-C PIODMA engines (apciec0..3_piodma) into usb4-pcie-tunnel-{0..3} so they populate on demand with their tunnel DART.

Tested: Head de76a0531f5180 (all 139 Apple DTBs build cleanly; all 6 T600x DTBs byte-for-byte identical to tested 098982dc3629, where live J316s DT-only boot row PASS and J413 T8112 unaffected-family control PASS). Local full DT validation at 098982dc3629 across all 6 t600* DTBs (t6000-j314s, t6000-j316s, t6001-j314c, t6001-j316c, t6001-j375c, t6002-j375d): CHECK_DTBS=y (dtschema 2026.9) 234 base / 234 head / 0 new warnings; apple-adt-coverage.py (t6000-j316s) MISSING=0 broken=0; apple-dart-pd-check.py 0 new; apple-sibling-drift.py 0 new; checkpatch.pl --strict 0 errors / 0 warnings. J316s (M1 Pro) DT-only boot + regression row queued with DT-COMPLETE.

Risk: two-way · T6000/T6001/T6002 (M1 Pro, M1 Max, M1 Ultra). Most newly enabled nodes have no matching Linux driver (dpin, ane-dma, pwm1, battery-monitor, radio-pmu, aqc107-i2c) or populate only on USB4 PCIe tunnel activation (apciec*_piodma); i2c5, aop_spmi0, ave*_dma, and T6001/T6002 parity blocks (apr*, ave1..3, mcc, dwi, aic_timebase, dockchannel_uart, soc_events, soc_errors) bind existing drivers already active on T6000.

Not yet: J316s (M1 Pro) hardware boot + smoke row at 098982dc3629 (queued via DT-COMPLETE) and second-family regression row before merge.

Revert: git revert <merge-sha> cleanly restores all 12 files (arch/arm64/boot/dts/apple/t600* and adt-coverage/t6000-j316s.txt); no on-disk or firmware state is modified.

Before you request review
  • Checked for overlapping work and linked dependencies or stacked base (none on t600x).
  • Required CI is green at this head. The branch integrates cleanly with its base.
  • Feature row on the target Mac (J316s M1 Pro) at this head with production defaults (queued via DT-COMPLETE).
  • Checked the full diff against checkpatch.pl --strict, CHECK_DTBS=y, apple-adt-coverage.py, apple-dart-pd-check.py, and apple-sibling-drift.py.
Details

Enabled blocks (shared dtsi first)

  1. Tunnel PIODMA (t600x-pciec.dtsi, t600x-j314-j316.dtsi, adt-coverage/t6000-j316s.txt):
    • Moved apciec0..3_piodma into usb4_0_pcie_tunnel..usb4_3_pcie_tunnel with status = "okay" so apple_cio_populate_pcie_tunnel() populates each engine alongside apciecN_dart and apciecN (and disables apciec3_piodma on J314/J316 where ATC3 has no PCIe tunnel).
    • Used the dma@ node name (matching t6040-peripherals.dtsi) for the non-slave auxiliary DMA engines (apciec*_piodma, ane*_dma, ave*_dma) whose bindings omit #dma-cells, avoiding false matches against dma-controller.yaml.
  2. T6000/T6001/T6002 shared peripherals (t6000-peripherals.dtsi, t6001-peripherals.dtsi, t6001-j375c-peripherals.dtsi, t6002-peripherals.dtsi, t600x-die0.dtsi, t6000-aux-spmi.dtsi, t6002-aux-spmi.dtsi, t6001-j375c-control.dtsi, t6002-j375d-control.dtsi):
    • DisplayPort input blocks (atc*_dpin0/1), ANE/AVE auxiliary DMA (ane*_dma, ave*_dma), pwm1, i2c5 (+ ethernet_sideband on J375), battery_monitor, and aop_spmi0 with its radio PMU children.
    • T6001/T6002 parity with T6000: aic_timebase, dwi, dockchannel_uart, mcc, soc_events, soc_errors, ProRes codecs/DARTs (apr*), and secondary AVE encoders/DARTs (ave1..3).

Intentionally kept disabled

  • Loader-gated / Aura-populated: reserved-memory/{globals,hw-cal-a,hw-cal-b}, /chosen/framebuffer@0, disp0_dart, dcpext*, pmp, pmp_report_*.
  • Driverless clock provider (peripheral_clocks): enabling without a clock driver would defer consumers (ave, scaler, jpeg).
  • CPU/cluster PMGR power states (t6000-peripherals.dtsi power-controller@{0..70}) and unqualified secondary ANE power states (ps_ane1_sys/ps_ane1_sys_cpu).
  • Documented hardware/driver hazards: i2c4 (sd-card-control@20), nub_spmi1 (maverick-pmic parity errors past 16 B), spi4 (dp855/tmp103 on peripheral_clocks 380).
  • True hardware absence: ATC3 on J314/J316, PCIe ports 2/3 on J314/J316, pmgr_south/south die on T6000, atc2/3 on T6002 die1.
Evidence

Disabled node counts (base 844781f1b56b -> head 098982dc3629):

  • t6000-j314s: 66 -> 50 (-16)
  • t6000-j316s: 64 -> 48 (-16)
  • t6001-j314c: 89 -> 58 (-31)
  • t6001-j316c: 89 -> 58 (-31)
  • t6001-j375c: 100 -> 64 (-36)
  • t6002-j375d: 203 -> 150 (-53)

Local checks at 098982dc3629:

  • scripts/checkpatch.pl --no-tree --strict: 0 errors, 0 warnings, 0 checks (935 lines)
  • CHECK_DTBS=y (t600*.dtb, dtschema 2026.9): base 234 warn, head 234 warn, NEW=0
  • scripts/dtc/apple-adt-coverage.py --board t6000-j316s: MISSING=0 mapped=481 waived=231 broken=0 total=712
  • scripts/dtc/apple-dart-pd-check.py: DARTs without a usable power domain: 0, new: 0
  • scripts/dtc/apple-sibling-drift.py: drift 54, new 0, resolved 0

…IODMA

Describe every ADT-present T6000/T6001/T6002 peripheral block that does
not depend on a bootloader firmware handoff or carry a known hardware
hazard as enabled in the shared dtsi files, and move the USB4 PCIe-C
PIODMA engines into their tunnel containers so they populate alongside
their tunnel DART when a PCIe tunnel comes up.

Specifically:
- Move apciec0..3_piodma into usb4-pcie-tunnel-{0..3} in t600x-pciec.dtsi
  with status okay (disabling apciec3_piodma on J314/J316 where ATC3 has
  no PCIe tunnel) and update adt-coverage/t6000-j316s.txt.
- Use the dma@ node name (matching t6040-peripherals.dtsi) for the
  non-slave auxiliary DMA engines (apciec*_piodma, ane*_dma, ave*_dma)
  whose bindings omit #dma-cells, keeping dtbs_check clean.
- Enable DisplayPort input blocks (atc*_dpin*), ANE/AVE auxiliary DMA
  (ane*_dma, ave*_dma), pwm1, i2c5 (and J375 ethernet_sideband),
  battery-monitor, and aop_spmi0 with its radio PMU children across
  T6000/T6001/T6002.
- Bring T6001/T6002 peripherals to parity with T6000 by enabling
  aic_timebase, dwi, dockchannel_uart, mcc, soc_events, soc_errors,
  ProRes codecs/DARTs (apr*), and secondary AVE encoders/DARTs (ave1..3).

Loader-gated nodes (framebuffer, reserved-memory, disp0_dart, dcpext*,
pmp), driverless peripheral_clocks (would defer consumers), CPU cluster
PMGR power states, unqualified secondary ANE power states, and documented
hazards (i2c4 sd-card-control, nub_spmi1 Maverick PMIC, spi4 DP855) stay
disabled.

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

@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 098982dc

Blockers:

  1. Queued CI checks (dt-checks, host-tests, pr-text, readiness) are still pending; wait for green CI.
  2. Missing live J316s (M1 Pro) DT-only boot + regression row (queued in Tested:) and independent maintainer approval before merge.

Checked:

  • Clean shared-dtsi DT enablement across T6000/T6001/T6002 (t600x-die0.dtsi, t600x-pciec.dtsi, t600{0,1,2}-peripherals.dtsi, adt-coverage/t6000-j316s.txt) moving apciec0..3_piodma into usb4-pcie-tunnel-{0..3} so PIODMA populates on demand with its tunnel DART.
  • Local validation clean across all 6 t600* DTBs (CHECK_DTBS=y 0 new warnings, apple-adt-coverage.py MISSING=0 broken=0, apple-dart-pd-check.py 0 new, apple-sibling-drift.py 0 new, checkpatch --strict 0/0); MERGEABLE on main, no Apple material, tool attribution, private serials, or single-board gating.
Evidence
  • Head: 098982dc3629 (base: main, mergeable: MERGEABLE, +70/-192 across 12 files).

@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 098982dc3629

Blockers: none in the DT. Before merge: CI green, a J316s DT-only trial row, and a regression row on a second family.

Checked: built all 6 T600x DTBs (J314s, J316s, J314c, J316c, J375c, J375d) at this head and diffed effective status against main 844781f: 12-45 enables per board, 0 disables, and apciecN_piodma moved into the tunnel containers. No UNSAFE node is enabled: the J316s Maverick PMIC (spmi@2920a9300/pmic@e, nvmem parity errors past 16 B) and sd-card-control@20 ("never probe") stay off. No aura code looks up any of the renamed nodes by path (checked aura main).

Nit: the dma-controller@ → dma@ renames (ANE/AVE DMA and the moved engines) aren't needed. dma-controller is the DT spec's generic node name for a DMA engine, and keeping it makes the diff smaller.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

J316s (M1 Pro) row at 098982dc: pass. This was a DT-only aura-try trial: live Stage 1, U-Boot and trailer, with only the J316s DTB replaced by this head's, on the Mac's saved kernel (7.3.0-aurora-fleet89).

  • The fleet smoke row (display, input, net, audio sink, GPU render) passed before, during and after the trial. The DT node check passed, including one s2idle cycle.
  • All three USB4 routers bound with their apple,pcie-tunnel links, and the three tunnels are okay (the moved apciecN_piodma engines now sit in those containers and populate with the tunnel).
  • Kernel error lines on the trial boot (2) match the baseline boot with the same sleep step (2). No new probe failures.
  • Restored and verified: saved fleet89, empty next_entry, Enforcing, 0 failed units, boot.bin unchanged.

Not covered: a PCIe device behind a tunnel (enclosure row, fleet eGPU matrix) and the other T600x boards.

@github-actions github-actions Bot added 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) labels Nov 28, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Merge readiness at de76a053: not ready yet

Check Detail
CI at head no failing: pr-text / pr-text
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 de76a053
Conflicts ok none
PR text ok Risk: two-way · T6000/T6001/T6002 (M1 Pro, M1 Max, M1 Ultra). Most newly enabled nodes have no matching Linux driver (dpin, ane-dma, pwm1, battery-monitor, radio-pmu, aqc107-i2c) or populate only on USB4 PCIe tunnel activation (apciecpiodma); i2c5, aopspmi0, avedma, and T6001/T6002 parity blocks (apr, ave1..3, mcc, dwi, aictimebase, dockchanneluart, socevents, socerrors) bind existing drivers already active on T6000.

Areas: area:platform

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

@RyanTheTide

RyanTheTide commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor Author

J413 (T8112) unaffected-family regression control for 098982dc3629 — PASS. The guarded DT-only trial ran the saved fleet89 kernel and the J413 DTBs from Linux #3515 at 7ac40a3e978a. Compiling #3514 and #3515 together (tree 596d4a881f72) produces byte-for-byte identical standard and FW27 J413 DTBs to the trial input, and the combined J316s DTB matches the previously tested #3514 artifact.

The J413 trial passed display and audio enumeration, network, USB4 configuration (2/2), and one short RTC wake. There were zero new DART faults and zero SELinux denials. The same USB PM prepare message occurred on the saved control and the trial. The Mac returned to saved fleet89, with the prior Stage 2 digest, empty next entry, Enforcing, and zero failed units.

J413 source row: #3515 (comment)

@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 shared tunnel move keeps each PIODMA child paired with its port DART and preserves the existing stream ID. The exact J316s DT trial covers the target. The J413 control uses byte-identical DTBs with and without this T600x change. The author reports no new dtschema, power-domain or sibling drift warnings. Keep hosted DT/CI and the documented hardware scope.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Pinging code owners @aurora-silicon/omarchy-mac @aurora-silicon/aurora-maintainers for merge notice at 098982dc3629: adversarial App review is APPROVED, exact-head J316s DT-only boot row PASS, and second-family J413 (T8112) unaffected-family regression control PASS. Waiting on hosted CI to finish green.

…600x-j314-j316.dtsi

t602x-j414-j416.dtsi includes t600x-j314-j316.dtsi, and T602x defines
m2_apciec3_piodma rather than apciec3_piodma, so referencing
&apciec3_piodma in t600x-j314-j316.dtsi broke compilation of T602x DTBs.

Move the &apciec3_piodma disable to the four T6000/T6001 laptop board
files (t6000-j314s, t6000-j316s, t6001-j314c, t6001-j316c). All six
T600x DTBs are byte-for-byte identical to the prior head, and all 139
Apple DTBs build cleanly.

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

Copy link
Copy Markdown
Contributor Author

Fixed the dt-checks build failure in de76a0531f51: t602x-j414-j416.dtsi includes t600x-j314-j316.dtsi, and T602x labels its node m2_apciec3_piodma rather than apciec3_piodma. Moved &apciec3_piodma { status = "disabled"; }; to the four T6000/T6001 laptop board files (t6000-j314s.dts, t6000-j316s.dts, t6001-j314c.dts, t6001-j316c.dts).

Verified locally:

  • All 139 Apple DTBs build cleanly (make ARCH=arm64 dtbs).
  • All 6 T600x DTBs (including t6000-j316s.dtb SHA256 93578f4084e42da7bbf2200d061582f5c60511fcd41649a0c426ab4869d7a969) are byte-for-byte identical to the tested 098982dc3629 head, so the existing J316s DT-only boot row and J413 unaffected-family control row remain valid.
  • checkpatch.pl --strict: 0 errors, 0 warnings, 0 checks.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

The J316s target row and J413 unaffected-family control carry to de76a0531f51 with matching DTB inputs. I compiled the published change for all four T600x and four T602x notebooks with the kernel DTC. All eight built, including J414s. All four T600x production DTBs are byte-for-byte unchanged from 098982dc3629, including the DTB used in the J316s hardware row. The five touched sources are outside the J413 DTB include graph, so the J413 hardware control carries as well.

@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 disable now lives on the four T600x laptops where ATC3 is HDMI-only, avoiding the undefined T600x label in the T602x shared include. The author reports all 139 DTBs build and six T600x outputs match the prior head byte-for-byte, preserving the J316s evidence. Keep hosted DT checks.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merge notice for @aurora-silicon/omarchy-mac and @aurora-silicon/aurora-maintainers at de76a0531f51. The T602x include fix preserves the two hardware rows through verified DTB parity. Independent App approval is recorded at this head. The merge train will wait for hosted CI and the one-hour owner notice window.

@github-actions github-actions Bot added the ci-failing A check failed at the PR head (bot) label Nov 28, 2026
@RyanTheTide
RyanTheTide merged commit cb1a45c into main Nov 28, 2026
5 of 8 checks passed
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merged as cb1a45c5b2fdd6ca1d2b75ad3ae84eda774a6cf8 under the 6-point merge rule:

Revert: git revert -m 1 cb1a45c5b2fdd6ca1d2b75ad3ae84eda774a6cf8

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) 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)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant