Skip to content

arm64: dts: apple: t600x: describe the PMU RTC alarm - #1219

Closed
RyanTheTide wants to merge 1 commit into
integration/aurorafrom
rtc/t600x-pmu-alarm-int
Closed

RyanTheTide wants to merge 1 commit into
integration/aurorafrom
rtc/t600x-pmu-alarm-int

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

Device tree half of the PMU RTC wake alarm for M1 Pro, Max and Ultra (t600x). The binding, the apple-pmu RTC driver (including the t6000 Maverick register table) and the nvmem child populate landed in #1151 with the t8112 DT. This adds the matching t600x DT:

  • the nub SPMI controller becomes an interrupt controller (its AIC line), and the Maverick PMIC gets the apple,t6000-pmu-rtc child on SPMI interrupt 2 with the existing rtc_offset cell and wakeup-source;
  • rtc0 = &smc_rtc; rtc1 = &pmu_rtc; in the six t600x board files, so the SMC clock keeps rtc0 and the alarm is rtc1 (same layout as t8112 and the Neo). The t602x boards share the board dtsi files but not this PMU, so the aliases are not in the shared dtsi.

Before this, the M1 Pro has only rtc0 (macsmc-rtc, no wakealarm), so rtcwake, scheduled wake and suspend-then-wake cannot work.

Cherry-pick of 0f365c9 (branch rtc/t600x-pmu-alarm, written 11-08 for the M1 Pro follow-up of #1151) onto integration/aurora f611d92; applies cleanly.

Checks

  • The live M1 Pro's firmware device tree agrees with the DT: nub SPMI at 0x2920a1300 on AIC 636, Maverick PMU at USID 0xf with RTC interrupt 2, and the RTC registers match the driver's maverick table.
  • CHECK_DTBS on all 137 Apple DTBs, base vs head (apple-dt-check.sh): 0 new warnings, 0 removed. dt_binding_check for rtc/apple,j700-pmu-rtc.yaml: clean.
  • t6000-j316s.dtb with phandles masked differs from integration only by the two aliases, the SPMI #interrupt-cells/interrupt-controller/interrupt-parent/interrupts lines and the new rtc node. The integration j316s DTB builds byte-identical to the one the packaged kernel-aurora 7.3.0-25 DTB set ships (b480989d).

Hardware (M1 Pro J316s)

Pending: one-shot Stage 2 trial with the live packaged boot.bin and only t6000-j316s.dtb swapped (never committed). Receipts will follow in a comment.

Delivery note

Ref Macs boot the DTBs that Stage 2 carries, and those come from the kernel-aurora package's DTB set. Users only get this once kernel-aurora is rebuilt from an integration tip that includes this PR, because the packaged DTBs lag integration.

🤖 Generated with Claude Code

Make the nub SPMI controller an interrupt controller and add the
Maverick PMU RTC under the PMIC, so rtcwake can wake M1 Pro, Max and
Ultra systems from s2idle. The PMU raises SPMI interrupt 2 for the
alarm.

Keep rtc0 on the SMC clock and give the alarm rtc1 on every t600x
board. The t602x boards share the board files but not this PMU, so
the aliases go in the t600x board files.

Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
Assisted-by: LLM
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Superseded by #1225. On the M1 Pro, the DT alone broke the nub SPMI bus: the driver hard-codes the RX FIFO notify interrupt at 256, but t6000 uses 192. #1225 adds the driver fix before the DT.

@RyanTheTide RyanTheTide closed this Nov 8, 2026
@RyanTheTide
RyanTheTide deleted the rtc/t600x-pmu-alarm-int branch November 8, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant