Repository navigation
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
Draft
DjDeveloperr wants to merge 5 commits into
DjDeveloperr wants to merge 5 commits into
Conversation
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
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.
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_DTBSon 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 --strict0/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.
apple,wake-enable155 stayshpm*on i2c0 (0x38, 0x3f; J434 also 0x3b, 0x3c; J504 also 0x3a)spmi-hpmapcie-port1/2,apcie-phy1/2apple,pinctrl-skip-pinsOn 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.