Repository navigation
arm64: dts: apple: t6050: describe the J873s Ethernet, N1 and rear USB-C - #2279
Conversation
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]>
|
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.
HW row: J873s owner, on the head: both root ports up in the loader log, Assisted-by: LLM (Claude:Opus 5.5) |
|
Adversarial pass at 8d81c7a: no blockers.
Still owed: a J873s boot on this head with both root ports up in the loader log, Assisted-by: LLM (Claude:Opus 5.5) |
There was a problem hiding this comment.
Formal §1–§6 pre-PR review on head 8d81c7a11d13 (against live integration/aurora 70a00e583b03):
Checked & Clean
- DT structure / refactor: Extracting
t6050-desktop.dtsiis a clean byte-identical refactor fort6050-j775d.dts(port02Ethernet,dart_apcie2, and rear USB-Chpm0/hpm1/hpm2+dcpext0route). Ont6050-j873s.dts,pcie0port2/port0reg/interrupts/iommu-map/bus-rangematch thet6050-j775dlayout for those ports,port00(N1) andhpm0/hpm2stay disabled, andaura'st6050_setup_atc()locates combo PHYs by compatible +apple,port-indexrather thanatcphyNaliases. Not superseded onintegration/aurora. - §4 Attribution: Commit
8d81c7a11d13carries human author/committer + humanSigned-off-byonly (zero AI commit trailers); PR body carriesAssisted-by:.
Blockers
- §6 Live CI is not green (
dt-checkscancelled): On head8d81c7a11d13,dt-checksiscancelled(run 44521080981,mergeStateStatus: UNSTABLE). A greendt-checksrun on the live head is required before approval. - §5 Evidence & §1 Hardware Proof: This non-draft PR enables live hardware paths on
t6050-j873s.dts(&pcie0,port02Ethernet,&dart_apcie2, andhpm1on&nub_spmi_a0wired to enabledatc1_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.crequiring10ec: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
- Get a green live
dt-checksrun alongsidehost-testson the verified head. - Provide an exact-head J873s hardware + §5 regression run (both root ports up in loader log,
lspci -nnshowing Ethernet + N1, Ethernet link at rated speed with ADT MAC, Wi-Fi/BT working, USB 3 on rear port 2 in both orientations,0DART faults,0SELinux denials,0failed units,0new kernel errors) — or keep this PR as a draft until a J873s owner can test it (alternatively, split the byte-identicalt6050-desktop.dtsirefactor fort6050-j775d.dtsif you want that part landed first).
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict: FINISH, then merge at 8d81c7a11d13
Blockers:
dt-checkswas cancelled at this head (run 44521080981). I re-ran it; it has to come back green.- 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.
Superseded by the review at 8d81c7a
|
Reply to the 11-24 review at |
DjDeveloperr
left a comment
There was a problem hiding this comment.
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.
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.dtsiwith what the J775d and the J873s share on die 0. Both boards' ADTs give the same bridge, PHY and HPM layout for these parts:ethernet0) anddart_apcie2;t6050-j775d.dts: those blocks are replaced by the include. Its DTB is byte-identical.t6050-j873s.dts:apple/centauri/j873s-ftab.bin;ethernet0,wifi0andbluetooth0aliases for the loader's MAC/BD addresses;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
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.Still to run
J873s owner row (no owner known yet). Each item is a command and the result we expect:
pcie-t6050: port 2 upandport 0 upfrom the loader;dmesgshows 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:
pcie_t6050.crequires 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.apple/centauri/j873s-ftab.bin(this board's N1 image) must be installed.combo_start()(drivers/phy/apple/atc-t6050-combo.h,TYPEC_ORIENTATION_NONEcheck) 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):
J873s DTB diff (decompiled; only added nodes and properties and status changes; phandle renumbering left out):