Skip to content

arm64: dts: apple: t8132-j715: DisplayPort alt mode on both USB-C ports - #2807

Open
RyanTheTide wants to merge 4 commits into
mainfrom
spec-m3m4/j713-j715-dp-alt-mode-v2
Open

RyanTheTide wants to merge 4 commits into
mainfrom
spec-m3m4/j713-j715-dp-alt-mode-v2

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Problem. The MacBook Air 15-inch M4 (J715) has the same two USB-C ports as the J713: ATC0 and ATC1 with their display crossbars. They share the dcpext routes in t8132-j713-j715.dtsi. The J713 marks both PHYs apple,dp-alt-mode (80208db on main). The J715 does not, so a plain USB-C monitor or a USB-C to HDMI/DP adapter (anything that is not USB4/Thunderbolt) gets no picture there.

Change. Mark atcphy0 and atcphy1 apple,dp-alt-mode in t8132-j715.dts, and name the J715 in the shared dtsi comments. The J713 half of the original change is already on main, so this branch is now main plus the J715 commit.

Tested: J715 owner row (kazuhidet, above) with this same property on both PHYs (as #2246 / 64d3aee): DP alt mode works on both ports. Locally at cb4f3c2: the J715 DTB differs from main only by apple,dp-alt-mode on the two PHYs, and the J713 DTB is unchanged.
Risk: two-way · J715 (MacBook Air 15-inch M4) only

Still to run: a J715 row on this head (a non-Thunderbolt USB-C monitor on each port, hotplug, one suspend; a USB4 display still uses the tunnel path).

…C ports

The MacBook Air M4's two USB-C ports are ATC0 and ATC1 with their display
crossbars, the same PHYs and routes as the J604's left ports, where DP alt
mode runs since the T8132 PHY gained it (apple,dp-alt-mode). The Air DT
still said the PHYs had no DP alt mode, a note from before that support,
so a USB-C monitor or a USB-C to HDMI adapter got no picture unless it
was a USB4/Thunderbolt display.

Mark both PHYs. The dcpext routes, their boot-loader gate and the tunnel
path are unchanged.

Not tested on hardware; needs a J713/J715
run with a USB-C (non-TB) monitor on each port.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@kazuhidet

Copy link
Copy Markdown
Contributor

J715 row for this change (MacBook Air 15-inch, M4, Mac16,13). I tested it as #2246, whose DT change is the same as this head's (64d3aeeb).

Build

Result: DP alt mode works on both ports. Each run is one boot.

Port A (MagSafe side) Port B
Type-C partner on port1, svid=ff01 active=yes, host/source partner on port0, same
Crossbar / PHY 40b04c000.mux: dpphy route 2, "allocated Type-C DPTX PHY 1" 40304c000.mux: dpphy route 2, "allocated Type-C DPTX PHY 0"
HPD "display HPD asserted", IRQ_HPD raised same
DRM card1-DP-1 connected, enabled, modes up to 3840x2400 same
Picture yes, below 3840x2400 (see below) yes
Unplug and replug works works
DART faults 0 0

Modes on one port, each set from Hyprland and shown on the monitor:

  • 1280x720@60, 1920x1080@60, 2560x1440@59.95, 2560x1600@59.97, 3840x2160@30 and 3840x2160@60 all show a picture, with no frame not shown lines.

Failed units and kernel errors: the same two local services and known errors as in my other rows. Nothing new.

One finding outside this PR: a sink mode above 3840x2160 stays black. This monitor prefers 3840x2400, and with it the screen stays black:

apple-dcp 286e00000.dcp: enable 3840x2400 (timing 43, colour 91, bootstrap 0) failed: -22; no frames until an enable succeeds
apple-dcp 286e00000.dcp: dcpext-286e00000.dcp on: 3840x2400@60 Hz failed: -22
apple-dcp 286e00000.dcp: dcpext-286e00000.dcp: frame not shown: -116

The monitor shows its own resolution banner, so the link and timing are set. Hyprland counts the output as enabled, but every frame is refused.

  • Cause: dcp_m4_ext_drm_buffers() returns -EINVAL for width > 3840 || height > 2160, since its surfaces are sized for 3840x2160. dcp-m4-frame.h has the same check. Both are still there on current integration/aurora (00cbc67: iomfb_m4.c:4301, dcp-m4-frame.h:145).
  • Not bandwidth: 3840x2400@59.99 has a lower pixel clock (592.5 MHz) than 3840x2160@60 (594 MHz), which works. The size is the limit.
  • Suggestion: filter such modes in mode validation, so userspace never picks one that can't scan out. Or size the surfaces for the largest mode. Should I open an issue for it?

Not covered: s2idle with the display coming back, a USB-C to HDMI adapter, and the USB4 tunnel path.

The monitor reported no make or model to userspace. That fits this kernel, which predates "drm: apple: t8132: publish the sink's EDID on external outputs".

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

64d3aee merges without conflicts on integration/aurora daa9e2d; the tip's Air DT still says the ATC PHYs have no DP alt mode. The J715 row above shows alt mode working on both ports on firmware 26.6.2. Still to run before this leaves draft: a J713 row (a non-Thunderbolt USB-C monitor on each port, hotplug, one suspend) and a USB4 display to confirm the tunnel path is unchanged.

The J713 half landed on main as 80208db (both J713 PHYs marked in
t8132-j713.dts, the shared dtsi comments updated); take main's
t8132-j713-j715.dtsi. The J715 half follows on top.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
The J715 (MacBook Air 15-inch, M4) has the same two USB-C ports as the
J713: ATC0/ATC1 with their display crossbars, the same dcpext routes in
t8132-j713-j715.dtsi. The J713 marks both PHYs apple,dp-alt-mode
(80208db); the J715 did not, so a plain USB-C monitor or a USB-C
to HDMI/DP adapter gets no picture there. Mark both J715 PHYs the same
way.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide RyanTheTide changed the title arm64: dts: apple: t8132-j713-j715: DisplayPort alt mode on both USB-C ports arm64: dts: apple: t8132-j715: DisplayPort alt mode on both USB-C ports Dec 5, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Updated to cb4f3c2. The J713 half is on main (80208db marks both J713 PHYs, and the shared dtsi comments changed with it), so I merged main and took main's t8132-j713-j715.dtsi. One commit on top adds the same two properties to t8132-j715.dts. DTB check: the J715 diff from main is only the two apple,dp-alt-mode lines, and the J713 is unchanged. The J715 row above (same property on both PHYs, alt mode on both ports) covers the change. Main's J715 now has its own ATC calibration, so a confirming J715 row on this head would still help (no J715 in our lab). Marking ready for review.

@RyanTheTide
RyanTheTide marked this pull request as ready for review December 5, 2026 01:07
@RyanTheTide
RyanTheTide requested review from a team as code owners December 5, 2026 01:07
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) blast:m4 Macs affected, from Merge risk (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) labels Dec 5, 2026
@github-actions github-actions Bot removed the ci-failing A check failed at the PR head (bot) label Dec 5, 2026
@github-actions

github-actions Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Merge readiness at 8e868001: not ready yet

Check Detail
CI at head ok 4 checks passed
Review no approved by aurora-silicon-review, but GitHub does not count it yet (code owner from Core, Omarchy Mac or Aurora Maintainers needed, or approval went stale)
Requested changes ok none
Hardware row at head no no line with the head SHA 8e868001, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · J715 (MacBook Air 15-inch M4) only Still to run: a J715 row on this head (a non-Thunderbolt USB-C monitor on each port, hotplug, one suspend; a USB4 display still uses the tunnel path).

Areas: area:bringup

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

@github-actions github-actions Bot added the needs-hw-row No hardware row at the PR head (bot) label Dec 5, 2026

@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 8e86800
Checked: Built both Air DTBs at the merge parent and exact head. J713 is byte-identical. The sorted J715 device tree differs only by the DP alt-mode property on each of its two PHYs. The existing driver consumes those properties for alt-mode admission and keeps USB4 tunnel routing and the external DCP handoff checks in place.

Hosted DT checks passed. The existing J715 owner row covered both ports on a predecessor with the same property change. Exact-head hotplug, suspend and USB4 control remain pending.

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.

2 participants