Skip to content

arm64: dts: apple: t6041-j614c-j616c: dcpext2 for a second USB-C display - #1684

Merged
RyanTheTide merged 3 commits into
aurora-silicon:integration/aurorafrom
joske:pr/t6041-j614c-dcpext2-usbc
Nov 13, 2026
Merged

RyanTheTide merged 3 commits into
aurora-silicon:integration/aurorafrom
joske:pr/t6041-j614c-dcpext2-usbc

Conversation

@joske

@joske joske commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Depends on #1667 (USB-C DisplayPort on all three ports). This branch has #1667's commit; the last two commits are new. The loader side is aurora-silicon/aura#166, which adds dcpext2 to t6041_exts. Without it, dcpext2's firmware memory stays a placeholder and the gate leaves the chain off.

Problem

The J614c and J616c have one USB-C display processor, dcpext1. While one USB-C display is up, a second one stays dark on any port, in either orientation. It lights as soon as the first one is unplugged.

Change

The M4 Max has four external display processors. iBoot preloads and starts all of them: the live J614c ADT has pre-loaded 1 and running 1 on iop-dcpext0..3-nub, with the same four segments.

  • dcpext2 (t6041-j616c-usbc-dcpext2.dtsi): the processor, its DARTs and its mailbox. On the J614c the ADT gives the same addresses and interrupts as the J614s's dcpext2 (t6040-j614s-extdisp-hdmi.dtsi): coproc 0x606e00000, mailbox IRQs 1362-1365, dart-dcpext2/dart-dispext2 at 0x606340000/0x606300000 with IRQ 1309, external-index 3, bandwidth agent 0x90 (apple,bw-scratch 0x34000). Here it is a USB-C processor: all three ATC PHYs and crossbars by name, and route@0-2. The crossbar state is 4 (2 × dp-switch-ufp-endpoint 2 + port 0), as arm64: dts: apple: t6040-j614s: Type-C routes for dcpext2 (two USB-C displays) #1654 uses for the J614s. As for dcpext1 on this SoC, no PMP and no power domain is described.
  • Connectors: port@3 of typec0-2 now has one endpoint per processor (@0 dcpext1, @1 dcpext2).
  • Display gate: a third M4 Max chain enables dcpext2's DARTs, mailbox, routes and processor once its firmware memory is filled. The ATC0-2 crossbars stay in dcpext1's chain, which enables them. The J575c tree has no dcp@606e00000, so this chain does nothing there.
  • KUnit: the T6041 test tree has dcpext2's chain. A new case checks that all three chains come up when all three processors are filled; no_memory also checks the third one.

Testing

J614c (MacBook Pro 14" M4 Max), os-fw 26.6.2. aura main (1.0.0b12) + aura#166. Kernel: integration/aurora fa59399 + #1667 + these commits, plus local test patches (#1466, speakers).

apple-t6041-display: /dcp@3a2e00000 enabled
apple-t6041-display: /dcp@602e00000 enabled
apple-t6041-display: /dcp@606e00000 enabled
apple-dcp 606e00000.dcp: coprocessor handoff: CPU_CONTROL 0x10 CPU_STATUS 0x6c
apple-dcp 606e00000.dcp: DCP booted
...
apple-dcp 602e00000.dcp: allocated Type-C DPTX PHY 1
phy-apple-t6040-usb2 38aa90000.phy: DP PHY pin D: two lanes, USB3 retained, reverse orientation
apple-dcp 602e00000.dcp: dcp_hotplug() connected:1 valid_mode:0 nr_modes:23
apple-dcp 606e00000.dcp: allocated Type-C DPTX PHY 0
apple-dcp 606e00000.dcp: dcp_hotplug() connected:1 valid_mode:0 nr_modes:22
  • Two USB-C displays at once: pass. A dock with native DP alt mode on the left front port (pin D, two lanes + USB 3) drove an iiyama at 2560x1440 through dcpext1. A USB-C to DisplayPort cable on the left back port drove a second iiyama at 2560x1440 through dcpext2. Both stayed on with the lid closed.
  • KUnit apple-display-gate on arm64 QEMU: 57/57. With the third chain taken out of the gate, gate_t6041_max_second_usbc and gate_t6041_max_no_memory fail.
  • DTBs build for t6041-j614c, t6041-j616c and t6041-j575c (the J575c's is unchanged).
  • Not tested: three external displays at once (HDMI + two USB-C), the J616c, dcpext3, and DP audio on dcpext2 (not described).

🤖 Generated with Claude Code

@RyanTheTide

Copy link
Copy Markdown
Contributor

@joske the DT and gate changes look right, and the J575c stays a no-op. The carried #1667 commit (9cce978) has no Signed-off-by; once that is fixed in #1667 and this branch is rebased on it, this is ready to merge after #1667.

joske and others added 3 commits November 12, 2026 23:19
…ports

dcpext1 only had a route to typec1 (left front), so a display on the
left back or the right port stayed dark. Give it a route to every port,
as dcpext1 has on the M4 Pro (t6040-j616s-extdisp-usbc.dtsi): the three
ATC PHYs and display crossbars by name, a route@0-2 per port and the
connectors' port@3 endpoints. The ATC0 and ATC2 crossbars were deleted
from this board's tree while only HDMI used the display fabric; they are
kept now. The crossbar state is 2 on every port, as on the M4 Pro.

The display gate enables the ATC0-2 crossbars and the three routes with
the rest of dcpext1's chain on the J614c and J616c. The J575c, which has
only the typec1 route, keeps its own list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Jos Dehaes <[email protected]>
The J614c and J616c have one USB-C display processor, dcpext1, so a
second USB-C display stays dark while the first is up. The M4 Max has
four external processors and iBoot preloads and starts them all
(iop-dcpextN-nub pre-loaded 1, running 1). Describe dcpext2, its DARTs
and its mailbox as on the J614s, where it drives HDMI, but as a USB-C
processor with a route to each of the three ports, as aurora-silicon#1654 does for
the J614s (crossbar state 4). The connectors' port@3 gets one endpoint
per processor. As dcpext1 on this SoC, no PMP and no power domain is
described.

The display gate enables dcpext2's chain, without the crossbars that
dcpext1's chain enables, once the boot loader has filled its firmware
memory (aura#166 adds dcpext2 to t6041_exts).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Jos Dehaes <[email protected]>
Add dcpext2's chain to the T6041 test tree and check that it comes up
next to dcpext0's and dcpext1's when the boot loader has filled its
firmware memory, and stays off when it has not.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Jos Dehaes <[email protected]>

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Signed-off-by is in on all three commits and the changes are the reviewed ones. CI is green, including the new KUnit case. This goes in right after #1667.

@RyanTheTide
RyanTheTide merged commit bd9aa80 into aurora-silicon:integration/aurora Nov 13, 2026
8 checks passed
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.

2 participants