Repository navigation
arm64: dts: apple: t8142-j813: Enable the video encoder - #1923
Merged
RyanTheTide merged 1 commit intoNov 16, 2026
Merged
RyanTheTide merged 1 commit into
RyanTheTide merged 1 commit into
Conversation
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
merged commit Nov 16, 2026
d551e20
into
aurora-silicon:integration/aurora
2 checks passed
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.
t8142-peripherals.dtsidescribes the T8142 video encoder, its two DARTs and the VENC power tree since 765f7cf, allstatus = "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 onintegration/aurorawith current auramain, the J813 never probesapple-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:
integration/auroraand media: apple: ave: T8142: admit the macOS 27.2 (26B123) encoder firmware #1900.t8142-j813.dtb, with phandles resolved, shows the same properties on all nine nodes. The only difference is that the board dtsi setinterrupt-parent = <&aic>explicitly, while here it is inherited from/, which is the same AIC.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:
v4l2-ctl, H.264 Main with 3 B-framesv4l2-ctl, HEVC Mainv4l2h264encv4l2h265ench264_v4l2m2m -profile:v 66at 8 Mbit/s720p 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.dtbchanges.make CHECK_DTBS=y apple/t8142-j813.dtbat7c71d6df6563and at this branch gives the same 20 warnings, which were already there; none of them is on the encoder nodes.checkpatch --strictis clean.cc @Acelogic @DjDeveloperr @RyanTheTide @LiamRay10 @m0d16l14n1