Skip to content

arm64: dts: apple: t6040-j614s: Type-C routes for dcpext2 (two USB-C displays) - #1654

Merged
RyanTheTide merged 3 commits into
aurora-silicon:integration/aurorafrom
petrskuta:j614s-dcpext2-typec
Nov 12, 2026
Merged

RyanTheTide merged 3 commits into
aurora-silicon:integration/aurorafrom
petrskuta:j614s-dcpext2-typec

Conversation

@petrskuta

Copy link
Copy Markdown
Contributor

Depends on #1585. This branch contains #1585's two commits; only the last commit, "Type-C routes for dcpext2", is new.

Problem

With #1585, dcpext2 drives the j614s HDMI port only. A j614s with two USB-C DisplayPort monitors therefore lights only one of them, because both need dcpext1:

apple-dcp 602e00000.dcp: display on USB-C Left Front waits for a free external display pipeline (each one drives another display); it lights up on its own when one of those displays is unplugged

Change

This follows what the j616s does with its HDMI processor dcpext0 in t6040-j616s-extdisp-usbc.dtsi, which gives it a route to every Type-C port next to its fixed HDMI path:

  • dcpext2: atcphy0-2 and atcphy0-2_xbar are added as typec0-2, with apple,typec-dptx-phys = <0 1 2> and apple,typec-mux-indices = <4 4 4>. Crossbar state 4 = 2 × dp-switch-ufp-endpoint (2) + port 0, the same as its HDMI mux-index. It also gets typec-routes/route@0-2, disabled.
  • Connectors: each connector's second display endpoint (port@3/endpoint@1, labelled typecN_dcpext0) now points at dcpext2's route. dcpext0's typec-routes are deleted on j614s, so nothing refers to the absent processor. The graph is checked symmetric for all three ports.
  • Gate: the j614s HDMI stage lists the three routes before /dcp@606e00000, as t6041_hdmi_nodes does for dcpext0. The HDMI-only Type-C crossbar handling (no USB-C chain) now keys on the HDMI stage rather than on the j616s list, so it also covers dcpext2's mux-controls.
  • apple,typec-hybrid-first is not set on dcpext2. On j614s, dcpext1 has the lower firmware endpoint.

j616s is unchanged: its DTB has no dcp@606e00000 and the gate change only replaces the stage on apple,j614s.

Testing

j614s, os-fw 26.6.2. The kernel was built from this branch plus #1588 on f9f14be0f. The DTB was deployed through an aura-try trial (aura#166) and committed by aurora-stage2-commit.

apple-t6041-display: stage 0 enabled
apple-t6041-display: stage 1 enabled
apple-display-crossbar 38324c000.mux: dpphy: T602X route 2, clocks disabled
apple-display-crossbar 38b24c000.mux: dpphy: T602X route 4, clocks disabled
apple-dcp 602e00000.dcp: dcp_hotplug() connected:1 valid_mode:0 nr_modes:23
apple-dcp 606e00000.dcp: dcp_hotplug() connected:1 valid_mode:0 nr_modes:23
  • Two USB-C DisplayPort monitors at the same time, coldplug: pass. Dell P2725DE (USB-C) and Dell P2725D (DisplayPort-to-USB-C cable), both at [email protected], as DP-1 and DP-2, next to the internal panel. dcpext1 takes ATC0 (state 2) and dcpext2 takes ATC1 (state 4).
  • Not retested after this change: HDMI on the same build, with dcpext2's fixed path; one USB-C monitor plus HDMI; hotplug; sleep. typec2 as the second port, and 7680 px two-pipe sinks, are not tested.

🤖 Generated with Claude Code

petrskuta and others added 3 commits November 11, 2026 20:49
The J614s ADT has no dcpext0, dart-dcpext0 or dispext0, and its DISPEXT0
power states are virtual. Its second external display processor is
dcpext2: dcpext1's block shifted by 0x4000000, crossbar UFP endpoint 2,
DISPEXT2 power states at 0x5028004e0/4e8, PMP soc-device 20. The HDMI
path behind it (atc3 crossbar, atcphy3, DP-to-HDMI converter, GPIOs) is
the J616s one.

Describe dcpext2, its mailbox, DARTs, power states and PMP request for the
J614s only, and drop dcpext0's firmware memory there so neither the loader
nor the gate tries to use it. The bandwidth scratch (0x34000) follows the
rule that gives disp0 0x20000 and dispext1 0x30000 from the ADT bwr-agent
table. In the gate, a J614s HDMI stage list replaces the J616s one.

Signed-off-by: Petr Škuta <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
dcpext2's audio is ADT dp-audio3: SIO DMA channel 0x6a and power state
DPA3, as dcpext0's is DPA1 (0x66) and dcpext1's DPA2 (0x68). Describe
DPA3 and link it to dcpext2, so the HDMI port gets its sound card. DPA1
stays linked to the absent dcpext0 and reports no audio support, as
before.

Signed-off-by: Petr Škuta <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
With only dcpext1 offering Type-C routes, a second USB-C display on a
J614s waits for a free pipeline. The J616s gives its HDMI processor,
dcpext0, a route to every Type-C port next to its fixed HDMI path (a
hybrid pipeline). Do the same with the J614s's HDMI processor, dcpext2:
the typec0-2 PHYs and crossbars at state 4 (2 * UFP endpoint 2), and its
routes in place of dcpext0's on the connectors' second display endpoints.
The gate enables them with dcpext2, as dcpext0's on the J616s, and the
HDMI-only crossbar handling now covers whichever HDMI processor the board
has.

Signed-off-by: Petr Škuta <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[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.

The real change here is the last commit. The gate condition change is equivalent for the J616s, and the J614s gets dcpext2's routes. The dual USB-C result covers it. Looks good.

@RyanTheTide
RyanTheTide merged commit ac5df34 into aurora-silicon:integration/aurora Nov 12, 2026
8 checks passed
joske added a commit to joske/linux that referenced this pull request Nov 12, 2026
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]>
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