Skip to content

arm64: dts: apple: t600x: enable the Monaco CPU regulator PMICs read-only - #3432

Merged
RyanTheTide merged 1 commit into
mainfrom
fix/dt-parity-t600x-monaco
Nov 28, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
fix/dt-parity-t600x-monaco

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

What: Enable the CLVR SPMI buses and their Monaco CPU-cluster regulator PMICs (USID 0xf) on every T600x Mac as read-only apple,spmi-nvmem providers: clvr-spmi0..2 on T6000 (J314s, J316s), clvr-spmi0..4 on T6001 (J314c, J316c, J375c) and on both T6002 dies (J375d). Add the missing read-only to 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-monacoN at 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 no read-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-spmi binds 28e501100/28e509100/28e511100.spmi and apple-spmi-nvmem binds 0-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=y on 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.

…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>
@RyanTheTide
RyanTheTide requested review from a team as code owners November 27, 2026 19:44

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

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

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:

  • All five T6001/T6002 device trees (J314c, J316c, J375c, J375d) list /arm-io/clvr-spmi0..4/spmi-monaco0..4 at USID 0xf, the same as J314s/J316s.
  • The controller is the same apple,t6000-spmi block and the PMIC is the same Monaco part as on the J316s, where the row covered bind, identity reads, full 64 KiB sweeps, DVFS under load and s2idle.
  • Every Monaco node is read-only, which closes the one real hazard (a writable regulator).

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.

@github-actions github-actions Bot added area:platform Area from CODEOWNERS (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

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Merge readiness at d48ea671: 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 ok comment at d48ea671
Conflicts ok not computed yet
PR text ok Risk: two-way · every T600x Mac; read-only providers, 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

Hardware row at d48ea67: J316s (M1 Pro) PASS, tied to this head.

  • Row: DT-only one-shot on the J316s, 2026-11-28 06:33-06:43 AEDT, fleet89 kernel, live Stage 2 a2931c62 with only the J316s DTB patched. apple-spmi bound all 3 CLVR buses, apple-spmi-nvmem bound 0-0f/1-0f/2-0f (mode 0400, force_ro=1). Identity reads were stable, the full 64 KiB sweep on each bus was clean (no EIO), cpufreq under load matched before and after, s2idle (rtc1) passed, 0 faults/AVCs/deferred probes. Production reboot afterwards returned and was verified.
  • Tie to d48ea67: I decompiled the three spmi@28e5{01,09,11}100 subtrees from the trial FDT and from the J316s DTB built at this head and diffed them (phandles masked). They match except for an explicit status = "okay" on each pmic@f in the trial. At d48ea67 that line is gone because the node simply has no status, which also means okay. Same compatibles, reg, read-only, interrupts and bus enables.
  • T6001/T6002: see my disposition above. No M1 Max/Ultra in the lab; the second-die nodes are the same block with read-only. The landing owner decides.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Non-author merge-train review at d48ea671: MERGE. The three CLVR SPMI buses and their Monaco CPU-regulator PMICs (USID 0xf) are enabled on T600x as read-only spmi-nvmem. With #3299 merged, the nvmem files are 0400 and force_ro is 1, so no write path exists. The J316s DT-only one-shot at this head (trial guard and dead-man armed) shows all three bind. The identity register reads back stable twice, and 16-byte reads over 0x0–0xff give 0 short reads, with no PMIC write anywhere. Reads happen only when root reads the nvmem file, not at probe. It's T600x DT only, so other families are unchanged.

@DjDeveloperr code-owner ping (6-point rule, point 6): I'll merge after 14:03 AEDT if there's no objection. Revert: git revert -m 1 <merge>.

@github-actions github-actions Bot removed the needs-hw-row No hardware row at the PR head (bot) label Nov 28, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging under the 6-point rule (Ryan 09:29, permanent), at d48ea671. (1) The review App approved at this head. (2) CI is green. (3) J316s DT-only one-shot at this head: three PMICs bind read-only (0400, force_ro=1) with stable reads and no writes. (4) T600x DT only, so other families are unchanged. (5) There's no blocking review. (6) Dj was pinged here at 12:58 AEDT, more than an hour ago, with no objection. Revert: git revert -m 1 <merge>.

@RyanTheTide
RyanTheTide merged commit 34018ff into main Nov 28, 2026
4 of 6 checks passed
@RyanTheTide
RyanTheTide deleted the fix/dt-parity-t600x-monaco branch November 28, 2026 03:06
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) 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