Repository navigation
arm64: dts: apple: t8132: Add the J715 (MacBook Air 15-inch, M4) board - #1129
Merged
Merged
Conversation
The J713 and J715 entries sit under the M4 platforms but their comments name the M3. Name the M4. Signed-off-by: Diljit Singh <[email protected]>
The J715 (MacBook Air 15-inch, M4) has a speaker card and a headphone jack card of its own, like the J713. Signed-off-by: Diljit Singh <[email protected]>
The J715 (MacBook Air 15-inch, M4) is the J713 board with a larger panel and six speaker amps. Its ADT matches the J713's in the PMGR device and power-state tables, the DARTs and their streams, the PMP, MTP, SEP and Mesa wiring, so the same boot loader handoff applies. Add apple_t8132_air() for the two boards, and use it where the T8132 support only qualifies the J713: the PMP display and GPU vote bridge, the PMP telemetry, the dcpext route gate, the MTP RTKit preservation, the legacy-loader platform handoff and its KUnit test, and the SEP Touch ID profile. Signed-off-by: Diljit Singh <[email protected]>
The J715 shares the J713's loader handoff and PMGR tables. Require the board's power-domain policy and use the T8132 PMP report path on it too. Signed-off-by: Diljit Singh <[email protected]>
The J715's display, external display, radio and MTP DARTs are the J713's: the same addresses and streams, and the same live state at boot. Give them the J713 handling, and accept the J715 target-type in the retained display handoff's ADT check. Signed-off-by: Diljit Singh <[email protected]>
The J715 ADT maps the radio to DART streams 1 and 2 as on the J713, so accept its apple,managed-sids. Signed-off-by: Diljit Singh <[email protected]>
The J715 ADT's /amfm/function-reg_on is the J713's pKW4("gP13",
0x00800000). Use the same write-only handling for it, and cover the
J715 in the host test.
Signed-off-by: Diljit Singh <[email protected]>
The J715's USB-C ports are the J713's, so start them in host mode before the core is initialised as on the J713. Signed-off-by: Diljit Singh <[email protected]>
The J715 is fanless like the J713 and reports the same PMP sensors. Apply the J713 policy to it; its larger chassis only adds margin. Signed-off-by: Diljit Singh <[email protected]>
The J715 ADT has the J713's anvram partition, 0x700000 and 1 MiB, on the same controller. Its NOR part is taken to be the J713's W25Q64; a different part fails the JEDEC check and stays read-only. Signed-off-by: Diljit Singh <[email protected]>
The M4 backend had one static profile, the J713's, with the panel's timing hard-coded in the timing parser. Move the timing into the profile and select the profile by machine when the DCP probes. The J715 runs the same DCP firmware ABI on a 2880x1864 panel. Its panel timing is in neither the ADT nor any capture yet, so its profile has no timing and the internal DCP refuses to probe before it sends anything: the boot framebuffer stays. The external DCPs and the T8132 external outputs cover the J715 as they do the J713. Signed-off-by: Diljit Singh <[email protected]>
The J715 runs the J713's AOP speaker stream with all six playback and twelve sense slots in use: two woofers and a tweeter per side, six SN012776 amps. Add its speaker variant with the J713's safe level and no tweeter high-pass grant, and its jack card as on the J713. Signed-off-by: Diljit Singh <[email protected]>
Move everything but the panel, the speakers and the per-machine firmware names out of the J713 tree into t8132-j713-j715.dtsi, so the J715 can share it. The J713 dtb is unchanged byte for byte. Signed-off-by: Diljit Singh <[email protected]>
Describe the MacBook Air (15-inch, M4, 2025) on the shared J713 body, with the values its ADT gives where they differ from the J713's: - the Wi-Fi and Bluetooth firmware island, kos; - six SN012776 amps on i2c3: the J713's four plus a second woofer per side at 0x3a and 0x3d, listed in the ADT provider order (LW1 RW1 LT RT LW2 RW2) with the ADT amp-tx-zd-config idle masks over 24 sense slots, and the J715 macaudio cards; - three ATC PHY trims: atcphy0 AUSPLL_CORE and atcphy1 CIO3PLL_CORE and AUSCMN_SHM; - its MTP and Mesa firmware names and chassis name; - the 2880x1864 panel at 224 ppi: 327x211 mm, 327x204 mm below the notch. The rest of the J715 ADT matches the J713's: GPIOs, I2C, the NVRAM partition, PMGR, DARTs, the USB4 and PCIe-C tunables and the DROM. Signed-off-by: Diljit Singh <[email protected]>
The PMP graph and supplier tests and the dwc3 teardown test compile production code that now asks apple_t8132_air() instead of matching apple,j713. Give their mocks the same helper, built on their of_machine_is_compatible() stubs. Signed-off-by: Diljit Singh <[email protected]>
DjDeveloperr
added a commit
that referenced
this pull request
Nov 7, 2026
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]>
DjDeveloperr
added a commit
that referenced
this pull request
Nov 7, 2026
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]>
RyanTheTide
added a commit
that referenced
this pull request
Nov 7, 2026
Brings aurora-wip up to fleet25: DT descriptions (#1029, #1030, #1112), the J715 board (#1129), Stockholm NFC (#1042, #1136), the AV1 tile check (#1100), the M4 Max ANE profile and AVD quirk (#1088, #1091), boot-log fixes (#1103, #1104) and the Neo ANE memory floor (#1137). Conflicts: macaudio.c and apple,macaudio.yaml, where aurora-wip's J813 and J873 entries and integration's J715 entries were added at the same spot. Keep all of them. Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
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 tree for the MacBook Air (15-inch, M4, 2025): Mac16,13, board J715, SoC T8132. It replaces the 36-line stub, and the drivers that only accepted the J713 now accept the J715 too.
Not boot-tested: no J715 is available.
Structure
t8132-j713-j715.dtsi.t8132-j713.dtsandt8132-j715.dtsinclude it and add only their own parts: identity, panel size, speaker amps and cards, chassis and firmware names.t8132-j713.dtsand the new one both give sha256fb15aa2d39c6…435f, anddtc -I dtb -O dtsof the two shows no diff (3984 lines).Values from the J715 ADT
I diffed the J715 IODeviceTree (macOS 26A434) against a J713 ADT (26.5.1). The J715 tree carries these J715 values:
brcm,board-type(/arm-io/wlan module-instance)apple,gardenapple,kosspeaker-config)amp-tx-zd-configrows 0/1)0xf0f0/0x0f0f0xf0f0f0/0x0f0f0ftunable-cio-common@0x2240 (AUSPLL_CORE)tunable-cio-common@0x2a4c (CIO3PLL_CORE)tunable-cio-post@0xa04 (AUSCMN_SHM)*-j713tpmtfw-j715.bin,mesacal-j715.bin,msrk-j715.bin,J715These match the J713 exactly, so they are shared:
reg_onis SMCgP13. PCIe PERST is AP 163 and CLKREQ AP 160.display-timing-info, the backlight marketing and DAC tables, and HPM wiring.The ATC PHY trims differ between machines and between the two PHYs. The J713 dtsi doesn't fully match the J713 ADT I diffed against either. So the J715 values are this unit's trims. A boot loader should eventually pass each machine's own.
Differences that need no tree change:
sensor-typeis 24 on the J715 and 23 on the J713. The loader copies it intoapple,platform-id, as J413/J415 use 14/15. The IMX958 is detected at runtime.apcie) PLL trims: three values differ, also per unit. The tree doesn't carry them because the boot loader trains that link.DISP-SYS-VPMGR device. The J715 GPU table keeps the 16-state shape the G16 driver qualifies.Placeholders (no J715 value in the ADT)
TimingElements(e.g.ioreg -lw0 -r -c AppleCLCD2) should list it. The preferred 60 Hz element'sHorizontalAttributes/VerticalAttributesgive the eight values per axis thatdcp_m4_profile_j715.timingneeds. The DCP'sPreferredTimingElementsunder Linux carries the same valuesjedec=)apple,antenna-sku"XX"placeholder, filled by the loaderX0inwifi-antenna-sku-infoDriver changes
include/linux/soc/apple/t8132.hwithapple_t8132_air(), true on the J713 and J715. It is used where the T8132 support only accepted the J713:profile.rsselects T8132 onapple,j715).target-typeJ715.gP13radioreg_onhandling.dcp-m4-timing.hinto the profile, which is chosen by machine at DCP probe.t8132_ext_drmcovers the J715 too.apple,j715-macaudio: SPKR_2W1T, six amps on the J713 AOP stream, the same -20 dB safe level, no tweeter high-pass grant. The speakers stay locked behind the protection lease as on the J713, and there is no speakersafetyd profile.apple,j715-macaudio-jack.arm/apple.yamlnow say M4 instead of M3.macsmc-j713.pynow covers the J715.m4.pydefines the selected profile.m4-dart-boot-contract-test.pygets the board helper. This test already failed before this change, on unrelated drift (j713_dcpextin the extracted IRQ expression).Build and checks
./linux-build/build kernel --profile asahi linux-j715 -- Image modules dtbspasses: Image, modules and dtbs, with Rust enabled. The build VM hit guest-memory corruption during one run, so I deleted every object that depends on the changed files plus both dtbs, and rebuilt them on a guest that passed the tool's memory check. That rebuild finished with exit 0 and no compiler or dtc warnings.t8132.dtsiand the j713 display, dcpext and GPU dtsi.--stricton the series is clean apart from the expected "new file, MAINTAINERS?" note.tools/testing/selftests/drivers/apple/macsmc-j713.py(now with J715 cases);tools/testing/selftests/drivers/gpu/apple-dcp/run.py --group m4, all 6, including the byte-exactm4-wire-golden;tools/testing/selftests/alsa/macaudio-fixed-controls.py.🤖 Generated with Claude Code