Skip to content

arm64: dts: apple: t6050: K boards: let the loader write the external display routes - #3368

Merged
RyanTheTide merged 2 commits into
mainfrom
feat/k114s-display-routes
Nov 28, 2026
Merged

RyanTheTide merged 2 commits into
mainfrom
feat/k114s-display-routes

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

What

The K boards describe no DisplayPort route, so no external display engine can drive a USB-C port: a monitor on a USB-C dock stays dark on the K114s.

Their ADTs do describe the routes: dp-switch-* on dcpext0..3 and on each port's direct DP output, with that port's ATC PHY, crossbar and PD controller. The boot loader writes an engine's routes from these when the engine carries an empty typec-routes container (aura 9b40b3c8; the J775D uses it). This gives dcpext0..3 empty containers, and drops dcpext0's route through ATC2 from t6050-die0.dtsi together with the PHY and crossbar properties it names, because the loader writes no routes for an engine that already names them. The loader then writes routes for the ports this tree describes: ATC1 (left-front) and ATC2 (right).

On top of the K-board panel (#3350, merged). For 27.2, the loader also needs aurora-silicon/aura#535 to hand the external engines over.

Tested

Tested: K114s at 5739c5c (DTB as booted, 1a32fb0d): aura writes ADT routes for dcpext0..3 and hands all four over; an Acer on a USB-C dock's DisplayPort comes up as DP-2 "QG270 S3", 1920x1080@180 in GNOME, next to the panel.

aura main 8521ad7c + aura#535 as the ESP Stage 2, kernel 7.3.0 (main + linux#3367 + #2798), one-shot over KIS:

  • aura: per engine, route@0: .../usb-pd@a/connector (DPTX 0:1, crossbar /soc/mux@2ab24c000 cell 0, state 2N) and route@1: .../usb-pd@c/connector (DPTX 0:2, crossbar .../mux@38324c000 cell 0, state 2N), then dcpextN handed off.
  • Linux: all five DCPs bind. DP-2 is connected, EDID "QG270 S3" (ACR), 34 modes.
  • The ADT gives port 1 (left-back) two PD controllers with port-number 1 (hpm0 and the MagSafe hpm5), so the loader skips that port. ATC0 isn't described for Linux on these boards.
  • The same result was first checked offline: aura's kboot_display_routes.c on the host against the live K114s ADT and this DTB gives the same 2 routes per engine.
  • Regression: the J-board DTBs are byte-identical. CHECK_DTBS=y on K114s, K114c, K116c and K116s gives the same 9 messages as the base.

Risk: two-way · K114s, K114c, K116c, K116s (external displays only)

Rows

Not yet

  • Left-back port (ATC0/hpm0): not described on the K boards (Apple's debug port; the J714s model is t6050-j714s-left-back.dtsi).
  • A plain DP monitor on the K116s (axboe has only a Studio Display, which needs a Thunderbolt tunnel).

… display routes

The K boards describe no DisplayPort route, so no external display
engine can drive a USB-C port. Their ADTs describe the routes
(dp-switch-* on dcpext0..3 and on each port's direct DP output, with
the port's ATC PHY, crossbar and PD controller), and the boot loader
writes an engine's routes from them when the engine carries an empty
typec-routes container (as on the J775D).

Give dcpext0..3 empty typec-routes containers, dropping dcpext0's
route through ATC2 from t6050-die0.dtsi, so the loader writes the
routes for the ports this tree describes (ATC1 left-front, ATC2 right).

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide
RyanTheTide changed the base branch from feat/k114s-display-panel to main November 27, 2026 11:40
@axboe

axboe commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

K116s row (T6050, 16" M5 Pro OLED), firmware 27.2: the routes and sleep pass; no picture yet (the only monitor here is a Studio Display).

Loader: aura main 8521ad7cf949 + aura#534 + aura#535 (release build, ESP Stage 2). Kernel: my daily, 7.3.0 on an older main (b14959b + my K116s commits), which predates t6050-k114-k116-display.dtsi. I added this PR's &dcpext1..3 blocks to t6050-k116s.dts instead: the decompiled K116s DTB diff from that is identical to main vs main + 5739c5c (connector-type and an empty typec-routes on dcpext1..3, nothing else; dcpext0 stays without routes through t6050-k116s-sleep.dtsi).

  • The loader wrote route@0 (usb-pd@a, left-front) and route@1 (usb-pd@c, right) on dcp@302e00000, dcp@306e00000 and dcp@392e00000. All five DCPs bound, devices_deferred empty, 0 error-level kernel lines at boot.
  • One RTC deep sleep (15 s) with nothing plugged in resumed; all five DCPs bound, Wi-Fi back.
  • Apple Studio Display, USB-C cable, on left-front and then right: DP alt mode active, and dcp@392e00000 takes the route (allocated Type-C DPTX PHY 1, then PHY 2 on the right). The link never comes up: link fault 22/24 on target 0:1 and 0:2, timed out waiting for port 0 link configuration, reconnect failed after 5 retries: -110, no EDID. The display's USB side (camera, audio) works. The Studio Display normally needs a Thunderbolt DP tunnel (cf. M4 Pro/Max (T6040/T6041): Thunderbolt displays need a DP tunnel pixel clock in the T6040 PHY #1589/J614s/T6040: Thunderbolt displays (Studio Display up to 5120x2880@60) #2068 on the T6040), so I don't count this against this PR.
  • One RTC deep sleep (15 s) with the Studio Display on the right port resumed: the engine tore the sink down and went quiescent, the DP PHY stopped, and after the wake the engine restarted and retried the link (same faults). All five DCPs bound, the display's USB back, Wi-Fi back.
  • Still open: a plain DP/HDMI monitor on each port. I'll add that row when I have one connected.

@RyanTheTide

RyanTheTide commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor Author

K114s row, left-front port (T6050, 14" M5 Pro OLED), firmware 27.2 (26B8125), at head 5739c5c.

Loader: aura main 76d2f9ae + aura#535 (f3443a1e), release build, as a one-shot Stage 2. Kernel: 7.3.0 lab bridge (main 4ac70df + #3377 #1737 #1605 #3427 #3423 #3372 #3356, merge d34a337) with this commit and #3456 on top. That DTB, rebuilt without the two commits, is byte-identical to the bridge's own. So the delta is exactly this PR plus #3456.

  • aura wrote 2 routes per engine (left-front usb-pd@a, right usb-pd@c) on all four, and handed them off. All five DCPs bound by 1.36 s, 0 DCP crashes.
  • Plugable UD-ULTC4K dock on the left-front port, DisplayPort out to an Acer QG270 S3. DP alt mode is active on the port partner (svid ff01). The engine is DP-1, EDID "Acer Technologies 27" QG270 S3", 34 modes. GNOME runs it at 1920x1080@180.002, next to the panel, and a person looked at it.
  • The same Stage 2 on the bridge default without it (b14 head) leaves dcpext0..3 disabled: DP alt mode enters and the partner raises IRQ_HPD, but no engine drives the port. That is the "external display doesn't work" on this machine.
  • This and the right-port row from 11-27 cover both ports the tree describes. The left-back port (ATC0, hpm0) isn't described on the K boards yet.

Not part of this PR: HDR on the external monitor goes blank (fw27; tracked with the fw27 HDR work), and a monitor behind a Thunderbolt enclosure on the right port needs the ATC2 tunnel clocks (separate PR).

@RyanTheTide
RyanTheTide marked this pull request as ready for review November 28, 2026 03:19
@RyanTheTide
RyanTheTide requested review from a team as code owners November 28, 2026 03:19
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

@aurora-silicon/aurora-maintainers @aurora-silicon/core: ready for review. It's DT only (T6050 K boards' display dtsi), with rows on the K114s (left-front + right) and the K116s (axboe). Together with aura#535 this gives the K114s external displays on its default boot. We plan to merge after the App review + CI, no earlier than an hour from now, unless someone objects here. Revert: git revert 5739c5c9 (the loader then hands no ext engine routes on the K boards, as today).

@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: FINISH, then merge, at 5739c5c9b8cd. The approach is right, and the K114s/K116s rows show it working. One binding violation and two gates are left.

Blockers:

  1. New dtschema warnings (3), from a missing delete: apple,dcp.yaml says an engine whose typec-routes holds no route@N must not carry phys, phy-names, mux-controls, mux-control-names, apple,typec-mux-indices, apple,typec-dptx-phys or apple,dptx-die. The &dcpext0 block deletes all of these except apple,dptx-die, which t6050-die0.dtsi sets to <0>. Locally, scripts/dtc/apple-dt-check.sh on main + this PR gives dcp@2b2e00000 (apple,t6050-dcpext): False schema does not allow 0 on t6050-k114c, -k114s and -k116c (new: 3, removed: 0). The K116s is clean only because t6050-k116s-sleep.dtsi already deletes it. Fix: add /delete-property/ apple,dptx-die; to the &dcpext0 block in t6050-k114-k116-display.dtsi, and confirm the loader doesn't need it (it writes the routes from the ADT).
  2. CI never ran dt-checks or host-tests at this head. Only readiness and pr-text are listed, which is the post-retarget gap that broke main on 11-27. Push the fix, then let dt-checks and host-tests run to green before the 6-point merge.

Gate (merge order / deployment): the PR says the 27.2 loader needs aura#535 to hand the external engines over, and every row ran with it in the Stage 2. With this DT and a Stage 2 without #535, the engines get containers but no handover. t6050-k116s-sleep.dtsi says deep sleep needs each external engine bound to stop its firmware. So either land/deploy aura#535 before or with this, or show one boot plus one deep sleep on a K board with a Stage 2 lacking #535 that is no worse than today.

Checked:

  • Semantic DTS diff, main vs main + this PR: only K114c/K114s/K116c/K116s change. dcpext1..3 gain apple,connector-type = "USB-C" and an empty typec-routes; dcpext0 loses its die0 route through ATC2 (route@0, phys, mux, apple,typec-*) on the three boards where it had it. The seven J boards are unchanged.
  • K116s: dcpext0 stays route-less via t6050-k116s-sleep.dtsi (its comment explains why), so on that board the loader writes routes for dcpext1..3 only; Axboe's row shows those three got route@0/route@1, all five DCPs bound, nothing deferred, and one deep sleep passed.
  • K114s rows: left-front (Plugable dock to an Acer, DP-1, 1920x1080@180 in GNOME) and right port, all four engines handed over, 0 DCP crashes.
  • No hard-coded routes: they come from the ADT through the loader. DART power-domain check: 0 new. No attribution.

dcpext0 keeps apple,dptx-die from t6050-die0.dtsi beside its now empty
typec-routes, which the dcp binding does not allow (CHECK_DTBS on the
K114s, K114c and K116c: "False schema does not allow 0"). The loader
writes apple,dptx-die itself with the routes it adds from the ADT (the
same 0 here), so drop it with the other route properties. aura's route
writer on the K114s ADT gives the same tree as before.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

e4ecee6 drops dcpext0's static apple,dptx-die, as asked. CHECK_DTBS=y (dtschema venv) on K114s, K114c, K116s and K116c: the three dcp@2b2e00000 ... False schema does not allow 0 messages are gone and nothing else changes. aura's route writer, run offline on the live K114s ADT, gives the same post-loader tree for 5739c5c and e4ecee6 (normalised dts diff empty; it writes apple,dptx-die = <0> with the routes). So the K114s row at 5739c5c carries to this head.

@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 e4ecee6675f7, once dt-checks and host-tests finish green at this head and aura#535 lands first (or ships with it). The binding violation is fixed.

Checked (delta 5739c5c9..e4ecee66): the only change is /delete-property/ apple,dptx-die; in &dcpext0, plus the comment. Locally, scripts/dtc/apple-dt-check.sh on main + this head gives 139 DTBs both sides, 2149 = 2149 warning lines, new: 0, removed: 0, so the three False schema does not allow 0 warnings are gone. K114S-EXTDISP's offline run of aura's route writer on the K114s ADT gives a post-loader tree identical to 5739c5c9's (the loader writes apple,dptx-die with the routes it adds), so the K114s rows (left-front and right) and Axboe's K116s row carry over. dt-checks and host-tests are now actually queued in CI (they never ran at 5739c5c9). No attribution.

Merge conditions (6-point): CI green at this head; aura#535 (the 27.2 handover of the external engines, still a draft) lands before or together with this. Every row ran with it, and without it the K boards get route containers but no handover, which t6050-k116s-sleep.dtsi warns matters for deep sleep. Revert: git revert of both commits (the loader then writes no external routes on the K boards, as today).

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging under the 6-point rule at e4ecee6:

  1. aurora-silicon-review App approval from KREVIEW at this head.
  2. CI green: dt-checks, host-tests, pr-text. The readiness bot is still queued, and its earlier red entry is a cancelled run.
  3. Hardware rows: K114s left-front + right, K116s (axboe). e4ecee6 gives the same post-loader tree as the rowed 5739c5c.
  4. Regression: every non-K-board DTB is byte-identical, and CHECK_DTBS shows 3 fewer messages and nothing new. K116s routes + deep sleep are in axboe's row.
  5. No blocking review.
  6. Code owners pinged at 14:18.

It needs aura#535 (merged ca833980) in the Stage 2. Revert: git revert -m 1 <merge>.

@RyanTheTide
RyanTheTide merged commit 9d7918b into main Nov 28, 2026
3 of 5 checks passed
@RyanTheTide
RyanTheTide deleted the feat/k114s-display-routes branch November 28, 2026 05:10
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