Repository navigation
arm64: dts: apple: add the J773s, J614c and J575c (M4 Pro/Max) boards - #1140
Merged
Merged
Conversation
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
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]>
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.
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:
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.t6040-j773s-usb3.dtsioverrides with this ADT's values.dmas: there's no protection profile, and the ADT's speaker stream returns no V/I sense.hwmon-mini.dtsi, and the J616s thermal zones.no_psin this ADT, so the newt604x-j575-j773.dtsidisables every ISP power domain. ISP_SYS is enabled by default int604x-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:
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@39aa90000as the HDMI DP PHY, but on this board that's the front USB PHY. Display is on the boot framebuffer.Guesses and inherited values:
mTPLare unverified. Missing keys keep their channel and stay hidden.J614c: MacBook Pro (14-inch, M4 Max, 2024), t6041
Source. There's no ADT.
t6041-j614c.dtsis J616c's file with the 14-inch chassis values from J614s, sodiff t6041-j616c.dts t6041-j614c.dtsshows only the chassis changes. The speakers use the existingapple,j614-macaudiovariant: the card and all six amps are disabled, as on J614s. The enabled node set is the same as J616c's.Guesses:
apple,mriya(J614s; same-chassis boards have always shared their island).apple,panel-j614, 302×196 mm, adj-height 189 (J614s), with J616c'sapple,max-brightness = <500>.tpmtfw-j614c.bin,mesacal-j614c.binandmsrk-j614c.bin, by the naming convention.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
guessin the file.Guesses:
apple,aruba, the J575d's island.Drivers
aop_audio.rs). An audio node that lists nodma(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 listdmakeep the existing path.apple,j773-macaudioandapple,j575c-macaudio, sharing one config withenable_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.profile.rs): J614c isn't added, since the profile only covers boards whose ADT was read.Shared content
t6040-gpu-thermal.dtsinow holds the GPU operating-point placeholders, the thermal zones and their 24 zone sensors fromt604x-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 (cmpon the dtbs, and so ondtc -I dtb -O dts).Build
./linux-build/build kernel --profile asahi linux-m4-pro-max-dts -- Image modules dtbspasses on this series, rebased oncfd8462199, withCONFIG_RUST=yand the pinnedtools/aurora-bindgengenerator.aop_audio.rscompiles, 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_regon 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 verifythen 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:
🤖 Generated with Claude Code