Repository navigation
arm64: dts: apple: t8142-j813: the MacBook Air M5 device tree - #1001
Merged
Merged
Conversation
This was referenced Nov 5, 2026
Acelogic
added a commit
that referenced
this pull request
Nov 6, 2026
The J813 ADT lists E-cluster levels up to 2964 MHz (8) and P-cluster levels 11-20 above the 3516 MHz this tree stopped at. Add them; level 19 (4416 MHz) is below level 18 and left out. The SoC throttles the top levels when hot. Signed-off-by: Thomas Glanzmann <[email protected]>
The T8142 PMC (AppleT8142PMC, ADT pmc-pmgr 31 + 0x700000) takes DRAM and fabric floors per voter agent: PMP 0, CLPC 1, GFX 2, AP 3. iBoot leaves every rail enable at 0, so no vote is honoured and DRAM and the fabric stay at their lowest states (CPU DRAM latency 171 ns instead of 70 ns). Describe the PMC with its static voters and the CLPC agent. Signed-off-by: Thomas Glanzmann <[email protected]>
The 13.6" 2560x1664 panel (1600 lines below the notch) with a 500 nit peak (ADT backlight known-nits). The panel node makes the connector eDP and gives the DCP a backlight to drive. Signed-off-by: Thomas Glanzmann <[email protected]>
…eset - The pmgr block is 0x14000 long (the ISP and keyboard backlight power states sit beyond 0x4000). - The QSPI NOR flash with the NVRAM partitions (asahi-nvram, asahi-bless), its 200 MHz clock and the spi_p/qspi power states. - The PMP (DRAM and fabric DVFS coprocessor, registry-v2 firmware) with its DART, mailbox, power states and the J813 tunables. - The trackpad's AFE reset line (SMC GPIO 28, active low) instead of a firmware-managed reset. Signed-off-by: Thomas Glanzmann <[email protected]>
The M5 (T8142) GPU, laid out like the A18 Pro's: the sgx block, the gfx-asc and gfx1-asc firmware CPUs with their mailboxes, and the power domain, with addresses and interrupts from the J813 ADT. aura fills the uat-* regions from iBoot's raw-boot handoff, the gfx-data regions from the firmware DATA segments iBoot loaded, and the OPPs from sgx perf-states. apple,clpc links the GPU to the CLPC so that GPU work raises the DRAM and fabric floor. Signed-off-by: Thomas Glanzmann <[email protected]>
The M5 AVD ("Hibiscus", avd-version 4, avd-fw v5 tier 2 tunables): CM3
code and SRAM, the mailbox, its DART (SIDs 0-2) and the AVD_SYS power
state, from the J813 ADT.
Signed-off-by: Thomas Glanzmann <[email protected]>
The M5 ISP is the A18 Pro's ISP17a at another base: the ISP block and its interrupts, the ISP DART with the remapped streams, the PMGR power states the firmware does not lock, and the J813 camera presets (1280x720, 1440x1080, 1080x1080 and 1920x1080), from the J813 ADT. Signed-off-by: Thomas Glanzmann <[email protected]>
aura runs the OS at EL1 under its monitor and adds a /psci node with enable-method psci for every CPU. Its CPU_SUSPEND is a WFI at EL2 that preserves the registers WFI loses on these cores, so one retention state for both clusters replaces idle=nop. Without a /psci node (raw aura, spin-table) cpuidle-psci does not probe. Signed-off-by: Thomas Glanzmann <[email protected]>
ANS2 with its mailbox, the coastguard SART (sart-version 3) and the apcie and ANS power states, from the J813 ADT. As on T8140 the NVMe registers are used through the non-secure alias and the NVMMU through the 0x60000 window; aura leaves ANS running for Linux to adopt. Signed-off-by: Thomas Glanzmann <[email protected]>
aura trains the apcie port 0 link to the N1 (AUS5 PHY, refclk buffer, N1 reset). Linux uses the root port as a generic ECAM host with port 0's 32 MSIs (apple,t8142-pcie-msi) and owns the DART and the endpoint. Signed-off-by: Thomas Glanzmann <[email protected]>
The watchdog for restart (and as the SMC's fallback), the PMU on SPMI with the scratchpad cells the SMC uses for power off, and the SMC reboot node. Signed-off-by: Thomas Glanzmann <[email protected]>
As on J873 the AOP's audio service owns the audio fabric and runs the MCA serializers: the CS42L84 headphone jack on admac-base-ns TX2/RX2, the four SN012776 speaker amplifiers on TX0 with their V/I sense on RX0. The AOP is laid out like T8140's (ascwrap-v6, asc-mailbox-v4, setup port). Addresses are from the J813 ADT. Signed-off-by: Thomas Glanzmann <[email protected]>
…ensor mode The 1280x720, 1440x1080 and 1080x1080 presets used the IMX958's binned mode (config 10, 1520x1440). In it the ISP firmware's AWB never leaves the setfile's default white point and the picture is magenta (mean U/V 160/168 on a grey room). In the full-resolution mode (config 7, 3040x2880), which 1920x1080 already used, it converges. Scale all presets from config 7, the crops doubled. With the firmware's AWB alone the J813 streams a neutral picture at all four sizes (mean U/V 127/127, two streams each), at 30 fps. Signed-off-by: Thomas Glanzmann <[email protected]>
RyanTheTide
added a commit
that referenced
this pull request
Nov 6, 2026
Carries the work merged on aurora-wip since #1018 into the release branch: M5 T8142/J813 bring-up (#995 #996 #997 #998 #1001 #1002 #1003), T8152/J873 bring-up (#984 #1009 #1013 #1022), J813 AVD/ISP (#1026) and the selftest harness updates (#1014). The merge is clean; the 13 integration/aurora commits since #1018 are kept. Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
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.
The J813 device tree on integration's existing t8142-j813.dts, one component per commit: E/P states up to the ADT's top levels, PMC voters and the CLPC, the panel, QSPI NVRAM / PMP / trackpad reset, the GPU, AVD, ISP, PSCI cpuidle, NVMe, the N1 Wi-Fi/Bluetooth on apcie port 0, SMC power off / watchdog, and AOP sound.
The resulting DTB differs from the one the J813 has been booting (kernel #5) in four places: the model string, chassis-type = "laptop", the isp-heap node's unit address (isp-heap@0), and integration's apple,t8142-display-subsystem compatible, which this keeps.
The last commit moves the camera presets from the IMX958's binned sensor mode (config 10) to its full-resolution mode (config 7): in the binned mode the ISP firmware's AWB keeps the setfile's default white point and the picture is magenta; scaled from config 7 it is neutral at all four sizes (mean U/V 127/127, two streams each, 30 fps).
The new compatibles' bindings come with the driver PRs (nvme, soc, wireless, media, sound), so this should go in after them. The GPU node matches the m5/ backend in the GPU PR of this series.
Tested on the MacBook Air 13-inch M5 (J813): the nine J813 branches (nvme, platform, dts, soc, wireless, media, sound, display, gpu-m5) merged onto integration/aurora 11eccbe, built with the J813 config (7.3.0) and booted through aura's aura-try trial boot. systemd reaches running: NVMe root, the N1 Wi-Fi, the AVD and ISP drivers, PSCI cpuidle, the E/P states, CLPC/PMC and the PMP come up, the M5 GPU backend starts firmware 25G76, and drm/apple drives the panel.
Two sound findings from that boot, neither yet resolved: the installed aura predates the amp-level injection now in aura main, so macaudio disables the speakers (the card binds, but the DT this boot used carries no apple,speaker-config); and opening the microphone fails with
LEAP leaf 2 did not power up: Error(110), while the same T8152 driver on the J813's current 7.1 kernel records.Stability caveat: a second boot of the same image hung about 38 s in, just after the NTP step set off the daily fstrim/apt timers, with no panic record (no pstore). The first boot went through the same timer burst and stayed up for minutes. Until the hang is understood, the combined tree is not proven stable across reboots.
Rebased onto integration/aurora c6cc36e (2026-11-06); this branch builds with the J813 config (Image.gz and modules). Booted on the MacBook Air M5 (J813) on 2026-11-06 in the combined stack: this branch merged with the other J813 branches, built as 7.3.0-aurora-j813-rb+ (Image.gz and 65 modules), trial-booted with the t8142-j813 DTB and promoted to the configured ESP boot, where it now boots by default. NVMe root, the N1 Wi-Fi, the DCP panel at 2560x1600, the aurora GPU driver (WebGL with EXT_shader_texture_lod), the AVD and ISP nodes, AOP sound (AppleJ813 card; a 1 kHz tone played to the speakers is captured by the HPAI microphone at about -50 dBFS) and the PMP all come up; systemd reports no failed units. btcentauri still returns -16, the known pre-existing condition.
cc @Acelogic @DjDeveloperr @RyanTheTide @LiamRay10