Skip to content

arm64: dts: apple: t6050: describe the J873s Ethernet, N1 and rear USB-C - #2279

Merged
RyanTheTide merged 1 commit into
mainfrom
dtfill-t6050/j873s
Nov 27, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
dtfill-t6050/j873s

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The Mac mini (M5 Pro, J873s) device tree had PCIe port 0's host disabled and no USB-C connectors. So the board had no Ethernet, no N1 Wi-Fi/Bluetooth and no rear Thunderbolt/USB-C ports.

Change

  • New t6050-desktop.dtsi with what the J775d and the J873s share on die 0. Both boards' ADTs give the same bridge, PHY and HPM layout for these parts:

    • the onboard Ethernet root port (PCIe port 2, ethernet0) and dart_apcie2;
    • rear USB-C ports 1-3: HPM0 (SPMI 0xc) reserved for the debug link, HPM1 (0xa) on ATC1 / usb-drd1, and HPM2 (0x8) on ATC2 / usb-drd2 with the dcpext0 Type-C route. HPM2 stays disabled with its chain until the T6050 display handoff enables it, as on the J775d.
    • Each board defines its own two connector labels before the include.
  • t6050-j775d.dts: those blocks are replaced by the include. Its DTB is byte-identical.

  • t6050-j873s.dts:

    • its own apcie0 registers and interrupts for ports 2 and 0 (its ADT has no bridge for port 1 or 3: no SD reader, no USB-A xHCI);
    • iommu-map and bus-range (port 2 on bus 1, port 0 on bus 2 until the loader renumbers);
    • the N1 node on port 0, disabled until the loader trains the port, with platform ID 0x00026050 (board 0x02 << 16 | 0x6050) and firmware apple/centauri/j873s-ftab.bin;
    • the ethernet0, wifi0 and bluetooth0 aliases for the loader's MAC/BD addresses;
    • connector labels "USB-C Back-left" (port 2) and "USB-C Back-right" (port 3).

    All values are from the board's ADT. They match the J775d's for the same nodes.

  • The front USB-C ports are not described. They sit behind a fixed USB 3 hub on ATC3, with no PD controller. The T6050 combo PHY starts USB only after a Type-C orientation/mux event, which that port never gets.

  • No change to the jack, the GPU, HDMI or pinctrl_ap (all of its pins are still exposed on this board, as before).

The Ethernet root port and rear USB-C nodes were first written for the J775d by Jeff Queisser.

Testing

  • Full kernel tree make dtbs CHECK_DTBS=y (dtschema) for every T6050 DTB on this branch: builds clean, no dtc warnings, and no schema message that integration/aurora does not already have.
  • DTB build with kbuild's cpp/dtc flags for all 11 T6050 boards: all OK, 0 warnings before and after.
  • Byte-identical DTBs: J714c, J714s, J716c, J716s, J775c, J775d, K114c, K114s, K116c, K116s. Only the J873s changes.
  • dt-validate (J873s, J775d): 0 messages before and 0 after; no new messages. No new compatibles.
  • Not booted. Nobody has run Linux on a J873s yet.

Still to run

J873s owner row (no owner known yet). Each item is a command and the result we expect:

  • Boot log: pcie-t6050: port 2 up and port 0 up from the loader; dmesg shows both root ports, the N1 and no DART faults.
  • lspci -nn: the Ethernet at 01:00.0 or 02:00.0, and the N1 (106b:1900/1901 control, 1902, 1903).
  • iw dev wlan0 link: connected to an AP. bluetoothctl list: one controller.
  • ethtool <if>: link at 2.5G on the base model and at 10G on the 10GbE model, and the ADT MAC address.
  • lsusb -t: a USB 3 device enumerates on rear ports 2 and 3 (port 3 only after the display handoff), and on both orientations.

Dependencies:

  • Aura: pcie_t6050.c requires port 2's endpoint to be 10ec:8127, the J775d's RTL8127A. If the J873s Ethernet (2.5GbE base, 10GbE option) has another ID, port 2's bring-up stops and kboot refuses the T6050 handoff. That happens today too, without this change. The owner's loader log (pcie-t6050: endpoint ... is 0x...) gives the ID to add.
  • Firmware: apple/centauri/j873s-ftab.bin (this board's N1 image) must be installed.
  • Display handoff: port 3's USB comes with the dcpext0 Type-C handoff, as on the J775d.
  • Front ports: these need a fixed-hub mode in the T6050 combo PHY. Today combo_start() (drivers/phy/apple/atc-t6050-combo.h, TYPEC_ORIENTATION_NONE check) refuses a port that has no orientation.
Per-board values and DTB diffs

J873s values (from the board's ADT, the same as the J775d's):

Item Value
apcie0 port 2 port 0x412028000, phy 0x417018000, intr2axi 0x412024000, IRQ 1539, DART dart-apcie2 stream 1
apcie0 port 0 port 0x410028000, phy 0x417010000, intr2axi 0x410024000, IRQ 1523, DART dart-apcie0 streams 1-3, PERST# GPIO 80
N1 platform ID 0x00026050 (board-id 0x02)
HPM0 / HPM1 / HPM2 nub-spmi-a0 0xc / 0xa / 0x8, port-number 1 / 2 / 3, "back-middle" / "back-left" / "back-right", on ATC0 / ATC1 / ATC2
ATC3 usb-drd3 behind a hub, ports 9 and 10 (front), no HPM, host only

J873s DTB diff (decompiled; only added nodes and properties and status changes; phandle renumbering left out):

@@ -8,6 +8,12 @@
+	aliases {
+		bluetooth0 = "/pcie@1cb0000000/pci@0,0/bluetooth@0,2";
+		ethernet0 = "/pcie@1cb0000000/pci@2,0/ethernet@0,0";
+		wifi0 = "/pcie@1cb0000000/pci@0,0/wifi@0,1";
+	};
+
@@ -541,18 +547,80 @@
+		bus-range = <0x00 0x02>;
+		interrupt-names = "port2", "port0";
+		interrupts = <0x00 0x00 0x603 0x04 0x00 0x00 0x5f3 0x04>;
+		iommu-map = <0x100 0x86 0x01 0x01 0x200 0x87 0x01 0x03>;
-		status = "disabled";
+		reg = <0x1c 0xb0000000 0x00 0x10000000 0x04 0x14000000 0x00 0x4000 0x04 0x12028000 0x00 0x8000 0x04 0x17018000 0x00 0x4000 0x04 0x12024000 0x00 0x4000 0x04 0x10028000 0x00 0x8000 0x04 0x17010000 0x00 0x4000 0x04 0x10024000 0x00 0x4000>;
+		reg-names = "config", "rc", "port2", "phy2", "intr2axi2", "port0", "phy0", "intr2axi0";
+
+		pci@0,0 {
+			#address-cells = <0x03>;
+			#interrupt-cells = <0x01>;
+			#size-cells = <0x02>;
+			apple,link-trained-by-bootloader;
+			bus-range = <0x02 0x02>;
+			device_type = "pci";
+			interrupt-controller;
+			interrupt-map = <0x00 0x00 0x00 0x01 0x89 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x02 0x89 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x03 0x89 0x00 0x00 0x00 0x02 0x00 0x00 0x00 0x04 0x89 0x00 0x00 0x00 0x03>;
+			interrupt-map-mask = <0x00 0x00 0x00 0x07>;
+			ranges;
+			reg = <0x00 0x00 0x00 0x00 0x00>;
+			reset-gpios = <0x73 0x50 0x01>;
+			status = "disabled";
+
+			bluetooth@0,2 {
+				compatible = "pci106b,1903";
+				local-bd-address = [00 00 00 00 00 00];
+				reg = <0x20200 0x00 0x00 0x00 0x00>;
+			};
+
+			control@0,0 {
+				apple,centauri-platform-id = <0x26050>;
+				apple,centauri-protocol = <0x1b>;
+				compatible = "pci106b,1900";
+				firmware-name = "apple/centauri/j873s-ftab.bin";
+				reg = <0x20000 0x00 0x00 0x00 0x00>;
+			};
+
+			wifi@0,1 {
+				compatible = "pci106b,1902";
+				local-mac-address = [00 00 00 00 00 00];
+				reg = <0x20100 0x00 0x00 0x00 0x00>;
+			};
+		};
+
+		pci@2,0 {
+			#address-cells = <0x03>;
+			#interrupt-cells = <0x01>;
+			#size-cells = <0x02>;
+			apple,link-trained-by-bootloader;
+			bus-range = <0x01 0x01>;
+			device_type = "pci";
+			interrupt-controller;
+			interrupt-map = <0x00 0x00 0x00 0x01 0x88 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x02 0x88 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x03 0x88 0x00 0x00 0x00 0x02 0x00 0x00 0x00 0x04 0x88 0x00 0x00 0x00 0x03>;
+			interrupt-map-mask = <0x00 0x00 0x00 0x07>;
+			ranges;
+			reg = <0x1000 0x00 0x00 0x00 0x00>;
+
+			ethernet@0,0 {
+				local-mac-address = [00 00 00 00 00 00];
+				reg = <0x10000 0x00 0x00 0x00 0x00>;
+			};
+		};
@@ -1907,6 +1975,14 @@
+
+					port {
+
+						endpoint {
+							remote-endpoint = <0x46>;
+						};
+					};
@@ -2089,9 +2165,9 @@
-			status = "disabled";
+			status = "okay";
@@ -2272,14 +2348,22 @@
+			mboxes = <0x47>;
+			power-domains = <0x3c 0x21 0x48 0x49>;
+
+			port {
+
+				endpoint {
+					remote-endpoint = <0x4a>;
+				};
+			};
@@ -2288,15 +2372,23 @@
+			mboxes = <0x5b>;
+			power-domains = <0x3d 0x22 0x5c 0x5d>;
+
+			port {
+
+				endpoint {
+					remote-endpoint = <0x5e>;
+				};
+			};
@@ -3810,6 +3902,92 @@
+
+			usb-pd@8 {
+				compatible = "apple,sn201202x";
+				reg = <0x08 0x00>;
+				status = "disabled";
+
+				connector {
+					compatible = "usb-c-connector";
+					data-role = "dual";
+					label = "USB-C Back-right";
+					power-role = "dual";
+
+					ports {
+						#address-cells = <0x01>;
+						#size-cells = <0x00>;
+
+						port@0 {
+							reg = <0x00>;
+
+							endpoint {
+								remote-endpoint = <0x61>;
+							};
+						};
+
+						port@1 {
+							reg = <0x01>;
+
+							endpoint {
+								remote-endpoint = <0x62>;
+							};
+						};
+
+						port@2 {
+							reg = <0x02>;
+
+							endpoint {
+								remote-endpoint = <0x63>;
+							};
+						};
+					};
+				};
+			};
+
+			usb-pd@a {
+				compatible = "apple,sn201202x";
+				reg = <0x0a 0x00>;
+
+				connector {
+					compatible = "usb-c-connector";
+					data-role = "host";
+					label = "USB-C Back-left";
+					power-role = "dual";
+
+					ports {
+						#address-cells = <0x01>;
+						#size-cells = <0x00>;
+
+						port@0 {
+							reg = <0x00>;
+
+							endpoint {
+								remote-endpoint = <0x5f>;
+							};
+						};
+
+						port@1 {
+							reg = <0x01>;
+
+							endpoint {
+								remote-endpoint = <0x60>;
+							};
+						};
+					};
+				};
+			};
+
+			usb-pd@c {
+				compatible = "apple,sn201202x";
+				reg = <0x0c 0x00>;
+				status = "disabled";
+			};
@@ -3829,15 +4007,23 @@
+			iommus = <0x4b 0x00 0x4c 0x01>;
+			phys = <0x4d 0x03 0x4d 0x04>;
+			power-domains = <0x49>;
+			resets = <0x4d 0x00>;
+
+			port {
+
+				endpoint {
+					remote-endpoint = <0x4e>;
+				};
+			};
@@ -3850,16 +4036,24 @@
+			iommus = <0x64 0x00 0x65 0x01>;
+			power-domains = <0x5d>;
+
+			port {
+
+				endpoint {
+					remote-endpoint = <0x66>;
+				};
+			};

The Mac mini (M5 Pro, J873s) had PCIe disabled and no USB-C
connectors: no Ethernet, no Wi-Fi/Bluetooth and no rear Thunderbolt
ports.

The board's ADT gives the J775d's layout for the parts the two desktops
share: the onboard Ethernet on PCIe port 2, the N1 on port 0 (PERST#
GPIO 80, DART streams 1-3), and rear USB-C ports 1-3 on ATC0-2 with
their PD controllers on nub-spmi-a0 at SPMI addresses 0xc, 0xa and 0x8.
Move the J775d's Ethernet root port, its DART enable and rear ports
1-3 (HPM0 reserved for the debug link, HPM1 on ATC1, HPM2 on ATC2 with
the dcpext0 Type-C route) into a new t6050-desktop.dtsi, with each
board giving its own connector labels. The J775d DTB is byte-identical.

The J873s then adds its own apcie0 registers and interrupts for ports 2
and 0 (it has no port 1 or 3), the bus numbering the boot loader starts
from, and the N1 node with its platform ID, board 0x02 << 16 | 0x6050,
and its firmware name, disabled until the boot loader trains the port.
Values are from the board's ADT. The front USB-C ports sit behind a
fixed hub on ATC3 with no PD controller and are left undescribed.

The other T6050 boards are unchanged.

The Ethernet port and rear USB-C ports were written for the J775d by
Jeff Queisser.

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

Copy link
Copy Markdown
Contributor Author

No blockers.

On current integration/aurora, only the J873s DTB changes; J775d and the other nine are byte-identical, so moving its Ethernet root port and rear USB-C into t6050-desktop.dtsi is a pure refactor for the Mac Studio. The J873s apcie0 windows, IRQs 1539/1523, the DART streams and PERST# 80 match the J775d's for the same ports. The N1 port stays disabled until the loader trains it, and HPM2 stays disabled until the dcpext0 handoff, as on the J775d. The ADT coverage check passes for J873s. dt-checks was cancelled; get a green run before merge. This can leave draft: nothing else boots Linux on a J873s, and the board is unchanged elsewhere.

  1. Follow-up outside this PR: the body notes that the loader requires port 2's endpoint to be 10ec:8127. The 2.5GbE base model very likely has another controller, which would stop the whole T6050 handoff on that model. Train and enumerate whatever endpoint the ADT's bridge reports, and let the Linux PCI driver decide.

HW row: J873s owner, on the head: both root ports up in the loader log, lspci -nn shows the Ethernet and the N1 (1900-1903), Ethernet link at its rated speed with the ADT MAC, Wi-Fi associated, one Bluetooth controller, a USB 3 device on rear port 2 in both orientations, 0 DART faults, 0 AVC, 0 failed units, no new kernel errors.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide
RyanTheTide marked this pull request as ready for review November 22, 2026 10:09
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Adversarial pass at 8d81c7a: no blockers.

  • Built every Apple DTS with cpp + dtc at integration/aurora and with this PR merged in (clean merge). Only t6050-j873s changes; J775d and the other T6050 trees are identical, so the t6050-desktop.dtsi move is a pure refactor for the J775d, and no dtc warning counts move.
  • The J873s host has no power-domains and both root port children carry apple,link-trained-by-bootloader, which is what the adopt-only T6050 probe path in pcie-apple.c requires. Port 0's reset-gpios makes probe wait for pinctrl_ap before touching either port, and the port2/port0/phy*/intr2axi* names match what apple_pcie_adopt_link() looks up.
  • The tree has what the loader's T6050 handoff edits. Each described port has a single-bus bus-range (port 2 on bus 1, port 0 on bus 2) and a matching iommu-map entry (0x100 -> dart_apcie2, 0x200 -> dart_apcie0), so the loader can renumber or disable them. The missing port 3 node is skipped, not treated as an error.

Still owed: a J873s boot on this head with both root ports up in the loader log, lspci -nn showing the Ethernet and the N1, the Ethernet link at its rated speed with the ADT MAC, Wi-Fi associated, one Bluetooth controller, a USB 3 device on rear port 2 in both orientations, and 0 DART faults.

Assisted-by: LLM (Claude:Opus 5.5)

@DjDeveloperr DjDeveloperr left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formal §1–§6 pre-PR review on head 8d81c7a11d13 (against live integration/aurora 70a00e583b03):

Checked & Clean

  • DT structure / refactor: Extracting t6050-desktop.dtsi is a clean byte-identical refactor for t6050-j775d.dts (port02 Ethernet, dart_apcie2, and rear USB-C hpm0/hpm1/hpm2 + dcpext0 route). On t6050-j873s.dts, pcie0 port2/port0 reg/interrupts/iommu-map/bus-range match the t6050-j775d layout for those ports, port00 (N1) and hpm0/hpm2 stay disabled, and aura's t6050_setup_atc() locates combo PHYs by compatible + apple,port-index rather than atcphyN aliases. Not superseded on integration/aurora.
  • §4 Attribution: Commit 8d81c7a11d13 carries human author/committer + human Signed-off-by only (zero AI commit trailers); PR body carries Assisted-by:.

Blockers

  1. §6 Live CI is not green (dt-checks cancelled): On head 8d81c7a11d13, dt-checks is cancelled (run 44521080981, mergeStateStatus: UNSTABLE). A green dt-checks run on the live head is required before approval.
  2. §5 Evidence & §1 Hardware Proof: This non-draft PR enables live hardware paths on t6050-j873s.dts (&pcie0, port02 Ethernet, &dart_apcie2, and hpm1 on &nub_spmi_a0 wired to enabled atc1_phy/usb_drd1) on a machine that has never booted Linux ("Not booted. Nobody has run Linux on a J873s yet") and notes an unresolved Aura dependency (pcie_t6050.c requiring 10ec:8127, which may not match a 2.5GbE base J873s). Under the pre-PR checklist, an unverified hardware enablement PR either needs exact-head hardware + regression verification or must stay a draft until tested.

To Unblock

  1. Get a green live dt-checks run alongside host-tests on the verified head.
  2. Provide an exact-head J873s hardware + §5 regression run (both root ports up in loader log, lspci -nn showing Ethernet + N1, Ethernet link at rated speed with ADT MAC, Wi-Fi/BT working, USB 3 on rear port 2 in both orientations, 0 DART faults, 0 SELinux denials, 0 failed units, 0 new kernel errors) — or keep this PR as a draft until a J873s owner can test it (alternatively, split the byte-identical t6050-desktop.dtsi refactor for t6050-j775d.dts if you want that part landed first).

@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) changes-requested A reviewer requested changes (bot) ci-failing A check failed at the PR head (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Merge readiness at 8d81c7a1: ready to merge

Check Detail
CI at head ok 2 checks passed
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head ok comment at 8d81c7a1
Conflicts ok none
PR text adopt when you next edit add a 'Tested:' line; a 'Risk:' line (door and Macs) (guide)

Areas: area:bringup
Merge: gh pr merge 2279 --merge (Owners and Core through the bypass: add --admin).

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

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

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

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 8d81c7a11d13

Blockers:

  1. dt-checks was cancelled at this head (run 44521080981). I re-ran it; it has to come back green.
  2. Missing row: a J873s boot with Ethernet, the N1 and the rear USB-C up at this head. If nobody has a J873s, another T6050 desktop can stand in.

Checked: no Apple material, DT only.

@DjDeveloperr
DjDeveloperr dismissed their stale review November 24, 2026 23:25

Superseded by the review at 8d81c7a

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Reply to the 11-24 review at 8d81c7a11d13: (1) the rerun of dt-checks passed at this head, and all checks are green. (2) The J873s row (or another T6050 desktop: boot with Ethernet, N1 and the rear USB-C up) is still owed. Our lab has no T6050 desktop, so this waits for an owner row; the head is unchanged, so a row on 8d81c7a11d13 counts.

@github-actions github-actions Bot removed the needs-hw-row No hardware row at the PR head (bot) label Nov 25, 2026

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clearing the prior request for changes now that dt-checks and all 5 checks pass at 8d81c7a11d13. DT changes look clean; holding merge until a J873s (or other T6050 desktop) boot row covering Ethernet, N1, and rear USB-C is posted.

@github-actions github-actions Bot added ready-to-merge Meets the merge policy: merge it (bot) and removed changes-requested A reviewer requested changes (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 25, 2026
@RyanTheTide
RyanTheTide merged commit 52148e1 into main Nov 27, 2026
6 of 7 checks passed
@RyanTheTide
RyanTheTide deleted the dtfill-t6050/j873s branch November 27, 2026 13:21
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) needs-template PR body lacks Tested or Risk (bot) ready-to-merge Meets the merge policy: merge it (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants