Skip to content

arm64: dts: apple: t8112-j413: add SMC wake reasons and USB-PD sleep-ssps - #3470

Merged
RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
satchlj:satchlj/j413-smc-wake-and-sleep-ssps
Nov 28, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
satchlj:satchlj/j413-smc-wake-and-sleep-ssps

Conversation

@satchlj

@satchlj satchlj commented Nov 28, 2026

Copy link
Copy Markdown
Member

What

Describe the board-specific SMC wake reasons and USB-PD sleep power-state transitions for J413 (MacBook Air 13" M2, T8112), matching what J313 already carries:

  • &smc: add apple,wake-reasons and apple,wake-reason-names matching the J413 ADT smc-pmu (event_name-bitN) table (0:pwrbtn, 8:lid, 9:codec, 12:charger, 13:wifibt, 22:trackpadkeyboard, 40:acattach, 41:acdetach, 42:USB-C_plug, 43:USB2_plug, 44:USB2_wake, 45:aupo, 48:rtc). Without these properties, macsmc falls back to the T8140 table where lid (bit 8 vs 10), codec (bit 9 vs ipd_touch), charger (bit 12 vs 18), wifibt (bit 13 vs 23), and trackpadkeyboard (bit 22, unnamed) do not match J413.
  • &hpm0 and &hpm1: add apple,sleep-ssps so tipd transitions both CD321x port controllers to system power state S3 before firmware-driven sleep and back to S0 on resume.

Tested

Tested: J413 (be2352ef3, MacBook Air 13" M2 / T8112, macOS 27.2 stub 26B123): PASS.

Risk: two-way · J413 only; adds board-specific SMC wake-reason names and USB-PD apple,sleep-ssps matching J313

…ssps

Without apple,wake-reasons, macsmc numbers the J413 wake record with
the T8140 fallback table, which does not match this board: lid is bit 8
(not 10), codec is bit 9 (not ipd_touch), charger is bit 12 (not 18),
wifibt is bit 13 (not 23), and trackpadkeyboard is bit 22 (unnamed in
the fallback). Describe the bits as the J413 ADT smc-pmu node numbers
them (event_name-bitN).

Also enable apple,sleep-ssps on the two USB-C CD321x port controllers
(hpm0 and hpm1) so tipd switches them to system power state S3 around a
firmware-driven sleep and back to S0 after resume, matching J313.

Signed-off-by: Satya Benson <satya@benson.earth>
@satchlj
satchlj requested review from a team as code owners November 28, 2026 04:12
@satchlj
satchlj requested review from Acelogic and maralcbr November 28, 2026 04:12

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Verdict: MERGE at be2352ef

Blockers: none in code (note: queued dt-checks, host-tests, pr-text, and readiness CI jobs must finish green before merge).

Checked: no Apple material, no AI attribution, no chip/board/firmware gates, no cmdline hacks, human Signed-off-by, 13-element apple,wake-reasons and apple,wake-reason-names array parity matching J413 ADT smc-pmu, apple,sleep-ssps on &hpm0/&hpm1, exact-head J413 hardware row PASS (DT readback + 2/2 s2idle cycles, 0 failed units).

Evidence
  • Inspected arch/arm64/boot/dts/apple/t8112-j413.dts:
    • &smc adds 13 wake-reason bits (0 8 9 12 13 22 40 41 42 43 44 45 48) paired 1:1 with 13 names matching the J413 ADT smc-pmu table.
    • &hpm0 and &hpm1 add apple,sleep-ssps matching J313.
  • Exact-head hardware row on J413 (be2352ef3, T8112 MacBook Air 13" M2): 0 dtc warnings, /proc/device-tree properties verified, 2/2 rtcwake -d rtc1 -m freeze -s 5 s2idle cycles PASS with 0 failed units.
  • CI at be2352ef: dt-checks, host-tests, pr-text, readiness currently queued.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merge-train status at be2352ef: App-approved, J413 row at this head. It's J413 board DT only. Waiting for dt-checks and host-tests. @DjDeveloperr code-owner ping (6-point rule, point 6): merge earliest 16:55 AEDT once CI is green. Revert: git revert -m 1 <merge>.

@github-actions github-actions Bot added area:platform Area from CODEOWNERS (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 28, 2026
@github-actions

Copy link
Copy Markdown

Merge readiness at be2352ef: not ready yet

Check Detail
CI at head ok 3 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok in the PR body at be2352ef
Conflicts ok none
PR text ok Risk: two-way · J413 only; adds board-specific SMC wake-reason names and USB-PD apple,sleep-ssps matching J313

Areas: area:platform

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merging under the 6-point rule (Ryan 09:29, permanent), at be2352ef. (1) The review App approved at this head. (2) Full CI is green. (3/4) Rows: J413;board-DT-only. (5) There's no blocking review. (6) Dj was pinged here 66 min ago with no objection. Revert: git revert -m 1 <merge>.

@RyanTheTide
RyanTheTide merged commit 933f822 into aurora-silicon:main Nov 28, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:platform Area from CODEOWNERS (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants