Skip to content

arm64: dts: apple: t8132: full device trees for the J604, J773g, J623 and J624 - #1142

Merged
DjDeveloperr merged 16 commits into
integration/aurorafrom
feat/t8132-boards
Nov 7, 2026
Merged

DjDeveloperr merged 16 commits into
integration/aurorafrom
feat/t8132-boards

Conversation

@DjDeveloperr

@DjDeveloperr DjDeveloperr commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Full device trees for the other base-M4 (T8132) Macs, wired like the J713 (MacBook Air 13" M4): the MacBook Pro 14" (J604), the Mac mini (J773g) and both 24" iMacs (J623, J624). Until now each was a 19-36 line stub with a console and little else.

Each board is diffed against the J713 ADT and wired with its own values. Drivers that only admitted apple,j713 now also admit the boards with the same hardware. Nothing was boot-tested: there is no M4 base Mac here.

Shared files

The J713 keeps its SoC-level wiring in its own board files. Rather than copy it four times, it now lives in shared files that only the new boards include, so the J713's tree doesn't change:

File Contents
t8132-board.dtsi Loader handoffs (AOP, PMP, MCC, PMC), CPU DVFS and deep idle, the boot NOR and NVRAM, SMC (RTC, reboot, hwmon), PMU NVMEM cells, the SEP mailbox, the radio port with its managed streams, ATC0/ATC1 host mode
t8132-isp.dtsi ISP firmware placeholders, ISP power domains, the 12 MP camera's modes
t8132-apcie-port2.dtsi The built-in PCIe controller's third port and dart-apcie2 (J604 SD reader, J773g Ethernet), disabled
t8132-atc23.dtsi ATC2/ATC3 PHYs, display crossbars, DWC3 and DARTs, and nub-spmi-a1; all disabled until a board enables them
t8132-gpu.dtsi, t8132-dcp.dtsi, t8132-dcpext.dtsi The G16 GPU and the internal and external display coprocessors, disabled; the DART driver never touches a display DART that iBoot left running

Air follow-up: have t8132-j713-j715.dtsi include these files, keep its own enables and flags (apple,j713-native-*, the panel size, &ps_gfx/&pmp GPU wiring, the PMC external-pipe parents, USB4), and drop its copies.

Per board

J604, MacBook Pro 14" (M4, 2024). Source: J604 ADT, macOS 27.0

  • Shared wiring, radio board type apple,guam (/arm-io/wlan module-instance).
  • USB-C: three ports in USB2/USB3 host mode.
    • hpm0 (0xc) → ATC0, left front.
    • hpm1 (0xa) → ATC1, left rear.
    • hpm3 (nub-spmi-a1 0xc) → ATC3, right.
    • hpm5 (MagSafe) is not wired.
  • Keyboard and trackpad: MTP, reset lines gP1c/gP1d. Keyboard backlight: FPWM1. Touch ID: Mesa on spi2 (NUB GPIO 28, AP GPIO 199).
  • Speakers: six SN012776 amps on i2c3 in ADT provider order (LW1 0x38, RW1 0x3b, LW2 0x39, RW2 0x3c, LT 0x3a, RT 0x3d).
    • Sense slots come from speaker-config; the idle masks 0xf0f0f0 and 0x0f0f0f come from amp-tx-zd-config.
    • SDZ is AP GPIO 15, the interrupt AP GPIO 14, the speaker IDs AP GPIO 4 and 13.
    • The AOP stream is the J616s frame (6 TX and 12 sense slots).
  • Jack: CS42L84 at i2c1 0x4b (reset NUB 17, interrupt AP 98), as its own card.
  • Also: the front camera, fans and SMC sensors, and the panel size for simpledrm.
  • SD reader: GL9755 on PCIe port 2, power gP19, PERST AP GPIO 165. Disabled with the port.

J773g, Mac mini (M4, 2024). Source: J773g ADT, macOS 26.6.2

  • Shared wiring, radio board type apple,sakhalin.
  • Rear USB-C: three ports in USB2/USB3 host mode.
    • hpm0 (0xc) → ATC0, back middle.
    • hpm1 (0xa) → ATC1, back left.
    • hpm3 (0x8) → ATC3, back right.
  • Front USB-C: the on-board hub behind ATC2 (usb-drd2) runs at high speed only. It has no port controller, and the ATC PHY only enters USB3 mode from a Type-C mode switch.
  • Audio: the SN012776 amp (0x38, mono, speaker-protection 0) is described but disabled, and the CS42L84 jack codec is enabled. There is no sound card yet: the AOP audio component always runs a microphone stream, and this Mac has neither microphones nor speaker sense. The AOP's audio node is deleted, so its service device doesn't bind.
  • Also: fan and SMC sensors.
  • Ethernet: Gigabit on PCIe port 2. Disabled with the port.
  • HDMI: stays on dispext0 (dptx-phy and the PCON at i2c0 0x08) as iBoot left it; the framebuffer keeps its domains on.

J623 and J624, iMac 24" (2 and 4 ports, M4, 2024). No ADT

The layout follows the M3 iMacs (J433/J434) and the T8132 wiring the three ADTs share; every other value is marked "guessed" in the source.

  • Shared wiring.
  • USB-C: the first two ports on ATC0/ATC1. J624 adds ATC3 and ATC2.
  • Jack-only sound card.
  • Also: the camera, fans and sensors, and the panel size (4480x2520 at 218 ppi gives 522 x 294 mm).
  • Ethernet on PCIe port 2, disabled.

Guessed values (J623/J624):

  • Jack codec: CS42L84 at i2c1 0x4b, reset NUB GPIO 17, interrupt AP GPIO 98 (as on every M4 ADT), cirrus,ts-inv (as on the M3 iMacs).
  • AOP audio DMAs: mic admac0 1, jack admac1 4/5 (as on the J604/J713).
  • Port controllers:
    • nub-spmi-a0 0xc → ATC0 and 0xa → ATC1, as on every M4 ADT.
    • J624: 0x8 → ATC3 as on the Mac mini, and nub-spmi-a1 0xc → ATC2 as on the J604's extra port.
  • Radio power gP13 and PERST AP GPIO 163 (the driver board lists include the iMacs on this assumption).
  • Ethernet on PCIe port 2 (PERST AP GPIO 165), as on the Mac mini.
  • Camera: the IMX958 configuration-5 modes, as on the J713/J616s.
  • Fans: hwmon-fan-dual, as on the M3 iMacs (missing keys are skipped).
  • Boot NOR: W25Q64, NVRAM at 0x700000, 1 MiB.
  • Unknown and left out:
    • brcm,board-type (the boot loader supplies it). The C2 firmware set has these M4 island names unassigned: aruba, linosa, paradise, prospero.
    • The speaker amps.

Inferred for the J604 (not in its ADT):

  • NVRAM window: the 27.0 dump omits anvram reg, so this uses the standard window.
  • Camera modes: assumed to be the same 12 MP Center Stage IMX958. The ADT gives sensor-type 46; the J713's is 23.
  • MTP apple,power-method 2, as on the J713.
  • Panel size: 3024x1890 below the notch at 254 ppi.

A user can supply a real ADT for any of these boards. The command needs no sudo, blanks serials and MACs, and writes about 2-3 MB:

ioreg -alp IODeviceTree | perl -0pe 's#(<key>(?:serial-number|mlb-serial-number|config-number|unique-chip-id|chip-id|chip-id-hash|local-mac-address|mac-address[\w-]*|random-seed|boot-nonce|apnonce|sepnonce|regulatory-model-number|board-id-hash)</key>\s*<data>)[^<]*(</data>)#$1$2#g' > ~/Desktop/<board>-adt.plist

Drivers

Each shared trait is a helper in <linux/soc/apple/t8132.h>: the Airs (apple_t8132_air(), J713 and J715) plus the boards that share that hardware. The J713 and J715 behave exactly as on integration/aurora.

Helper Boards Used by
apple_t8132_managed_radio() Airs, J604, J773g, J623, J624 gpio-macsmc gP13 reg-on; pcie-apple and the apple-dart radio gate
apple_t8132_usb_host_first() Airs, J604, J773g, J623, J624 dwc3-apple host-first and CIO setup
apple_t8132_live_mtp() Airs, J604 apple-dart MTP bypass, rtkit-helper session
Driver Change
gpio-macsmc gP13 radio reg-on template (J604/J773g ADTs: pKW4('gP13', 0x800000); iMacs assumed), via apple_t8132_managed_radio()
spi-apple-qspi Boot NOR table entries beside the J713 and J715. A different part fails the JEDEC check, so no write is admitted
dwc3-apple Host-before-core-init and CIO setup on every T8132 Mac above
pcie-apple, apple-dart The managed radio stream profile (the same mapper-apcie0-wlan/-bt on the J604/J773g)
apple-dart, rtkit-helper Retain the live MTP bypass and session on the J604 (same MTP); the legacy loader contract stays J713-only
macaudio + binding apple,j604-macaudio takes the J614s configuration, which never binds the speaker link; apple,j604/j623/j624-macaudio-jack take the AOP jack config

Speaker safety is unchanged:

  • On the J604, the speaker card and all six amps are disabled in the DT, and the driver variant has speakers off.
  • Even once enabled, SN012776 speakers need boot-loader levels and a protection lease.

Left J713-only on purpose (board-qualified data, not the same hardware):

  • The internal-panel DCP profile and firmware ABI (dcp-m4-profile.h, iomfb_m4.c). The J604 panel's geometry and brightness aren't in its ADT, and the J773g has no panel.
  • The T8132 external-DCP route/sleep code (t8132_ext_drm.c, display-gate.c) and the display DART retention, which are tied to the J713's Type-C route handoff.
  • The G16 GPU (J713 performance states and 8-core image), PMP thermal, telemetry and display bridges.
  • The legacy loader adapter and the pmgr policy check.

Not covered (follow-ups)

  • USB4/Thunderbolt: the ATC/ACIO CIO calibration is per board. The J773g's EQ/PLL tunables differ from the J713's, and the J604 27.0 dump has none. The J713 conversion isn't reproducible here, so USB-C runs USB2/USB3 only.
  • PCIe port 2 (SD reader, Ethernet) needs the managed radio contract to admit a second port and stream.
  • Audio:
    • J604 speaker bring-up and a speakersafetyd profile.
    • A mic-less AOP audio mode for the Mac mini.
    • The iMac speakers.
  • Display: HDMI on the J604 (ATC2 DP + PCON) and Mac mini; display/GPU admission per board.

Merge with #1129

integration/aurora is merged in (merge commit 81e9556709). The conflicts were the J713-only checks #1129 turned into apple_t8132_air(); each now uses the trait helper above.

The selftests follow:

  • macsmc-j713.py extracts the helpers from t8132.h and checks gP13 on all seven boards. It also extracts macsmc_gpio_has_output_template, which it lacked on integration/aurora.
  • dwc3-initial-role.py and m4-dart-boot-contract-test.py extract the helpers.
  • dwc3/mocks.c stubs apple_t8132_usb_host_first().
  • No PMP code calls the new helpers, so the tools/asahi/t6030-pmp-* stubs are unchanged.

Overlap

PR #1035 enables cpufreq/cpuidle on these four boards. This PR does the same through t8132-board.dtsi, so if #1035 lands first, the conflict resolves to this PR's files.

Checks

On the merge (81e9556709):

  • Build: ./linux-build/build kernel --profile asahi linux-t8132-boards -- Image modules dtbs passes. Every touched driver object and the four board dtbs were rebuilt with no compiler or dtc warning.
  • dtc W=1: the four boards show only the pre-existing aop@390600000 unit-address warning from t8132.dtsi, which every t8132 board has.
  • J713 and J715 dtbs: rebuilt from the merge, both are byte-identical to integration/aurora (4114f761f4) and decompile identically. J713 is sha256 fb15aa2d…435f, J715 9e1af528…e848.
  • Host tests (macOS):
    • apple-dcp run.py: 86/86, including dwc3-teardown.
    • macsmc-j713.py: 8046 checks.
    • t6030-pmp-supplier-tests, macaudio-fixed-controls, apple-dart-range-tests, pciec-policy-tests and apple-dart-fw-tests pass.
  • Failing identically on integration/aurora on this host (host-compiler or extraction drift, not this branch):
    • dwc3-initial-role.py, bcm4377-radio-sids.py, atc-t8132-usb3.py, dart-s2idle-retention.py;
    • apple-dcp/m4-error-paths.py, m4-dart-boot-contract-test.py;
    • qspi-nvram-tests.py, neo-stability-tests, and t6030-pmp-graph-tests (uuid_t, CI only).
  • dtbs_check: not run; the build VM has no dt-schema.

🤖 Generated with Claude Code

The J713 keeps its SoC-level wiring in its own board files. Put it in
shared files for the other M4 Macs instead of copying it per board:

- t8132-board.dtsi: the loader handoffs (AOP, PMP, MCC, PMC), CPU DVFS
  and deep idle, the boot NOR and its NVRAM partition, the SMC (RTC,
  reboot, hwmon), the PMU's NVMEM cells, the SEP mailbox, the radio port
  with its managed streams, and ATC0/ATC1 in host mode;
- t8132-isp.dtsi: the ISP firmware placeholders and power domains, and
  the 12 MP front camera's modes;
- t8132-apcie-port2.dtsi: the built-in PCIe controller's third port and
  its DART (the J604 SD reader, the J773g Ethernet), disabled until the
  managed radio contract admits a second port;
- t8132-gpu.dtsi, t8132-dcp.dtsi, t8132-dcpext.dtsi: the G16 GPU and the
  internal and external display coprocessors, disabled until a board's
  firmware and panel handoff are qualified; a running display DART is
  then never touched.

Values are from the J713, J604 and J773g ADTs, which agree. The J713 does
not include these files yet, so its tree is unchanged.

Signed-off-by: Diljit Singh <[email protected]>
The M4 has four ATCs, but t8132.dtsi describes two. Add the third and
fourth ATC PHYs, their display crossbars, DWC3 controllers and DARTs,
and the second SPMI bus for port controllers (the J604's right-hand
port), all disabled, in a file of their own that boards include.

Addresses and interrupts are from the J604 and J773g ADTs (atc-phy2/3,
usb-drd2/3, dart-usb2/3, atc2/3-dpxbar, nub-spmi-a1).

Signed-off-by: Diljit Singh <[email protected]>
The J713's Wi-Fi/Bluetooth reg-on is the SMC's gP13 written with a fixed
template, not with the generic output command. The J604 and J773g ADTs
have the same /amfm function-reg_on, pKW4('gP13', 0x800000), so give
them the same path. The M4 iMacs (J623, J624) have no ADT yet and are
assumed to match.

The selftest compiles the board list and keeps the J713 in it.

Signed-off-by: Diljit Singh <[email protected]>
Add the J604, J623, J624 and J773g to the boot NOR table with the J713's
controller, NVRAM window and part. The J713 and J773g ADTs place anvram
at 0x700000 for 1 MiB; the J604's 27.0 ADT dump omits the offset and
the iMacs have no ADT yet, so those take the standard window.

A different part fails the JEDEC check, so no program or erase is
admitted there.

Signed-off-by: Diljit Singh <[email protected]>
On the J713 a T8132 DWC3 enters host mode before core init and gets
the CIO setup before xHCI starts. The J604, J623, J624 and J773g have
the same ATCs and controllers, so give them the same sequence.

The selftest compiles the board list and keeps the J713 in it.

Signed-off-by: Diljit Singh <[email protected]>
The J713's radio port runs a managed contract: Linux adopts the trained
link and owns only the radio's two ordinary streams. The J604 and J773g
ADTs map the same two streams on the same port (dart-apcie0
mapper-apcie0-wlan and -bt, pci-bridge0), so admit the profile there.
The M4 iMacs (J623, J624) have no ADT yet and are assumed to match.

Signed-off-by: Diljit Singh <[email protected]>
The managed radio DART is admitted only with its board's profile. Admit
it on the J604, J623, J624 and J773g, whose radio ports match the J713's
(see the matching PCIe change).

Signed-off-by: Diljit Singh <[email protected]>
iBoot leaves the MTP running with its DART streams in bypass, and on the
J713 Linux keeps that bypass instead of resetting the DART under the
running firmware. The J604 has the same MTP (ADT dockchannel-mtp and mtp
nodes as the J713's), so retain it there too.

The log line now names the SoC; the radio selftest finds its probe slice
by it.

Signed-off-by: Diljit Singh <[email protected]>
On the J713 the helper takes over the MTP session iBoot leaves running
instead of restarting it. The J604 has the same MTP, so preserve its
session too. The legacy loader contract stays J713-only.

Signed-off-by: Diljit Singh <[email protected]>
Add the M4 MacBook Pro 14-inch (J604) speaker and jack cards, and the M4
iMacs' (J623, J624) jack cards.

Signed-off-by: Diljit Singh <[email protected]>
The J604 has the J614s's six SN012776 amps in the same AOP-fed frame
and chassis, and like the J614s its speakers have had no bring-up and
have no protection profile: it takes the J614s configuration, which
never binds the speaker link. Its jack is the J616s's AOP-fed CS42L84.

The M4 iMacs (J623, J624) get jack-only cards on the same AOP back-end;
their speakers are not described yet.

Signed-off-by: Diljit Singh <[email protected]>
Describe the MacBook Pro 14-inch (M4, 2024) like the J713, from the J604
ADT (macOS 27.0):

- the shared T8132 wiring: NVMe, SMC, PMU, AOP, PMP, CPU DVFS and deep
  idle, the boot NOR's NVRAM, the radio port (board type "guam");
- three USB-C ports: port controllers hpm0 and hpm1 on nub-spmi-a0 and
  hpm3 on nub-spmi-a1, ATC0, ATC1 and ATC3 in USB2/USB3 host mode;
- the keyboard and trackpad (MTP, reset lines gP1c and gP1d), the
  keyboard backlight (FPWM1) and Touch ID (Mesa on spi2);
- the six SN012776 speaker amps in ADT provider order with their sense
  slots and amp-tx-zd-config idle masks, held disabled with their card
  until the speakers' bring-up, and the CS42L84 jack as its own card;
- the front camera, the fans and SMC sensors, and the panel's size for
  simpledrm;
- the SD card reader (GL9755, power gP19) on the PCIe port 2, disabled
  with that port.

The GPU, the display coprocessors, USB4 and HDMI (ATC2 DisplayPort to
the PCON at i2c0 0x08) are described or noted but stay off until their
drivers admit this board.

Signed-off-by: Diljit Singh <[email protected]>
Describe the Mac mini (M4, 2024) like the J713, from the J773g ADT
(macOS 26.6.2):

- the shared T8132 wiring: NVMe, SMC, PMU, AOP, PMP, CPU DVFS and deep
  idle, the boot NOR's NVRAM, the radio port (board type "sakhalin");
- the three rear USB-C ports: port controllers hpm0, hpm1 and hpm3 on
  nub-spmi-a0, ATC0, ATC1 and ATC3 in USB2/USB3 host mode;
- the two front USB-C ports: the hub behind ATC2 at high speed, since the
  PHY only enters USB3 mode from a Type-C mode switch;
- the SN012776 speaker amp (disabled) and the CS42L84 jack codec;
- the fan and SMC sensors;
- the Gigabit Ethernet on PCIe port 2, disabled with that port.

There is no sound card yet: the AOP audio component always runs a
microphone stream, and this Mac has neither microphones nor speaker
sense. The HDMI port stays on dispext0 as iBoot left it.

Signed-off-by: Diljit Singh <[email protected]>
Describe the iMac (24-inch, 2x USB-C, M4, 2024) like the J713, with the
parts it shares with the 4-port model in t8132-j623-j624.dtsi. There is
no ADT for these boards: the layout follows the M3 iMacs and the T8132
wiring the J713, J604 and J773g ADTs share, and every value from neither
is marked as guessed:

- the jack codec's interrupt (AP GPIO 98) and inverted tip sense;
- the AOP's jack DMA channels;
- the port controllers at nub-spmi-a0 0xa and 0xc;
- the Ethernet on PCIe port 2 (disabled with that port);
- the 12 MP camera's modes, as on the other M4 Macs.

The radio's board type is left to the boot loader, and the speakers are
not described until their amps are known.

Signed-off-by: Diljit Singh <[email protected]>
Describe the iMac (24-inch, 4x USB-C, M4, 2024): the shared iMac parts
and the third and fourth USB-C ports on ATC3 and ATC2, in USB2/USB3 host
mode. With no ADT, their port controllers are guessed: ATC3's at
nub-spmi-a0 0x8 as on the Mac mini, ATC2's at nub-spmi-a1 0xc as the
MacBook Pro's extra port.

Signed-off-by: Diljit Singh <[email protected]>
Take the J715 tree (#1129) and its apple_t8132_air() helper. The J713-only
machine checks this branch extended to the other M4 Macs are now
apple_t8132_air() upstream; resolve them with one helper per shared
trait in <linux/soc/apple/t8132.h>, each the Airs plus the boards that
share that hardware:

- apple_t8132_managed_radio(): the gP13 radio reg-on (gpio-macsmc) and
  the managed radio streams (pcie-apple, the apple-dart radio gate), on
  the Airs, the J604, the J773g and the iMacs;
- apple_t8132_usb_host_first(): the DWC3 host-first sequence, on the
  same boards;
- apple_t8132_live_mtp(): the retained MTP bypass and session
  (apple-dart, rtkit-helper), on the Airs and the J604.

The J713 and J715 keep exactly their integration/aurora behaviour; the
other Air-only checks (display DARTs, PCI identity domains, the legacy
loader contract) stay Air-only. The boot NOR table keeps the J715 entry
beside this branch's boards.

Selftests follow: macsmc-j713.py extracts the helpers from t8132.h and
checks gP13 on all seven boards (it also extracts
macsmc_gpio_has_output_template, which it lacked since the templated
GPIOs), dwc3-initial-role.py and m4-dart-boot-contract-test.py extract
the helpers, and the dwc3 lifecycle mocks stub the new one.

Signed-off-by: Diljit Singh <[email protected]>
@DjDeveloperr
DjDeveloperr merged commit d6a6b3c into integration/aurora Nov 7, 2026
4 checks passed
DjDeveloperr added a commit that referenced this pull request Nov 7, 2026
#1142 added the J604 and M4 iMac macaudio cards next to the J575c ones here;
keep both, in board order.

Signed-off-by: Diljit Singh <[email protected]>
DjDeveloperr added a commit that referenced this pull request Nov 7, 2026
…check-every-adt-devi

Brings in #1142, #1141, #1144, #1094, #1151, #1140, #1161, #1097 and
#1163. No conflicts. The four inventories still resolve against the
merged DTBs: J316s, J616s, J413 and J700 keep their MISSING counts with
no broken paths.

Signed-off-by: Diljit Singh <[email protected]>
@RyanTheTide
RyanTheTide deleted the feat/t8132-boards branch November 16, 2026 05:06
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