Repository navigation
arm64: dts: apple: t8122: enable ADT-present peripherals and tunnel PIODMA (on #3516) - #3535
Conversation
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]>
There was a problem hiding this comment.
Verdict: FINISH, then merge at 535e57a9
Blockers:
- Stacked on open
#3516(499192fc): wait for#3516to merge first (or rebase/retarget after#3516lands). - Hosted CI at
535e57a9(dt-checks,host-tests,pr-text,readiness) is currentlyQUEUED; wait for green CI. - Missing exact-head T8122 (J615 / J613) DT-only boot + smoke regression row at
535e57a9. - Independent maintainer approval at
535e57a9is 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 (
d6695696c5DT bindings foratcrt/avellino/radio-pmu/spmi-nfcand535e57a9ffT8122 shared peripheral enables +apciec0/1_piodmamoves into#3516'susb4-pcie-tunnel-0/1containers). - Confirmed
dart_scaler,dart_apr0,dart_apr1are real translation DARTs anddart_ave2/dart_ave3carry non-apple-dartcompatibles (dart-smmu/dapf), while internalapcie0_piodmaremains disabled. - CI at
535e57a9:dt-checks,host-tests,pr-text,readinesscurrentlyQUEUED.
|
Merge readiness at
Areas: 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]>
|
Merged #3516's binding fix ( |
There was a problem hiding this comment.
Verdict: FINISH, then merge at 15e15230
Blockers:
- Stacked on open
linux#3516(9390123c): wait for#3516to merge first (or rebase/retarget after#3516lands). - Hosted CI at
15e15230(dt-checks,host-tests,pr-text,readiness) must pass green. - Missing exact-head T8122 (
J615/J613) DT-only boot + smoke regression row at15e15230and independent maintainer approval before merge.
Checked:
- Verified merge commit
15e15230b842(535e57a9ff+#35169390123c34): touches onlyDocumentation/devicetree/bindings/pci/apple,pcie.yaml(+3/-3, keepingapple,msi-vector-baseoptional onapple,t8122-pciecfor T6030j514s/j516s), leaving all T8122.dts/.dtsifiles and the 4 new T8122 binding schemas unchanged from535e57a9. - Local
CHECK_DTBS=yacrosst6030-j514s,t6030-j516s, and all 7t8122*.dtbclears the 2 inheritedapple,msi-vector-basewarnings cleanly (139/139 Apple DTBs build).
Evidence
Risk:two-wayT8122 DT enablement present.
|
Live J615 (M3 MacBook Air, T8122) guarded DT-only
|
There was a problem hiding this comment.
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.
|
Live second-family (J316s M1 Pro, T6000) guarded DT-only
|
|
Merged as
|
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.dtsifiles, moveapciec0_piodma/apciec1_piodmainto#3516'susb4-pcie-tunnel-0/1containers, and add the missing ADT-presenti2c2retimers,i2c4Avellino power controllers, andaop_spmi0/1radio-PMU / Stockholm NFC nodes (with T8122 binding compatibles).Tested: Local full DT & binding validation at
535e57a9ff6b4bacross all 7t8122*.dtbfiles (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.py5 base / 5 head / 0 new;apple-sibling-drift.py23 base / 23 head / 0 new;checkpatch.pl --strict --git HEAD~2..HEAD0 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 enabledapple,t8122-dart(dart_scaler31d200000,dart_apr0321028000,dart_apr132102c000) was audited against the live J615 ADTinstancetable (DART,DARTRT,DARTASCwithdart-tunables-instance-{0,1}); all 10 companion SMMU/DAPF windows useapple,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, andaop_spmi1bind existingapple-i2c/apple-spmibus 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/.dtsfiles and binding compatibles with no kernel/userspace/firmware state dependencies.Before you request review
feat/t8122-pciec-every-board).dt_binding_check,CHECK_DTBS=y,apple-dart-pd-check.py,apple-sibling-drift.py, andcheckpatch.pl --strict.Details
Commits (stacked on #3516
499192fc6e07e6)d6695696c5e988—dt-bindings: apple: add T8122 compatibles for atcrt, avellino, radio-pmu, spmi-nfcapple,t8122-atcrt,apple,t8122-avellino,apple,t8122-wifibt-pmu, andapple,t8122-spmi-nfcto the existing four schemas (dt_binding_check0 errors).535e57a9ff6b4b—arm64: dts: apple: t8122: enable ADT-present peripherals and tunnel PIODMAt8122-usb4.dtsi,t8122-peripherals.dtsi,t8122-misc-interfaces.dtsi): Movedapciec0_piodma(0x722000000) andapciec1_piodma(0xb22000000) intousb4_0_pcie_tunnelandusb4_1_pcie_tunnelasdma@nodes referencingusb4_0_pcie_dart/usb4_1_pcie_dart, and dropped the redundant disabledpciec0_dart/pciec1_dartduplicates fromt8122-misc-interfaces.dtsi.t8122-peripherals.dtsi,t8122-misc-interfaces.dtsi,t8122-j613-j615.dtsi,t8122-j504.dts): Enableddart_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, plusdart_mtp_companion1alongsidemtp_darton laptops),atc0/1_dpin0/1,error_handler,dwi,aes,event_log_handler,scaler0,apr, andpwm0.t8122-peripheral-buses.dtsi,t8122-jxxx.dtsi): Enabledaop_spmi0(withradio-pmu@e),aop_spmi1(withnfc@9, 7 interrupts224..230per live J615 ADT), andi2c4(withavellino@44/@77), and addedretimer@18/@19under 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.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_reportpolicy entries, and board-specificane/mcc/dart_mtp_companion1(disabled on desktop iMac J433/J434).Evidence
Disabled-node counts (
main->535e57a9ff6b4b, total -215 across 7 T8122 DTBs):t8122-j433.dtbt8122-j434.dtbt8122-j504.dtbt8122-j613.dtbt8122-j613-25g83.dtbt8122-j615.dtbt8122-j615-25g83.dtbLocal 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/STYLEclean)CHECK_DTBS=yacross all 7t8122*.dtb: 46 base / 46 head / 0 new warningsapple-dart-pd-check.py: 5 base / 5 head / 0 newapple-sibling-drift.py: 23 base / 23 head / 0 newcheckpatch.pl --strict --git HEAD~2..HEAD: 0 errors / 0 warnings / 0 checks on both commits