Skip to content

arm64: dts: apple: t8132-j773g: wire display-power for deep sleep - #4164

Open
DjDeveloperr wants to merge 1 commit into
mainfrom
j773g/t8132-dcpext-display-power
Open

DjDeveloperr wants to merge 1 commit into
mainfrom
j773g/t8132-dcpext-display-power

Conversation

@DjDeveloperr

@DjDeveloperr DjDeveloperr commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

What: Wire the T8132 external display power controller (dcp_power), DART GAPF slices, clock-protection slices, and ps_dispext{0,1}_{sys,fe,cpu} retention / consumer-switched / bridge-link properties on the M4 Mac mini (t8132-j773g.dts) so dcpext0 (HDMI) and dcpext1 (USB-C DP) can stop and restart cleanly for deep sleep.

Every register address, GAPF slice index (dart-dcpext0=5, dart-dispext0=4, dart-dcpext1=30, dart-dispext1=29), and PMC/PMGR word is verified against the live J773g ADT (firmware 27.2 / 26B123).

On firmware 27.2 this also enables dcp_ext_idle_capable() runtime idle power-off for dcpext1 (USB-C DP) when no display is attached.

(Following review on 64e85454cfae, the shared T8132 dtsi deduplication commit was split out and held for #4008 + J715/J604 rows, and port00 clkreq-gpios was dropped because J773g deletes apple,managed-sids on pcie0.)

Tested:

  • Local at 5a30f0960eab: scripts/checkpatch.pl --strict clean (0 errors, 0 warnings, 0 checks); make apple/t8132-j773g.dtb builds cleanly.
  • Hardware boot on J773g (7.3.0-j773g-ship1, clean default cmdline, main 8ec8740a1e6f + #4007 + #3809 + #4031 + #3882 + J773g DTB): mem_sleep defaults to [deep], zero no apple,display-power warnings on 286e00000.dcp and 48ae00000.dcp, pm_test=devices PASS (RC=0) with both DCPs bound and card1-DP-3 retraining 3840x2160@60.
  • Not yet: Committed deep x3 wake on J773g (Cycle 1 cold-reset is under active root-cause diagnosis; hold merge until committed deep x3 passes on J773g, and land before or with #4007).

Risk: two-way · J773g (M4 Mac mini) only. Changes only t8132-j773g.dts; other T8132 boards are untouched. Enables runtime idle power-off on dcpext1 (USB-C DP) when idle on firmware 27.2 and removes the display-power refusal on J773g deep sleep.

@DjDeveloperr
DjDeveloperr requested review from a team as code owners December 3, 2026 08:28
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Merge readiness at 5a30f096: not ready yet

Check Detail
CI at head running running: host-tests
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head no no line with the head SHA 5a30f096, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · J773g (M4 Mac mini) only. Changes only t8132-j773g.dts; other T8132 boards are untouched. Enables runtime idle power-off on dcpext1 (USB-C DP) when idle on firmware 27.2 and removes the display-power refusal on J773g deep sleep.

Areas: area:bringup

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

Composition check on main c09b61228e62: #4007, this, #4031, #4008 and #4009 apply on top of each other (DTS parts) and all six T8132 DTBs build. With the five, every T8132 tree has apple,display-power on dcp, dcpext0 and dcpext1, so the J604 has no missing part left at probe and deep becomes its default; the J604 row therefore needs the whole set. #4009's ps_dispext* and slice lines become duplicates of what this moves to the shared files.

J623 and J624: their DCP nodes stay disabled and the radio port still has no clkreq-gpios, so the probe keeps s2idle as the default there. Please keep it that way in this PR: nothing stops their running internal DCP yet, so a deep default would be a refused sleep.

@github-actions github-actions Bot added ci-failing A check failed at the PR head (bot) blast:m4 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) and removed needs-template PR body lacks Tested or Risk (bot) labels Dec 3, 2026

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes: keep commit 1 here (with the fixes below), move commit 2 to its own PR and hold it for rows. Reviewed 64e85454cfae, merged on main c09b61228e62 with #4031. No value here is wrong that I can find.

  1. Both commits have no Signed-off-by (checkpatch error; the commit bodies are also one long line). Please sign them off when you split.
  2. Commit 2 leaves the J604 half wired. It puts apple,display-power on every board's dcp, which is what sleep.c apple_sleep_undescribed() takes as "the internal display can be stopped". But ps_disp_{sys,fe,cpu} (consumer-switched, retention words) stay in t8132-j713-pmgr.dtsi, so on the J604 ps_disp_cpu has no retention words and dcp_s2r_layout_from_dt() refuses. With #4007 and #4009 but not #4008, deep becomes the J604's default and its internal DCP has no way to stop. Fix: #4008 first, then commit 2 on top.
  3. Commit 2 also changes normal running, not only sleep. On 27.2 a USB-C dcpext with stop words is powered off when idle (dcp_ext_idle_capable()), so the J715 gains that on both pipes, plus a deep sleep that is no longer refused by them. On 26.6.2 the J604 gains the idle stop (iomfb_m4.c ext_idle_capable). The body should say so, and both need a row. Commit 1 turns the same idle stop on for the J773g's dcpext1.
  4. clkreq-gpios does nothing on the J773g. t8132-j773g.dts deletes apple,managed-sids from pcie0, so apple_radio_register() returns at once, and that file is the only driver that uses the line. Please drop the property, or keep it as plain hardware description and change the comment, the commit text and the body: this isn't what brings Wi-Fi back here. (The pin is right: gpio0 pin 0xa0 in the J773g ADT. The binding allows it, and #4007 doesn't touch port00.)
  5. Land commit 1 before #4007, or together. On the J773g the PCIe tunables are the only part apple_sleep_undescribed() misses. #4007 alone makes deep the default there while both dcpexts still refuse it.
  6. The body needs Tested: and Risk: lines (pr-text fails).

Overlap. #4008 has no property in common with commit 2 except apple,pmc-interface and slices 42/8, with the same values; they merge cleanly. #4008 (espentrydal) should land first; commit 2 then drops those lines from t8132-j604.dts and credits it. #4009's ps_dispext* and slice lines become duplicates with equal values; its clkreq, wakeup-source and the J604 board parts stay needed. #4031's hunks merge cleanly; #4005 doesn't touch the DT; #3629 is merged.

Rows

  • J773g, commit 1 + #4007 + #4031: cold boot with HDMI and USB-C; boot with only HDMI; plug a USB-C display after dcpext1 idles off; deep x3 with both displays and once with none; Wi-Fi, Bluetooth and Ethernet back. The ship boot's DTB from this head counts: it differs from commit 1 alone only on the disabled internal dcp/dcp_dart/disp0_dart.
  • J715, commit 2, 27.2: boot, USB-C display plugged after idle, deep x3 with and without it.
  • J604, commit 2 after #4008 and #4009: the same.
  • J713: none, its tree is unchanged. J623/J624: a plain boot is enough, their DCP nodes stay disabled.
Per-board check and what ran
Board Commit 1 Commit 2 ADT here
J773g 40 changes 6, all on disabled nodes own live ADT: slices 42/8/5/4/30/29, DART and dispext reg, clkreq 0xa0 all match
J713 none none live 27.2 coverage file (values redacted, no slice index)
J715 none 6: display-power on dcpext0/1, gapf on both DARTs restore image only: no slice index; the dtsi comment on main states 5/30
J604 none 39 restore image only; #4008 and #4009 state 42/8/5/4/30/29 from the live ADT
J623, J624 none 39 each, DCP nodes disabled restore image only: no slice index, nobody has stated one
  • The restore images' (adt-coverage/, most values redacted, reg kept) dart-dcp*/dart-disp* nodes are the same on J604, J623, J624, J715 and J773g, and the dispext0/1 nodes and the PMGR base on all six boards. The slice index and the second DART window are added by the boot firmware. A GAPF word is slice 0x38079c100 + 0x40 * n, so the slice index is the only value to check per board, and sleep.c already uses 42/5/30 for every T8132.
  • apple,firmware-owned and status = "okay" on ps_dispext* are no change at run time: the platform handoff already applies them on every T8132 board. The new parts are consumer-switched, bridge-link and the retention words.
  • power-domains back on the J773g's dcpext chains makes them wait for apple-pmc (through #4031), as on the J713. The display gate only looks at status, so it is fine.
  • dt-validate (full schema) on the six DTBs: same messages for base, commit 1 and commit 2. W=1: same warnings. dt_binding_check on the DCP, display-power, DART and PMGR bindings: clean. Host tests on the merge: t8132 4/4, pmgr 3/3, dart 32/32; apple-dcp fails the same 14 cases as the base on this build box (host.c doesn't compile with its clang, not from this PR).
  • #4007, #4008 and #4009 merge cleanly on top and the J604, J715 and J773g trees build. Nothing was booted for this review.

Describe the T8132 external display power controller, DART GAPF slices,
clock-protection slices, and ps_dispext{0,1}_{sys,fe,cpu} retention and
consumer-switched properties on the M4 Mac mini (J773g) so dcpext0
(HDMI) and dcpext1 (USB-C DP) can stop and restart across deep sleep.

Every register address, GAPF slice index (dart-dcpext0=5,
dart-dispext0=4, dart-dcpext1=30, dart-dispext1=29), and PMC/PMGR word
is verified against the live J773g ADT (firmware 27.2 / 26B123).

On firmware 27.2 this also enables dcp_ext_idle_capable() runtime idle
power-off for dcpext1 (USB-C DP) when no display is attached.

Signed-off-by: DjDeveloperr <hey@djdev.me>
@DjDeveloperr
DjDeveloperr force-pushed the j773g/t8132-dcpext-display-power branch from 64e8545 to 5a30f09 Compare December 3, 2026 08:56
@DjDeveloperr DjDeveloperr changed the title arm64: dts: apple: t8132: wire display-power and J773g radio clkreq for deep sleep arm64: dts: apple: t8132-j773g: wire display-power for deep sleep Dec 3, 2026
@github-actions github-actions Bot removed the ci-failing A check failed at the PR head (bot) label Dec 3, 2026

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

area:bringup Area from CODEOWNERS (bot) blast:m4 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant