Repository navigation
mux: apple: display-crossbar: select the T6030 and T8140 flows by compatible - #2414
RyanTheTide wants to merge 1 commit into
Conversation
…patible
Two crossbar behaviours were selected by the root compatible:
- the T6030 flow, where selecting an output only routes it and its
link-up starts its clocks, by of_machine_is_compatible("apple,t6030")
in apple_dpxbar_probe();
- the original T602x gate sequence of the physical DP output (no
CROSSBAR_ATC_EN/CROSSBAR_DISPEXT_EN writes, read reset restored in
FIFO_RD_PCLK1_EN), by of_machine_is_compatible("apple,j700") in
apple_dpxbar_set_t602x().
Both follow the crossbar block, not the board. The T6030 crossbars are
already "apple,t6030-display-crossbar", "apple,t6020-display-crossbar"
in t6030.dtsi and the binding, but the driver only matched the fallback.
The J700 crossbar is the T8140's, which t8140.dtsi described with the
T6020 compatible alone.
Add match entries for both: apple,t6030-display-crossbar (the T6020 data
with t6030_flow, as the T6041 and T8132 entries already set it) and
apple,t8140-display-crossbar (the T6020 data with a new
dpphy_t602x_gates flag), list the T8140 compatible in the binding with
the T6020 fallback, and give the T8140 node its own compatible.
No functional change on the in-tree device trees: the T6030 crossbars
and the one T8140 (J700) crossbar get the flows they had; every other
crossbar matches the same entry as before. A J700 booted with an older
DTB, which lacks the T8140 compatible, gets the T6020 sequence on its
DP output; the DTB ships with the kernel.
Fixes: aa41619 ("mux: apple: retain the physical J700 crossbar gate sequence")
Fixes: 6a6ee2a ("thunderbolt, phy, soc: apple: T6030 USB4/Thunderbolt, Type-C and DP tunnel support")
Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
Blockers: 1.
The rest checks out. HW row: Neo J700 on this head, once with the production Stage 2 DTB and once with the refreshed DTB. A DP/HDMI display on the physical DP output shows a picture on 5/5 hotplugs and logs "Switched dpphy to dispext", A/B against the base kernel, 0 AVC, 0 failed units, no new kernel errors. Add an M3 Pro J514s/J516s Thunderbolt dock display row if one is available. Assisted-by: LLM (Claude:Opus 5.5) |
|
Both machine checks are still in |
|
Folded into #2457, which now carries this PR's commits unchanged (merge commit); review continues there. |
Problem
The Apple display crossbar driver (drivers/mux/apple-display-crossbar.c) chose two behaviours by the machine's root compatible instead of by the crossbar block:
apple_dpxbar_probe()(~1325) turned on the T6030 flow, where selecting an output only routes it and its link-up starts its clocks, whenof_machine_is_compatible("apple,t6030"). This came from 6a6ee2a ("thunderbolt, phy, soc: apple: T6030 USB4/Thunderbolt, Type-C and DP tunnel support").apple_dpxbar_set_t602x()(~381) kept the original T602x gate sequence on the physical DP output whenof_machine_is_compatible("apple,j700"). In that sequence CROSSBAR_ATC_EN and CROSSBAR_DISPEXT_EN are not written, and teardown restores the read reset in FIFO_RD_PCLK1_EN. This came from aa41619 ("mux: apple: retain the physical J700 crossbar gate sequence").Both are properties of the crossbar IP. The T6030 crossbars already carry
"apple,t6030-display-crossbar", "apple,t6020-display-crossbar"in t6030.dtsi and the binding, but the driver only matched the fallback. The J700 crossbar is the T8140's, which t8140.dtsi described with the T6020 compatible alone.Change
apple,t6030-display-crossbar: the T6020 data plust6030_flow, which the T6041 and T8132 entries already use.apple,t8140-display-crossbar: the T6020 data plus a newdpphy_t602x_gatesflag. A comment on the struct says what the flag does.apple,t8140-display-crossbarwith the T6020 fallback, and t8140.dtsi givesdpxbar0that compatible.Why every SoC is safe: the T6030 crossbars (J514s, J516s) and the one T8140 crossbar (J700) get the flows they had. Every other crossbar node matches the same entry as before: T8103, T8112, T6000, T6020, T6031, T8122, T6041, T8132, T8142 and T6050. The other users of the T6020 compatible in drm/apple, display-gate and the J613 gate check
of_device_is_compatible()on the fallback, which is still there. A J700 booted with an older DTB that lacks the new compatible gets the T6020 sequence on its DP output. The DTB ships with the kernel.Original work: Chris Kearney (T6030 flow) and the J700 gate sequence commit; this only changes how each is selected.
Testing
drivers/mux/apple-display-crossbar.o: no warnings.t8140-j700.dtbandt6030-j514s.dtbbuild. The J700 dtb hascompatible = "apple,t8140-display-crossbar", "apple,t6020-display-crossbar"on display-crossbar@40b04c000.dcpext26-crossbar-union,tiled-splitandt6030-wiringpass.Still to run
apple-display-crossbar 40b04c000.display-crossbar: Switched dpphy to dispext...and a picture, the same as on the base kernel. A/B against the base kernel: picture on 5/5 hotplugs on both.t6030_dpinpath).Hardware rows (combined test kernel, 2026-11-20)
This change was booted in a combined test kernel: integration/aurora 0abc2f3 plus the open gate-sweep drafts plus this and the related drafts (7.3.0-aurora-hk2/pwr1/hk3). It ran once on each lab Mac (M1 Pro J316s, M2 J413, J616s, Neo J700) and was compared against the production kernel on the same Mac, using the same silent row script:
M1 Pro, M2 and J616s matched production on every row, apart from the new counters and lines the drafts add. The Neo row found the old-DTB display regression that #2358's follow-up commit fixes.
This PR: Neo (hk3, production DTB without the new crossbar compatible): boot-clean, internal panel up, 0 kernel errors. The physical DP output row with an attached display is still to run.