Skip to content

arm64: dts: apple: t6050-k114-k116: describe the left-back port (ATC0) - #3598

Merged
RyanTheTide merged 2 commits into
mainfrom
feat/t6050-k-atc0-left-back
Nov 29, 2026
Merged

RyanTheTide merged 2 commits into
mainfrom
feat/t6050-k-atc0-left-back

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Tested: K114s M5 Pro at 426355f (K114 DTBs byte-identical at 179bf03), one-shot Stage 2 with aura#574: every left-back device binds (PHY, DRD, DARTs, router, display crossbar, hpm0), 0 new kernel errors, 0 failed units, J616s VDM to the port acknowledged; USB3/USB4-PCIe enumeration on the port not yet run (needs a device there)
Risk: two-way · K114c, K114s, K116c, K116s (J714s DTB byte-identical, other T6050 DTBs unchanged)

The K114c, K114s, K116c and K116s device trees left out the left-back USB-C port (ATC0, next to MagSafe) entirely: no USB 2/3, no PD controller, no USB4/Thunderbolt router, no PCIe or DisplayPort tunnel. The ADT describes all of it, so the device tree should too.

What the ADT says. hpm0 (SN201202x on nub-spmi-a0 at 0xc, port-number 1), atc-phy0, acio-phy-cpu0, usb-drd0, dart-usb0, acio0, acio-cpu0, dart-acio0, apciec0, dart-apciec0, atc0-dpin0..3. Node by node, the K114sAP and K116sAP ADTs carry the J714sAP's values for all of these: registers, interrupts, host DROM, LSTX pin 77, and the router, DART and tunnel tunables. Two exceptions:

  • the PHY's PLL calibration tables (tunable_AUSPLL_CORE, tunable_AUS40CMN_SHM, tunable_CIO4PLL_CORE), which are per machine and come from the boot loader;
  • the K116s's CIO RX_TOP value: 0x0, as on J716c. The 14-inch boards use 0x200.

Change

  • t6050-atc0.dtsi: the J714s left-back nodes, moved over unchanged with everything still disabled. t6050-j714s-left-back.dtsi now includes it and keeps its atc0-handoff group. The J714s DTB is byte-identical.
  • t6050-k114-k116-atc0.dtsi (included from t6050-k114-k116-usb.dtsi) enables the port on all four boards the same way ATC1 and ATC2 are enabled: power domains, PHY and mailbox, DRD and its DARTs, hpm0 with its connector, the router with its DART and NHI, the PCIe tunnel, the DP crossbar, and the DP tunnel domains (t6050-atc0-dp-tunnel.dtsi, as for ATC1/ATC2). The 16-inch boards get RX_TOP 0x0.
  • T6050_ATC0_USB4_ROUTER keeps the inventory's apciec0 DART out, as T6050_ATC1_USB4_ROUTER does for ATC1. The K114 boards stop reserving AOP pin 77.

The debug link. This port is also Apple's DFU port and aura's debug link. The PHY carries apple,guest-port-reserved, as J716c's ATC0 does. With aurora-silicon/aura#574, aura exports the port's PHY tables only on a normal boot. On a debug boot (aura-debug, aura-console, or a debugusb host) the PHY gets no tables, so the PHY driver doesn't bind and the debug host keeps the port. Peer-Mac VDMs go to the PD controller's own firmware either way. The row below checks that.

Checks

  • All 11 T6050 DTBs build. Only k114c/k114s/k116c/k116s change; the other seven, J714s and J716c included, are byte-identical to main.
  • CHECK_DTBS=y on the five affected boards (j714s, k114c, k114s, k116c, k116s): no output.
  • Offline: on the K114s DTB and the live K114s ADT, all 14 banks of aura's T6050 table export match the ADT registers they belong to (aura's precondition).
  • K114s row: pending (one-shot Stage 2 on the saved bridge kernel; results will be posted here).

Related: #2017 (J714s left-back, merged), aurora-silicon/aura#278 (J714s handoff, draft), #3497 (K114 left-front router).

The K114c, K114s, K116c and K116s left-back USB-C port (ATC0, next to
MagSafe) was not in their device trees at all: no USB 2/3, no PD
controller, no USB4/Thunderbolt router, no PCIe or DisplayPort tunnel.
The ADT has all of it: hpm0 (SN201202x on nub-spmi-a0 at 0xc,
port-number 1), atc-phy0, acio-phy-cpu0, usb-drd0, dart-usb0, acio0,
acio-cpu0, dart-acio0, apciec0, dart-apciec0 and atc0-dpin0..3.

The K114sAP and K116sAP ADTs have the J714sAP's values for every one of
these nodes (registers, interrupts, host DROM, LSTX pin 77, router, DART
and tunnel tunables), except the PHY's PLL calibration tables, which are
per machine and come from the boot loader, and the K116s's CIO RX_TOP
tunables (0x0, as on J716c, where the 14-inch boards have 0x200).

So the J714s left-back nodes move unchanged to a shared t6050-atc0.dtsi
(everything disabled, as before; the J714s keeps its atc0-handoff group
and its DTB is byte-identical), and the K boards include it from
t6050-k114-k116-usb.dtsi and enable the port as they enable ATC1 and
ATC2: the power domains, the PHY and its mailbox, the DRD and its DARTs,
hpm0 with a connector, the router with its DART and NHI, the PCIe tunnel,
the DP crossbar, and the DP tunnel domains (t6050-atc0-dp-tunnel.dtsi, as
for ATC1 and ATC2). T6050_ATC0_USB4_ROUTER keeps the inventory's
apciec0 DART out, as T6050_ATC1_USB4_ROUTER does for ATC1, and the K114
boards stop reserving AOP pin 77.

The port is also Apple's DFU port and the boot loader's debug link. The
PHY carries apple,guest-port-reserved as J716c's ATC0 does, and the boot
loader exports its tables only on a normal boot, so on a debug boot the
PHY driver does not bind and the port stays the debug host's.

Only the four K board DTBs change; the other T6050 DTBs are
byte-identical. CHECK_DTBS reports nothing on the five affected boards.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

K114s row (Ryan's K114s, M5 Pro): one aura-try one-shot. PASS for boot, binding and the tether. USB3 and USB4/PCIe on this port are still pending: they need a device plugged into it.

Image: stage2-k114s-b7-atc0.bin (c683e5fa) = Ryan's default Stage 2 32bc264e with exactly two changes: aura#574 ported onto its aura 46a7f593 (the unpatched build reproduces 5b9f4b48), and the FDT rebuilt from its source 19b5033 + this PR (the unpatched rebuild matches byte for byte). Same kernel, zz-k114sstack6. The default ESP and grub were not touched.

Trial boot (probe-trial1.txt):

  • aura exported the ATC0 PHY tables (auspll, aus40cmn-shm, cio4pll, lane rx-eq, usb2, pipe handler). status=okay, apple,guest-port-reserved present.
  • Bound: 2a3000000.phy (apple-t6050-dp-phy), both mailboxes, 2a2280000.usb (dwc3-apple), both USB DARTs, 2a324c000.mux (apple-display-crossbar), 2a1ac0000.acio (thunderbolt-apple-acio). The router stays powered off until a USB4 partner attaches, as the left-front one does.
  • hpm0 (spmi 1-0c, tipd) bound. New Type-C port3, partner id_header 0xd54005ac (Apple): the J616s tether on this port.
  • Kernel errors: the same 8 lines as the default boot (DCP clock index, eGPU of_irq_parse_pci on the right port, ASoC). Nothing new. 0 failed units, Enforcing. The right-port EG02 (PCI domain 3) and the left-front dock are unaffected.

Tether with Linux owning hpm0: from the J616s, tuxvdmtool -c "USB-C Right" reboot gave Target acknowledged VDM (reply header 0x05ac8052), and the K114s rebooted within 3 s (vdm-reboot.txt). It came back on the default (32bc264e, zz-k114sstack6, 0 failed). That reboot also ended the one-shot.

Not covered yet:

  • USB3 and USB4/PCIe enumeration on this port. That needs a device here in place of the J616s tether (EG02 or a dock); the cable move is being arranged.
  • The K114s sending a VDM to a peer from this port. tipd's command debugfs node is behind CONFIG_TYPEC_TPS6598X_DEBUG_COMMANDS, which the K114s bridge kernel doesn't enable. That's a kernel config question, not a DT one.

Evidence: traces/usb/20261129-dt-complete-k114s-atc0/ (lab store). Kit: kits/test/20261129-dt-complete-k114s-atc0.

@RyanTheTide
RyanTheTide marked this pull request as ready for review November 29, 2026 07:04
@RyanTheTide
RyanTheTide requested review from a team as code owners November 29, 2026 07:04
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merge notice for code owners @aurora-silicon/omarchy-mac and @aurora-silicon/aurora-maintainers at 426355f66d47: the K boards' left-back port (ATC0), following Ryan's full-capability DT order. The K114s row passed (boot, binding, J616s VDM tether). Merging under the 6-point rule needs App review and hosted CI, plus the companion aurora-silicon/aura#574; the USB3 and USB4/PCIe enumeration rows follow as soon as a device is on that port. J714s owners: the J714s DTB is byte-identical, and t6050-j714s-left-back.dtsi keeps its atc0-handoff group.

@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: FIX, then re-review at 426355f66d47

Blockers:

  1. K116c and K116s enable &acio0 while leaving &pinctrl_aop disabled and without gpio-reserved-ranges (arch/arm64/boot/dts/apple/t6050-k114-k116-atc0.dtsi, t6050-k116c.dts, t6050-k116s.dts):
    • t6050-k114-k116-usb.dtsi (included by all four boards) now includes t6050-k114-k116-atc0.dtsi, which enables &acio0 (status = "okay"). &acio0 in t6050-atc0.dtsi requires pinctrl-0 = <&acio0_lstx_pins> and lstx-gpios = <&pinctrl_aop 77 GPIO_ACTIVE_HIGH>.
    • On K114c/K114s, t6050-k114-usb.dtsi includes t6050-max-atc2-router.dtsi (which sets &pinctrl_aop { status = "okay"; }) and overrides gpio-reserved-ranges = <0 77>, <78 1>, <80 1>, <82 3>; to expose pin 77 alongside pins 79 and 81.
    • K116c and K116s do not include t6050-k114-usb.dtsi or t6050-max-atc2-router.dtsi, and nothing else in their include chain touches &pinctrl_aop. As a result, &pinctrl_aop remains status = "disabled" from t6050-die0.dtsi:89 (leaving &acio0 deferred indefinitely waiting on its lstx pinctrl/GPIO supplier), and if the boot loader enables pinctrl_aop at runtime without gpio-reserved-ranges, all 85 AOP GPIO pins are exposed unreserved.
    • Fix: enable &pinctrl_aop in t6050-k114-k116-atc0.dtsi with status = "okay"; and gpio-reserved-ranges = <0 77>, <78 7>; (exposing only pin 77 for acio0; t6050-k114-usb.dtsi, included later on K114c/K114s, will still override gpio-reserved-ranges to <0 77>, <78 1>, <80 1>, <82 3> for all three routers).
  2. Hosted CI and companion aura#574: Wait for queued dt-checks, host-tests, pr-text, and readiness checks to finish green on the updated head, and keep landing coordinated with companion aurora-silicon/aura#574 (currently CHANGES_REQUESTED on clearing pre-populated tunables on debug boots).

Checked:

  • J714s lossless split (t6050-j714s-left-back.dtsi -> t6050-atc0.dtsi): Diffed main's t6050-j714s-left-back.dtsi against t6050-atc0.dtsi + the updated t6050-j714s-left-back.dtsi: all ATC0 nodes move unchanged (comments only) and the atc0-handoff node stays in t6050-j714s-left-back.dtsi, preserving J714s DTB identity.
  • T6050_ATC0_USB4_ROUTER guard (t6050-peripherals.dtsi, t6050-k11{4,6}{c,s}.dts): Defined before #include "t6050-peripherals.dtsi" on all four boards so apciec0_dart is cleanly suppressed from the peripheral inventory and owned by t6050-atc0.dtsi; t6050-atc0-dp-tunnel.dtsi enables ps_atc0_common_dp_{0..3} and extends &atc0_phy power domains cleanly; 16-inch T6050_K116C/T6050_K116S RX_TOP 0x0 override matches t6050-j716c.
  • Hardware evidence: K114s one-shot trial (probe-trial1.txt) confirms ATC0 PHY table export, binding of apple-t6050-dp-phy, dwc3-apple, USB DARTs, apple-display-crossbar, thunderbolt-apple-acio, and hpm0 (tipd), 0 new kernel errors, 0 failed units, and live J616s VDM tether reboot (0x05ac8052).
  • Checked for Apple material, tool attribution, private serials, and gating: clean.
Evidence
  • Head: 426355f66d47 (base: main, mergeable: MERGEABLE, +857/-671 across 11 files).
  • Include chain verified on t6050-k116c.dts and t6050-k116s.dts: t6050-k114-k116.dtsi -> t6050-max.dtsi -> t6050-die0.dtsi:89 (pinctrl_aop status = "disabled") -> t6050-k114-k116-usb.dtsi -> t6050-k114-k116-atc0.dtsi -> t6050-atc0.dtsi (no status = "okay" or gpio-reserved-ranges on &pinctrl_aop).
  • Hosted CI at 426355f66d47: dt-checks, host-tests, pr-text, readiness queued (earlier pr-text/readiness runs cancelled).

…r acio0

acio0's LSTX pin is AOP GPIO 77. On the K114 boards the ATC2 router's
include enables pinctrl_aop, but nothing does on the K116c and K116s, so
their acio0 would wait forever on its pinctrl and GPIO supplier.

Enable pinctrl_aop from the shared ATC0 overlay, exposing only pin 77.
t6050-k114-usb.dtsi, included later on the boards with the ATC1 and ATC2
routers, still exposes 77, 79 and 81, so the K114c and K114s DTBs are
byte-identical to the previous commit's.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Fixed blocker 1 in 179bf038: t6050-k114-k116-atc0.dtsi now sets &pinctrl_aop { gpio-reserved-ranges = <0 77>, <78 7>; status = "okay"; }. On K116c/K116s the controller is enabled with only pin 77 exposed. On K114c/K114s, t6050-k114-usb.dtsi (included later) still sets 77/79/81, so both K114 DTBs are byte-identical to 426355f6: the K114s row applies unchanged. CHECK_DTBS=y on all four boards: no output. aura#574's debug-path blocker is fixed in b1ce57ad, with a host test. Hosted CI runs on the new 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 179bf0382d77

Blockers: None (wait for queued dt-checks, host-tests, pr-text, and readiness CI checks at 179bf0382d77 to finish green; coordinate Stage 2 deployment with approved companion aurora-silicon/aura#574).

Checked:

  • Commit 179bf038 (arch/arm64/boot/dts/apple/t6050-k114-k116-atc0.dtsi): Enables &pinctrl_aop with status = "okay"; and gpio-reserved-ranges = <0 77>, <78 7>; (covering all 85 pins 0..84 while exposing only pin 77 for acio0's LSTX), fixing the K116c/K116s deferred-probe and unreserved-GPIO blocker from 426355f6. t6050-k114-usb.dtsi (included later on K114c/K114s) still overrides gpio-reserved-ranges to <0 77>, <78 1>, <80 1>, <82 3>;, keeping both K114 DTBs byte-identical to 426355f6.
  • Previously verified (426355f6): Lossless t6050-j714s-left-back.dtsi -> t6050-atc0.dtsi split (J714s DTB byte-identical), T6050_ATC0_USB4_ROUTER guard in t6050-peripherals.dtsi, t6050-atc0-dp-tunnel.dtsi, 16-inch RX_TOP 0x0 override, CHECK_DTBS=y clean across all four boards, and K114s hardware row PASS (boot, binding of PHY/DRD/DARTs/crossbar/acio0/hpm0, 0 new kernel errors, J616s VDM tether reboot).
  • Checked for Apple material, tool attribution, private serials, and gating: clean.
Evidence
  • Head: 179bf0382d77 (base: main, mergeable: MERGEABLE, +867/-671 across 11 files).
  • Hosted CI at 179bf0382d77: dt-checks, host-tests, pr-text queued (prior readiness cancelled; 0 real failures).
  • Companion aurora-silicon/aura#574 is approved at b1ce57ad48fd.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging under the 6-point rule (Ryan 09:29, permanent), at 179bf038. (1) The review App approved at this head. (2) Full CI is green. Hosted pr-text is still queued; the canonical pr-text.sh passes locally on this body. (3/4) Rows: K114s-row;K114-DTBs-identical-to-rowed;pair-aura#574. (5) There's no blocking review. (6) Dj was pinged here 101 min ago with no objection. Revert: git revert -m 1 <merge>.

@RyanTheTide
RyanTheTide merged commit aa76613 into main Nov 29, 2026
4 of 9 checks passed
@RyanTheTide
RyanTheTide deleted the feat/t6050-k-atc0-left-back branch November 29, 2026 08:47
@axboe

axboe commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

The K116s (16" M5 Pro OLED, firmware 27.2) hangs at boot with this merged.

Kernel: main d1c9401 + my K116s commits (7.3.0-m5pro-g9930cef3a44f). Loader: aura main 07cb403f, and the same with an older loader (aura 99b6dd13 + #534); neither has aura#574.

  • The console stops at about 1.96 s, right after apple-pmp-report ...: PTD boot entries written (60 steps), with no panic or warning, three boots out of three. No journal is written. On the previous main (1743883, before this merge) the next lines are the DCP, ADMAC and MTP probes.
  • The same kernel with only t6050-k114-k116-atc0.dtsi and T6050_ATC0_USB4_ROUTER left out of the K116s DTB boots normally: speakers, GPU, keyboard and trackpad (on the HID: dockchannel-hid: receive T6050 MTP reports through the receive ring #2015 ring), Wi-Fi, 0 failed units.

So something in the ATC0 nodes hangs the K116s when the loader doesn't hand over the port (no aura#574). I can bisect the ATC0 nodes (PHY, DRD/DARTs, hpm0, router/NHI, PCIe tunnel, DP tunnel) on this machine if that helps, but each hang costs a recovery boot, so I'd like to know which ones you suspect first. Until then, should the K116s leave ATC0 disabled?

@axboe

axboe commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Still hangs on the K116s with aura#574 in the loader.

Loader: aura main 7f5a1df5 (has #574 and #559), release build, ESP Stage 2, normal boot with no debug host attached. Kernel: main e6c7b03 + open PRs only (7.3.0-m5pro-g9b6191a43887).

So on the K116s, the hang is in the ATC0 nodes even with a loader that has #574. I can't tell whether the tables were exported on the hung boots, since nothing past 1.98 s gets logged. The nodes the ATC0 include adds are hpm0 (usb-pd@c) and its ports, the PHY (phy@2a3000000) with its mailbox (mailbox@2a3148000) and DART (iommu@2a4000000), and the router/PCIe node (pcie@1c50000000). I can bisect those on this machine, one boot each, if you tell me which you suspect first.

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