Repository navigation
arm64: dts: apple: t8132: describe the auxiliary PMU - #3366
Conversation
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>
|
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. |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
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.
|
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. |
|
Non-author merge-train review: MERGE once CI is green. The aux PMU ( |
There was a problem hiding this comment.
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.
|
@DjDeveloperr code-owner ping (interim ruleset-gap rule, point 6): ready at |
|
Merging under the interim ruleset-gap rule (COMMON-RULES 01:54), at
Revert: |
What: Describe the M4 (T8132) auxiliary PMU: enable nub-spmi1 and add its Club PMIC at USID 0xe as a read-only
apple,spmi-nvmemprovider, plus theapple,club-pmicbinding 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-spmibinds388614000.spmiandapple-spmi-nvmembinds2-0e(spmi_nvmem1). #3299 policy checked on both PMIC providers: the nvmem file is 0400,force_rois 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 nopower-domains, so the J713's unmanagedps_nub_spmi1doesn't block it. nub-spmi-a0 (MagSafe PD) works the same way.make CHECK_DTBS=yon every T8132 DTB: 0 new warnings;dt_binding_checkfor the nvmem schema clean; checkpatch --strict clean.Risk: two-way door · every T8132 Mac; read-only provider, no consumers.