Skip to content

arm64: dts: apple: t8122-j615: enable WLAN wake - #2581

Merged
DjDeveloperr merged 1 commit into
integration/aurorafrom
j615pwr/j615-wlan-wake
Nov 20, 2026
Merged

DjDeveloperr merged 1 commit into
integration/aurorafrom
j615pwr/j615-wlan-wake

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

Problem

On the 15-inch M3 MacBook Air (J615), Wake-on-WLAN does not wake the system from suspend-to-idle. WoWLAN magic-packet wake is enabled and the packet reaches the interface, but brcmfmac only arms the endpoint's MSI as a wake interrupt when the WLAN node is a wakeup source, and the J615's node is not.

Change

Mark the J615's WLAN node wakeup-source. The BCM4388 has no separate host-wake line, like the BCM4387 in the M2 Airs, which got the same property in 11a9281. Only the J615 changes, the board this was tested on.

Testing

On a J615, lab 7.3.0 kernel, PMU RTC alarm as the fallback wake (#2562):

  • Before: a magic packet sent 30 s into suspend-to-idle did not end it; the RTC alarm woke the machine 90 s later. The same packets show up in tcpdump on the interface while awake.
  • After: the packet ended suspend-to-idle 31 s in, with the wake IRQ being the WLAN MSI (brcmf_pcie_intr).
  • Suspend-to-idle drain with the function kept in D0: 2.42 W, within the 2.26-2.50 W range measured without it on this machine.
  • make CHECK_DTBS=y apple/t8122-j615.dtb: no warnings.

Still to run

  • J613 and the other M3 boards: same chip family, not tested, so not changed.

Assisted-by: LLM (Claude:Opus 5.5)

The BCM4388 in the 15-inch M3 MacBook Air has no separate host-wake
line, like the M2 laptops' BCM4387: its firmware wakes the host with
the endpoint's MSI. Mark the WLAN node as a wakeup source so brcmfmac
arms that MSI for Wake-on-WLAN and keeps the function in D0 across
s2idle.

Without it a magic packet does not end s2idle on a J615, although the
packet reaches the interface and WoWLAN is enabled.

Signed-off-by: Ryan Murray <[email protected]>

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving and merging.

wakeup-source on &wifi0 (t8122-j615.dts:33) is the property brcmfmac checks before arming the endpoint MSI as a wake IRQ. It's the same shape as the M2 Airs' 11a9281: the BCM4388 has no separate host-wake line either. Your before/after is convincing: before, the RTC alarm woke the machine 90 s late; after, the magic packet woke it 31 s in, on brcmf_pcie_intr. The s2idle drain stays within this machine's normal range. The property only matters once WoWLAN is configured, so the default suspend path is unchanged.

Limiting this to the J615, the board you measured, is right. J613 can follow with its own row.

CI on 2157cf5: Device tree checks and Host tests are green. The commit is signed off.

@DjDeveloperr
DjDeveloperr merged commit eb2f8b0 into integration/aurora Nov 20, 2026
2 checks passed
@RyanTheTide
RyanTheTide deleted the j615pwr/j615-wlan-wake branch November 27, 2026 13:21
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.

2 participants