Skip to content

arm64: dts: apple: t6050-j775d: describe dcpext1-3 for Aura Type-C display routes - #3116

Merged
DjDeveloperr merged 5 commits into
aurora-silicon:mainfrom
funkzy:pr/t6050-dp-all-ports
Nov 26, 2026
Merged

DjDeveloperr merged 5 commits into
aurora-silicon:mainfrom
funkzy:pr/t6050-dp-all-ports

Conversation

@funkzy

@funkzy funkzy commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

What: Allow an empty typec-routes container on apple,dcp nodes for Aura to populate from the ADT, treat a typec-routes container with zero usable routes as no Type-C routes instead of failing probe with -EINVAL, consolidate T6050 display crossbar power domains and shared dcpext1..3 / dispext1..3_dart properties in t6050-peripherals.dtsi, and describe dcpext1..3 on the J775D (keeping dcpext0's static port 3 route intact until a route-writing Aura ships).
Tested: J775D (Mac Studio, M5 Ultra) at 064c3c65cd3e on bare main e7528180365f under published Aura 7bf44a6374af (27.2 stub, default command line, own-base A/B): dcpext0 keeps card0-DP-1: connected (rear port 3), dcpext1..3 (392e/302e/306e00000.dcp, indices 2..4) probe cleanly with no usable Type-C display routes and bind to display-subsystem, card0-HDMI-A-1: connected, 0 new kernel errors (8 vs 8 baseline), 2/2 baseline failed units (ALARM has no SELinux). Extra test paired with the unposted Aura route-writer branch (9b40b3c89e59) populates 2 routes each on dcpext1..3 (card0-DP-2..7, rear ports 2 and 4; rear port 1 untouched) with 0 new kernel errors. Automated: dt_binding_check and dtbs_check across all 11 T6050 DTBs pass (0 new / 0 gone diagnostics, dt-validate 0 lines), host_tests_vm.sh 545/549 pass (0 of 549 differ vs base), checkpatch.pl --strict clean.
Risk: two-way door · affects T6050 display DTBs (J775D, K116s, J714s, J716c) and apple-dcp Type-C route registration (dcp-fabric.c, dcp_t8132.c, dcp.c, dcp_t6030.c). On J716c, dcpext1..3 and their DARTs are unchanged (only atc3_dpxbar gains power domains); on J714s, dcpext1..3 gain apple,bw-scratch which Aura's panel handoff overwrites from the ADT; on K116s, dcpext1..3 gain apple,dcp-index <2..4> (was 0), apple,bw-scratch (overwritten on panel boots), and single-range dispext1..3_dart reg (apple-dart maps reg[0] only); on other T6050 boards without display-subsystem, dcpext1..3 stay disabled.
Not yet: K116s hardware regression row confirming dcpext1..3 index/DART consolidation leaves external DP unchanged; J714s/J716c smoke row; follow-up J775D commit dropping dcpext0's static port 3 route once the paired Aura route-writer PR lands.

Details

Why this shape

  • Where the data and policy lived before: Across T6050 boards, the SoC-fixed properties of dcpext1..3 and dispext1..3_dart (apple,bw-scratch, apple,dcp-index, empty apple,clock-ids, 3 TiB apple,dma-range, single-range DART reg) were duplicated across four board files while dcpext0 already kept the same set in t6050-dieX.dtsi. Similarly, atc0_dpxbar and atc1_dpxbar power domains were copied in board files while atc3_dpxbar had none, and dcp_register_typec_routes() vs dcp_t8132_ext_routes() each checked Type-C route availability differently (failing -EINVAL on empty/all-disabled containers).
  • Narrower alternatives: Copying static typec-routes, PHYs, crossbars, and SoC-fixed properties into t6050-j775d.dts for every engine and port, or adding a J775D-only fallback for empty containers. That would duplicate crossbar topology already present in the ADT and leave four board files holding diverging copies of the same SoC properties.
  • The single source used: dcp_typec_routes_available() is shared between dcp_register_typec_routes() and dcp_t8132_ext_routes() (with KUnit coverage via dcp_fabric_run_probe()), returning 0 cleanly whenever zero usable routes remain so an empty or all-disabled container probes without routes under older Aura. All shared T6050 crossbar power domains and dcpext1..3 / dispext1..3_dart properties live once in t6050-peripherals.dtsi, and t6050-j775d.dts describes dcpext1..3 with empty typec-routes containers while freeing hpm3 port@2 (moving its USB4 router endpoint to port@3).
  • Behavior with published vs updated Aura: Under published Aura, dcpext0 continues driving rear port 3 via its static route while dcpext1..3 hand off and probe cleanly with zero errors. Under route-writing Aura, Aura populates rear ports 2 and 4 on dcpext1..3 while leaving dcpext0 on port 3 and rear port 1 untouched. Once route-writing Aura ships, a small follow-up drops dcpext0's static route so all four engines share all described rear ports.

Change

Five commits on main (e7528180365f, the latest buildable main commit):

  1. 79d7fe86269a — dt-bindings: display: apple,dcp: allow an empty typec-routes container
  2. 377408b577af — drm/apple: treat a typec-routes container with no usable routes as no Type-C routes
  3. f9138e5af60a — arm64: dts: apple: t6050: add power domains to the remaining display crossbars
  4. 5b9b128536a5 — arm64: dts: apple: t6050: share dcpext1-3 properties across T6050 boards
  5. 064c3c65cd3e — arm64: dts: apple: t6050-j775d: describe dcpext1-3 for Aura Type-C routes
Evidence

Testing

Own-base A/B row on J775D (Mac Studio, M5 Ultra), 27.2 boot stub, read-only root, default command line, published Aura aura-main-7bf44a63 (7bf44a6374af), bare main e7528180365f with no extra PRs carried:

  • Baseline arm: kit dpall-r2b (window dprow24@20261124-1800, aura aura-main-7bf44a63) — bare main e7528180365f.
  • PR arm: kit dpall-r3a (window dprow24@20261124-1800, aura aura-main-7bf44a63) — bare main e7528180365f + this series at 064c3c65cd3e (message-only amend from 1733d7415903, zero code diff).
Metric Baseline (dpall-r2b) PR (dpall-r3a, published Aura)
Boot (BOOT-OK) 56 s 58 s
Bound DCP engines 2b2e00000 (dcpext0, idx 1), 42b2e00000 (dcpext4, HDMI) 2b2e00000 (idx 1), 392e00000 (idx 2), 302e00000 (idx 3), 306e00000 (idx 4), 42b2e00000 (HDMI)
dcpext1..3 route probe disabled no usable Type-C display routes (clean probe, 0 errors)
DRM connectors card0-DP-1: connected, card0-HDMI-A-1: connected card0-DP-1: connected, card0-HDMI-A-1: connected
Failed systemd units 2 (iwd, systemd-networkd-persistent-storage) 2 (identical)
Kernel errors (journalctl -k -b -p err) 8 8 (0 new; ALARM has no SELinux)

Extra evidence (not this PR's own row, base e7528180365f, paired with the unposted Aura route-writer branch at 9b40b3c89e59 in the same window dprow24@20261124-1800): booting the same kernel under route-writing Aura populated route@0 (usb-pd@a / phy@38b000000, rear port 4) and route@1 (usb-pd@6 / phy@2ab000000, rear port 2) on dcpext1..3, enabled 2ab24c000.mux and 38b24c000.mux while leaving dcpext0 on port 3 and rear port 1 untouched, registered card0-DP-1 (connected) + card0-DP-2..7 + card0-HDMI-A-1 (connected), and logged 0 new kernel errors (8 vs 8 baseline) and 2/2 baseline failed units.

Automated checks

  • DT schema & bindings (dtschema_vm.sh): dt_binding_check rc 0, dtbs_check across all 11 T6050 DTBs rc 0, dt-validate 0 lines (normal and 4 alias nodes), 0 new / 0 gone diagnostics.
  • Host tests & KUnit (host_tests_vm.sh): 545/549 pass on both bare base e7528180365f and this series (0 of 549 runs differ), including the new dcp-fabric empty/disabled typec-routes KUnit cases.
  • Decompiled DTB diff across all 11 T6050 boards: verified against both e7528180365f and main 237b796c (identical per-board changes).
  • scripts/checkpatch.pl --strict: 0 errors, 0 warnings, 0 checks across all 5 commits.

A board whose display processors and Type-C ports are wired through a
display crossbar may ask Aura to populate each processor's Type-C display
routes from the ADT instead of spelling them out by hand: the PHYs,
display crossbar controls, crossbar states, DPTX targets and route
subnodes are written before Linux starts.

Document the empty typec-routes container in apple,dcp-typec-routes.yaml,
qualify the connector display port consistently throughout (port@2 on
T6050, port@3 on earlier SoCs), and allow an empty container in
apple,dcp.yaml while disallowing partial pre-populated route properties
alongside it.

Signed-off-by: Jeff Queisser <[email protected]>
… Type-C routes

A display processor node may carry an empty typec-routes container asking
Aura to write its routes from the ADT. Under an older Aura that does not
populate them, or when every route child is disabled or skipped because
its PHY or crossbar is disabled, the container has no usable routes.
Previously dcp_register_typec_routes() failed probe with -EINVAL while
dcp_t8132_ext_routes() checked of_get_available_child_count() separately.

Share dcp_typec_routes_available() between both paths, route the
availability check through dcp_fabric_run_probe() with KUnit coverage,
and return 0 cleanly whenever zero usable routes remain (leaving
phy_managed_by_typec false so the engine probes with no Type-C route).

This also turns an all-disabled typec-routes container (present on 33
DCP nodes across existing DTBs until Aura or the display gate enables
them) from -EINVAL into a successful no-route probe, including on the
T6030 external path.

Signed-off-by: Jeff Queisser <[email protected]>
…crossbars

atc2_xbar in t6050-die0.dtsi carries its usb-aon and common power
domains, while atc0_dpxbar, atc1_dpxbar and atc3_dpxbar in
t6050-peripherals.dtsi had none. J714s and J716c carried board-local
copies for atc0_dpxbar and atc1_dpxbar, and atc3_dpxbar had no copy at
all. Without those domains, the driver's runtime-PM probe cannot power
the crossbar, and Aura's route walk does not enable them.

Put each crossbar's power domains on the shared node in
t6050-peripherals.dtsi, matching atc2_xbar and the ADT, and drop the
duplicate crossbar overrides from t6050-j714s-display.dtsi and
t6050-j716c-left-usb4.dtsi.

Signed-off-by: Jeff Queisser <[email protected]>
The SoC-fixed properties of dcpext1..3 and their DARTs -- each engine's
bandwidth scratch, die-local index and empty apple,clock-ids, each
DART's 3 TiB DMA range, and the single register range shared by scanout
and PIODMA on dispext1..3_dart -- were repeated across four board
device-tree files, while dcpext0 already keeps the same set in
t6050-dieX.dtsi.

Move these properties onto the shared nodes in t6050-peripherals.dtsi
and drop the duplicate board copies. Runtime effects across T6050
boards:

- J716c: dcpext1..3 and their DARTs are unchanged in the compiled DTB.
- J714s: dcpext1..3 gain apple,bw-scratch, which Aura's panel handoff
  overwrites from the ADT so the booted DT is identical.
- K116s: dcpext1..3 gain apple,dcp-index <2..4> (was 0), apple,bw-scratch
  (overwritten on panel boots), and single-range dispext1..3_dart reg
  (apple-dart maps reg[0] only).
- J775D: dcpext1..3 and their DARTs gain apple,dma-range,
  apple,bw-scratch, apple,dcp-index <2..4>, apple,clock-ids, and
  single-range dispext1..3_dart reg, so published Aura now passes its
  headless handoff checks and hands dcpext1..3 off to Linux (previously
  skipped).
- Other T6050 boards without display-subsystem or dcp/disp0 aliases:
  dcpext1..3 stay disabled.

Signed-off-by: Jeff Queisser <[email protected]>
…utes

Describe the remaining die-0 external display engines (dcpext1..3) on
the J775D with connector type "USB-C" and an empty typec-routes
container, keeping dcpext0's static route on rear port 3 intact until a
route-writing Aura ships. Move hpm3's USB4 router endpoint from port@2
to port@3 so port@2 stays free for DisplayPort
(apple,dcp-typec-routes.yaml).

Under published Aura (without the route writer), Aura hands dcpext1..3
off, adds dispext1..3_dart to display-subsystem's iommus and leaves
typec-routes empty; Linux probes them cleanly with no Type-C routes
while dcpext0 continues to drive rear port 3. Under route-writing Aura,
Aura populates routes on rear ports 2 and 4 for dcpext1..3 (skipping
port 3 while dcpext0's static unnumbered endpoint occupies hpm2 port@2)
and enables their PHYs, crossbars and PD controllers.

Signed-off-by: Jeff Queisser <[email protected]>
@funkzy
funkzy requested a review from a team as a code owner November 25, 2026 02:50
@funkzy
funkzy requested a review from Acelogic November 25, 2026 02:50
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) area:display Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Merge readiness at 064c3c65: ready to merge

Check Detail
CI at head ok 4 checks passed
Review ok approved by satchlj
Requested changes ok none
Hardware row at head ok in the PR body at 064c3c65
Conflicts ok none
PR text ok Risk: two-way · affects T6050 display DTBs (J775D, K116s, J714s, J716c) and apple-dcp Type-C route registration (dcp-fabric.c, dcpt8132.c, dcp.c, dcpt6030.c). On J716c, dcpext1..3 and their DARTs are unchanged (only atc3dpxbar gains power domains); on J714s, dcpext1..3 gain apple,bw-scratch which Aura's panel handoff overwrites from the ADT; on K116s, dcpext1..3 gain apple,dcp-index <2..4> (was 0), apple,bw-scratch (overwritten on panel boots), and single-range dispext1..3dart reg (apple-dart maps reg[0] only); on other T6050 boards without display-subsystem, dcpext1..3 stay disabled.

Areas: area:bringup, area:display
Merge: gh pr merge 3116 --merge (Owners and Core through the bypass: add --admin).

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

@satchlj satchlj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Gemini 4 Neon on @satchlj's behalf: Audited 064c3c65cd3e (bindings, T6050 DTS/DTSI consolidation, and apple-dcp Type-C route registration).

Findings (Code Audit Clean)

  • No unnecessary board gating: Rather than duplicating static routes or SoC-fixed dcpext1..3 / dispext1..3_dart properties into t6050-j775d.dts, the series consolidates shared T6050 crossbar power domains (atc{0,1,3}_dpxbar), dcpext1..3 (apple,bw-scratch, apple,dcp-index, empty apple,clock-ids), and dcpext1..3_dart / dispext1..3_dart (apple,dma-range, single-window reg) into t6050-peripherals.dtsi, removing duplicated per-board definitions across t6050-j714s-*, t6050-j716c-*, and t6050-k116s.dts.
  • Bindings & J775D DTS: apple,dcp-typec-routes.yaml and apple,dcp.yaml cleanly specify the empty typec-routes contract (forbidding partial static PHY/mux properties when typec-routes has no [email protected] children), and t6050-j775d.dts moves hpm3_tbt from port@2 to port@3 so port@2 stays reserved for DisplayPort while keeping dcpext0's existing static route intact.
  • Driver & KUnit (dcp-fabric.c, dcp-fabric.h, dcp-fabric-effects.h, dcp-fabric-test.c, dcp.c): Unifying route-availability checks behind dcp_typec_routes_available() / dcp_fabric_has_available_routes() and returning 0 with dev_info("no usable Type-C display routes\n") when an empty/all-disabled container has zero usable routes ensures safe forward/backward compatibility with older bootloaders. KUnit covers (false, 0), (true, 0), and (true, 1).

Holding APPROVE strictly until Device tree checks / dt-checks, Apple DRM KUnit / kunit, and Host tests / host-tests finish green on 064c3c65cd3e.

@satchlj satchlj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Gemini 4 Neon on @satchlj's behalf:

Re-checked exact head 064c3c65cd3e now that all CI checks (including dt-checks) are green:

  • Previously audited clean with no remaining code or CI blockers; flipping to APPROVE.

Assisted-by: LLM (Google:Gemini 4 Neon)

@github-actions github-actions Bot added ready-to-merge Meets the merge policy: merge it (bot) and removed needs-review No approving review from Core or Omarchy Mac yet (bot) ready-to-merge Meets the merge policy: merge it (bot) labels Nov 25, 2026

Copy link
Copy Markdown
Contributor

PASS on a 14-inch MacBook Pro (J714s, M5 Pro/T6050, G17S B1), kernel 7.3.0-m5-rows-prs, at 064c3c65cd3e322ed4d5baac5c56678a2704bb39.

Candidate 053c0549b09b7a48582d5dfbfeb1ddbb25af442d merged these unchanged heads onto main 15695c3ba53291e78bf62140598dbdffc7fb2b72 plus Clang fix 0050f580cc54892302f38e458e609d1b793010e0, which has since merged. The baseline was that same main plus the fix (f2b85419afafcfd6e6bc5ceeaa79e9ee557563a4).

The merged heads were #2906 f3ad1a8f362c, #3123 822a1dd7369c, #3116 064c3c65cd3e, #2949 0a4f6d6576a3, #2913 48b6d70dde9e, #2218 b3e6c51a4b5f and #2007 4738426f6c24.

All 7 DRM connectors had the same state and advertised modes as the baseline before and after deep sleep. The 3 attached displays stayed enabled at the same active modes across both arms. The internal eDP panel ran at 3024×1964 at 120 Hz, DP-2 at 3840×2160 at 120 Hz and DP-5 at 3840×2160 at 239.996 Hz. Both arms logged 0 DCP or DART faults.

The command line matched the default. SELinux was disabled. tailscaled.service was the one failed unit on both boots and on the default. Each boot had 6 error-priority lines, all the known DCP clock-index message. After one deep cycle, there were 83 warning/error-priority lines on the baseline and 79 on the candidate, with zero added lines and zero kernel WARNING: reports. The known DCP clock-index message occurred 10 times on each arm through the wake.

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) area:display Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) ready-to-merge Meets the merge policy: merge it (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants