Skip to content

arm64: dts: apple: t8132: describe the video decoder and enable it on M4 boards - #1488

Merged
DjDeveloperr merged 5 commits into
aurora-silicon:integration/aurorafrom
EdupugantiAkhil:j713-avd-enable
Nov 11, 2026
Merged

DjDeveloperr merged 5 commits into
aurora-silicon:integration/aurorafrom
EdupugantiAkhil:j713-avd-enable

Conversation

@EdupugantiAkhil

Copy link
Copy Markdown
Contributor

The T8132 AVD node only gave the whole ADT block under the apple,avd placeholder form, which the AVD driver cannot bind. The driver needs the CM3 code, SRAM, mailbox and control windows by name, plus a reset.

This series:

  1. t8132: describe the video decoder windows: describes the windows, following the T6041 (M4 Pro) node for the same decoder, and binds through apple,t8132-avd.
    • It uses the decoder DMA stream only (legacy transport; no piodma window).
    • It gives the DART the decoder power domain.
    • It renames the node after its first window (video-decoder@3a1080000).
    • It drops the clocks entry, which the driver doesn't use and this binding form doesn't allow.
    • The nodes stay disabled.
  2. Enables the decoder per board group, one commit each:
    • MacBook Air 13"/15" (J713/J715);
    • Mac mini (J773g);
    • MacBook Pro 14" (J604);
    • iMac (J623/J624).

Only J713 is tested. The other boards use the same SoC blocks, so I enabled them to save a round trip. Drop any of those commits if you'd rather wait for a tester.

HEVC depends on #1487 (the T8132 v5 HEVC header quirk). Without it, HEVC jobs time out.

Testing (MacBook Air M4, J713):

  • I applied the same properties at runtime as a device-tree overlay. The J713 tree compiled from this branch matches it property for property, apart from the dropped clocks.
  • With that overlay: FFmpeg VA-API decode byte-exact against software for H.264, HEVC (with media: apple: avd: Use the v5 HEVC header on T8132 #1487), VP9 and AV1; Chrome <video> and WebCodecs on the hardware decoder.
  • All six T8132 DTBs compile with no AVD-related DTC warnings.

Not done:

  • I have not booted with the real DTB, because on Aurora that needs a rebuilt aura payload.
  • I could not run dt-schema locally (nixpkgs' dtschema package is broken), so the dt-checks CI here is the first schema run.

Refs #1386.

AI disclosure: developed with AI assistance (Claude). Reviewed and tested on J713 by me. The commits carry Assisted-by: LLM.

🤖 Generated with Claude Code

The T8132 decoder node gave only the whole ADT block under the
"apple,avd" placeholder form, which the AVD driver cannot bind: it needs
the CM3 code, SRAM, mailbox and control windows by name and a reset.

Describe them, following the T6041 (M4 Pro) layout of the same decoder,
and bind through "apple,t8132-avd". Use the decoder DMA stream only (legacy
transport, as no "piodma" window is described); give the DART the decoder
power domain; name the node after its first window; drop the clock,
which the driver does not use and the binding does not allow for this
form. The nodes stay disabled.

Tested on a MacBook Air M4 (J713) by applying the same properties at
runtime as an overlay (the effective tree matches this one property for
property, apart from the dropped clock): FFmpeg VA-API H.264, HEVC
(with the T8132 v5 header quirk), VP9 and AV1 decode byte-exact against
software; Chrome <video> and WebCodecs on hardware.

Assisted-by: LLM
Signed-off-by: Akhil <[email protected]>
Enable the AVD decoder, its DART and the avd_sys power domain on the
MacBook Air M4, 13-inch (J713) and 15-inch (J715). Both use the same SoC
blocks; t8132-j713-pmgr.dtsi, shared by the two, had disabled the
decoder's power domain.

HEVC also needs "media: apple: avd: Use the v5 HEVC header on T8132";
without it HEVC jobs time out.

Tested on J713 with the equivalent runtime overlay (see the previous
commit). J715 is untested.

Assisted-by: LLM
Signed-off-by: Akhil <[email protected]>
Enable the AVD decoder and its DART on the Mac mini (M4, J773g). The
avd_sys power domain is already enabled on this board.

Untested on J773g: the decoder and its resources are SoC blocks, the same
as on the MacBook Air M4 (J713) where this configuration was tested.
HEVC needs "media: apple: avd: Use the v5 HEVC header on T8132".

Assisted-by: LLM
Signed-off-by: Akhil <[email protected]>
Enable the AVD decoder and its DART on the MacBook Pro (14-inch, M4,
J604). The avd_sys power domain is already enabled on this board.

Untested on J604: the decoder and its resources are SoC blocks, the same
as on the MacBook Air M4 (J713) where this configuration was tested.
HEVC needs "media: apple: avd: Use the v5 HEVC header on T8132".

Assisted-by: LLM
Signed-off-by: Akhil <[email protected]>
Enable the AVD decoder and its DART on the iMac (24-inch, M4, J623 and
J624). The avd_sys power domain is already enabled on these boards.

Untested on J623/J624: the decoder and its resources are SoC blocks, the
same as on the MacBook Air M4 (J713) where this configuration was tested.
HEVC needs "media: apple: avd: Use the v5 HEVC header on T8132".

Assisted-by: LLM
Signed-off-by: Akhil <[email protected]>

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

Codex (GPT-6.1 Sol), reviewing on @DjDeveloperr’s behalf.

Source review: the named legacy AVD windows, reset, DART power-domain/single DMA stream and removal of the unused clock are consistent with the T8132 driver contract. HEVC needs1487 first. I approved the pending DT/host workflow runs so actual schema/test results can be evaluated. The posted evidence is currently J713 with a property-equivalent runtime overlay, not a boot of this bundled DT; other board enables were added speculatively, although the separate J604 reports support that board's decoder. Please keep actual J713 DT-bundle/loader qualification and untested J623/J624/J773g/J715 coverage explicit. No blanket all-M4 'Working' conclusion follows from merging this source change alone.

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

Codex (GPT-6.1 Sol), reviewing on @DjDeveloperr’s behalf.

No blocking source finding remains in the unchanged six-file DT change. The named code/SRAM/mailbox/control windows, legacy single decoder DMA stream, reset, DART power domain and removal of the unused clock match the reviewed T8132 AVD driver/binding contract. Current host and DT checks now pass, including actual schema validation.

The J713 runtime-overlay report validates bit-exact H.264/HEVC(with1487)/VP9/AV1 decode and browser usage with property-equivalent resources; it is not a boot of the final bundled DT. The other board enables reuse the shared SoC description but are not all physically qualified. Keep J715/J773g/J623/J624 coverage, exact J713 bundle/loader boot and the independently reported J604 results at their stated scope; no blanket all-M4 Working claim follows.

Merge #1487 first: without its v5 HEVC-header quirk, the enabled decoder’s HEVC jobs time out. #1487’s required host check is still red from the earlier setup outage. That dependency must get an actual valid check result before this PR merges. No new decoder, loader/default, hardware or image operation was performed by this review.

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