Skip to content

arm64: dts: apple: add the J773s, J614c and J575c (M4 Pro/Max) boards - #1140

Merged
DjDeveloperr merged 12 commits into
integration/aurorafrom
dts/m4-pro-max-boards
Nov 7, 2026
Merged

DjDeveloperr merged 12 commits into
integration/aurorafrom
dts/m4-pro-max-boards

Conversation

@DjDeveloperr

Copy link
Copy Markdown
Contributor

This adds device trees for the three M4 Pro/Max Macs our tree didn't have yet: the Mac mini (J773s), the 14-inch MacBook Pro with M4 Max (J614c) and the Mac Studio with M4 Max (J575c). They follow the J616s and J616c wiring. I haven't booted any of them. J773s is built from its ADT. J614c and J575c have no ADT, so they carry guesses, each one marked in the file and listed below.

J773s: Mac mini (M4 Pro, 2024), t6040

Source. The board's ADT (macOS 26.6.2, GravityLinux/adt-collection t6040-j773s-26.6.2.txt), diffed against what the J614s/J616s trees encode. The model and compatible strings come from asahi-wip's minimal tree by Yureka Lilian and Florian Klink (1763a25).

Wired from the ADT:

  • PCIe. Wi-Fi and Bluetooth on port 0 (apple,sakhalin, power gP13, PERST AP 4, CLKREQ AP 0). Ethernet on port 2 (PERST AP 6, CLKREQ AP 2, no power switch) with its DART (0x4_1200_0000, IRQ 1742). The Ethernet node has no compatible because the chip depends on the 1G/10G configuration.
  • Back Thunderbolt ports. Three, at USB3. All three PD controllers are on nub-spmi-a0: 0xc back middle → ATC0, 0xa back left → ATC1, 0x8 back right → ATC2. The pairing is checked by ADT port number. Every PHY and DRD table matches J616s except the per-port PLL trims (aus40cmn/auspll/cio4pll), which t6040-j773s-usb3.dtsi overrides with this ADT's values.
  • Front ports. An on-board USB2/USB3 hub behind ATC3, whose controller (usb-drd3) is a fixed host with no PD controller. The ATC3, DRD3 and DART nodes are described with their own tables, but disabled: the T6040 PHY driver brings USB3 up only for a Type-C plug orientation.
  • Audio. The CS42L84 headphone jack (i2c2 0x4b, reset nub 58, IRQ AP 106) on its own card. The one SN012776 (i2c1 0x38, SDZ AP 54, IRQ AP 55) is described but disabled, together with its card. The AOP speaker stream is left out of dmas: there's no protection profile, and the ADT's speaker stream returns no V/I sense.
  • Retimers and PMICs. i2c6 is enabled for the retimers, which have no driver yet. The main PMIC is the Abbey at 0xe, as on J616s, plus the Abbey PMICs on nub-spmi1/2.
  • NFC. The Stockholm controller on aop-spmi0 (address 9, enable gp0e), with the same ADT values as the J616s node added upstream.
  • SoC blocks, as on J616s. NVMe, GPU (loader-filled operating points), ANE, video encoder, JPEG, PMP and the NVRAM partition (0x700000/0x100000, per the ADT anvram).
  • SMC. One fan via hwmon-mini.dtsi, and the J616s thermal zones.
  • Absent hardware. ALS and lid are disabled. The ISP and ISPSENS0 power states are no_ps in this ADT, so the new t604x-j575-j773.dtsi disables every ISP power domain. ISP_SYS is enabled by default in t604x-pmgr.dtsi, and the ISP's own PMGR block sits behind it. After that change, every power domain the dtb enables has a power state in this ADT.

Not described:

  • HDMI. It goes through an LPDPTX PHY (ADT dptx-phy,t8122, crossbar output 4) and a converter on i2c8, and neither has a T6040 driver. I also left the J616s external-display chain out: the display gate enables /phy@39aa90000 as the HDMI DP PHY, but on this board that's the front USB PHY. Display is on the boot framebuffer.
  • SEP. It stays off. Its profile only covers boards whose Touch ID wiring was read.

Guesses and inherited values:

  • Thermal trips and power budgets are J616s's, not measured on a mini.
  • The SMC key table wasn't read, so the hwmon keys and mTPL are unverified. Missing keys keep their channel and stay hidden.
  • The PLL trims are this unit's. They may be per-unit, as they differ between J616s and J773s.
  • The Ethernet port uses DART stream 1, as the J616s SD port does.

J614c: MacBook Pro (14-inch, M4 Max, 2024), t6041

Source. There's no ADT. t6041-j614c.dts is J616c's file with the 14-inch chassis values from J614s, so diff t6041-j616c.dts t6041-j614c.dts shows only the chassis changes. The speakers use the existing apple,j614-macaudio variant: the card and all six amps are disabled, as on J614s. The enabled node set is the same as J616c's.

Guesses:

  • Wi-Fi/BT board type apple,mriya (J614s; same-chassis boards have always shared their island).
  • Panel apple,panel-j614, 302×196 mm, adj-height 189 (J614s), with J616c's apple,max-brightness = <500>.
  • Thermal limits 113/118 °C, and two fans with manual control (J616c).
  • GPU operating points are one J616c unit's values (binned per device).
  • Trackpad and keyboard wiring: AFE/STM resets on SMC gpio-low 25/26, power-method 2, layout id 0 (J616c).
  • Firmware names tpmtfw-j614c.bin, mesacal-j614c.bin and msrk-j614c.bin, by the naming convention.
  • From J616c, where the J614s/J616s chassis family agrees: the USB-C PD controllers and ports (HS only), the HDMI and USB-C DP chains, the Touch ID wiring, the amp layout, the jack and the SMC keys.

J575c: Mac Studio (M4 Max, 2025), t6041

Source. There's no ADT. It uses J616c's T6041 wiring, with the J773s and J575d desktop layout. Every board value is marked guess in the file.

Guesses:

  • Wi-Fi/BT apple,aruba, the J575d's island.
  • PCIe ports (the J575d layout):
    • port 1: SD reader (GL9755). Power gP19, PERST AP 5, CLKREQ AP 1, from the J616c ADT's SD reader.
    • port 2: Ethernet. PERST AP 6, CLKREQ AP 2, from J773s.
    • port 3: the xHCI behind the USB-A and front USB-C ports. PERST AP 7 and CLKREQ AP 3 follow the port-N pattern (CLKREQ = N, PERST = 4 + N), and AP 3 and 7 are unused on both ADTs. No power GPIO.
  • DARTs. The port 1 DART is re-added; t6041.dtsi deletes it. The port 3 DART is placed at 0x4_1300_0000, IRQ 1751, by the stride of the others.
  • Back ports. Three of the four, at USB2 high speed as on J616c, using the J773s's PD controllers (nub-spmi-a0 0xc/0xa/0x8 for ATC0-2). The fourth (ATC3) is not described.
  • Audio. The speaker amp at i2c1 0x38, SDZ AP 54, IRQ AP 55, disabled with its card. The jack at i2c2 0x4b, reset nub 58, IRQ AP 106. No AOP microphones.
  • Two fans (J575d), J616c's CPU SMC keys plus TW0P, J616c's thermal limits and J616c's GPU operating points.
  • Not described: HDMI and the external display chains, the fourth back port, and the SEP.

Drivers

  • AOP audio (aop_audio.rs). An audio node that lists no dma (microphone) channel now registers only its speaker/jack streams. Without this, attaching the absent PDM microphones fails and takes the jack down with it. Machines that list dma keep the existing path.
  • macaudio. New apple,j773-macaudio and apple,j575c-macaudio, sharing one config with enable_speakers = false, so the speaker link is never bound. Their jack variants reuse the J616s jack config. The binding and the KUnit config list are updated. Speaker safety isn't loosened anywhere.
  • Left unchanged on purpose:
    • The SEP profile (profile.rs): J614c isn't added, since the profile only covers boards whose ADT was read.
    • The QSPI NVRAM write table: the new boards stay read-only, like J614s.
    • The J614s-only MTP handoff quirks.

Shared content

t6040-gpu-thermal.dtsi now holds the GPU operating-point placeholders, the thermal zones and their 24 zone sensors from t604x-j614-j616.dtsi, so J773s can reuse them. The include sits where those nodes were. The J614s, J616s, J616s-tether and J616c dtbs are byte-identical before and after the series (cmp on the dtbs, and so on dtc -I dtb -O dts).

Build

./linux-build/build kernel --profile asahi linux-m4-pro-max-dts -- Image modules dtbs passes on this series, rebased on cfd8462199, with CONFIG_RUST=y and the pinned tools/aurora-bindgen generator. aop_audio.rs compiles, and rustfmt reports nothing new in it.

The new dtbs add no dtc warnings at the default level. With every dtc check on, their warning classes are the same as J616c's: unit_address_vs_reg on the loader-filled reservations, the DCP's address cells, and the two ANE reservations at @0.

The first two build attempts were cut off by guest memory corruption. build verify then passed, and the third run completed.

Help wanted

If you have one of these Macs, a redacted device-tree dump from macOS replaces the guesses with real values. It needs no sudo and blanks the serials and MAC addresses:

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

🤖 Generated with Claude Code

The M4 Pro Mac mini (J773) and the M4 Max Mac Studio (J575c) run their
speaker and headphone jack through the AOP, like the J614 and J616, and
take machine variants of their own: one card for the speaker and one for
the jack.

Signed-off-by: Diljit Singh <[email protected]>
Both Macs have one SN012776 on the AOP's speaker stream and a CS42L84
headphone jack, which gets a card of its own as on the J616s. Neither
speaker has been brought up or has a speakersafetyd profile, and the
J773s ADT's speaker stream returns no V/I sense. Their speaker variant
therefore never binds the speaker link, as on the J614s. The jack
variants use the J616s jack configuration.

Signed-off-by: Diljit Singh <[email protected]>
The AOP firmware of the Mac mini and Mac Studio has no PDM microphones:
the J773s ADT lists no audio-hp or lp-mic device under its
iop-audio-controller. Attaching them fails, and the probe takes the
headphone jack down with it.

Treat an audio node that lists no "dma" channel as a Mac without
microphones: register only its speaker and jack streams, with no
microphone card. Nodes that list "dma", every machine so far, keep the
existing path.

Not tested on hardware.

Signed-off-by: Diljit Singh <[email protected]>
Move the GPU operating-point placeholders, the thermal zones and the 24
SMC sensors they read into t6040-gpu-thermal.dtsi, for the other T6040
Macs. The include sits where the nodes were, so the J614s, J616s and
J616s tether dtbs stay byte-identical.

Signed-off-by: Diljit Singh <[email protected]>
Describe the J773s from its ADT (macOS 26.6.2, from
GravityLinux/adt-collection), wired like the J616s:

- Wi-Fi and Bluetooth on PCIe port 0 (board type apple,sakhalin) and
  Ethernet on port 2, with the port's DART
- the three back Thunderbolt ports at USB3, their PD controllers all on
  nub-spmi-a0; the PHY tables are the J616s ones except the per-port PLL
  trims
- the two front ports, a hub behind ATC3, described but disabled: the
  T6040 PHY driver has no fixed-host mode yet
- the headphone jack on its own card; the speaker amp, its card and its
  AOP stream are left disabled or out, since the speaker has no profile
  and its AOP stream returns no V/I sense
- the Stockholm NFC controller on aop-spmi0, as on the J616s
- NVMe, GPU, ANE, video encoder, JPEG, PMP, SMC with one fan, the J616s
  thermal zones, NVRAM at 0x700000, the Abbey PMICs
- no microphones, ALS, lid, panel, camera or Touch ID; the ISP power
  states do not exist on this board and are disabled

HDMI is not described: it runs through an LPDPTX PHY with no T6040
driver. The SEP stays off, as its driver only runs on boards whose Touch
ID wiring was read.

The model and compatible strings and the desktop include follow the
minimal tree by Yureka Lilian and Florian Klink in AsahiLinux/linux
asahi-wip (1763a25).

Link: https://patch.msgid.link/20261014-apple-m4-pro-max-initial-devicetrees-v2-10-961edd8d661b@cyberchaos.dev
Signed-off-by: Diljit Singh <[email protected]>
There is no J614c ADT yet. Take the J616c's T6041 wiring and the 14-inch
chassis of the J614s: its panel, its Wi-Fi island (apple,mriya), and its
speakers, kept off with the J614 macaudio variant and disabled amps as on
the J614s. The trackpad and Touch ID firmware names follow the board.

The J616c's thermal limits, GPU operating points, trackpad wiring and
panel brightness limit are kept and marked as guesses, as are its two
fans with manual control.

The model and compatible strings follow the minimal tree by Yureka Lilian
and Florian Klink in AsahiLinux/linux asahi-wip (1763a25).

Link: https://patch.msgid.link/20261014-apple-m4-pro-max-initial-devicetrees-v2-10-961edd8d661b@cyberchaos.dev
Signed-off-by: Diljit Singh <[email protected]>
There is no J575c ADT yet. Take the J616c's T6041 wiring with the
desktop layout of the J773s and the J575d:

- Wi-Fi and Bluetooth on PCIe port 0 (apple,aruba, the J575d's island),
  the SD reader on port 1, Ethernet on port 2 and the xHCI of the USB-A
  and front ports on port 3, with the ports' DARTs
- three back ports at USB2 high speed, as on the J616c, with the J773s's
  PD controllers
- the headphone jack on its own card and the speaker amp disabled with
  its card, with no AOP microphones
- two fans, as on the J575d

Every board value is marked as a guess. HDMI, the fourth back port and
the SEP are not described.

The model and compatible strings follow the minimal tree by Yureka Lilian
and Florian Klink in AsahiLinux/linux asahi-wip (1763a25).

Link: https://patch.msgid.link/20261014-apple-m4-pro-max-initial-devicetrees-v2-10-961edd8d661b@cyberchaos.dev
Signed-off-by: Diljit Singh <[email protected]>
The J715 (#1129) added its macaudio cards in the same lists as the J773 and
J575c ones here; keep both, in board order.

Signed-off-by: Diljit Singh <[email protected]>
…ones

The Mac mini and Mac Studio have no microphone array, and their AOP audio
node lists only the headset jack's "cout" and "cin" channels; the driver
then registers only the jack. Accept that channel set, with an example.

Signed-off-by: Diljit Singh <[email protected]>
The J614s, J616s and J773s trees give each Type-C PHY a ports node: port@0
to the connector's SuperSpeed lanes, as the single port does, and port@1
to the SuperSpeed (PIPE) endpoint of its DWC3 controller. Accept ports in
place of port, never both, and neither on a fixed DisplayPort PHY.

Signed-off-by: Diljit Singh <[email protected]>
#1112 also allowed ports on the T6040 ATC PHY, with no detail. Keep this
branch's description of port@0 and port@1, which covers the same nodes.

Signed-off-by: Diljit Singh <[email protected]>
#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
DjDeveloperr merged commit 1de4898 into integration/aurora Nov 7, 2026
2 checks passed
DjDeveloperr added a commit that referenced this pull request Nov 7, 2026
Brings in #1140, which adds the J614c with apple,color-gamut on its
panel, plus the other integration work since this branch's base.

This branch reads the gamut from the ADT and drops the property from
the binding and the J614s, J616s and J616c. Drop it from the J614c too,
so it no longer carries an undocumented property the driver ignores.

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 dts/m4-pro-max-boards branch November 16, 2026 05:05
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