Skip to content

arm64: dts: apple: t8122: J504, J433 and J434 up to the J613 (sleep, NVRAM, ANE, SEP) - #4166

Draft
DjDeveloperr wants to merge 5 commits into
soc/t8122-sleep-i2c-pd-pcie-portsfrom
dt/t8122-j504-j433-j434-parity
Draft

DjDeveloperr wants to merge 5 commits into
soc/t8122-sleep-i2c-pd-pcie-portsfrom
dt/t8122-j504-j433-j434-parity

Conversation

@DjDeveloperr

Copy link
Copy Markdown
Contributor

What: Bring the M3 boards without a tester (MacBook Pro 14-inch J504, iMacs J433 and J434) to the J613/J615 devicetree: sleep controller and memory cache controller, firmware 27.2's display sleep calls, the boot NOR and NVRAM on QSPI, the Neural Engine, the CPU memory floor, and the iMacs' SEP handover. Deep sleep is described, not marked tested: s2idle stays the default, and deep sleep is opt-in and stops before the commit. Stacked on #4162.

Tested: no hardware row yet at a536cab (draft; no owner of these boards has run it). Against base 8ec8740: the J613, J613-25G83, J615 and J615-25G83 DTBs are byte-identical; only the J433, J434 and J504 DTBs change. CHECK_DTBS on J504/J433/J434/J613: no message about the sleep, mcc, dcp, qspi, ane or pmp nodes, and no new message. dtbs W=1: the same warning classes the J613 has. checkpatch --strict 0/0/0 on every commit.

Risk: two-way door · M3: J504, J433, J434. They gain probing drivers (QSPI NOR read-only, MCC, the sleep controller with deep sleep off, ANE, SEP on the iMacs).

Not yet: J504, J433 and J434 rows. J504 needs #2392 (SEP alias, MagSafe, Touch ID) before a deep sleep is accepted. The Neural Engine needs #3887. iMac speakers stay undescribed.

Details

Sources: the 27.2 (26B123) restore device trees of J613, J615, J504, J433 and J434, compared node by node.

Node Result So
pmgr devices the same 311 domains; J504 differs in the DPTX PHY, the iMacs in MTP the J613's power words apply
pmgr ap-wake-sources identical on all boards apple,wake-enable 155 stays
mcc, ane, dcp, isp, sep, pmp, smc, spi4 identical registers, interrupts and gates enabled as on the J613
qspi/spinor on every board; no board has spi1 NVRAM moves to QSPI, read-only
nub-spmi-a0 J613/J615 only; the others have hpm* on i2c0 (0x38, 0x3f; J434 also 0x3b, 0x3c; J504 also 0x3a) no spmi-hpm
apcie the same register list; bridges 0 and 1 (J504, J433), 0 to 2 (J434) apcie-port1/2, apcie-phy1/2
gpio0 no-restore-gpio-pins J504 only: 5, 6, 37 apple,pinctrl-skip-pins

On the iMacs the MTP has no user, and their pmgr lists its power words as the AP's. The sleep path does not touch them: whether iBoot leaves them on has to be read on an iMac before its first commit.

Enable the sleep controller with the registers these boards have: no SPMI
port controllers (their ADT has the port controllers on I2C and no
nub-spmi-a0), and the PCIe ports past port 0. With it, the memory cache
controller and firmware 27.2's display sleep calls the J613 and J615 use:
the ADT's mcc, dcp, pmgr and wake sources are the same on every T8122
board.

Leave the pins the J504's ADT says not to restore alone, and hand its MTP
firmware over running, as on the other M3 laptops.

Not marked tested: deep sleep stays off by default and stops before the
commit, and the default s2idle is unchanged.

Signed-off-by: DjDeveloperr <hey@djdev.me>
Every T8122 board's ADT has the boot NOR and its NVRAM at /arm-io/qspi, and
no spi1. The J613 and J615 already use it; the J504 and the iMacs inherited
the M1/M2 flash on SPI1, which is not wired, so they had no NVRAM.

Read-only, as on the J615, until their NVRAM writes have been tried.

Signed-off-by: DjDeveloperr <hey@djdev.me>
…J434

Their ADT describes the same Neural Engine as the J613's and J615's: the
same type, registers, interrupts and power domains.

Signed-off-by: DjDeveloperr <hey@djdev.me>
The PMP's request classes and their levels belong to the SoC's PMP
firmware, and the J613 and J615 need the floor for their memory bandwidth
under CPU load (21 to 92 GB/s on the J613). Request it on the other T8122
boards too.

Signed-off-by: DjDeveloperr <hey@djdev.me>
The SEP is the same as on the other T8122 boards and runs from iBoot. With
the alias the boot loader reserves its memory, so apple_sep can bind. A
deep sleep is refused without the SEP's own sleep request.

Signed-off-by: DjDeveloperr <hey@djdev.me>

This branch has not been deployed

No deployments
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