Skip to content

arm64: dts: apple: t8112: describe the auxiliary PMU on every M2 (reland of #3341) - #3403

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

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

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

What: Reland #3341 (reverted by #3347): describe the auxiliary PMU on every M2 (T8112). Enable nub-spmi1 with its read-only Vale apple,spmi-nvmem PMIC at USID 0xe in t8112.dtsi, and drop the per-board copies (the J413 one plus the disabled ones on J415/J473/J493).
Why: REVIEW6's blocker on #3341 was that DT read-only is only the initial policy and root could flip force_ro. #3299 (merged fcb1242) makes the provider's sysfs file read-only for good. This reland is #3341's commit, unchanged, on top of it.
Tested: J473 with kernel 7.3.0-aurora-dtp2 (main fcb1242 incl. #3299 + this commit) as a guarded one-shot, plus a DT-only aura-try of the production Stage 2 with this node: apple-spmi binds 23d794000.spmi and apple-spmi-nvmem binds 1-0e. #3299 policy on both PMIC providers, as REVIEW6 asked: the nvmem file is 0400, force_ro is 0444, a store to it is refused, a 16-byte read works. No PMIC register is ever written. FCHECK PASS. J473 then ran 12 of 12 clean reboot cycles with this DT and kernel (6 of them with s2idle before the reboot), and 24 of 24 overall on that kernel. checkpatch --strict clean.
Risk: two-way door · every T8112 Mac (J413, J415, J473, J493); read-only provider, no consumers beyond the J413's existing one.

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 14:51
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Non-author merge-train review at 3d3ab34c: MERGE once CI is green. This lands #3341's commit unchanged on top of #3299 (fcb12427). #3299 keeps the Apple SPMI PMIC's sysfs nvmem file read-only for good, which is the REVIEW6 blocker I missed when I first merged #3341 and reverted it in #3347. The J473 row at this head shows the policy holding on both PMIC providers: the file is 0400, force_ro is 0444, a store is refused, and reads work. apple-spmi and apple-spmi-nvmem bind. The DT is the same as the reviewed #3341: one shared node in t8112.dtsi, read-only, and the four board copies dropped. The J415/J493 per-board ADT check is still a follow-up.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

The J415/J493 per-board ADT check (device trees of the macOS 26.2 IPSW, one per board; J413 and J473 also from their live ADTs):

Board Model /arm-io/nub-spmi1/pmu-aux compatible USID
J413 Mac14,2 pmu,spmi, pmu,vale 0xe
J415 Mac14,15 pmu,spmi, pmu,vale 0xe
J473 Mac14,3 pmu,spmi, pmu,vale 0xe
J493 Mac14,7 pmu,spmi, pmu,vale 0xe

All four T8112 boards have the same Vale PMIC at USID 0xe on nub-spmi1, so the shared t8112.dtsi node (apple,vale-pmic, reg <0xe SPMI_USID>, read-only) matches each of them.

@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.

The stable patch ID matches #3341, and the landing head includes the merged #3299 policy change. I compiled six exact-head T8112 DTBs using the tree-compatible DTC and saw zero scoped SPMI NVMEM diagnostics. One shared Vale node replaces the previous per-board copies. The four-board ADT table confirms identical USID wiring, and the J473 results demonstrate the new provider binds, NVMEM is 0400, force_ro is 0444 and its store is refused. This resolves my #3341 safety blocker. Code approved. Hold for hosted CI and the normal regression and readiness requirements.

@github-actions github-actions Bot added area:platform Area from CODEOWNERS (bot) blast:m2 Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (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 27, 2026
@github-actions

Copy link
Copy Markdown

Merge readiness at 3d3ab34c: not ready yet

Check Detail
CI at head no failing: pr-text / pr-text
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok comment at 3d3ab34c
Conflicts ok none
PR text ok Risk: two-way · every T8112 Mac (J413, J415, J473, J493); read-only provider, no consumers beyond the J413's existing one.

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 Author

@DjDeveloperr code-owner ping (interim ruleset-gap rule, point 6): ready at 3d3ab34c once CI is green. It has the review App's approval from a lane other than the author, my non-author review, and a row at this head with #3299's read-only policy checked. It's SoC-specific DT: every other family's DTBs are byte-identical, so there's no runtime change for them. If you have no objection, I'll merge with the documented rationale after 04:12 AEDT and CI green. Revert: git revert -m 1 <merge>.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging under the interim ruleset-gap rule (COMMON-RULES 01:54), at 3d3ab34c.

  1. The review App approved at this head, from a lane other than the author. On arm64: dts: apple: t8132: describe the auxiliary PMU #3366 its later approval supersedes its own earlier request.
  2. CI is green (dt-checks, host-tests, pr-text).
  3. The row at this head binds the PMIC read-only, with nvmem: keep the Apple SPMI PMIC's sysfs file read-only #3299's policy verified (0400, force_ro 0444, store refused).
  4. SoC-specific DT: other families' DTBs are byte-identical, so they have no runtime change.
  5. There's no open blocking review.
  6. Dj was pinged here at 03:07 AEDT, more than an hour ago, with no objection.

Revert: git revert -m 1 <merge>.

@RyanTheTide
RyanTheTide merged commit aa3351b into main Nov 27, 2026
4 of 8 checks passed
@RyanTheTide
RyanTheTide deleted the fix/dt-parity-t8112-aux-pmu-v2 branch November 27, 2026 17:13
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) blast:m2 Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (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.

1 participant