Repository navigation
arm64: dts: apple: t6040-j616s: PMGR parents from the ADT audit, SIO and PCIe power chains - #1287
Merged
Merged
Conversation
…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
marked this pull request as ready for review
November 9, 2026 09:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
ps_dispext0_sysgains its ADT parent FAB2_SOC next to the PMP rail, the way DISPEXT1_SYS already works.ps_fab7_socgoes 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.ps_sio_cpuparents become<&ps_sio>, <&ps_spi_p>, <&ps_uart_p>, <&ps_dpa_p>, andps_uart_pis 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.<&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):
Assisted-by: LLM
🤖 Generated with Claude Code