Repository navigation
arm64: dts: apple: t600x: enable the Monaco CPU regulator PMICs read-only - #3432
Conversation
…only Every T600x Mac has one CLVR SPMI bus per CPU cluster with a Monaco CPU-cluster regulator PMIC at USID 0xf (ADT /arm-io/clvr-spmiN/ spmi-monacoN): clvr-spmi0..2 on T6000 (J314s, J316s), clvr-spmi0..4 on T6001 (J314c, J316c, J375c) and on each T6002 die (J375d). The device trees already describe all of them, but disabled, so neither apple-spmi nor apple-spmi-nvmem binds. Enable the buses and their Monaco PMICs as read-only spmi-nvmem providers, as the T8112/T8122/T8132 auxiliary PMUs are. The T6001 and T6002 Monaco nodes lacked "read-only"; add it so no Monaco register is writable from Linux. Drop the J316s board copies of the T6000 Monaco nodes: they repeated the shared ones and would keep them disabled. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
There was a problem hiding this comment.
Verdict: HOLD for hosted DT and host checks. The DTS change is approved, with T6001/T6002 hardware qualification still due or to be dispositioned by the landing owner.
Checked: Every enabled Monaco USID has read-only, including the T6002 second-die nodes. Removing the J316s overrides leaves the common T6000 definitions authoritative. The existing Monaco schema inherits the NVMEM binding. The NVMEM core consumes the device's read-only property, and this provider separately disables sysfs writes. The author reports no new schema warnings and a restored J316s read-safety and s2idle row. T6001 and T6002 are covered by the DT build, with no direct hardware row.
|
T6001/T6002 disposition (author): we have no M1 Max or M1 Ultra in the lab or the fleet, so there is no direct hardware row. What carries them:
If the landing owner wants hardware for T6001/T6002 first, I'll split this: T6000 lands now and T6001/T6002 waits in a separate PR for a community M1 Max/Ultra row. Otherwise it lands as is once hosted CI is green. |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Hardware row at d48ea67: J316s (M1 Pro) PASS, tied to this head.
|
|
Non-author merge-train review at @DjDeveloperr code-owner ping (6-point rule, point 6): I'll merge after 14:03 AEDT if there's no objection. Revert: |
|
Merging under the 6-point rule (Ryan 09:29, permanent), at |
What: Enable the CLVR SPMI buses and their Monaco CPU-cluster regulator PMICs (USID 0xf) on every T600x Mac as read-only
apple,spmi-nvmemproviders: clvr-spmi0..2 on T6000 (J314s, J316s), clvr-spmi0..4 on T6001 (J314c, J316c, J375c) and on both T6002 dies (J375d). Add the missingread-onlyto the T6001/T6002 Monaco nodes, and drop the J316s board copies of the shared T6000 nodes (they repeated them and would keep them disabled).Why: the device trees of all seven T600x boards list
/arm-io/clvr-spmiN/spmi-monacoNat USID 0xf (3 buses on T6000, 5 on T6001/T6002), and the J316s live ADT does too. Main described them but left them disabled, so nothing bound. The T6001/T6002 Monaco nodes had noread-only, so enabling them as they were would have exposed writable regulator registers. #3299 keeps the provider's sysfs file read-only.Tested: J316s (M1 Pro), fleet89 kernel, DT-only aura-try one-shot of the production Stage 2 with only these nodes enabled (aura head, U-Boot and trailer byte-identical; trial guard + dead-man armed).
apple-spmibinds 28e501100/28e509100/28e511100.spmi andapple-spmi-nvmembinds0-0f,1-0f,2-0f: nvmem files 0400,force_ro=1. Read-safety row (no PMIC write anywhere): the 10-byte identity register read twice is stable on all three, 16-byte reads over 0x0-0xff give 0 short reads, and a full 64 KiB sweep of each completes with no EIO in ~0.26 s. cpufreq under all-core load reaches the same 2064/3228/3228 MHz before and after the reads and sweeps, and drops back at idle. One s2idle (rtc1) PASS, 0 fault lines, 0 AVC, 0 deferred, production row PASS before and after, restored to production.make CHECK_DTBS=yon all six T600x DTBs: 0 new warnings; the DTB diffs are only the status and read-only lines. checkpatch clean. T6001/T6002 are not lab-tested (no M1 Max/Ultra in the lab); the nodes are the same controller and PMIC at the ADT's addresses.Risk: two-way door · every T600x Mac; read-only providers, no consumers.