Repository navigation
arm64: dts: apple: t6040-j614s: Type-C routes for dcpext2 (two USB-C displays) - #1654
Merged
RyanTheTide merged 3 commits intoNov 12, 2026
Merged
RyanTheTide merged 3 commits into
RyanTheTide merged 3 commits into
Conversation
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]>
This was referenced Nov 12, 2026
RyanTheTide
approved these changes
Nov 12, 2026
RyanTheTide
left a comment
Contributor
There was a problem hiding this comment.
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
merged commit Nov 12, 2026
ac5df34
into
aurora-silicon:integration/aurora
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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:atcphy0-2andatcphy0-2_xbarare added astypec0-2, withapple,typec-dptx-phys = <0 1 2>andapple,typec-mux-indices = <4 4 4>. Crossbar state 4 = 2 ×dp-switch-ufp-endpoint(2) + port 0, the same as its HDMImux-index. It also getstypec-routes/route@0-2, disabled.port@3/endpoint@1, labelledtypecN_dcpext0) now points at dcpext2's route. dcpext0'stypec-routesare deleted on j614s, so nothing refers to the absent processor. The graph is checked symmetric for all three ports./dcp@606e00000, ast6041_hdmi_nodesdoes 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-firstis not set on dcpext2. On j614s, dcpext1 has the lower firmware endpoint.j616s is unchanged: its DTB has no
dcp@606e00000and the gate change only replaces the stage onapple,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 byaurora-stage2-commit.DP-1andDP-2, next to the internal panel. dcpext1 takes ATC0 (state 2) and dcpext2 takes ATC1 (state 4).typec2as the second port, and 7680 px two-pipe sinks, are not tested.🤖 Generated with Claude Code