Skip to content

arm64: dts: apple: t8132: Add the J715 (MacBook Air 15-inch, M4) board - #1129

Merged
DjDeveloperr merged 15 commits into
integration/aurorafrom
feat/j715-dt
Nov 7, 2026
Merged

DjDeveloperr merged 15 commits into
integration/aurorafrom
feat/j715-dt

Conversation

@DjDeveloperr

Copy link
Copy Markdown
Contributor

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

  • J713's board body moves into t8132-j713-j715.dtsi. t8132-j713.dts and t8132-j715.dts include it and add only their own parts: identity, panel size, speaker amps and cards, chassis and firmware names.
  • The J715 overrides three things the shared body carries with J713 values: the radio island, three ATC PHY trims and the DCP panel size.
  • The J713 dtb is byte-identical before and after. With the kernel's dtc (1.7.2), the original t8132-j713.dts and the new one both give sha256 fb15aa2d39c6…435f, and dtc -I dtb -O dts of 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:

What J713 J715
Wi-Fi/BT brcm,board-type (/arm-io/wlan module-instance) apple,garden apple,kos
Speaker amps on i2c3 4 6: adds Left Woofer 2 at 0x3a and Right Woofer 2 at 0x3d
Codec (playback slot) order, ADT provider order LW RW LT RT LW1 RW1 LT RT LW2 RW2
Sense slots (speaker-config) 0/2 … 12/14 0/2 … 20/22
Idle masks (amp-tx-zd-config rows 0/1) 0xf0f0 / 0x0f0f 0xf0f0f0 / 0x0f0f0f
atcphy0 tunable-cio-common @0x2240 (AUSPLL_CORE) 0x49 0x39
atcphy1 tunable-cio-common @0x2a4c (CIO3PLL_CORE) 0x33ba00 0x22ba00
atcphy1 tunable-cio-post @0xa04 (AUSCMN_SHM) 0x3c 0x50
MTP, Mesa firmware, chassis name *-j713 tpmtfw-j715.bin, mesacal-j715.bin, msrk-j715.bin, J715

These match the J713 exactly, so they are shared:

  • SDZ on AP GPIO 15 and amp IRQ on AP GPIO 14.
  • CS42L84 jack at i2c1 0x4b: IRQ AP 98, reset nub 17.
  • Mesa: power on nub 28, IRQ AP 199, V3 sensor, 8 MHz.
  • Wi-Fi reg_on is SMC gP13. PCIe PERST is AP 163 and CLKREQ AP 160.
  • MTP AFE/STM resets are SMC 28/29. The keyboard backlight PWM is the same.
  • NVRAM at 0x700000, size 0x100000.
  • The PMGR tables are identical: all 392 shared devices, ps-regs, power-domains, clocks, events, perf-regs and pwrgate-regs.
  • Every DART and its streams. The radio is on SIDs 1/2.
  • All USB4 ACIO/NHI and PCIe-C tunables.
  • The DROM body. Only its CRC and router UID header differ, and that header is a placeholder by design.
  • The other ATC PHY tunables.
  • 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:

  • ISP sensor-type is 24 on the J715 and 23 on the J713. The loader copies it into apple,platform-id, as J413/J415 use 14/15. The IMX958 is detected at runtime.
  • Internal PCIe (apcie) PLL trims: three values differ, also per unit. The tree doesn't carry them because the boot loader trains that link.
  • AOP speaker stream: the ADT is 6 TX / 12 RX slots instead of the J713's 4/8. That is the J616s stream the AOP driver already runs.
  • OS-version and per-unit differences: memory layout, firmware UUIDs, GPU and CPU voltage bins, backlight and gyro calibration, and a new virtual DISP-SYS-V PMGR device. The J715 GPU table keeps the 16-state shape the G16 driver qualifies.

Placeholders (no J715 value in the ADT)

Value What the tree uses How to get the real one
Internal panel timing (DCP M4) None: the J715 profile has no qualified timing, so the internal DCP refuses before it sends anything and the boot framebuffer stays On a J715 in macOS, the internal display's TimingElements (e.g. ioreg -lw0 -r -c AppleCLCD2) should list it. The preferred 60 Hz element's HorizontalAttributes/VerticalAttributes give the eight values per axis that dcp_m4_profile_j715.timing needs. The DCP's PreferredTimingElements under Linux carries the same values
Panel size in mm Derived from 2880x1864 at 224 ppi: 327x211 mm, 327x204 mm below the notch (matches J415/J615) Not in the ADT
Boot NOR part J713's W25Q64. A different JEDEC ID fails the write check and NVRAM stays read-only From a J715 under Linux: the apple-qspi sysfs status line (jedec=)
SMC hwmon keys, thermal policy J713's: fanless, the J715 only adds chassis margin Read the SMC key list on a J715. The J713 list was measured on hardware
apple,antenna-sku "XX" placeholder, filled by the loader Both ADTs report X0 in wifi-antenna-sku-info
DCP brightness max/default J713's 500/120. The ADT backlight node matches the J713's n/a

Driver changes

  • Adds include/linux/soc/apple/t8132.h with apple_t8132_air(), true on the J713 and J715. It is used where the T8132 support only accepted the J713:
    • soc: PMP display and GPU vote bridge, PMP telemetry, the dcpext route gate, MTP RTKit preservation, the legacy-loader platform handoff and its KUnit test, and the SEP Touch ID profile (profile.rs selects T8132 on apple,j715).
    • pmdomain: PMGR power-domain policy requirement and the PMP report path.
    • iommu/apple-dart: retained display, dcpext, dispext, radio and MTP DART handling. The retained-display ADT check now accepts target-type J715.
    • PCI: J715 managed radio SIDs.
    • gpio: macsmc: the gP13 radio reg_on handling.
    • usb: dwc3: host before core init.
    • thermal: apple-pmp policy.
  • spi: apple-qspi: a J715 NVRAM row.
  • drm/apple m4:
    • The panel timing moves from dcp-m4-timing.h into the profile, which is chosen by machine at DCP probe.
    • New J715 profile: 2880x1864, stride 11520, the same firmware ABI, no timing yet (see above).
    • t8132_ext_drm covers the J715 too.
  • ASoC macaudio:
    • 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.
  • Bindings: macaudio J715 compatibles. The J713/J715 comments in arm/apple.yaml now say M4 instead of M3.
  • Host tests updated:
    • macsmc-j713.py now covers the J715.
    • m4.py defines the selected profile.
    • m4-dart-boot-contract-test.py gets the board helper. This test already failed before this change, on unrelated drift (j713_dcpext in the extracted IRQ expression).

Build and checks

  • ./linux-build/build kernel --profile asahi linux-j715 -- Image modules dtbs passes: 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.
  • No new dtc warnings. The kbuild DTC step prints none for either board. With every dtc warning enabled, the J715 shows exactly the same 13 warnings as the original J713, all pre-existing in t8132.dtsi and the j713 display, dcpext and GPU dtsi.
  • checkpatch --strict on the series is clean apart from the expected "new file, MAINTAINERS?" note.
  • Host tests pass:
    • 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-exact m4-wire-golden;
    • tools/testing/selftests/alsa/macaudio-fixed-controls.py.
  • KUnit was not run.

🤖 Generated with Claude Code

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
DjDeveloperr merged commit 4114f76 into integration/aurora Nov 7, 2026
4 checks passed
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
@RyanTheTide
RyanTheTide deleted the feat/j715-dt 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