Skip to content

arm64: dts: apple: t8142-j704: External displays on the left USB-C ports - #3431

Merged
RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
term-guy:j704-usbc-display
Dec 1, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
term-guy:j704-usbc-display

Conversation

@term-guy

@term-guy term-guy commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

What: External displays on the J704's (MacBook Pro 14", M5) two left USB-C ports over DisplayPort alt mode. DCPEXT1 stays with the HDMI port, so DCPEXT0 gets a Type-C route to each left port (ATC0 left-front, ATC1 left-rear) through the display crossbar behind each port's PHY: one USB-C display at a time, next to HDMI. Before this, a dock entered DP alt mode but the PHY served only its USB (DisplayPort calibration missing: serving the partner's USB only).
Tested: J704 (M5 MacBook Pro 14") at ae8f99ee: dcpext0 handoff okay, a USB-C dock's HDMI monitor shows the console at 2560x1440 on DP-2 (main has no J704 GPU nodes, so no desktop). Same DT on our Fedora kernel: picture on either left port, dock USB3 at 5000M, replug, s2idle resume and lid close work. Other Macs: no runtime change (J704 DT only).
Risk: two-way door · J704 only; everything stays disabled until the boot loader hands DCPEXT0 over, and the ports are then plain USB as before.
Not yet: the right port (ATC3); the HDMI port and a USB-C display at the same time; DP audio.

Details

One new file, t8142-j704-usbc-display.dtsi, included from t8142-j704.dts. The nodes follow t8142-j813-dcpext.dtsi (#1806), with values from this machine's ADT:

  • dcpext0 mailbox IRQs 853-856, firmware DART SID 23, dispext0 clock-ids 369/432
  • crossbar source 2 (dp-switch-ufp-endpoint 1) on dpxbar0/dpxbar1, DPTX PHY 0/1
  • DISPEXT0_SYS/FE/CPU at PMGR 0x308/0x418/0x428, firmware-owned as for DISPEXT1
  • the LIOA window (AXI2AF + 0x20000) on atcphy0/1, so the boot loader copies the DP calibration (without it the PHY stays USB only)

The loader side is aura's T8142 dcpext handoff (aurora-silicon/aura#391, merged; aura#409 for the J704). The only always-on change is the LIOA register window on atcphy0/1, which J813/J815 already have.

The right port gets no route yet: it is untested, as it carried the USB link to the host during bring-up.

Evidence
  • main kernel row at ae8f99ee (clang, J704 config, aura with the T8142 display handoff, RAM-only boot with this branch's t8142-j704.dtb): aurora,dcpext0-handoff: okay, dcpext0 bound in apple-drm; DP-1/DP-2 next to eDP-1; dock on the left-rear port: DP-2 connected and enabled at 2560x1440, console on both the panel and the dock's monitor; no calibration missing. arm64: dts: apple: t8142-j704: External displays on the left USB-C ports #3431 (comment)
  • Fedora 44 kernel 7.3.0 (same display code) with this DT plus the HDMI tree, installed as the ESP Stage 2's DTB and booted normally: dcp, dcpext0, dcpext1 handoff okay; dock monitor at 2560x1440 on either left port (pin assignment D, dock hub at 5000M); unplug/replug and moving between ports; s2idle and resume with the monitor attached; lid closed moves the desktop to the monitor.
  • make CHECK_DTBS=y apple/t8142-j704.dtb: no new warnings.

The J704 (MacBook Pro 14", M5) has the J813's two external display
processors, but keeps DCPEXT1 for its HDMI port. Give DCPEXT0 a Type-C
route to each left USB-C port instead (ATC0 left-front, ATC1 left-rear),
through the display crossbar behind each port's PHY: one display at a
time on these ports, next to HDMI.

The nodes follow t8142-j813-dcpext.dtsi. From this machine's ADT:
dcpext0 mailbox IRQs 853-856, firmware DART SID 23, dispext0 clock-ids
369 and 432, crossbar source 2 (dp-switch-ufp-endpoint 1), the
DISPEXT0_SYS/FE/CPU power states at PMGR 0x308/0x418/0x428 (left to the
inherited firmware session, as for DISPEXT1), and the LIOA bank at
AXI2AF + 0x20000 on atc-phy0/1. With the LIOA window the boot loader
copies the ports' DP calibration; without it the PHY stays USB only
("DisplayPort calibration missing").

Everything stays disabled until the boot loader hands DCPEXT0 over
(aura's T8142 dcpext handoff); the ports are then plain USB as before.
The right port (ATC3) gets no route yet: it is untested.

Tested on a J704 (Fedora 44, aurora 7.3.0, aura with the T8142 display
handoff): dcpext0 handoff okay, DP-1 and DP-2 appear; a USB-C dock with
an HDMI monitor shows a picture at 2560x1440 on either left port, with
the dock's USB3 hub at 5000M next to it (pin assignment D). Unplug and
replug, s2idle and resume with the monitor attached, and lid close
(the desktop moves to the monitor) work.

Signed-off-by: termg <hello@termg.com>
@term-guy
term-guy requested review from a team as code owners November 27, 2026 19:39

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Verdict: FINISH, then merge at ae8f99eeafea.
Blockers: Please post a J704 boot from this commit with both left USB-C ports exercised, including a boot with the DCPEXT0 handoff unavailable or refused to verify USB fallback. Please include a second-family regression smoke row and wait for hosted checks. The current J704 row uses the Fedora kernel.
Checked: I compiled the parent and PR J704 DTBs and ran dt-schema against both using the bindings from this commit. The same pre-existing alias warning appeared on both. The new routes have reciprocal graph endpoints, match the existing DCP and crossbar bindings, and start disabled. The board DTS describes physical wiring without adding a driver-side board gate. Sign-off is present, and I found no apparent proprietary firmware or tuning payload in the diff.

@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) ci-failing A check failed at the PR head (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 Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Merge readiness at ae8f99ee: not ready yet

Check Detail
CI at head no failing: pr-text / pr-text
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok not needed: no runtime change
Conflicts ok none
PR text ok Risk: two-way · J704 only; everything stays disabled until the boot loader hands DCPEXT0 over, and the ports are then plain USB as before.

Areas: area:bringup

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

@term-guy

Copy link
Copy Markdown
Contributor Author

Row on a main kernel (#3431 head ae8f99e): J704, the PR branch built as-is (clang, asahi-based J704 config), aura with the T8142 display handoff, booted RAM-only with this branch's t8142-j704.dtb:

  • aurora,dcpext0-handoff: okay, dcpext0 binds in apple-drm next to the internal DCP
  • DP-1/DP-2 appear next to eDP-1; a USB-C dock with an HDMI monitor on the left-rear port: DP-2 connected and enabled at 2560x1440, and the console shows on both the internal panel and the dock's monitor
  • no DisplayPort calibration missing, dock USB stays up

main has no J704 GPU nodes yet, so the desktop doesn't start on this kernel (KWin has no render node). The desktop rows in the description are on our Fedora kernel with the same display code.

@github-actions github-actions Bot added door:two-way Revertible or not, from Merge risk (bot) and removed needs-hw-row No hardware row at the PR head (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 28, 2026
@term-guy

Copy link
Copy Markdown
Contributor Author

Rows at ae8f99ee (this branch built as is, clang; aura with the T8142 display handoff from aura#409 b790cd16; RAM-only boots on a J704; USB-C dock with an HDMI monitor at 2560x1440). main has no J704 GPU nodes, so each row is on the console (no desktop):

  1. Left-front port, at boot: aurora,dcpext0-handoff: okay; DP-1 connected and enabled at 2560x1440 next to eDP-1, console on the panel and on the dock's monitor; the dock's USB (hub, keyboard, Ethernet, SD reader, NVMe enclosure) enumerated.
  2. Left-rear port, hotplug in the same boot: the dock moved from the front port to the rear one: DP-1 disconnected, DP-2 connected at 2560x1440 and the console followed to the monitor; the dock's USB came back on the new port. (media: apple: ave: speed over quality for HEVC Main 10 too #1239 above: the rear port at boot.)
  3. No handoff: the same DTB with the dcpext0 alias removed, so aura skips the handoff (no aurora,dcpext0-handoff in /chosen). dcpext0 and both Type-C routes stay disabled and only eDP-1 exists; the dock on the left-rear port works as plain USB (hub, keyboard, Ethernet, SD reader, NVMe enclosure) and the monitor stays dark, as the Risk line says.

Other families: the diff touches only t8142-j704.dts and the new t8142-j704-usbc-display.dtsi, and no other DTS includes either file, so no other board's DTB changes. A J813/J815 smoke row would still be welcome, but nothing they boot changes.

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Verdict: MERGE at ae8f99eeafea

Converts this App's earlier review at the same head to an approval under the 12-01 merge bar (better than before and doesn't break; block only on a shown failure). No code blocker was found in it. The merge gate (a row on one Mac at this head + fast CI) is tracked by pr-readiness, not held here.

Checked: I compiled the parent and PR J704 DTBs and ran dt-schema against both using the bindings from this commit. The same pre-existing alias warning appeared on both. The new routes have reciprocal graph endpoints, match the existing DCP and crossbar bindings, and start disabled. The board DTS describes physical wiring without adding a driver-side board gate. Sign-off is present, and I found no apparent proprietary firmware or tuning payload in the diff.

Follow-ups (not blocking): J704 boot both left ports incl. refused handoff fallback, hosted checks (2nd family not required)

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merging at ae8f99eeafea (B2 merge train, 12-01 merge bar). Approval at this head: aurora-silicon-review[bot]. Row: not needed per readiness (DT/test-only, no runtime change), or its row at ae8f99e. CI: linux train L4 = main (after L3) + 34 approved PRs (#3419 dropped: conflicts): Apple driver compile pass, Apple DTBs W=1 pass, planned KUnit ane-boot/clpc/ane-pm/dcp-fabric/dcp-topology/dcp-display/macaudio/asahi/sep all pass, host tests apple-dcp + apple-scaler-recovery pass (the red host-tests on some heads were base failures since fixed on main). The rest of the hosted run is queued behind the backlog. Revert: git revert -m 1 <merge commit>.

@RyanTheTide
RyanTheTide merged commit 185c326 into aurora-silicon:main Dec 1, 2026
6 of 7 checks passed
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) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (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.

2 participants