Repository navigation
arm64: dts: apple: t8112-j413: add SMC wake reasons and USB-PD sleep-ssps - #3470
RyanTheTide merged 1 commit into
Conversation
…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>
There was a problem hiding this comment.
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:&smcadds 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 ADTsmc-pmutable.&hpm0and&hpm1addapple,sleep-sspsmatching J313.
- Exact-head hardware row on J413 (
be2352ef3, T8112 MacBook Air 13" M2): 0dtcwarnings,/proc/device-treeproperties verified, 2/2rtcwake -d rtc1 -m freeze -s 5s2idle cycles PASS with 0 failed units. - CI at
be2352ef:dt-checks,host-tests,pr-text,readinesscurrently queued.
|
Merge-train status at |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Merging under the 6-point rule (Ryan 09:29, permanent), at |
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: addapple,wake-reasonsandapple,wake-reason-namesmatching the J413 ADTsmc-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,macsmcfalls back to the T8140 table where lid (bit 8 vs 10), codec (bit 9 vsipd_touch), charger (bit 12 vs 18), wifibt (bit 13 vs 23), and trackpadkeyboard (bit 22, unnamed) do not match J413.&hpm0and&hpm1: addapple,sleep-sspssotipdtransitions 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 stub26B123): PASS.scripts/checkpatch.pl --strict: 0 errors, 0 warnings, 0 checks.apple/t8112-j413.dtbandapple/t8112-j413-fw27.dtbcompile with 0dtcwarnings.auraStage 2 on J413 (7.3.0-1-up5-ARCH): verified/proc/device-treeexposes the exactapple,wake-reasons,apple,wake-reason-names, andhpm0/hpm1apple,sleep-sspsproperties.rtcwake -d rtc1 -m freeze -s 5s2idle cycles; eDP display, live MTP keyboard/trackpad, andsddmstayed healthy with 0 failed units.S2R) validation on J413 depends on T8112 S2R (T8112 (Apple M2 / J413) suspend-to-RAM support: coordination before opening a PR #3371) + live-MTP DART (iommu: apple-dart: keep a live MTP through a firmware-driven sleep #3425) and is being tested separately.Risk: two-way · J413 only; adds board-specific SMC wake-reason names and USB-PD
apple,sleep-sspsmatching J313