Skip to content

arm64: dts: apple: t6050: K114s/K114c: clock the right port's DP tunnels - #3475

Merged
RyanTheTide merged 1 commit into
mainfrom
fix/t6050-k114-right-dp-tunnel
Nov 28, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
fix/t6050-k114-right-dp-tunnel

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

What

A monitor behind a USB4/Thunderbolt dock or enclosure on the K114s's right port stays dark. The DCP fabric asks the ATC2 PHY for the DP IN pixel clock of the tunnel's link rate and gets -EOPNOTSUPP: the PHY has no dp-clock-source register window and no dp0..dp3 clock gates, and the router has no DP IN interrupts.

apple-dcp 392e00000.dcp: no DP tunnel pixel clock on dpin0: link rate 0x14 refused
apple-dcp 392e00000.dcp: Type-C DPTX reconnect failed after 5 retries: -110

J714s already describes these for the same SoC block (t6050-j714s-display.dtsi). This moves J714s's ATC2 part into t6050-atc2-dp-tunnel.dtsi and includes it from t6050-k114-usb.dtsi, i.e. on the K boards that describe the ATC2 router (K114s, K114c). The router's DP IN interrupts are the K114s ADT's atc2-dpin0..3 (1667, 1668, 1673, 1674), the same as J714s's.

Tested

Tested: K114s (T6050, 14" M5 Pro OLED), firmware 27.2, at e6e14a4's DT content (lab one-shot: Ryan's default Stage 2 with only these properties added to its DTB; aura main + aura#535, DTB with #3368 + #3456; kernel 7.3.0 lab bridge).

  • An MSI MPG 325CQRXF behind a Thunderbolt 5 enclosure's passthrough port (HDMI to USB-C cable) on the right port: display routed to Thunderbolt DP tunnel dpin0, DP tunnel clock 1: link rate 0x14, source 8. It's DP-4, EDID name "MPG 325CQRXF". GNOME offers up to 2560x1440@144 and 3840x2160@60; a 2560x1440@144 modeset completes. This ran while an Acer on a USB-C dock (left-front, DP alt mode) was at 1920x1080@180 and the panel at 120 Hz. 0 DCP crashes.

  • Without these properties (same boot otherwise): no DP tunnel pixel clock on dpin0: link rate 0x14 refused, then reconnect failed after 5 retries: -110, and the monitor stays dark.

  • The right port's PCIe tunnel (the enclosure's JHL9480 bridges and the GPU behind them) and its USB enumerate as before.

  • DTBs: J714s, K116s and K116c are byte-identical before and after. K114s and K114c gain only acio2's interrupts/interrupt-names, the ATC2 PHY's dp-clock-source reg + dp0..dp3 power domains, and the four atc2-common-dp domains enabled (normalised dts diff).

  • CHECK_DTBS=y (dtschema) on J714s, K114s, K114c, K116s, K116c: same messages as the base.

Risk: two-way · K114s, K114c (right port: USB4 DP tunnels; the PHY now holds its DP clock gates while a tunnel runs)

Not yet

  • Left-front Thunderbolt (acio1) isn't described on the K boards, so tunnels there need that first (J714s model: t6050-j714s-left-usb4.dtsi).
  • K116s/K116c don't describe their ATC2 router.

A monitor behind a USB4/Thunderbolt dock or enclosure on the K114s's
right port stays dark: the DCP fabric asks the ATC2 PHY for the DP IN
pixel clock of the tunnel's link rate and gets -EOPNOTSUPP, because the
PHY has no dp-clock-source register window and no dp0..dp3 clock gates:

  apple-dcp 392e00000.dcp: no DP tunnel pixel clock on dpin0: link rate 0x14 refused
  apple-dcp 392e00000.dcp: Type-C DPTX reconnect failed after 5 retries: -110

J714s describes these for the same SoC block, with the router's DP IN
interrupts (ADT atc2-dpin0..3: 1667, 1668, 1673, 1674, the same in the
K114s ADT). Move J714s's ATC2 part into t6050-atc2-dp-tunnel.dtsi and
include it on the K boards that describe the ATC2 router (K114s, K114c,
via t6050-k114-usb.dtsi). The J714s, K116s and K116c DTBs are
byte-identical; the K114s and K114c ones gain only those properties.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide
RyanTheTide requested review from a team as code owners November 28, 2026 04:34
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

@aurora-silicon/aurora-maintainers @aurora-silicon/core: ready for review. DT only: J714s's ATC2 DP-tunnel block moves into a shared dtsi (the J714s DTB is byte-identical), now also on the K114s/K114c. It makes a monitor behind a Thunderbolt dock/enclosure on the K114s's right port work. We plan to merge after the App review + CI, no earlier than an hour from now, unless someone objects. Revert: git revert e6e14a46.

@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 e6e14a46824f, once dt-checks and host-tests finish green at this head.

Blockers: none.

Checked:

  • DTBs (main vs main + this, sorted DTS): only K114s and K114c change; the J714s refactor into t6050-atc2-dp-tunnel.dtsi is semantically identical, and K116s/K116c and every other T6050 board are unchanged. On K114s/K114c:
    • atc2_phy keeps its eleven existing register windows unchanged and appends dp-clock-source; its power domains gain dp0..dp3, and those four ps_atc2_common_dp_N go okay;
    • acio2 gains dpin0..3 interrupts. It had none before, so the override adds rather than replaces.
  • ADT (live K114s): atc2-dpin0..3 interrupts are 1667, 1668, 1673, 1674, exactly the DT's (0x683, 0x684, 0x689, 0x68a). The dp-clock-source window is the same T6050 SoC block value the J714s already uses in main; the PHY's function-atc_dp_clock_source points at the ADSR block. I didn't resolve the exact offset from the ADT dump, but the row below proves the window functionally.
  • dtschema: locally, scripts/dtc/apple-dt-check.sh: 139 DTBs, new: 0, removed: 0; DART power-domain check new: 0.
  • K114s row, A/B on the same boot: with these properties, a monitor behind a Thunderbolt 5 enclosure on the right port routes to dpin0 with DP tunnel clock 1: link rate 0x14, source 8 and comes up (DP-4, "MPG 325CQRXF"). Without them: no DP tunnel pixel clock on dpin0: link rate 0x14 refused, reconnect fails, dark. The enclosure's PCIe/USB tunnels enumerate as before.
  • No attribution.

@github-actions github-actions Bot added area:bringup 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 28, 2026
@github-actions

Copy link
Copy Markdown

Merge readiness at e6e14a46: not ready yet

Check Detail
CI at head running running: pr-text / pr-text, dt-checks, host-tests
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok in the PR body at e6e14a46
Conflicts ok none
PR text ok Risk: two-way · K114s, K114c (right port: USB4 DP tunnels; the PHY now holds its DP clock gates while a tunnel runs) Not yet - Left-front Thunderbolt (acio1) isn't described on the K boards, so tunnels there need that first (J714s model: t6050-j714s-left-usb4.dtsi). - K116s/K116c don't describe their ATC2 router.

Areas: area:bringup

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

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging under the 6-point rule at e6e14a4:

  1. aurora-silicon-review App approval from KREVIEW at this head.
  2. CI green: dt-checks, host-tests, pr-text.
  3. Hardware row: K114s, MSI behind the TB5 enclosure lit at 1440p@144. The patch is identical to the booted a72f2fb, and the touched files are the same on main and on the booted tree. It's also on Ryan's default since 15:40.
  4. Regression: the J714s, K116s and K116c DTBs are byte-identical, CHECK_DTBS is unchanged, and the right port's PCIe tunnel and USB on the K114s are unchanged.
  5. No blocking review.
  6. Code owners pinged at 15:36.

Revert: git revert -m 1 <merge>. Monitors behind Thunderbolt on the K114s's right port then go dark again.

@RyanTheTide
RyanTheTide merged commit 9e128df into main Nov 28, 2026
4 of 5 checks passed
@RyanTheTide
RyanTheTide deleted the fix/t6050-k114-right-dp-tunnel branch November 28, 2026 06:08
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: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)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant