Skip to content

arm64: dts: apple: t8122: describe the auxiliary PMU - #3402

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

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

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

What: Describe the M3 (T8122) auxiliary PMU: enable nub-spmi1 and add its Vale PMIC at USID 0xe as a read-only apple,spmi-nvmem provider. It is the same PMIC the T8112 boards describe on their nub-spmi1.
Why: every T8122 device tree (J613, J615, J504, J433, J434) lists /arm-io/nub-spmi1/pmu-aux ("pmu,vale", USID 0xe), and the J615's live ADT does too. Linux had the bus disabled with no child. #3299 (merged) keeps the provider's sysfs file read-only.
Tested: J615 with kernel 7.3.0-aurora-dtp2 (main fcb1242 incl. #3299) as a guarded one-shot, plus a DT-only aura-try of the production Stage 2 with this node: apple-spmi binds 2e4794000.spmi and apple-spmi-nvmem binds 2-0e. The #3299 policy holds on both PMIC providers: 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, back to production after. Reboot safety: the same test kernel came back from 30 of 30 reboots on J473/J713 under the full trial sequence (see #3365). make CHECK_DTBS=y on every T8122 DTB: 0 new warnings; checkpatch --strict clean.
Risk: two-way door · every T8122 Mac; read-only provider, no consumers.

The nub-spmi1 bus carries the auxiliary PMU (ADT /arm-io/nub-spmi1/pmu-aux,
"pmu,vale", USID 0xe) on every T8122 Mac: the J613, J615, J504, J433 and
J434 device trees all list it. It is the same Vale PMIC that the T8112
boards describe on their nub-spmi1.

Enable the bus and describe the PMIC as a read-only spmi-nvmem provider,
as on T8112, so apple-spmi and apple-spmi-nvmem bind. The provider's
sysfs file is read-only since "nvmem: keep the Apple SPMI PMIC's sysfs
file read-only".

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: MERGE once CI is green. The aux PMU (/arm-io/nub-spmi1/pmu-aux, USID 0xe) is described once in the SoC dtsi as a read-only spmi-nvmem. With #3299 merged, the PMIC's sysfs file is 0400 and force_ro is 0444, so a store is refused; the row at this head checks that on both providers. apple-spmi and apple-spmi-nvmem bind, and a 16-byte read works. No PMIC register is ever written. There are no gates.

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

Verified #3299 is in this head. The PMIC is described once at the shared T8122 SPMI address, with the existing Vale schema and read-only property. I compiled seven exact-head T8122 DTBs, including the firmware variants, checked USID 0xe and read-only in each, and saw zero scoped SPMI NVMEM diagnostics. The reported J615 boot confirms both providers enforce the read-only policy. Code approved. Keep held for hosted CI and regression rows required for landing.

@github-actions github-actions Bot added area:platform Area from CODEOWNERS (bot) blast:m3 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (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 d011517a: not ready yet

Check Detail
CI at head running running: dt-checks, host-tests, 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 no no line with the head SHA d011517a, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · every T8122 Mac; read-only provider, no consumers.

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

  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 22e40e4 into main Nov 27, 2026
4 of 5 checks passed
@RyanTheTide
RyanTheTide deleted the fix/dt-parity-t8122-aux-pmu 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:m3 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (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