Skip to content

arm64: dts: apple: t8142-j813: Enable the video encoder - #1923

Merged
RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
sithglan:thomas/j813-ave-enable
Nov 16, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
sithglan:thomas/j813-ave-enable

Conversation

@sithglan

Copy link
Copy Markdown
Contributor

t8142-peripherals.dtsi describes the T8142 video encoder, its two DARTs and the VENC power tree since 765f7cf, all status = "disabled". Nothing turns them on: aura (#215) hands over iBoot's preloaded firmware for the T8142, but only enables the node on the T8140, whose DT carries two candidate encoders. So on integration/aurora with current aura main, the J813 never probes apple-ave.

This enables the nine nodes in t8142-j813.dts, the same way the M2 (t8112.dtsi) describes its single encoder as okay. When there is no preloaded firmware, aura sets the encoder back to disabled ("FDT: AVE disabled: firmware not preloaded"). If you'd rather have aura enable it on the T8142 as it does on the T8140, I'll move it there instead.

Testing (J813, M5 MacBook Air, macOS 27.2 stub, 26B123):

  • Test setup:

  • Probe: apple-ave 281100000.video-codec: firmware build 26B123 (TEXT 0x154000 CRC 24eb4625, DATA 0x12c000), and the encoder registers as "Apple AVE video encoder".

  • Encode quality: 1080p30, 120 frames, default 4 Mbit/s, decoded in software and compared with PSNR against the source:

    Encoder path Result
    v4l2-ctl, H.264 Main with 3 B-frames 40.7 dB
    v4l2-ctl, HEVC Main 41.3 dB
    GStreamer v4l2h264enc 39.8 dB
    GStreamer v4l2h265enc 41.3 dB
    ffmpeg h264_v4l2m2m -profile:v 66 at 8 Mbit/s 43.8 dB

    720p and 2160p also encode, in both codecs.

  • No regressions: the AVD still decodes H.264, HEVC Main/Main10, VP9 and AV1 identically to software, and the GPU and camera come up as before.

On a 27.2 stub this needs #1900 (the 26B123 firmware).

Only t8142-j813.dtb changes. make CHECK_DTBS=y apple/t8142-j813.dtb at 7c71d6df6563 and at this branch gives the same 20 warnings, which were already there; none of them is on the encoder nodes. checkpatch --strict is clean.

cc @Acelogic @DjDeveloperr @RyanTheTide @LiamRay10 @m0d16l14n1

t8142-peripherals.dtsi describes the T8142 encoder, its two DARTs and the
VENC power tree, all disabled, and nothing turns them on: the boot loader
hands over the preloaded firmware, but enables the node only on the T8140,
whose DT has two candidate encoders. So the J813 never probes apple-ave.

Enable them on the J813. Its ADT has the same ave ("ave2", soc-id t8142)
and dart-ave as the J815. Without a preloaded firmware the boot loader
disables the encoder again.

Signed-off-by: Thomas Glanzmann <[email protected]>
@RyanTheTide
RyanTheTide merged commit d551e20 into aurora-silicon:integration/aurora Nov 16, 2026
2 checks passed
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