Repository navigation
arm64: dts: apple: t8142-j704: External displays on the left USB-C ports - #3431
Conversation
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>
There was a problem hiding this comment.
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.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Row on a
|
|
Rows at
Other families: the diff touches only |
There was a problem hiding this comment.
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)
|
Merging at |
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 fromt8142-j704.dts. The nodes followt8142-j813-dcpext.dtsi(#1806), with values from this machine's ADT:dp-switch-ufp-endpoint1) ondpxbar0/dpxbar1, DPTX PHY 0/1The 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
mainkernel row atae8f99ee(clang, J704 config, aura with the T8142 display handoff, RAM-only boot with this branch'st8142-j704.dtb):aurora,dcpext0-handoff: okay, dcpext0 bound in apple-drm;DP-1/DP-2next toeDP-1; dock on the left-rear port:DP-2connected and enabled at 2560x1440, console on both the panel and the dock's monitor; nocalibration missing. arm64: dts: apple: t8142-j704: External displays on the left USB-C ports #3431 (comment)dcp,dcpext0,dcpext1handoff 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.