Skip to content

arm64: dts: apple: t8142-j815: add DisplayPort audio on dcpext0 and dcpext1 - #3641

Merged
RyanTheTide merged 2 commits into
aurora-silicon:mainfrom
m0d16l14n1:feat/t8142-j815-dpaudio
Dec 1, 2026
Merged

RyanTheTide merged 2 commits into
aurora-silicon:mainfrom
m0d16l14n1:feat/t8142-j815-dpaudio

Conversation

@m0d16l14n1

@m0d16l14n1 m0d16l14n1 commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

What: Enable DisplayPort/HDMI audio on both USB-C display engines of the J815 (MacBook Air 15" M5) by including the J813's t8142-j813-dpaudio.dtsi (#3563), as the J815 already includes t8142-j813-dcpext.dtsi. The J815 has the same display ADMACs, control blocks and DISPEXT0/1_ADMA power domains as the J813, so no driver change is needed.
Tested: J815 (MacBook Air 15" M5, DCP firmware 27.2), 7788b4d140a3 unchanged in the J815 candidate j815/nightly6 (main 37a19f9 + open PRs, including #3264 and #3692 for the DP audio path): both display ADMACs bind and both cards come up (Apple USB-C DisplayPort, USBC/USBC_1); an HDMI TV behind a USB-C hub played 48 kHz stereo 24-bit audio from PipeWire (YouTube) on each port in turn, at the right speed and with no underruns (20 s each: 1 stream start, 0 XRUN, 48001/48003 frames/s, PipeWire errors 0); unplug and replug, and moving the hub between the ports, kept working. 0 failed units, 0 new kernel errors. apple-dt-check.sh against the base: 141 DTBs, 0 new warnings; checkpatch --strict clean. Head 3f77d6a90c75 is that commit with current main (42169a0) merged in, with no conflicts and no change to t8142-j815.dts from main, so the row stands (merge policy: update onto a newer main).
Risk: two-way · J815 only. No J813 or J704 file changes, so their DTBs are the same as on main.
Not yet: both ports at once; 44.1 kHz; DPMS off/on with a stream; system sleep with an active DP audio stream; a DisplayPort monitor (only an HDMI TV behind a hub so far).

Details
  • One 7-line change in arch/arm64/boot/dts/apple/t8142-j815.dts: #include "t8142-j813-dpaudio.dtsi" after the dcpext include.
  • Per arm64: dts: apple: t8142-j813: add DisplayPort audio on dcpext0 and dcpext1 #3563, apple,t8142-dcpext already starts the audio interface on AV_ENDPOINT (0x29) with the firmware-27 commands, and apple-admac binds through the apple,t6050-display-admac fallback.
  • dp-audio1 feeds dcpext0 (front port) and dp-audio2 feeds dcpext1 (rear port).
  • The boot loader fills admac-dispext0/1-control from the board's own device tree, as on the J813.
Evidence
  • 27.0 device trees, J813 vs J815: dp-audio1/2, admac-dispext0/1, admac-dispext0/1-ced-ssw and dart-dispext0/1-isoc differ only in their phandle numbers (interrupt-parent, iommu-parent, dma-parent, the reset phandle).
    • The reg and interrupts values are identical.
    • So are the power ids, 112 (DISPEXT0_ADMA) and 98 (DISPEXT1_ADMA).
  • Hardware row (J815):
    cards     8 USBC   "Apple USB-C DisplayPort"  (dcpext0 / dp-audio1, admac 506140000)
              9 USBC_1 "Apple USB-C DisplayPort"  (dcpext1 / dp-audio2, admac 3aa140000)
    sink      HDMI TV behind a USB-C hub, ELD LPCM 2ch 32-192 kHz
    port A    20 s: 1 stream start, 0 XRUN, 48001 frames/s, PipeWire ERR 0
    port B    20 s: 1 stream start, 0 XRUN, 48003 frames/s, PipeWire ERR 0
    regress   0 failed units, 0 new kernel errors (the hub's own USB enumeration errors predate this)
    dt-check  141 DTBs, 0 new warnings
    
    Without drm/apple: audio: start the format sieve with no rates #3264 the stream played 4x fast and without dmaengine: apple-admac: count a display ADMAC's pending report at a period's end #3692 it restarted at every period's end; both are on the shared DCP audio and ADMAC code, not this DT.

…cpext1

The J815 has the J813's two USB-C display engines with the same display
ADMACs, control blocks and DISPEXT0/1_ADMA power domains: in the 27.0
device trees the J815's dp-audio1/2, admac-dispext0/1,
admac-dispext0/1-ced-ssw and dart-dispext0/1-isoc nodes differ from the
J813's only in their phandle numbers. Include the J813's DisplayPort
audio fragment, as the J815 already includes its dcpext fragment, so both
ports get an HDMI/DP audio card.

Signed-off-by: Nick <nekreshen@yandex.ru>
@m0d16l14n1

Copy link
Copy Markdown
Contributor Author

Hardware row, J815 (MacBook Air 15" M5, DCP firmware 27.2), at 7788b4d140a3 in a J815 tree (main 37a19f9 + open PRs, with #3264 and #3692 on the shared DP audio path):

port A (card 9 USBC_1, dcpext1) port B (card 8 USBC, dcpext0)
HDMI TV behind a USB-C hub, PipeWire defaults, YouTube 48 kHz stereo heard, right speed heard, right speed
20 s: stream starts / XRUN / rate / PipeWire errors 1 / 0 / 48001 frames/s / 0 1 / 0 / 48003 frames/s / 0
unplug, replug, hub moved between ports OK OK

Regression: 0 failed units, 0 new kernel errors. apple-dt-check.sh against the base: 141 DTBs, 0 new warnings. checkpatch --strict clean.

Not tested yet: both ports at once, 44.1 kHz, DPMS with a stream, sleep with an active stream, a DisplayPort monitor. Marking ready for review.

@m0d16l14n1
m0d16l14n1 marked this pull request as ready for review November 30, 2026 08:57
@m0d16l14n1
m0d16l14n1 requested review from a team as code owners November 30, 2026 08:57
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 30, 2026
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Merge readiness at 3f77d6a9: not ready yet

Check Detail
CI at head no failing: dt-checks, host-tests
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head ok in the PR body at 3f77d6a9
Conflicts ok not computed yet
PR text ok Risk: two-way · J815 only. No J813 or J704 file changes, so their DTBs are the same as on main.

Areas: area:bringup

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Verdict: HOLD at 7788b4d1

Blockers:

  • Host tests (46287879532) is failing at 7788b4d1 on stale-base failures unrelated to this DTS change (apple-scaler-recovery-tests and g17-output-fence-tests); rebase or merge current main (or re-run against current main) so all required CI checks pass green.

Checked:

  • arch/arm64/boot/dts/apple/t8142-j815.dts (+7/-0 including t8142-j813-dpaudio.dtsi), arch/arm64/boot/dts/apple/t8142-j813-dpaudio.dtsi on main, dt-checks (46287879545), pr-text (46287879989), and J815 hardware evidence (both USB-C ports, 48 kHz HDMI TV playback, unplug/replug, 0 failed units, 0 new kernel errors).
  • Verified t8142-j813-dpaudio.dtsi is already on main and dt-checks passed cleanly (141 DTBs, 0 new warnings).
Evidence
  • Host tests run 46287879532 failed strictly on pre-existing base tests (FAIL apple-scaler-recovery-tests, FAIL g17-output-fence-tests: AssertionError: ' fn member_done(': 2 matches), unrelated to arch/arm64/boot/dts/apple/t8142-j815.dts.
  • Once rebased/re-run green on current main, this is ready to approve.

Signed-off-by: Nick <nekreshen@yandex.ru>
@github-actions github-actions Bot removed the ci-failing A check failed at the PR head (bot) label Nov 30, 2026

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Verdict: HOLD at 3f77d6a9

Blockers:

  • Hosted pull_request CI workflows (Device tree checks, Host tests, and pr-text) are completed/action_required awaiting maintainer workflow approval for this fork PR; only pr-readiness has executed at 3f77d6a9.

Checked:

  • Clean merge of main (42169a041546) into 7788b4d140a3; diff in arch/arm64/boot/dts/apple/t8142-j815.dts (+7/-0 including t8142-j813-dpaudio.dtsi) is unchanged and t8142-j815.dts had no intervening changes on main, so the J815 dual-port playback row stands.
Evidence
  • Workflow runs at 3f77d6a90c757fc9596d020627c68b7ebc8c21d3: pr-readiness (pull_request_target) succeeded; Device tree checks, Host tests, and pr-text (pull_request) are completed/action_required.
  • Ready to approve once fork CI workflows are approved and pass green at 3f77d6a9.

@m0d16l14n1

Copy link
Copy Markdown
Contributor Author

Merged current main (42169a0) as 3f77d6a90c75, a normal merge with no conflicts. main has not changed t8142-j815.dts, so the J815 row stands under the merge policy's exception for an update onto a newer main (noted in the body). The host-tests failures were the stale-base apple-scaler-recovery-tests and g17-output-fence-tests; CI now runs against this head.

@DjDeveloperr DjDeveloperr 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.

At 3f77d6a only the J815 board opts into the existing J813 DP-audio description. I compared the board file with tested 7788b4d and its blob is identical. The J815 played 48 kHz audio on both ports without XRUNs. The test kernel also contained #3264 and #3692 for stream rate and period handling. Please land those fixes, or verify the same playback on the merge candidate, before enabling the board path.

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Verdict: MERGE at 3f77d6a90c75

Converts this App's earlier review at the same head to an approval under the 12-01 merge bar (better than before and doesn't break; block only on a shown failure). No code blocker was found in it. The merge gate (a row on one Mac at this head + fast CI) is tracked by pr-readiness, not held here.

Checked: - Clean merge of main (42169a041546) into 7788b4d140a3; diff in arch/arm64/boot/dts/apple/t8142-j815.dts (+7/-0 including t8142-j813-dpaudio.dtsi) is unchanged and t8142-j815.dts had no intervening changes on main, so the J815 dual-port playback row stands.

Follow-ups (not blocking): fork CI workflow approval

@github-actions github-actions Bot added ci-failing A check failed at the PR head (bot) and removed needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 1, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor

Merging at 3f77d6a90c75 (B2 merge train, 12-01 merge bar). Approval at this head: DjDeveloperr,aurora-silicon-review[bot]. Row: the hardware row at 3f77d6a that the readiness check found (PR body or comment). CI: linux train L4 = main (after L3) + 34 approved PRs (#3419 dropped: conflicts): Apple driver compile pass, Apple DTBs W=1 pass, planned KUnit ane-boot/clpc/ane-pm/dcp-fabric/dcp-topology/dcp-display/macaudio/asahi/sep all pass, host tests apple-dcp + apple-scaler-recovery pass (the red host-tests on some heads were base failures since fixed on main). The rest of the hosted run is queued behind the backlog. Revert: git revert -m 1 <merge commit>.

@RyanTheTide
RyanTheTide merged commit 8be579c into aurora-silicon:main Dec 1, 2026
5 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:bringup Area from CODEOWNERS (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants