Repository navigation
arm64: dts: apple: t6050: K114s/K114c: clock the right port's DP tunnels - #3475
Conversation
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>
|
@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: |
There was a problem hiding this comment.
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.dtsiis semantically identical, and K116s/K116c and every other T6050 board are unchanged. On K114s/K114c:atc2_phykeeps its eleven existing register windows unchanged and appendsdp-clock-source; its power domains gain dp0..dp3, and those fourps_atc2_common_dp_Ngo okay;acio2gainsdpin0..3interrupts. It had none before, so the override adds rather than replaces.
- ADT (live K114s):
atc2-dpin0..3interrupts are 1667, 1668, 1673, 1674, exactly the DT's (0x683, 0x684, 0x689, 0x68a). Thedp-clock-sourcewindow is the same T6050 SoC block value the J714s already uses in main; the PHY'sfunction-atc_dp_clock_sourcepoints 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
dpin0withDP tunnel clock 1: link rate 0x14, source 8and 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.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Merging under the 6-point rule at e6e14a4:
Revert: |
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 nodp-clock-sourceregister window and no dp0..dp3 clock gates, and the router has no DP IN interrupts.J714s already describes these for the same SoC block (
t6050-j714s-display.dtsi). This moves J714s's ATC2 part intot6050-atc2-dp-tunnel.dtsiand includes it fromt6050-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'satc2-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, thenreconnect 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'sdp-clock-sourcereg + dp0..dp3 power domains, and the fouratc2-common-dpdomains 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
t6050-j714s-left-usb4.dtsi).