Repository navigation
arm64: dts: apple: t6050: K boards: let the loader write the external display routes - #3368
Conversation
… 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>
|
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
|
|
K114s row, left-front port (T6050, 14" M5 Pro OLED), firmware 27.2 (26B8125), at head 5739c5c. Loader: aura
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). |
|
@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: |
There was a problem hiding this comment.
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:
- New dtschema warnings (3), from a missing delete:
apple,dcp.yamlsays an engine whosetypec-routesholds noroute@Nmust not carryphys,phy-names,mux-controls,mux-control-names,apple,typec-mux-indices,apple,typec-dptx-physorapple,dptx-die. The&dcpext0block deletes all of these exceptapple,dptx-die, whicht6050-die0.dtsisets to<0>. Locally,scripts/dtc/apple-dt-check.shon main + this PR givesdcp@2b2e00000 (apple,t6050-dcpext): False schema does not allow 0on t6050-k114c, -k114s and -k116c (new: 3, removed: 0). The K116s is clean only becauset6050-k116s-sleep.dtsialready deletes it. Fix: add/delete-property/ apple,dptx-die;to the&dcpext0block int6050-k114-k116-display.dtsi, and confirm the loader doesn't need it (it writes the routes from the ADT). - 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 emptytypec-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>
|
e4ecee6 drops dcpext0's static |
There was a problem hiding this comment.
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).
|
Merging under the 6-point rule at e4ecee6:
It needs aura#535 (merged ca833980) in the Stage 2. Revert: |
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 emptytypec-routescontainer (aura 9b40b3c8; the J775D uses it). This gives dcpext0..3 empty containers, and drops dcpext0's route through ATC2 fromt6050-die0.dtsitogether 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:route@0: .../usb-pd@a/connector (DPTX 0:1, crossbar /soc/mux@2ab24c000 cell 0, state 2N)androute@1: .../usb-pd@c/connector (DPTX 0:2, crossbar .../mux@38324c000 cell 0, state 2N), thendcpextN handed off.kboot_display_routes.con the host against the live K114s ADT and this DTB gives the same 2 routes per engine.CHECK_DTBS=yon K114s, K114c, K116c and K116s gives the same 9 messages as the base.Risk: two-way · K114s, K114c, K116c, K116s (external displays only)
Rows
main76d2f9ae + aura#535, lab bridge kernel; the control boot without the handoff shows the same port dark.t6050-k116s-sleep.dtsi, as intended). All five DCPs bound. 15 s deep sleep resumed with and without a display attached.Not yet
t6050-j714s-left-back.dtsi).