Skip to content

mux: apple-display-crossbar: support the M4 (T8132) display crossbars - #954

Merged
RyanTheTide merged 3 commits into
aurora-silicon:integration/aurorafrom
erikwb:j713/extdisp-dpxbar
Nov 5, 2026
Merged

RyanTheTide merged 3 commits into
aurora-silicon:integration/aurorafrom
erikwb:j713/extdisp-dpxbar

Conversation

@erikwb

@erikwb erikwb commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Each ATC of the M4 has a display crossbar that routes an external DCP's output to the port's DP IN adapters for a DisplayPort tunnel. Linux had no T8132 support for it.

  • Driver. T8132 uses the T602X register map and the T6030 flow (an output is routed on select, its clocks follow the link), with no tunable and no cycle-slip workaround. The UFP selector is (endpoint << 1) | port: dcpext0 is 2, dcpext1 is 4.
  • Runtime PM. The crossbar sits in the ATC USB power domain, which switches off at runtime on T8132 once the PHY and the USB controller are idle. The crossbar now uses runtime PM and stays suspended until an output is selected, so it never keeps the domain on by itself. Probe and the idle state touch no register, and the tunnel source preselection (which would write an unselected output's mux register) is refused.
  • Binding and DT. apple,t8132-display-crossbar with an optional power domain, and both crossbars in t8132.dtsi, disabled; the J713 enables them with its external DCPs in the drm/apple PR.

Part of the J713 external display series (six PRs, see #957). It doesn't depend on the others; the drm/apple PR uses it.

Tested on a J713 (M4 MacBook Air) with a CalDigit TS5 dock and two 4K monitors, with the six PRs together: both monitors routed through one ATC's crossbar, replug, and s2idle with the monitors lit. make dt_binding_check passes for the binding.

This was developed and tested by Claude (Anthropic), working with me on the J713.

T8132 has one display crossbar per ATC, in the ATC's power domain. Add its
compatible, and allow a power domain.

Signed-off-by: Erik Bourget <[email protected]>
T8132 has one display crossbar per ATC, at the ATC core window + 0x4c000.
It uses the T602X register map and the T6030 flow: an output is routed on
select and its clocks follow the link. There is no tunable and no
cycle-slip workaround. The UFP mux selector is (endpoint << 1) | port, so
dcpext0 is 2 and dcpext1 is 4, both within the nine states of the T6041
layout.

The ATC USB power domain switches off at runtime on T8132 once the PHY and
the USB controller are idle, and a crossbar without runtime PM would keep
it on for good. Enable runtime PM and leave the device suspended: an
output takes a reference when it is selected and drops it when it goes
back to idle. Probe and the idle state set at registration touch no
register. The tunnel source preselection, which writes the mux register of
an output that is not selected, is refused on such a crossbar.

Signed-off-by: Erik Bourget <[email protected]>
Describe the display crossbar of each ATC, disabled. Boards enable them
with the external display coprocessors whose Type-C routes use them.

Signed-off-by: Erik Bourget <[email protected]>

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed and tested here with the whole series on top of integration/aurora, thanks Erik.

  • Fedora-base universal config build is clean, W=1 adds no warnings, dtbs_check adds none and only the t8132 DTBs change
  • KUnit passes (atc 49/49, apple-dpin 94 + 1 skip, drm/apple 112 + 1 skip, the arm64 gate set 74 + 1 skip)
  • one-shot boots on the M4 Pro (J616s, dock and external display attached) and the M2, both with zero err lines, no new warnings, 0 AVCs with SELinux enforcing, a freezer pm_test pass and the external display still up on the J616s
  • the host selftests needed fixture updates for the renamed and new helpers, those come in with the #957 merge, all groups pass with them

Merging.

@RyanTheTide
RyanTheTide merged commit 38518dc into aurora-silicon:integration/aurora Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants