Skip to content

arm64: dts: apple: t6030-j514s: sleep wiring of the J516s - #4167

Draft
DjDeveloperr wants to merge 2 commits into
feat/t6030-sleep-provider-v3from
dt/t6030-j514s-sleep
Draft

DjDeveloperr wants to merge 2 commits into
feat/t6030-sleep-provider-v3from
dt/t6030-j514s-sleep

Conversation

@DjDeveloperr

@DjDeveloperr DjDeveloperr commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

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.dtb is 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 --strict 0/0/0 on the first commit; the second changes only the SMC wake reason list and was compiled with dtc.

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/clpc and pmgr/ppm power budgets, ans signal tables (msp-bfh-params, tunable-table-bundle), the trackpad's hid-merge-personality, the radio's module-instance (texa, jura) and the speaker acoustic-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-clkreq on 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-pmu event_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 disabled in the J514s tree on purpose: with the sep alias the loader reserves the firmware, and apple_sep enables both nodes when it loads (tools/aurora-sep/tests/test_t6030_sep.py checks 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's dcp arguments and the radio use the shared T6030 files.

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

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