Skip to content

arm64: dts: apple: t8112: describe the auxiliary PMU on every M2 - #3341

Merged
RyanTheTide merged 1 commit into
mainfrom
fix/dt-parity-t8112-aux-pmu
Nov 27, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
fix/dt-parity-t8112-aux-pmu

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

What: Describe the M2's auxiliary PMU (nub-spmi1, USID 0xe, read-only spmi-nvmem) once in t8112.dtsi, so every T8112 Mac binds apple-spmi + apple-spmi-nvmem as the J413 already does. Found by the fleet DT-parity sweep (ADT -> main DT -> bound drivers).
Tested: J473 (Mac mini M2) at 9f865da: the trial DTB equals this branch's t8112-j473-fw27.dtb (semantic diff: none); apple-spmi binds nub-spmi1, apple-spmi-nvmem binds pmic@e (read-only nvmem), s2idle 1/1, 0 failed units, 0 SELinux denials, 0 new kernel errors
Risk: two-way door · M2 (J413, J415, J473, J493); J413 is semantically unchanged
Not yet: J415 and J493 (no lab Mac; same SoC block, J413 + J473 stand in)

Details
  • The J413 and J473 ADTs both list /arm-io/nub-spmi1/pmu-aux at USID 0xe. Only t8112-j413.dts described the bus and its PMIC; t8112-j415/j473/j493-peripherals.dtsi carried a disabled copy.
  • The node moves to t8112.dtsi (enabled by default) and the four board copies go. Per-board semantic DTB diff: J413 none (its status = "okay" becomes implicit), J415/J473/J493 nub-spmi1 and pmic@e enabled.
  • The PMIC stays read-only; nothing writes the PMU.
Evidence

Row: guarded one-shot of the J473's own production Stage 2 with only its board DTB replaced (aura head and the compressed U-Boot stream byte-identical), fleet89 kernel (7.3.0-aurora-fleet89, main 645f7cd).

baseline (production) trial (this DTB)
/soc/spmi@23d794000 disabled okay, apple-spmi
/soc/spmi@23d794000/pmic@e disabled okay, apple-spmi-nvmem, nvmem spmi_nvmem1 read-only
s2idle (RTC wake, 15 s) 1/1 1/1
failed units / AVC / deferred probes 0 / 0 / 0 0 / 0 / 0
kernel error lines (-p 3) 23 22, none new

Back on production afterwards: saved fleet89 entry, no next entry, Stage 2 hash unchanged, Enforcing, 0 failed units.

Checks on this branch vs main ef29ad1: checkpatch --strict clean; make dtbs clean; dtschema CHECK_DTBS on every T8112 DTB: 0 new warnings; apple-adt-coverage.py (J413 MISSING 0), apple-dart-pd-check.py, apple-sibling-drift.py: 0 new findings.

The nub-spmi1 bus carries the auxiliary PMU (ADT /arm-io/nub-spmi1/pmu-aux,
USID 0xe) on every T8112 Mac: the J413 and J473 ADTs both list it. Only
the J413 described it; the J415, J473 and J493 kept a disabled copy.

Describe the bus and its read-only spmi-nvmem PMIC once in t8112.dtsi and
drop the per-board copies, so every M2 binds apple-spmi and
apple-spmi-nvmem the way the J413 already does.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide
RyanTheTide requested review from a team as code owners November 27, 2026 03:39
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Non-author review at 9f865da2 (merge train). Verdict: MERGE once CI is green.

Blockers: none.

Checked

  • t8112.dtsi now describes nub_spmi1 and the read-only apple,vale-pmic/apple,spmi-nvmem at USID 0xe once, and the four per-board copies are gone. J413 is semantically unchanged; it already had this enabled. J415, J473 and J493 go from a disabled copy to bound. There are no board or chip gates; the change comes from the ADT /arm-io/nub-spmi1/pmu-aux.
  • The node is read-only, so the nvmem can't write to the PMU. On a board without the PMU, the worst case would be a failed probe, not a hang.
  • The row at the head is a J473 guarded one-shot with the branch's t8112-j473-fw27.dtb: apple-spmi and apple-spmi-nvmem bind, s2idle 1/1, 0 failed units, no new kernel errors, and the Mac was restored.

Follow-up (non-blocking): the commit message cites the J413 and J473 ADTs. J415 (M2 Air 15) and J493 (M2 MBP 13) have no ADT or row of ours. J473 stands in as the same SoC, and both a laptop and a desktop board have the node. A J415/J493 ADT check from an IPSW would close it.

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Verdict: HOLD at 9f865da20d40

Blocker

  1. arch/arm64/boot/dts/apple/t8112.dtsi enables the auxiliary PMIC provider on J415, J473 and J493. At this head, drivers/nvmem/apple-spmi-nvmem.c:52 still registers a raw register-write callback. The DT read-only property sets the initial NVMEM policy, which the existing sysfs interface can change. Land #3299 first to enforce read-only sysfs access, then confirm that access policy and PMIC binding on the J473 row using the updated kernel and DTB.

Checked: The PMIC remains in shared T8112 data at USID 0xe. The posted J473 row establishes provider binding and suspend/resume. #3299 has a regression test for the write restriction missing at this head.

@RyanTheTide RyanTheTide added the hold Held on purpose; skipped by the PR digest label Nov 27, 2026
@RyanTheTide
RyanTheTide merged commit e9fd1d9 into main Nov 27, 2026
4 of 6 checks passed
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Revert requested by the blocking review above (the sysfs NVMEM policy can still re-enable writes): #3347. This change will reland on top of #3299 with a J473 row on a kernel carrying it.

@RyanTheTide
RyanTheTide deleted the fix/dt-parity-t8112-aux-pmu branch November 27, 2026 13:21
RyanTheTide added a commit that referenced this pull request Nov 27, 2026
…pmu-v2

arm64: dts: apple: t8112: describe the auxiliary PMU on every M2 (reland of #3341)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hold Held on purpose; skipped by the PR digest

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant