Skip to content

arm64: dts: apple: t6040-j616s: PMGR parents from the ADT audit, SIO and PCIe power chains - #1287

Merged
RyanTheTide merged 3 commits into
integration/aurorafrom
dtcover/j616s-pd-parents
Nov 9, 2026
Merged

RyanTheTide merged 3 commits into
integration/aurorafrom
dtcover/j616s-pd-parents

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Every ADT node and every DT node of the J616s (M4 Pro, T6040) was checked, with each device's full PMGR chain (the closure of its clock-gates/power-gates) compared against the DT power-domain tree. These are the DT-only fixes that turned up. Only the j616s DTB changes.

  • G1, G2 (external display chains). ps_dispext0_sys gains its ADT parent FAB2_SOC next to the PMP rail, the way DISPEXT1_SYS already works. ps_fab7_soc goes back under AFI, which is its ADT parent: the j616s-extdisp-usbc override had misread the pmgr record and put it under FAB6_SOC. Both fabrics are always-on, so nothing changes at runtime.
  • G3 (SIO). ps_sio_cpu parents become <&ps_sio>, <&ps_spi_p>, <&ps_uart_p>, <&ps_dpa_p>, and ps_uart_p is described. T6000 and T8112 already do this, and the Neo needs it (MacBook Neo DisplayPort audio; SIO channel records as macOS #1280: its SIO crashes at boot with SPI_P/UART_P off). On the J616s, SPI_P stayed on only because qspi never runtime-suspends.
  • G4 (internal PCIe). APCIE_GP, APCIE_SYS_GP and APCIE_PHY_SW (ADT apcie0 clock-gates) were disabled, so Linux relied on iBoot leaving them on. They are now described as always-on, and pcie0 gets <&ps_apcie_sys_gp>. Actually gating them needs multi-domain support in pcie-apple, which is a separate cross-SoC item.

The DTB is 06f9398e (shipped: 4a0567db). Its semantic diff touches only the nodes above. After this PR, the only parent differences from the ADT are the virtual DISPEXT rail (it is the pmp-dispextN report) and an extra, conservative atcN_phymxwrap parent on atcN_common_dp, which is documented and kept.

Tested on a J616s (7.3.0 fleet44 kernel):

  • aura-try Stage 2 trial: 195b4260 with only the DTB swapped (27e0e11a), trial marker present, boot 1321b424
  • the genpd tree matches: afi -> fab7_soc; fab2_soc and pmp-dispext0 -> dispext0_sys; sio_cpu under sio, spi_p, uart_p and dpa_p; uart_p registered and on; apcie_gp/sys_gp/phy_sw on, with pcie0 attached to apcie_sys_gp
  • SIO "protocol v10", apple-sio bound, 4 DP audio cards; brcmfmac, hci_bcm4377, sdhci-pci, nvme-apple bound; USB4 host 0-1 (M2) up; eDP + DP displays; devices_deferred 0; boot warning classes identical to the pre-trial boot
  • FLEET suite (reg.sh) vs fleet44: no hard regressions. rtcwake s2idle success +3 / fail 0 with the network back; systemd and direct sleeps 6/6 each, 0 refused; Wi-Fi/BT/SD/NVMe/USB4 fine after the sleeps; AVD +0.4-1.7%, ANE =, AVC 0, failed 0, kerr 0. glmark -8.5% with the panel on (the baseline ran with the display off)
  • Idle power: 12.3 W before vs 12.8 W on the trial, both a few minutes after boot. This is within noise; the domains were already on (iBoot), so G4 cannot change power. Gating them is t-5958.
  • 0 AVC, 0 failed units. The only new warning lines are DCPEXT0 'AFK[ep:2b] unexpected compact reply c0', once per display power-on during the sleeps, which predates this change

Assisted-by: LLM

🤖 Generated with Claude Code

…r PMGR parents

Check the J616s PMGR power states against the ADT's device list:

- DISPEXT0_SYS has two parents, FAB2_SOC and the DISPEXT rail. The DT
  had only the rail (the PMP report pmp-dispext0). It worked because
  ATC0..2_COMMON keep FAB2_SOC on. List both, as DISPEXT1_SYS already
  does.
- FAB7_SOC's parent is AFI, as t6040-pmgr.dtsi describes it. The
  extdisp-usbc override moved it under FAB6_SOC because it misread the
  pmgr record (id2 134 is DISPEXT1_SYS; FAB7_SOC is 133). Drop the
  override and fix the comment.

Both fabrics are always-on, so nothing changes at runtime. The power tree
now matches the ADT.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
…nts on

The SIO firmware drives the SPI, UART and DP audio shims. On T8140 it
crashes at boot if SPI_P and UART_P are off, and T6000 and T8112 make
those states parents of SIO_CPU for that reason. On the J616s, SIO_CPU
had only SIO as its parent, as in the ADT. SPI_P stayed on only because
the QSPI controller never runtime-suspends, and UART_P was not described
at all, so it stayed however iBoot left it.

Make SPI_P, UART_P and DPA_P parents of SIO_CPU and describe UART_P.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
The ADT's apcie0 needs APCIE_GP, APCIE_SYS_GP and APCIE_PHY_SW on top of
ANS and APCIE_ST0/1 and APCIE_SYS_ST0/1, which are always-on. The DT had
the first three disabled and gave pcie0 no power domain, so Linux relied
on iBoot leaving them on.

pcie-apple keeps the internal links up through suspend-to-idle and does
not retrain them after a power cycle, so describe the three states as
always-on and give pcie0 APCIE_SYS_GP, whose chain covers APCIE_GP,
FAB3_SOC and AFC. Gating these states would need multi-domain support
in pcie-apple, with a cold restart of the port on resume.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide
RyanTheTide marked this pull request as ready for review November 9, 2026 09:53
@RyanTheTide
RyanTheTide merged commit 3f35357 into integration/aurora Nov 9, 2026
2 checks passed
@RyanTheTide
RyanTheTide deleted the dtcover/j616s-pd-parents branch November 9, 2026 09:53
DjDeveloperr added a commit that referenced this pull request Nov 9, 2026
Bring in the T6000/T8112 EDAC handlers (#1304), the T6000 JPEG PMP request
(#1305) and the J616s PMGR parents (#1287); no overlap, nothing dropped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant