Repository navigation
mux: apple-display-crossbar: support the M4 (T8132) display crossbars - #954
Merged
RyanTheTide merged 3 commits intoNov 5, 2026
Merged
Conversation
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
approved these changes
Nov 5, 2026
RyanTheTide
left a comment
Contributor
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
(endpoint << 1) | port: dcpext0 is 2, dcpext1 is 4.apple,t8132-display-crossbarwith an optional power domain, and both crossbars int8132.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_checkpasses for the binding.This was developed and tested by Claude (Anthropic), working with me on the J713.