Repository navigation
t6040: enable the AOP pin controller for the USB4 routers, not only with the HDMI chain - #2371
RyanTheTide wants to merge 2 commits into
Conversation
…supplier The T6041 HDMI chains (J616s, J614s, J614c/J616c, J575c) list the AOP pin controller (pinctrl@510824000) as one of their nodes, so the gate both enables it and refuses the whole chain when it is already enabled. It is only there because the HDMI converter's hotplug input (hdmi-hpd-gpios of the display processor) is one of its pins. It is not part of the display handover: its probe writes no pin register, each consumer configures only its own pins, and on the T6040 the USB4 routers' LSTX pins are in the same bank. A board that enables the routers has to enable it in its device tree, and the HDMI chain must still be handed over then. Drop it from the chains and enable the pin controller that the processor's hdmi-hpd-gpios names, if it is still disabled, in the chain's changeset. A tree that leaves it off (J614c/J616c, J575c) gets it with the HDMI chain as before; one that has it on no longer refuses the chain. The KUnit test tree gets the converter's hotplug GPIO, and a case checks that an already enabled pin controller does not refuse the HDMI chain. Reported-by: UlfMoby <[email protected]> Link: #2243 Signed-off-by: Ryan Murray <[email protected]>
…routers On the J614s the three USB4 routers (apple,t6040-usb4-acio) never leave devices_deferred, with "(reason unknown)". Each router has pinctrl-0 = <&usb4_N_lstx_pins>, and those pins are in the AOP pin controller (pinctrl@510824000), which t604x.dtsi ships disabled. Only the display gate enabled it, with the staged HDMI chain, when the boot loader had handed the HDMI display processor over. Without that, pinctrl_bind_pins() returns -EPROBE_DEFER for good and records no reason. The J616s routers bind only because its HDMI chain is handed over. Enable the pin controller where the J614s and J616s enable the routers, and say in t604x.dtsi who enables it. The display gate no longer counts it as part of the HDMI chain, so the chain is still handed over. Reported-by: UlfMoby <[email protected]> Link: #2243 Signed-off-by: Ryan Murray <[email protected]>
|
Looks good; approve once the J616s regression row and the J614s row are on this head. What I checked:
The fix rests on two hardware claims that only a boot can show, and neither row has run. HW row: J616s on this head: HDMI and both USB-C displays handed over, no "already enabled" refusal from the gate, Assisted-by: LLM (Claude:Opus 5.5) |
|
#2446 adds a fifth HDMI chain for the J773s ( |
|
Tested (J614s, MacBook Pro 14" M4 Pro, T6040): both commits cherry-picked unchanged onto stock kernel-aurora 7.3.0-47 (844781f), plus the #2800/#3619 AOP fixes. The -47 config is unchanged, built locally from the kernel-aurora spec. A is the same tree without this PR.
Not yet: HDMI (no cable here), and an actual USB4/TB device on the routers. The only USB-C device I tested is a DP alt-mode monitor. |
|
Addendum, same B kernel: USB 3 and DP alt mode still work on all three ports with the ACIOs bound. An iPhone enumerates at 10 Gb/s (SuperSpeed Plus) on An iPad Pro (M4) on the right port does enter USB4 mode now. The CIO PHY comes up, the |
Problem
On the J614s (T6040, M4 Pro 14") the three USB4 routers (
apple,t6040-usb4-acio,381ac0000.cio,389ac0000.cio,391ac0000.cio) stay indevices_deferredwith "(reason unknown)", so the update-m1n1 commit check refuses the Stage 2 trial.Each router has
pinctrl-0 = <&usb4_N_lstx_pins>, and those pins are in the AOP pin controller (pinctrl@510824000).t604x.dtsiships that node disabled. The only thing that enabled it was the display gate, as one node of the staged T6041 HDMI chain, which is applied only when the boot loader has handed the HDMI display processor over and every chain node is still disabled. Without that handoverpinctrl_bind_pins()returns -EPROBE_DEFER for good and records no reason. The J616s routers bind only because its HDMI chain is handed over.The pin controller was in the chain only because the HDMI converter's hotplug input (
hdmi-hpd-gpios) is one of its pins. Nothing about it needs the display handover: its probe writes no pin register, and each consumer sets up only its own pins. The original "needs an ownership handoff" note int604x.dtsihad no transfer behind it.Change
hdmi-hpd-gpios, in the same changeset, if it is still disabled. The J614c/J616c and J575c, whose trees leave it off, get it with HDMI as before. The other checks are unchanged: firmware memory, the other nodes still disabled, and the whole chain or nothing.pinctrl_aopwith them. Thet604x.dtsicomment now says who enables it.The gate change comes first, so no commit leaves the J616s HDMI chain refused.
Testing
pinctrl@510824000going fromdisabledtookayon the J614s, J616s and J616s tether. The T6041 boards and the J773s are unchanged.pinctrl-0phandles still resolve topinctrl@510824000/usb4-{0,1,2}-lstx-pins.gate_t6041_max_shared_pinscase. That case fails against the old gate code (57/58): the HDMI chain is refused when the pin controller is already enabled.Still to run
devices_deferredempty,510824000.pinctrland the three ACIOs bound, and the update-m1n1 commit passes. This needs the reporter or a J614s owner.Fixes #2243
DTB evidence