Repository navigation
arm64: dts: apple: t8132: full device trees for the J604, J773g, J623 and J624 - #1142
Merged
Merged
Conversation
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
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]>
This was referenced Nov 7, 2026
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.
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,j713now 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:
t8132-board.dtsit8132-isp.dtsit8132-apcie-port2.dtsidart-apcie2(J604 SD reader, J773g Ethernet), disabledt8132-atc23.dtsinub-spmi-a1; all disabled until a board enables themt8132-gpu.dtsi,t8132-dcp.dtsi,t8132-dcpext.dtsiAir follow-up: have
t8132-j713-j715.dtsiinclude these files, keep its own enables and flags (apple,j713-native-*, the panel size,&ps_gfx/&pmpGPU 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
apple,guam(/arm-io/wlan module-instance).hpm0(0xc) → ATC0, left front.hpm1(0xa) → ATC1, left rear.hpm3(nub-spmi-a10xc) → ATC3, right.hpm5(MagSafe) is not wired.gP1c/gP1d. Keyboard backlight: FPWM1. Touch ID: Mesa on spi2 (NUB GPIO 28, AP GPIO 199).speaker-config; the idle masks 0xf0f0f0 and 0x0f0f0f come fromamp-tx-zd-config.gP19, PERST AP GPIO 165. Disabled with the port.J773g, Mac mini (M4, 2024). Source: J773g ADT, macOS 26.6.2
apple,sakhalin.hpm0(0xc) → ATC0, back middle.hpm1(0xa) → ATC1, back left.hpm3(0x8) → ATC3, back right.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.speaker-protection0) 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.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.
Guessed values (J623/J624):
cirrus,ts-inv(as on the M3 iMacs).admac0 1, jackadmac1 4/5(as on the J604/J713).nub-spmi-a00xc → ATC0 and 0xa → ATC1, as on every M4 ADT.nub-spmi-a10xc → ATC2 as on the J604's extra port.gP13and PERST AP GPIO 163 (the driver board lists include the iMacs on this assumption).hwmon-fan-dual, as on the M3 iMacs (missing keys are skipped).brcm,board-type(the boot loader supplies it). The C2 firmware set has these M4 island names unassigned: aruba, linosa, paradise, prospero.Inferred for the J604 (not in its ADT):
anvram reg, so this uses the standard window.sensor-type46; the J713's is 23.apple,power-method2, as on the J713.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:
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.apple_t8132_managed_radio()gpio-macsmcgP13 reg-on;pcie-appleand theapple-dartradio gateapple_t8132_usb_host_first()dwc3-applehost-first and CIO setupapple_t8132_live_mtp()apple-dartMTP bypass,rtkit-helpersessiongpio-macsmcgP13radio reg-on template (J604/J773g ADTs:pKW4('gP13', 0x800000); iMacs assumed), viaapple_t8132_managed_radio()spi-apple-qspidwc3-applepcie-apple,apple-dartmapper-apcie0-wlan/-bton the J604/J773g)apple-dart,rtkit-helpermacaudio+ bindingapple,j604-macaudiotakes the J614s configuration, which never binds the speaker link;apple,j604/j623/j624-macaudio-jacktake the AOP jack configSpeaker safety is unchanged:
Left J713-only on purpose (board-qualified data, not the same hardware):
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.t8132_ext_drm.c,display-gate.c) and the display DART retention, which are tied to the J713's Type-C route handoff.Not covered (follow-ups)
Merge with #1129
integration/aurorais merged in (merge commit81e9556709). The conflicts were the J713-only checks #1129 turned intoapple_t8132_air(); each now uses the trait helper above.The selftests follow:
macsmc-j713.pyextracts the helpers fromt8132.hand checks gP13 on all seven boards. It also extractsmacsmc_gpio_has_output_template, which it lacked on integration/aurora.dwc3-initial-role.pyandm4-dart-boot-contract-test.pyextract the helpers.dwc3/mocks.cstubsapple_t8132_usb_host_first().tools/asahi/t6030-pmp-*stubs are unchanged.Overlap
PR #1035 enables
cpufreq/cpuidleon these four boards. This PR does the same throught8132-board.dtsi, so if #1035 lands first, the conflict resolves to this PR's files.Checks
On the merge (
81e9556709):./linux-build/build kernel --profile asahi linux-t8132-boards -- Image modules dtbspasses. Every touched driver object and the four board dtbs were rebuilt with no compiler or dtc warning.aop@390600000unit-address warning fromt8132.dtsi, which every t8132 board has.4114f761f4) and decompile identically. J713 is sha256fb15aa2d…435f, J7159e1af528…e848.apple-dcprun.py: 86/86, includingdwc3-teardown.macsmc-j713.py: 8046 checks.t6030-pmp-supplier-tests,macaudio-fixed-controls,apple-dart-range-tests,pciec-policy-testsandapple-dart-fw-testspass.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, andt6030-pmp-graph-tests(uuid_t, CI only).dtbs_check: not run; the build VM has no dt-schema.🤖 Generated with Claude Code