Repository navigation
arm64: dts: apple: t600x: describe the PMU RTC alarm - #1219
Closed
RyanTheTide wants to merge 1 commit into
Closed
RyanTheTide wants to merge 1 commit into
RyanTheTide wants to merge 1 commit into
Conversation
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
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Device tree half of the PMU RTC wake alarm for M1 Pro, Max and Ultra (t600x). The binding, the
apple-pmuRTC 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:apple,t6000-pmu-rtcchild on SPMI interrupt 2 with the existingrtc_offsetcell andwakeup-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
dt_binding_checkforrtc/apple,j700-pmu-rtc.yaml: clean.#interrupt-cells/interrupt-controller/interrupt-parent/interruptslines and the newrtcnode. 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