Skip to content

arm64: dts: apple: t6050-k116: describe the left-front and right USB4 routers - #3599

Merged
RyanTheTide merged 4 commits into
mainfrom
feat/t6050-k116-usb4-routers
Dec 1, 2026
Merged

RyanTheTide merged 4 commits into
mainfrom
feat/t6050-k116-usb4-routers

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Tested: no runtime change on any lab Mac (K116c/K116s are not in the lab): all 11 T6050 DTBs build, CHECK_DTBS silent at eac5337; needs a K116 owner row
Risk: two-way · K116c, K116s

Stacked on #3598; I'll retarget it to main once #3598 merges.

The K116c and K116s described no USB4/Thunderbolt router on any port. Their left-front (ATC1) and right (ATC2) ports got USB only, with no PCIe or DP tunnel, and the MagSafe 3 PD controller (hpm5) wasn't described either. The ADT has all of it.

ADT check (K116sAP vs K114sAP, node by node): acio1/2, acio-cpu1/2, dart-acio1/2, apciec1/2, dart-apciec1/2, atc1/2-dpin0..3, hpm5 and the host DROMs are identical, phandles aside. Two things differ:

  • the PHYs' PLL calibration tables, which are per machine and exported by the boot loader;
  • atc-phy1 CIO RX_TOP: 0x0 on the K116s, 0x200 on the 14-inch boards.

Change

  • The K116 boards include t6050-k114-usb.dtsi, as the K114 boards do, with T6050_ATC1_USB4_ROUTER and T6050_ATC2_USB4_ROUTER defined.
  • atc1_phy RX_TOP is set to 0x0.
  • The K116s drops T6050_SLEEP_SOC_NO_CIO, so it takes the J714s CIO sleep values. That file's rule applies them to every board that has acio2.

Checks

Not tested on hardware. Neither K116 is in our lab, and the K116s DTS is still marked "not yet booted". Rows need the owners (K116s: axboe).

… routers

The K116c and K116s described no USB4/Thunderbolt router at all: their
left-front (ATC1) and right (ATC2) ports got USB only, with no PCIe or
DisplayPort tunnel, and their MagSafe 3 PD controller (hpm5) was not
described either.

The K116sAP ADT's acio1, acio2, acio-cpu1/2, dart-acio1/2, apciec1/2,
dart-apciec1/2, atc1/2-dpin0..3, hpm5 and the host DROMs equal the
K114sAP's, phandles aside. Only the PHYs' PLL calibration tables differ
(per machine, from the boot loader) and atc-phy1's CIO RX_TOP tunables
(0x0, where the 14-inch boards have 0x200).

So the K116 boards include t6050-k114-usb.dtsi as the K114 boards do,
with the two router defines, and set atc-phy1's RX_TOP to 0x0. With
acio2 described, the K116s no longer defines T6050_SLEEP_SOC_NO_CIO and
takes the J714s's CIO sleep values, as that file's rule says.

Signed-off-by: Ryan Murray <[email protected]>
Base automatically changed from feat/t6050-k-atc0-left-back to main November 29, 2026 08:47
@RyanTheTide
RyanTheTide marked this pull request as ready for review November 29, 2026 08:48
@RyanTheTide
RyanTheTide requested review from a team as code owners November 29, 2026 08:48
@RyanTheTide
RyanTheTide requested a review from Acelogic November 29, 2026 08:48
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Retargeted to main now that #3598 is merged (aa76613); the diff is just the K116 routers and MagSafe. Ready for review at 1298fae4. None of our lab Macs is a K116, so before merge this needs a boot row from a K116s owner (and K116c if anyone has one). Check that acio1/acio2 and hpm5 bind, that there are no new kernel errors, and, if possible, that a Thunderbolt device on the left-front or right port enumerates. axboe, your K116s ADT is what the values were checked against; would you be able to boot this DTB?

@RyanTheTide
RyanTheTide requested a review from maralcbr November 29, 2026 08:48

@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: HOLD at 1298fae4 — the K116c/K116s USB4 router, MagSafe 3 (hpm5), atc1_phy CIO RX_TOP, and CIO sleep DTS wiring matches the K114 layout cleanly; awaiting a K116 owner hardware row and CI completion on main.

Blockers:

  1. Post a K116s (and K116c if available) boot row at this head verifying acio1/acio2 and hpm5 bind with no new kernel errors (and Thunderbolt enumeration on the left-front or right port if possible).
  2. Complete CI checks against main (re-trigger or rebase onto main after the retarget; note merge commit 1298fae4 has no Signed-off-by: trailer, so confirm policy CI passes cleanly).

Checked:

  • Audited all 3 changed files (arch/arm64/boot/dts/apple/t6050-k114-usb.dtsi, t6050-k116c.dts, t6050-k116s.dts, +29/-3) against t6050-k114c.dts, t6050-k114s.dts, and t6050-k114-k116-usb.dtsi.
  • T6050_ATC2_USB4_ROUTER and T6050_ATC1_USB4_ROUTER are defined before t6050-k114-k116.dtsi on both K116c and K116s, matching K114c/K114s.
  • Include order (t6050-k114-k116-usb.dtsi -> t6050-k114-k116-atc0.dtsi -> t6050-k114-usb.dtsi) preserves &pinctrl_aop { status = "okay"; } from t6050-k114-k116-atc0.dtsi and updates gpio-reserved-ranges to <0 77>, <78 1>, <80 1>, <82 3> so LSTX pins 77 (acio0), 79 (acio1), and 81 (acio2) are all exposed.
  • &atc1_phy overrides apple,tunable-lane{0,1}-rx-top-cio to <0x35c 0xe00 0x0> for the 16-inch boards, and t6050-k116s.dts drops T6050_SLEEP_SOC_NO_CIO before t6050-j714s-sleep-soc.dtsi now that acio2 is enabled.
  • Zero changes to any non-K116 DTB; DCO Signed-off-by: present on 788a709f; no Apple material or policy issues.
Evidence
  • Diff: t6050-k114-usb.dtsi (+1/-1 comment), t6050-k116c.dts (+14/-0), t6050-k116s.dts (+14/-2).
  • Checked t6050-k114-k116-usb.dtsi L201 includes t6050-k114-k116-atc0.dtsi prior to t6050-k114-usb.dtsi.
  • CI at review time: 1 queued (pr-text), 7 cancelled from pre-retarget runs.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Blocker 2: merged current main into the branch as eac53371, with Signed-off-by on the merge commit (no force push). That gives a fresh CI run against the retargeted base. K116c and K116s rebuild with CHECK_DTBS=y silent. Blocker 1, the K116 owner row, is still open and requested above.

@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: HOLD at eac53371 — clean main forward-merge with DCO sign-off and identical K116c/K116s DTS wiring; awaiting the K116 owner hardware row and the fresh queued CI checks.

Blockers:

  1. Post a K116s (and K116c if available) boot row verifying acio1/acio2 and hpm5 bind with no new kernel errors (and Thunderbolt enumeration on the left-front or right port if possible).
  2. Complete the queued CI checks (dt-checks, host-tests, pr-text) at eac53371.

Checked:

  • Audited 1298fae4..eac53371: clean merge of main with DCO Signed-off-by: on eac53371 and zero changes to the +29/-3 DTS diff (t6050-k114-usb.dtsi, t6050-k116c.dts, t6050-k116s.dts) already audited at 1298fae4.
  • No Apple material or policy issues.
Evidence
  • Diff vs main unchanged (+29/-3 across 3 DTS files).
  • CI at review time: dt-checks, host-tests, pr-text queued on eac53371.

@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) blast:all Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (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 29, 2026
@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Merge readiness at 229b72c7: not ready yet

Check Detail
CI at head ok 5 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok not needed: no runtime change
Conflicts ok not computed yet
PR text ok Risk: two-way · K116c, K116s Stacked on #3598; I'll retarget it to main once #3598 merges. The K116c and K116s described no USB4/Thunderbolt router on any port. Their left-front (ATC1) and right (ATC2) ports got USB only, with no PCIe or DP tunnel, and the MagSafe 3 PD controller (hpm5) wasn't described either. The ADT has all of it. ADT check (K116sAP vs K114sAP, node by node): acio1/2, acio-cpu1/2, dart-acio1/2, apciec1/2, dart-apciec1/2, atc1/2-dpin0..3, hpm5 and the host DROMs are identical, phandles aside. Two things differ: - the PHYs' PLL calibration tables, which are per machine and exported by the boot loader; - atc-phy1 CIO RX_TOP: 0x0 on the K116s, 0x200 on the 14-inch boards. Change - The K116 boards include t6050-k114-usb.dtsi, as the K114 boards do, with T6050_ATC1_USB4_ROUTER and T6050_ATC2_USB4_ROUTER defined. - atc1_phy RX_TOP is set to 0x0. - The K116s drops T6050_SLEEP_SOC_NO_CIO, so it takes the J714s CIO sleep values. That file's rule applies them to every board that has acio2. Checks - All 11 T6050 DTBs build. Compared with #3598, only k116c and k116s change. - CHECK_DTBS=y on k116c and k116s: no output. - acio0/1/2 and hpm5 come out okay on both boards. Not tested on hardware. Neither K116 is in our lab, and the K116s DTS is still marked "not yet booted". Rows need the owners (K116s: axboe).

Areas: area:bringup

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

@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: HOLD at eac53371 (K-board adversarial review). The DT itself is right against the ADT. The hold is for hardware evidence, plus an interaction with #3498 that this PR's text should state.

Blockers:

  1. A K116 owner row (K116s: axboe; K116c if anyone has one). A boot at this head with acio1/acio2/hpm5 bound and no new errors, plus an s2idle cycle, because the K116s now takes the J714s CIO sleep values (T6050_SLEEP_SOC_NO_CIO dropped). If no owner row is possible, ORCH5 has to waive it explicitly. The PR changes router and sleep state on a board whose DTS is still marked "not yet booted", so I won't approve it on build checks alone.
  2. Interaction with #3498 (K114s HDMI, approved at 2fde84c0). #3498 adds #include "t6050-atc3-hdmi.dtsi" to t6050-k114-usb.dtsi, and this PR makes both K116 boards include t6050-k114-usb.dtsi. I trial-merged the two locally: they conflict textually in the header comment, and once that is resolved the K116s DTB gains the full HDMI description (ATC3 becomes apple,t6050-dp-phy, usb_drd3 is disabled, dcpext0 gets HDMI-A plus HPD GPIO 14 and pcIO pwren lines 1/0, and the AOP reserved ranges change). I checked those against the K116s ADT: dp2hdmi-gpio0 has the same hdmi_hpd GPIO(0xe) and the same pcIO commands as the K114s, so it's probably correct. But it's untested, and it contradicts #3498's "16-inch boards include it once tested". Whichever PR lands second needs a forward-merge that does one of two things on purpose: (a) keep the K116 HDMI, saying so in the body/Risk: and making the K116 owner row cover HDMI, or (b) move the HDMI include out to the K114 .dts files so the K116 boards don't inherit it yet. (a) is what the brief prefers (shared, not per-board), as long as the row covers it.

Checked (what I tried to break):

  • RX_TOP. K116s ADT atc-phy1 tunable_LN0/LN1_RX_TOP_CIO_DFLT = 5c030020 000e0000 00000000, which is <0x35c 0xe00 0x0>. The K114s ADT has ...00020000 (0x200). The override is right, and it's applied after the include.
  • Nodes. acio1, acio2 and hpm5 exist in the K116s ADT as they do on the K114s, and usb-drd3 doesn't exist on either. Defining T6050_ATC1/ATC2_USB4_ROUTER ahead of the shared files matches the K114 boards.
  • Build. I didn't re-run dtbs at eac53371 by itself. The combined #3498+#3599 tree builds all 11 T6050 DTBs with the host dtc.

@github-actions github-actions Bot added merge-conflict Conflicts with the base branch (bot) and removed ci-failing A check failed at the PR head (bot) labels Nov 30, 2026
Describe the shared K-board ports and keep the HDMI route that main added.

Signed-off-by: DjDeveloperr <[email protected]>
@github-actions github-actions Bot removed the merge-conflict Conflicts with the base branch (bot) label Nov 30, 2026

@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: HOLD at 229b72c77b03

Blockers:

  • Queued hosted CI at 229b72c77b03 (dt-checks, host-tests, pr-text) — wait for all checks to complete green.
  • Missing K116 hardware verification row at 229b72c77b03 (K116s, and K116c if available): boot verifying acio1/acio2/hpm5 bind without new kernel errors plus an s2idle cycle (given T6050_SLEEP_SOC_NO_CIO is dropped on K116s).

Checked:

  • Audited the full +29/-3 diff across t6050-k114-usb.dtsi, t6050-k116c.dts, and t6050-k116s.dts after the main merge (229b72c77b03, MERGEABLE): preserves the audited T6050_ATC1_USB4_ROUTER / T6050_ATC2_USB4_ROUTER enables, t6050-k114-usb.dtsi includes, K116 atc1_phy 0x0 CIO RX_TOP tunables, and removal of T6050_SLEEP_SOC_NO_CIO on K116s.
Evidence
  • Head: 229b72c77b031ccd17e123b98c9d96d95244d997 (base main, MERGEABLE, resolved conflict from eac53371).
  • Status checks: readiness / readiness SUCCESS; dt-checks QUEUED; host-tests QUEUED; pr-text / pr-text IN_PROGRESS.

@github-actions github-actions Bot added the ci-failing A check failed at the PR head (bot) label Nov 30, 2026
@DjDeveloperr

Copy link
Copy Markdown
Contributor

Merged main into 229b72c, preserving the shared HDMI route and the K116 USB4 changes. The K116c and K116s DTBs build, and both K114 control DTBs are byte-identical to main. The K116 hardware row remains outstanding.

@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 229b72c77b03

Converts this App's earlier review at the same head to an approval under the 12-01 merge bar (better than before and doesn't break; block only on a shown failure). No code blocker was found in it. The merge gate (a row on one Mac at this head + fast CI) is tracked by pr-readiness, not held here.

Checked: - Audited the full +29/-3 diff across t6050-k114-usb.dtsi, t6050-k116c.dts, and t6050-k116s.dts after the main merge (229b72c77b03, MERGEABLE): preserves the audited T6050_ATC1_USB4_ROUTER / T6050_ATC2_USB4_ROUTER enables, t6050-k114-usb.dtsi includes, K116 atc1_phy 0x0 CIO RX_TOP tunables, and removal of T6050_SLEEP_SOC_NO_CIO on K116s.

Follow-ups (not blocking): queued CI; K116 boot + s2idle row

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging at 229b72c77b03 (B2 merge train, 12-01 merge bar). Approval at this head: aurora-silicon-review[bot]. Row: not needed: DT description only, no runtime change. CI: linux train L2 = main (after train L1) + #1489 #3223 #3291 #3333 #3395 #3407 #3547 #3560 #3651 #3684 #3569 #3599 (candidate dd0c7bb9): Apple driver compile pass, Apple DTBs W=1 pass, planned KUnit ane-boot/clpc/ane-pm/dcp-topology/ave/asahi all pass; host-tests/dt-checks green at this head where they apply. The rest of the hosted run is queued behind the backlog. Revert: git revert -m 1 <merge commit>.

@RyanTheTide
RyanTheTide merged commit 429e7e1 into main Dec 1, 2026
9 of 11 checks passed
@RyanTheTide
RyanTheTide deleted the feat/t6050-k116-usb4-routers branch December 1, 2026 07:31
@axboe

axboe commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

K116s row (T6050, 16" M5 Pro OLED, firmware 27.2): pass, with one fix: #3821.

Kernel: main cafee21 + #2355, with ATC0 still left out locally (#3598) (7.3.0-m5pro-g59b031673838). Loader: aura main 7f5a1df5 (release build, ESP Stage 2). Default command line.

  • As merged, the K116s boots with no Wi-Fi: dcpext0's HDMI converter now takes smc_pcio outputs 0 and 1, but t6050-k116s.dts overrides smc_pcio to the SD reader's power alone, as output 0. The SD reader port fails with -EOPNOTSUPP, and the shared N1/SD host goes with it. The fix lists the converter's outputs from the K116sAP ADT and moves the SD reader to output 2.
  • With the fix: both new routers bind (2a9ac0000.acio, 381ac0000.acio -> thunderbolt-apple-acio), hpm5 binds (sn201202x at nub-spmi-a0 0x08), Wi-Fi, SD reader, keyboard/trackpad, speakers, GPU and MCC as before, 0 failed units.
  • One new warning vs. the previous boot: apple-spmi 28a188000.spmi: fault 0x6a100f00 twice at 0.116 s, on the bus that now also carries hpm5.
  • Not tested: devices on the new routers (nothing plugged in), sleep with the J714s CIO values.

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:all 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.

3 participants