Repository navigation
arm64: dts: apple: t6030-j514s: sleep wiring of the J516s - #4167
Draft
DjDeveloperr wants to merge 2 commits into
Draft
DjDeveloperr wants to merge 2 commits into
DjDeveloperr wants to merge 2 commits into
Conversation
The 14-inch (J514s) and 16-inch (J516s) M3 Pro device trees of macOS 27.2 describe the same machine to the sleep path: the same nodes, power domains, wake sources, GPIO functions, SPMI and USB-C port controllers, display and PCIe. They differ in the power budgets, the trackpad and radio variant, the NVMe signal tables and the product strings. Give the J514s what the J516s has: the sleep controller and firmware 27.2's display sleep calls, the port controllers', codec's and amplifiers' sleep behaviour, the SMC wake reasons, Wi-Fi wake, the SEP and ISP DARTs' restore, the power domains the sleep path keeps, and the trackpad actuator's sleep report. Signed-off-by: DjDeveloperr <hey@djdev.me>
The SMC PMU names its events in the device tree: on the J514s bit 10 is the codec and bit 12 the trackpad and keyboard. The list taken from the J516s had the trackpad and keyboard at bit 35 and no codec. Use the ADT's bits. 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: Give the MacBook Pro 14-inch (M3 Pro, J514s) the sleep wiring of the 16-inch (J516s) from #4067: sleep controller, firmware 27.2 display sleep calls, port controllers, codec, amplifiers, SMC wake reasons, Wi-Fi wake, SEP and ISP DART restore. One file. Stacked on #4067, and needs #3809 like it.
Tested: no hardware row yet at bb65d57 (draft; needs a J514s owner).
t6030-j516s.dtbis byte-identical to #4067's.CHECK_DTBS: the J514s reports the same list as the J516s, nothing more.dtbs W=1: the J514s gains the sleep-controller unit-address warning the J516s has.checkpatch --strict0/0/0 on the first commit; the second changes only the SMC wake reason list and was compiled withdtc.Risk: two-way door · J514s only. At #4067's current head the T6030 profile makes deep sleep the default and commits wherever the node is enabled. So this must not merge before a J514s row, unless #4067 makes the profile one that needs
apple,sleep-tested. This PR does not add that property.Not yet: J514s row: 1 dry run (
apple_sleep.refuse_late=1), 3 committed deep sleeps, 1 s2idle, on this head with #3809 merged.Details
Why the J516s wiring holds. The 27.2 (26B123) restore device trees of J514s and J516s have the same node set, and every property is the same after resolving phandles except: product strings and IDs,
pmgr/clpcandpmgr/ppmpower budgets,anssignal tables (msp-bfh-params,tunable-table-bundle), the trackpad'shid-merge-personality, the radio'smodule-instance(texa, jura) and the speakeracoustic-id. So pmgr devices and ps-regs, ap-wake-sources, gpio functions (PERST#, CLKREQ#, port controller interrupts), SPMI, hpm0/1/2/5, dcp, dart-sep, dart-isp, apcie, spi2/mesa and mtp are the same.What still differs between the two built trees after this PR: board strings, panel size, trackpad and fingerprint file names, radio board type,
supports-clkreqon the J514s PCIe ports, the J514s fingerprint data-ready interrupt (the J516s needs it too: same ADT line, AP GPIO 200), the SMC wake reason list, and how the SEP is enabled (below).SMC wake reasons are the ADT's
smc-pmuevent_name-bitN(the same on J514s and J516s): codec is bit 10, trackpad and keyboard bit 12. #4067's J516s list has the trackpad and keyboard at bit 35 and no codec, and needs the same change.SEP, #3698. The SEP and its DART stay
disabledin the J514s tree on purpose: with thesepalias the loader reserves the firmware, andapple_sepenables both nodes when it loads (tools/aurora-sep/tests/test_t6030_sep.pychecks it). This PR adds only the DART's sleep restore words. The J516s tree enables both statically.Nothing else is needed on the J514s: NVMe, HDMI (
t603x-j514s-j516s-hdmi.dtsi), USB4, audio, the ProMotion panel'sdcparguments and the radio use the shared T6030 files.