Skip to content

arm64: dts: apple: t8122: enable ADT-present peripherals and tunnel PIODMA (on #3516) - #3535

Merged
RyanTheTide merged 6 commits into
mainfrom
feat/dt-complete-t8122
Nov 28, 2026
Merged

RyanTheTide merged 6 commits into
mainfrom
feat/dt-complete-t8122

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

What: Stacked on #3516 (499192fc6e07e6). Enable safe ADT-present peripheral blocks across all 5 T8122 boards (J613, J615, J504, J433, J434; 7 DTBs) in the shared .dtsi files, move apciec0_piodma / apciec1_piodma into #3516's usb4-pcie-tunnel-0/1 containers, and add the missing ADT-present i2c2 retimers, i2c4 Avellino power controllers, and aop_spmi0/1 radio-PMU / Stockholm NFC nodes (with T8122 binding compatibles).

Tested: Local full DT & binding validation at 535e57a9ff6b4b across all 7 t8122*.dtb files (t8122-j613, t8122-j613-25g83, t8122-j615, t8122-j615-25g83, t8122-j504, t8122-j433, t8122-j434): dt_binding_check (CHKDT/LINT/STYLE) 0 errors on all 4 touched schemas; CHECK_DTBS=y (dtschema 2026.9) 46 base / 46 head / 0 new warnings; apple-dart-pd-check.py 5 base / 5 head / 0 new; apple-sibling-drift.py 23 base / 23 head / 0 new; checkpatch.pl --strict --git HEAD~2..HEAD 0 errors / 0 warnings / 0 checks on both commits; -215 disabled nodes total across 7 DTBs.

Risk: two-way · T8122 (M3 MacBook Air 13"/15", MacBook Pro 14", iMac 24"). Stacked on #3516 (merge after #3516 lands). Internal apcie0_piodma (594010000) stays disabled due to the ASPM L1.2 / DART stream 15 fault (#3345). Every newly enabled apple,t8122-dart (dart_scaler 31d200000, dart_apr0 321028000, dart_apr1 32102c000) was audited against the live J615 ADT instance table (DART, DARTRT, DARTASC with dart-tunables-instance-{0,1}); all 10 companion SMMU/DAPF windows use apple,t8122-dart-smmu/apple,t8122-dapf (no binding driver). Most newly enabled peripherals (dpin, error-handler, dwi, aes, event-log, scaler0, apr, pwm0, atcrt, avellino, radio-pmu, spmi-nfc) have no matching Linux driver on T8122; i2c4, aop_spmi0, and aop_spmi1 bind existing apple-i2c/apple-spmi bus controllers cleanly.

Not yet: Merge of base PR #3516, GitHub Actions CI run at 535e57a9ff6b4b, and live J615 (M3 Air) DT-only boot + regression rows before merge.

Revert: git revert <merge-sha> cleanly restores all modified T8122 .dtsi/.dts files and binding compatibles with no kernel/userspace/firmware state dependencies.

Before you request review
Details

Commits (stacked on #3516 499192fc6e07e6)

  1. d6695696c5e988 — dt-bindings: apple: add T8122 compatibles for atcrt, avellino, radio-pmu, spmi-nfc
    • Adds apple,t8122-atcrt, apple,t8122-avellino, apple,t8122-wifibt-pmu, and apple,t8122-spmi-nfc to the existing four schemas (dt_binding_check 0 errors).
  2. 535e57a9ff6b4b — arm64: dts: apple: t8122: enable ADT-present peripherals and tunnel PIODMA
    • USB4 PCIe-C tunnel PIODMA (t8122-usb4.dtsi, t8122-peripherals.dtsi, t8122-misc-interfaces.dtsi): Moved apciec0_piodma (0x722000000) and apciec1_piodma (0xb22000000) into usb4_0_pcie_tunnel and usb4_1_pcie_tunnel as dma@ nodes referencing usb4_0_pcie_dart/usb4_1_pcie_dart, and dropped the redundant disabled pciec0_dart/pciec1_dart duplicates from t8122-misc-interfaces.dtsi.
    • Shared SoC peripherals (t8122-peripherals.dtsi, t8122-misc-interfaces.dtsi, t8122-j613-j615.dtsi, t8122-j504.dts): Enabled dart_scaler, dart_apr0, dart_apr1, companion DAPF/DART-SMMU windows (dart_ave2/3, dart_aop_companion1, dart_disp0_companion1, dart_dispext0_companion1, dart_isp_companion3/4/5, dart_ane_companion3, plus dart_mtp_companion1 alongside mtp_dart on laptops), atc0/1_dpin0/1, error_handler, dwi, aes, event_log_handler, scaler0, apr, and pwm0.
    • Shared buses and ADT child inventory (t8122-peripheral-buses.dtsi, t8122-jxxx.dtsi): Enabled aop_spmi0 (with radio-pmu@e), aop_spmi1 (with nfc@9, 7 interrupts 224..230 per live J615 ADT), and i2c4 (with avellino@44/@77), and added retimer@18/@19 under already-enabled &i2c2.

Intentionally kept disabled

  • apcie0_piodma (dma-controller@594010000): ASPM L1.2 stalls after 250 copies and faults Wi-Fi PCIe DART stream 15 (dmaengine: apple-piodma: internal engines on T8122/T8132 stall under ASPM L1.2 and need more than 36 address bits #3345).
  • apcie1_piodma (dma-controller@595010000), dart_rsm (2e433c000), rsm (2e4325000), dptx_phy (2c7540000), usb_otg0 (702100000), i2c0, spi1: absent from J615 ADT.
  • dockchannel-uart: omitted due to speaker-amp interference risk.
  • alc0/alc4: no binding or driver exists yet.
  • Loader-gated nodes (sio, sio_mbox, pmp, sep, sep_dart, gpu, gpu_mbox, dcp*, dcp*_dart, disp*_dart, display-subsystem, atc*_xbar, chosen/framebuffer@0, reserved-memory/uat-*, spi1/flash/partition@700000), pmp_report policy entries, and board-specific ane/mcc/dart_mtp_companion1 (disabled on desktop iMac J433/J434).
Evidence

Disabled-node counts (main -> 535e57a9ff6b4b, total -215 across 7 T8122 DTBs):

DTB Base Head Delta
t8122-j433.dtb 89 59 -30
t8122-j434.dtb 87 57 -30
t8122-j504.dtb 85 54 -31
t8122-j613.dtb 82 51 -31
t8122-j613-25g83.dtb 87 56 -31
t8122-j615.dtb 78 47 -31
t8122-j615-25g83.dtb 83 52 -31

Local validation at 535e57a9ff6b4b:

  • dt_binding_check (phy/apple,atcrt.yaml, misc/apple,avellino.yaml, misc/apple,radio-pmu.yaml, net/nfc/apple,spmi-nfc.yaml): 0 errors (CHKDT/LINT/STYLE clean)
  • CHECK_DTBS=y across all 7 t8122*.dtb: 46 base / 46 head / 0 new warnings
  • apple-dart-pd-check.py: 5 base / 5 head / 0 new
  • apple-sibling-drift.py: 23 base / 23 head / 0 new
  • checkpatch.pl --strict --git HEAD~2..HEAD: 0 errors / 0 warnings / 0 checks on both commits

satchlj and others added 4 commits November 28, 2026 22:54
The T8122 PCIe-C controller (apple,t8122-pciec) has the T8103 register
set plus the oe-fabric and intr2axi windows, and owns one 32-vector
slice of the shared MSI window after the internal host's, named by
apple,msi-vector-base. Its USB4 router carries the MxWrap CPU window like
the later SoCs and names the power domains it manages itself in
post-init-providers, which breaks their initialization cycle.

[ryan: split out of #1490 (T8122 parts only)]

Signed-off-by: Satya Benson <[email protected]>
Co-developed-by: Diljit Singh <[email protected]>
Signed-off-by: Diljit Singh <[email protected]>
Signed-off-by: Ryan Murray <[email protected]>
Every T8122 ADT lists two PCIe-C controllers behind the USB4 routers
(apciec0-1) with their DARTs (dart-apciec0-1), and every T8122 board
enables both routers, but none of them described the tunnels, so a
Thunderbolt PCIe device (an eGPU enclosure, a dock's xHCI or NIC) never
enumerated on an M3.

Describe both tunnels in t8122-usb4.dtsi and include it from t8122.dtsi:
each tunnel's DART with the tunables no boot loader fills, the
controller with its oe-fabric and intr2axi windows, its 32-vector slice
of the shared MSI window (apple,msi-vector-base) and the oe-fabric
tunables, and the router's apple,pcie-tunnel link. The router driver
populates a tunnel only when it asks for one. The routers also gain
their PCIe adapter and CPU register windows, and the usb4-N-pcie
aliases through which the boot loader fills the rc, fabric and debug
tunables.

The bindings for the T8122 controller and the routers' power-domain
suppliers come in the previous commit.

[ryan: split the T8122 description out of #1490/#2812 (the J613 handoff
 and driver changes stay there), include it from t8122.dtsi for every
 T8122 board instead of from the J613/J615 board files, move the
 aliases into it]

Signed-off-by: Satya Benson <[email protected]>
Co-developed-by: Diljit Singh <[email protected]>
Signed-off-by: Diljit Singh <[email protected]>
Signed-off-by: Ryan Murray <[email protected]>
…pmu, spmi-nfc

Add T8122 SoC compatible strings for the ATC retimers (apple,t8122-atcrt),
camera power controllers (apple,t8122-avellino), AOP Wi-Fi/BT radio PMU
(apple,t8122-wifibt-pmu), and Stockholm NFC controller
(apple,t8122-spmi-nfc).

Signed-off-by: Ryan Murray <[email protected]>
…IODMA

Enable ADT-present peripheral blocks across all T8122 boards
(J613, J615, J504, J433, J434) in the shared dtsi files and move the
USB4 PCIe-C PIODMA engines into the usb4-pcie-tunnel-0/1 containers
introduced by the T8122 PCIe-C tunnel series:

- Move apciec0_piodma (0x722000000) and apciec1_piodma (0xb22000000)
  into usb4_0_pcie_tunnel and usb4_1_pcie_tunnel as dma@ nodes referencing
  usb4_0_pcie_dart / usb4_1_pcie_dart, and drop the redundant disabled
  pciec0_dart / pciec1_dart duplicates from t8122-misc-interfaces.dtsi.
- Keep internal apcie0_piodma (0x594010000) disabled (ASPM L1.2 stalls
  and faults Wi-Fi DART stream 15, #3345).
- Enable ADT-present shared peripherals: dart_scaler, dart_apr0,
  dart_apr1 (both ADT dart-apr DART instances: DARTRT at 0x321028000 and
  DARTASC at 0x32102c000), companion DAPF/DART-SMMU nodes (dart_ave2/3,
  dart_aop_companion1, dart_disp0_companion1, dart_dispext0_companion1,
  dart_isp_companion3/4/5, dart_ane_companion3, plus dart_mtp_companion1
  on MTP-equipped laptops), atc0/1_dpin0/1, error_handler, dwi, aes,
  event_log_handler, scaler0, apr, and pwm0.
- Enable aop_spmi0 (with radio-pmu@e), aop_spmi1 (with nfc@9), and i2c4
  (with avellino@44/@77), and add i2c2 retimer@18/@19 in shared dtsi
  files matching the live J615 ADT.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide
RyanTheTide requested review from a team as code owners November 28, 2026 13:26

@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 535e57a9

Blockers:

  1. Stacked on open #3516 (499192fc): wait for #3516 to merge first (or rebase/retarget after #3516 lands).
  2. Hosted CI at 535e57a9 (dt-checks, host-tests, pr-text, readiness) is currently QUEUED; wait for green CI.
  3. Missing exact-head T8122 (J615 / J613) DT-only boot + smoke regression row at 535e57a9.
  4. Independent maintainer approval at 535e57a9 is required before merge.

Checked: no Apple material, no AI attribution, human DCO Signed-off-by on all commits, no per-board gating (shared T8122 .dtsi files used throughout with T8122 binding compatibles added cleanly), apcie0_piodma (594010000) stays disabled (#3345), dart_ave2/dart_ave3 use apple,t8122-dart-smmu/apple,t8122-dapf (not apple,t8110-dart, avoiding the -ENODEV companion-DART probe errors seen on T8112), local dt_binding_check (0 errors) + CHECK_DTBS=y (46/46 = 0 new) + apple-dart-pd-check.py (5/5 = 0 new) + apple-sibling-drift.py (23/23 = 0 new) + checkpatch --strict (0/0/0) reported clean, PR body has Tested: and Risk: two-way, branch is MERGEABLE against main.

Evidence
  • Inspected top two commits (d6695696c5 DT bindings for atcrt/avellino/radio-pmu/spmi-nfc and 535e57a9ff T8122 shared peripheral enables + apciec0/1_piodma moves into #3516's usb4-pcie-tunnel-0/1 containers).
  • Confirmed dart_scaler, dart_apr0, dart_apr1 are real translation DARTs and dart_ave2/dart_ave3 carry non-apple-dart compatibles (dart-smmu / dapf), while internal apcie0_piodma remains disabled.
  • CI at 535e57a9: dt-checks, host-tests, pr-text, readiness currently QUEUED.

@github-actions github-actions Bot added area:platform Area from CODEOWNERS (bot) blast:all 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 15e15230: not ready yet

Check Detail
CI at head running running: dt-checks
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head no no line with the head SHA 15e15230, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · T8122 (M3 MacBook Air 13"/15", MacBook Pro 14", iMac 24"). Stacked on #3516 (merge after #3516 lands). Internal apcie0piodma (594010000) stays disabled due to the ASPM L1.2 / DART stream 15 fault (#3345). Every newly enabled apple,t8122-dart (dartscaler 31d200000, dartapr0 321028000, dartapr1 32102c000) was audited against the live J615 ADT instance table (DART, DARTRT, DARTASC with dart-tunables-instance-{0,1}); all 10 companion SMMU/DAPF windows use apple,t8122-dart-smmu/apple,t8122-dapf (no binding driver). Most newly enabled peripherals (dpin, error-handler, dwi, aes, event-log, scaler0, apr, pwm0, atcrt, avellino, radio-pmu, spmi-nfc) have no matching Linux driver on T8122; i2c4, aopspmi0, and aopspmi1 bind existing apple-i2c/apple-spmi bus controllers cleanly.

Areas: area:platform

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

The T6030 (M3 Pro/Max) PCIe-C bridges share the apple,t8122-pciec
compatible but are still described with the whole shared MSI window and
no apple,msi-vector-base, so requiring the property flagged J514s and
J516s. Keep it documented for T8122-compatible bridges without making it
required; the T8122 boards all name their slice.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merged #3516's binding fix (9390123c3456, keeping apple,msi-vector-base optional on apple,t8122-pciec) into this stacked branch at 15e15230b842. Local verification: all 139/139 Apple DTBs compile cleanly, CHECK_DTBS=y across t6030-j514s, t6030-j516s, and all 7 t8122*.dtb has zero apple,msi-vector-base warnings (T8122 DTBs unchanged).

@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 15e15230

Blockers:

  1. Stacked on open linux#3516 (9390123c): wait for #3516 to merge first (or rebase/retarget after #3516 lands).
  2. Hosted CI at 15e15230 (dt-checks, host-tests, pr-text, readiness) must pass green.
  3. Missing exact-head T8122 (J615 / J613) DT-only boot + smoke regression row at 15e15230 and independent maintainer approval before merge.

Checked:

  • Verified merge commit 15e15230b842 (535e57a9ff + #3516 9390123c34): touches only Documentation/devicetree/bindings/pci/apple,pcie.yaml (+3/-3, keeping apple,msi-vector-base optional on apple,t8122-pciec for T6030 j514s/j516s), leaving all T8122 .dts/.dtsi files and the 4 new T8122 binding schemas unchanged from 535e57a9.
  • Local CHECK_DTBS=y across t6030-j514s, t6030-j516s, and all 7 t8122*.dtb clears the 2 inherited apple,msi-vector-base warnings cleanly (139/139 Apple DTBs build).
Evidence
  • Risk: two-way T8122 DT enablement present.

@github-actions github-actions Bot added the needs-hw-row No hardware row at the PR head (bot) label Nov 28, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

@aurora-silicon/omarchy-mac @aurora-silicon/aurora-maintainers — all hosted CI checks (dt-checks, host-tests, pr-text) are green at 15e15230b842, and base PR #3516 (9390123c3456) also passed all hosted CI checks. Ready for maintainer review once #3516 merges and the J615 DT-only boot row lands.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Live J615 (M3 MacBook Air, T8122) guarded DT-only aura-try boot row PASS at exact head 15e15230b842ab6de48dc39f84aa80f7463e7503 (also verified byte-identical t8122-j615.dtb b239a47bb83e3470 when merged cleanly onto current main 4cc1d6d2c388c after #3516 landed as f24c8b9916):

  • Candidate: saved 7.3.0-aurora-fleet90-airs2 kernel + live aura/stage2.bin (dd01f13c34bbce63, untouched) with only #0 apple,j615 DTB replaced (fb35782a19d12a8f).
  • Boot & smoke: FCHECK PASS (s2idle via rtc0 rc=0, success 1 / fail 0, ping 0% packet loss before and after resume, fault-lines=0, avc=0), row VERDICT PASS on baseline, trial, and post-restore (eDP 2880x1864, aurora-g16, apple-drm, wld0 UP, thunderbolt0 UP, aurora-sep=active, Enforcing, 0 failed units).
  • USB4 PCIe-C tunnels: TUNCHECK PASS acio_okay=2 tunnels_okay=2; internal apcie0_piodma (594010000) confirmed status=disabled; tunnel PIODMA nodes remain inside usb4-pcie-tunnel-{0,1}.
  • Newly enabled T8122 peripherals vs merged arm64: dts: apple: t8122: USB4 PCIe-C tunnels on every M3 #3516 (e5b7c8b6): zero new kernel errors or probe failures.
    • All 3 newly enabled apple-dart translation units probed cleanly: 31d200000.iommu (dart_scaler, 27 tunables), 321028000.iommu (dart_apr0, 25 tunables), 32102c000.iommu (dart_apr1, 9 tunables).
    • Newly enabled i2c4 (2a1020000.i2c -> i2c-apple, avellino@44/@77 enumerated), i2c2 (retimer@18/@19 enumerated), aop_spmi0 (2f4894000.spmi -> apple-spmi, radio-pmu@e), and aop_spmi1 (2f48d4000.spmi -> apple-spmi, nfc@9) bound cleanly.
    • Newly enabled companion dart-smmu / dapf nodes have no matching Linux driver and no IOMMU consumer references (driverless ADT hardware descriptions, 0 faults).
  • Unaffected-family parity: non-T8122 DTBs are untouched (zero diff outside t8122*.dts* and the 4 T8122 binding schemas after arm64: dts: apple: t8122: USB4 PCIe-C tunnels on every M3 #3516 merged into main).
  • Restore: J615 restored cleanly to saved 7.3.0-aurora-fleet90-airs2, Enforcing, 0 failed units, boot_success=1, empty next_entry, aura/stage2.bin dd01f13c34bbce63 unchanged, no aura-try/trial leftovers. Evidence archived in traces/boot/20261129-j615-pr3535/.

@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 15e1523 after the remaining integration requirements.

Checked: all T8122 board groups already enable AOP. Both newly enabled SPMI controllers match the live driver and therefore need the boot evidence. The exact J615 DT-only receipt shows both controllers and three DARTs probed, both PCIe tunnels present, an RTC wake with no new kernel errors, and restoration of the saved boot. Compared the four binding changes against current main and checked the hosted DT, host-test and PR-text successes. The J615 result covers J615. Record the remaining regression evidence and code-owner requirements separately.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Live second-family (J316s M1 Pro, T6000) guarded DT-only aura-try control row PASS at exact head 15e15230b842ab6de48dc39f84aa80f7463e7503 (also verified a clean merge of 15e15230b842 onto current main 18058ea228e2d produces byte-identical t6000-j316s.dtb 93578f4084e42da7):

  • Candidate: saved 7.3.0-aurora-fleet89 kernel + live m1n1/boot.bin (a2931c627b5fcaad, untouched) with #1 apple,j316s replaced by 15e15230b842's t6000-j316s.dtb (9cba539395157f2f; candidate image 339ac3797124fe7c).
  • Results: FCHECK PASS (all 3 SPMI PMICs/nvmem bound, s2idle via rtc1 rc=0, success 1 / fail 0, ping 0% before and after resume, fault-lines=0, avc=0, deferred=0), TUNCHECK PASS acio_okay=3 tunnels_okay=3, row VERDICT PASS on baseline, trial, and post-restore (Enforcing, 0 failed units, aurora-sep=active, wld0 UP, thunderbolt0 UP, zero new kernel errors vs baseline).
  • Restore: m1pro restored cleanly to saved 7.3.0-aurora-fleet89, Enforcing, 0 failed units, empty next_entry, m1n1/boot.bin a2931c627b5fcaad unchanged, no aura-try/trial leftovers. Evidence archived in traces/boot/20261129-j615-pr3535/m1pro/.

@RyanTheTide
RyanTheTide merged commit 62675fa into main Nov 28, 2026
4 of 6 checks passed
@RyanTheTide
RyanTheTide deleted the feat/dt-complete-t8122 branch November 28, 2026 18:41
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merged as 62675fa56aba under the 6-point rule:

  • App approval: REVIEW6 App APPROVED at exact head 15e15230b842 (#pullrequestreview-6099482376).
  • CI: All hosted checks green (dt-checks, host-tests, pr-text = SUCCESS); base arm64: dts: apple: t8122: USB4 PCIe-C tunnels on every M3 #3516 merged as f24c8b9916.
  • Target hardware row (J615 M3 Air): Guarded DT-only aura-try PASS (#3535#issuecomment-7243511980; zero new kernel errors vs merged arm64: dts: apple: t8122: USB4 PCIe-C tunnels on every M3 #3516, all 3 new apple-dart units + i2c4/aop_spmi0/aop_spmi1 bound cleanly, FCHECK PASS, TUNCHECK PASS acio_okay=2 tunnels_okay=2, s2idle PASS, restored clean).
  • Second-family runtime control row (J316s M1 Pro, T6000): Guarded DT-only aura-try PASS (#3535#issuecomment-7243921263; FCHECK PASS, TUNCHECK PASS acio_okay=3 tunnels_okay=3, s2idle PASS, fault-lines=0, avc=0, deferred=0, restored clean; clean merge onto main produces byte-identical t6000-j316s.dtb).
  • Code owners: Pinged at 04:40:27 AEDT (#3535#issuecomment-7243198116, > 1 h elapsed, 0 objections).
  • Revert: git revert -m 1 62675fa56aba

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:all Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (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.

2 participants