Skip to content

arm64: dts: apple: t8142-j813: the MacBook Air M5 device tree - #812

Closed
sithglan wants to merge 13 commits into
aurora-silicon:integration/aurorafrom
sithglan:j813/feat/dts
Closed

sithglan wants to merge 13 commits into
aurora-silicon:integration/aurorafrom
sithglan:j813/feat/dts

Conversation

@sithglan

@sithglan sithglan commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

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 decompiles to exactly the one the J813 has been booting (kernel #5), except the model string 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 is described for the M5 GPU support that is still being ported onto integration's shared G17 driver; until then nothing binds to it.

Tested on the MacBook Air 13-inch M5 (J813): all seven J813 branches (nvme, platform, dts, soc, wireless, media, sound) merged onto integration/aurora 41c4055, built with the J813 config (7.3.0, no warnings) and booted once through aura's aura-try trial boot. systemd reaches running with no deferred devices; NVMe root, Wi-Fi and USB Ethernet, the AppleJ813 sound card, the camera (ISP) and the video decoder (AVD), PSCI cpuidle, the E/P states, CLPC/PMC and the PMP all come up, and integration's drm/apple drives the panel.

cc @Acelogic @DjDeveloperr @RyanTheTide @LiamRay10

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]>
@sithglan

sithglan commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #1001: the same work rebased onto integration/aurora 11eccbe and boot-tested on the J813.

@sithglan sithglan closed this Nov 5, 2026
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.

1 participant