Repository navigation
arm64: dts: apple: t8103: give every M1 board the sio alias - #3191
Merged
Merged
Conversation
The boot loader finds the SIO by its "sio" alias: it reserves the SIO
firmware, hands over the firmware data and parameters from the ADT, and
only then sets the node to "okay". Only the Mac mini (J274) had the
alias, so on the MacBook Air (J313), MacBook Pro (J293) and iMacs
(J456/J457) the SIO stayed disabled. Their dpaudio1 is enabled in
t8103-jxxx.dtsi, but without the SIO it has no DMA device ("No DMA
device"), so DisplayPort audio over USB-C never registered a card.
Move the alias into t8103-jxxx.dtsi next to the dpaudio1 it serves, as
t8112-jxxx.dtsi does. The SIO node itself stays disabled in the DTS; the
boot loader enables it once its firmware is set up.
Signed-off-by: Erik Bourget <erik@ebourget.net>
erikwb
marked this pull request as ready for review
November 26, 2026 07:04
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
DjDeveloperr
approved these changes
Nov 26, 2026
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.
What: M1 laptops and iMacs (J293, J313, J456, J457) never registered a DisplayPort audio card:
dcp-dp-audio 238334000.audio-controller: No DMA device. The boot loader finds the SIO (the DMA engine behind dpaudio) by itssioalias, and only the Mac mini (J274) had it. So the SIO firmware was never set up and the node stayeddisabled. This moves the alias intot8103-jxxx.dtsi, next to thedpaudio1it serves, ast8112-jxxx.dtsialready does. The SIO node stays disabled in the DTS; the boot loader turns it on once its firmware data is in place.Tested: J313 M1 Air (firmware 27.2.1) at cc81bde, with a CalDigit TS5 dock and a 4K120 DSC monitor on DP-2 (default kernel
7.3.0-j313usb4s2r, default cmdline; the DTB the M1 already boots plus this commit's one alias property, trial boot.bin via a one-shotaura-try): pass.rtcwake -d /dev/rtc1 -m mem -s 12), DP-2, jack, ELD and sink come back and the tone plays again.Risk: two-way door · M1 (T8103): J274 DT content unchanged; J293/J313/J456/J457 gain the SIO and a DP audio card, and only where the boot loader sets up the SIO.
Not yet: listening at the monitor's jack (the row is transport-level); rows on J293/J456/J457 (no such hardware here).
Details
dt_setup_sio()) looks up the node by thesioalias. It then reserves the SIO firmware, copies the SIO firmware data and parameters from the ADT (asio-ascwrap-tunables,map-range,dmashim,device-type) intosio-firmware-datareserved regions andapple,sio-firmware-params, and only then writesstatus = "okay". Without the alias it skips the SIO entirely, soof_find_device_by_node()indcpaud_probe()finds no device and the card is never created./arm-io/siocarries all four properties, with keysMISC/SSPI SUAR SAUD/dSPI dUAR dDPA, all known to the boot loader.main(dtc -I dtb): J293, J313, J456 and J457 gain onlysio = "/soc/sio@236400000"in/aliases; for J274 only the property's position changes.t8103-j274.dtskeeps its static&sio { status = "okay"; }.DCPAVAudioInterface (chan:3) ... retcode 0xe00002d7warning on resume is unrelated and already shows on default boots. It is the firmware refusing the superseded instance, and the successor on channel 7 connects (as on J473 in drm/apple: external DP/HDMI audio on firmware-27 classic-layout DCPs (Mac mini M2) #3050).fdtput), so its change matches this PR's DTB change againstmain.Evidence
Before (default DTB, same kernel):
Trial (DTB +
sioalias), TS5 + monitor on DP-2:Earlier run without a sink (dock unplugged):
aplay -D hw:8,0 /dev/zerohw_ptr 72038 -> 120172 per ~1 s, rc 0, before and after 1 deep S2R.After each run the Mac went back to its committed boot.bin (md5 unchanged), with no
aura-tryand GRUB default and grubenv unchanged.checkpatch --strict: 0 errors, 0 warnings.
make W=1for the five T8103 DTBs adds no new warnings. CI at cc81bde: dt-checks, host-tests, readiness, pr-text all pass.