Repository navigation
arm64: dts: apple: t6050-k114-k116: describe the left-back port (ATC0) - #3598
Conversation
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]>
|
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: Trial boot (
Tether with Linux owning hpm0: from the J616s, Not covered yet:
Evidence: |
|
Merge notice for code owners @aurora-silicon/omarchy-mac and @aurora-silicon/aurora-maintainers at |
There was a problem hiding this comment.
Verdict: FIX, then re-review at 426355f66d47
Blockers:
- K116c and K116s enable
&acio0while leaving&pinctrl_aopdisabled and withoutgpio-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 includest6050-k114-k116-atc0.dtsi, which enables&acio0(status = "okay").&acio0int6050-atc0.dtsirequirespinctrl-0 = <&acio0_lstx_pins>andlstx-gpios = <&pinctrl_aop 77 GPIO_ACTIVE_HIGH>.- On K114c/K114s,
t6050-k114-usb.dtsiincludest6050-max-atc2-router.dtsi(which sets&pinctrl_aop { status = "okay"; }) and overridesgpio-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.dtsiort6050-max-atc2-router.dtsi, and nothing else in their include chain touches&pinctrl_aop. As a result,&pinctrl_aopremainsstatus = "disabled"fromt6050-die0.dtsi:89(leaving&acio0deferred indefinitely waiting on itslstxpinctrl/GPIO supplier), and if the boot loader enablespinctrl_aopat runtime withoutgpio-reserved-ranges, all 85 AOP GPIO pins are exposed unreserved. - Fix: enable
&pinctrl_aopint6050-k114-k116-atc0.dtsiwithstatus = "okay";andgpio-reserved-ranges = <0 77>, <78 7>;(exposing only pin 77 foracio0;t6050-k114-usb.dtsi, included later on K114c/K114s, will still overridegpio-reserved-rangesto<0 77>, <78 1>, <80 1>, <82 3>for all three routers).
- Hosted CI and companion
aura#574: Wait for queueddt-checks,host-tests,pr-text, andreadinesschecks to finish green on the updated head, and keep landing coordinated with companionaurora-silicon/aura#574(currentlyCHANGES_REQUESTEDon clearing pre-populated tunables on debug boots).
Checked:
- J714s lossless split (
t6050-j714s-left-back.dtsi->t6050-atc0.dtsi): Diffedmain'st6050-j714s-left-back.dtsiagainstt6050-atc0.dtsi+ the updatedt6050-j714s-left-back.dtsi: all ATC0 nodes move unchanged (comments only) and theatc0-handoffnode stays int6050-j714s-left-back.dtsi, preserving J714s DTB identity. T6050_ATC0_USB4_ROUTERguard (t6050-peripherals.dtsi,t6050-k11{4,6}{c,s}.dts): Defined before#include "t6050-peripherals.dtsi"on all four boards soapciec0_dartis cleanly suppressed from the peripheral inventory and owned byt6050-atc0.dtsi;t6050-atc0-dp-tunnel.dtsienablesps_atc0_common_dp_{0..3}and extends&atc0_phypower domains cleanly; 16-inchT6050_K116C/T6050_K116SRX_TOP0x0override matchest6050-j716c.- Hardware evidence: K114s one-shot trial (
probe-trial1.txt) confirms ATC0 PHY table export, binding ofapple-t6050-dp-phy,dwc3-apple, USB DARTs,apple-display-crossbar,thunderbolt-apple-acio, andhpm0(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/-671across 11 files). - Include chain verified on
t6050-k116c.dtsandt6050-k116s.dts:t6050-k114-k116.dtsi->t6050-max.dtsi->t6050-die0.dtsi:89(pinctrl_aopstatus = "disabled") ->t6050-k114-k116-usb.dtsi->t6050-k114-k116-atc0.dtsi->t6050-atc0.dtsi(nostatus = "okay"orgpio-reserved-rangeson&pinctrl_aop). - Hosted CI at
426355f66d47:dt-checks,host-tests,pr-text,readinessqueued (earlierpr-text/readinessruns 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]>
|
Fixed blocker 1 in |
There was a problem hiding this comment.
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_aopwithstatus = "okay";andgpio-reserved-ranges = <0 77>, <78 7>;(covering all 85 pins0..84while exposing only pin 77 foracio0's LSTX), fixing the K116c/K116s deferred-probe and unreserved-GPIO blocker from426355f6.t6050-k114-usb.dtsi(included later on K114c/K114s) still overridesgpio-reserved-rangesto<0 77>, <78 1>, <80 1>, <82 3>;, keeping both K114 DTBs byte-identical to426355f6. - Previously verified (
426355f6): Losslesst6050-j714s-left-back.dtsi->t6050-atc0.dtsisplit (J714s DTB byte-identical),T6050_ATC0_USB4_ROUTERguard int6050-peripherals.dtsi,t6050-atc0-dp-tunnel.dtsi, 16-inch RX_TOP0x0override,CHECK_DTBS=yclean 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/-671across 11 files). - Hosted CI at
179bf0382d77:dt-checks,host-tests,pr-textqueued (priorreadinesscancelled; 0 real failures). - Companion
aurora-silicon/aura#574is approved atb1ce57ad48fd.
|
Merging under the 6-point rule (Ryan 09:29, permanent), at |
|
The K116s (16" M5 Pro OLED, firmware 27.2) hangs at boot with this merged. Kernel:
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? |
|
Still hangs on the K116s with aura#574 in the loader. Loader: aura
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 ( |
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:tunable_AUSPLL_CORE,tunable_AUS40CMN_SHM,tunable_CIO4PLL_CORE), which are per machine and come from the boot loader;Change
t6050-atc0.dtsi: the J714s left-back nodes, moved over unchanged with everything still disabled.t6050-j714s-left-back.dtsinow includes it and keeps itsatc0-handoffgroup. The J714s DTB is byte-identical.t6050-k114-k116-atc0.dtsi(included fromt6050-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,hpm0with 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_ROUTERkeeps the inventory'sapciec0DART out, asT6050_ATC1_USB4_ROUTERdoes 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
CHECK_DTBS=yon the five affected boards (j714s, k114c, k114s, k116c, k116s): no output.Related: #2017 (J714s left-back, merged), aurora-silicon/aura#278 (J714s handoff, draft), #3497 (K114 left-front router).