Repository navigation
arm64: dts: apple: t6050-j714c: Describe the left-front USB-C port - #1403
Conversation
Enable the ATC1 template of t6050-dieX.dtsi on the J714c and link it to the port's PD controller: usb-pd@a on nub-spmi-a0, an SN201202x at SPMI address 0xa. The J714cAP ADT names it hpm1, port-number 2, port-location "left-front", acio-parent acio1, with atc-phy1, usb-drd1 and dart-usb1. The board file no longer disables nub-spmi-a0, atc1_phy, atc1_phy_mbox, usb_drd1 and its two DARTs. The atcphy1 alias lets the boot loader fill the PHY tunables. The left-back port (ATC0, hpm0) is not described. The combo PHY binding and driver exclude port index 0, the debug port that carries the boot link, on purpose. The port's USB4/Thunderbolt router (acio1) and its DisplayPort routes are not described; the PHY runs in USB mode. The other ten T6050 board DTBs are byte-identical.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins. |
|
GREEN at 5014b38 opencode-go/glm-5.3-flash as routed by Main (model id unverifiable); implementer model unverified. Reproduced the CI check script locally (CHECK_DTBS on all 137 Apple DTBs, base 0669335 vs this head): 0 new warnings. Of the 11 t6050 DTBs only t6050-j714c.dtb changes; the other 10 are byte-identical to base. The new hpm1 node mirrors the accepted hpm2 pattern (apple,sn201202x, SPMI_USID address, usb-c-connector with the high-speed and super-speed ports, no DP route, consistent with the stated PHY-in-USB-mode scope). The ATC1 template nodes carry no disabled status, so deleting the board's disable overrides enables them; the combo PHY's probe contract (apple,port-index <1> on die 0, apple,guest-port-reserved, mode-switch) is satisfied by the template, and the debug-port exclusion for index 0 in the driver matches the PR's scope note. Not verified: runtime bring-up on hardware. |
Gives the 14-inch M5 Max (J714c) its left-front USB-C port. It builds on #1391 (the right port) and is one commit.
What changes
t6050-j714c.dtsstops disabling the ATC1 template oft6050-dieX.dtsi(atc1_phy_mbox,atc1_phy,usb_drd1,usb_drd1_dart_0/1) andnub_spmi_a0. It adds the PD controllerusb-pd@a(SN201202x, SPMI address 0xa) with itsusb-c-connector, the endpoint links toatc1_phyandusb_drd1, and theatcphy1alias.nub_spmi_a2and the ATC3 nodes stay disabled.Why only ATC1
The J714cAP firmware ADT (27.0) has two PD controllers on
nub-spmi-a0:hpm0hpm1The ATC1 PHY, DWC3, DARTs and mailbox already exist as the die template. I checked the PHY
core,usb2phyandusb2-digitaladdresses against the J714cAP ADT'satc-phy1registers; they match.ATC0 (
hpm0, left-back) is not described, on purpose. The combo PHY binding limitsapple,port-indexto 1-5 ("the debug port (0) is excluded"), andatc-t6050-dp.creturns-EINVALfor port 0 ("the debug port that carries the boot link"). A PHY node for ATC0 failsdt-validateand would fail to probe. Decision: Linux does not take that port, so the USB-C VDM reboot and recovery path through the left-back port stays usable. Describing it later needs a binding and driver change first.Testing
Offline only:
066933561b1c), the ten DTBs other than the J714c are byte-identical (cmp). The J714c is the only change.dt-validateof the J714c DTB: base 1 warning, now 1, the same one (pcie@1c70000000:False schema does not allow ['port0']; the J716c DTB has it too). I built the schema withoutphy/ti,cd2e22.yaml, which clashes with the Appleapple,tunablebindings at base.Not tested
atcphy1; they were not compared with the J714cAP ADT values.acio1,dart-acio1,acio-cpu1, NHI, PCIe tunnel) and its DisplayPort routes are not described. The PHY runs in USB mode.usb-drd1lists a fifth interrupt (846) andusb-restore-disable. The template ignores both.hpm5(ADTport-type17, not a USB-C port) is not described.