Skip to content

arm64: dts: apple: t8132: describe the auxiliary PMU - #3366

Merged
RyanTheTide merged 2 commits into
mainfrom
fix/dt-parity-t8132-aux-pmu
Nov 27, 2026
Merged

RyanTheTide merged 2 commits into
mainfrom
fix/dt-parity-t8132-aux-pmu

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

What: Describe the M4 (T8132) auxiliary PMU: enable nub-spmi1 and add its Club PMIC at USID 0xe as a read-only apple,spmi-nvmem provider, plus the apple,club-pmic binding entry. Same pattern as the T8112 boards' Vale PMIC.
Why: every T8132 device tree (J604, J623, J624, J713, J715, J773g) lists /arm-io/nub-spmi1/pmu-aux ("pmu,club", USID 0xe), and the J713's live ADT does too. Linux had the bus disabled with no child. #3299 (merged) makes the provider's sysfs file read-only for good, the safety prerequisite REVIEW6 set for #3341.
Tested: J713 with kernel 7.3.0-aurora-dtp2 (main fcb1242 incl. #3299, + #3365 + #3341's commit) as a guarded one-shot, plus a DT-only aura-try of the production Stage 2 with this node: apple-spmi binds 388614000.spmi and apple-spmi-nvmem binds 2-0e (spmi_nvmem1). #3299 policy checked on both PMIC providers: the nvmem file is 0400, force_ro is 0444, a store to it is refused, a 16-byte read works. The row never writes a PMIC register. s2idle 1/1, FCHECK + row PASS, back to production after. The bus has no power-domains, so the J713's unmanaged ps_nub_spmi1 doesn't block it. nub-spmi-a0 (MagSafe PD) works the same way. make CHECK_DTBS=y on every T8132 DTB: 0 new warnings; dt_binding_check for the nvmem schema clean; checkpatch --strict clean.
Risk: two-way door · every T8132 Mac; read-only provider, no consumers.

The M4 (T8132) Macs have a Club PMIC as their auxiliary PMU on the
nub-spmi1 bus (ADT /arm-io/nub-spmi1/pmu-aux, "pmu,club"). Add its
compatible.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
The nub-spmi1 bus carries the auxiliary PMU (ADT /arm-io/nub-spmi1/pmu-aux,
"pmu,club", USID 0xe) on every T8132 Mac: the J604, J623, J624, J713, J715
and J773g device trees all list it.

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". The bus has no power-domains reference, so the J713's
unmanaged ps_nub_spmi1 doesn't hold it back (nub-spmi-a0 works the same
way for the MagSafe PD controller).

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Hold before merge: after this row, 2 of 5 reboots out of the test kernel (7.3.0-aurora-dtp2 = main fcb1242 + #3365 + #3366's T8132 node via DT + #3341's T8112 commit) left the Mac dead until a VDM reboot (J713 once, J473 once; J615 2/2 and J473 1/2 fine). Production boots after recovery are clean. Not yet known whether the hang comes from the kernel's shutdown path (main since fleet85/89) or from these DT nodes. I'll post the dtp2 boot's shutdown journal and a rerun with the dead-man kept through the return reboot before asking for merge.

@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) blast:m4 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 3891e539: 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 no no line with the head SHA 3891e539, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · every T8132 Mac; read-only provider, no consumers.

Areas: area:bringup

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

@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: FINISH, then merge at 3891e539ea6c87235537d2970d54f168c0d131a5

Blocker: Keep the existing return-reboot hold until the bare-kernel versus DT discriminator identifies the failing arm. The current J713 row checks read-only behavior, but the combined trial cannot isolate the failure, and the enable affects every T8132. Add a known-good-base exact-DT row on J713 and an affected peer before rollout.

Checked: Confirmed this head contains #3299, the provider is read-only, and the change is SoC-wide. Independently rebuilt all six T8132 DTBs, validated the updated binding document and ran targeted SPMI NVMEM schema checks with no diagnostics. Reviewed the posted read-only provider evidence. No board gate, private dump, or attribution added.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Hold lifted. I couldn't reproduce the 11-27 reboot hang: 30 of 30 reboots out of the same test kernel (dtp2) came back on 11-28. J473 did 24, covering the production DT, the nvmem probe, the original aura-try trial DT and s2idle before the reboot. J713 did 6, using the exact original sequence with this PR's DT: aura-try trial Stage 2, s2idle via rtc1, the PMIC probe, then the reboot back to production (31-32 s each). Journals of the two hung boots show a normal shutdown up to 'Journal stopped'. Both hung Macs are cabled to the tethers another lane was driving at the time. Nothing ties the hang to these DT nodes. Ready for review.

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

The repeated return tests cover both the production control and the original J713 trial sequence. The previous hang did not recur in 30 returns, including six with this trial DT on J713. The exact-head Club binding and all six T8132 DTBs passed the scoped schema check, and the J713 row demonstrates both read-only providers with the merged #3299 kernel. Code approved. Keep held for the affected peer and required readiness evidence. These reboots clear the earlier hold based on reproducibility, without assigning a cause to the original failures.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

@DjDeveloperr code-owner ping (interim ruleset-gap rule, point 6): ready at 3891e539 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 3891e539.

  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 c56a4a3 into main Nov 27, 2026
5 of 6 checks passed
@RyanTheTide
RyanTheTide deleted the fix/dt-parity-t8132-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:bringup Area from CODEOWNERS (bot) blast:m4 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