Repository navigation
arm64: dts: apple: t8152-j873g: enable Woodcote PMU RTC and SMC RTC - #3938
Conversation
Allow apple-spmi-nvmem to call devm_of_platform_populate() on apple,woodcote-pmic (T8152 / M6 primary PMIC) so its PMU RTC child device probes. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
Add the OF-matched macsmc-rtc cell to apple_smc_telemetry_devs so T8152 boards that describe an apple,smc-rtc child node expose /dev/rtc* via CLKT and the PMU rtc_offset NVMEM cell. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
Document apple,t8152-pmu-rtc as compatible with apple,t6041-pmu-rtc for the Woodcote PMU RTC on T8152 (M6) boards, which shares the exact 0x2000 register layout and 0x2100 48-bit rtc_offset scratchpad. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
…and SMC RTC Describe the nub_spmi0 AIC interrupt (IRQ 675 per the J873g ADT) as an interrupt controller, add the Woodcote PMU RTC child node (apple,t8152-pmu-rtc, apple,t6041-pmu-rtc, SPMI IRQ 2, wakeup-source) and 48-bit rtc_offset NVMEM cell at 0x2100 on pmic@e, and wire the apple,smc-rtc child node under smc. This exposes both /dev/rtc0 (apple-pmu-rtc with hardware wakealarm for timed s2idle wakes) and /dev/rtc1 (macsmc-rtc) on Mac mini M6 (J873g). Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
RyanTheTide
left a comment
There was a problem hiding this comment.
The driver registrations are scoped to the new Woodcote PMIC and the OF-described SMC RTC. The J873g receipt exercises both clocks, the PMU alarm interrupt, and three timed s2idle wakes. This covers the RTC change. The separate default-command-line boot gap remains in the nightly matrix.
satchlj
left a comment
There was a problem hiding this comment.
Verdict: APPROVE (cfa038589ade).
Reviewed all 4 commits (3d0a4948, 84d30c6c, 78211ba6, cfa03858):
drivers/nvmem/apple-spmi-nvmem.c: addingapple,woodcote-pmicto the child-population allowlist matches the existing PMIC family allowlist cleanly.drivers/mfd/macsmc.c: adding OF-matchedmacsmc-rtctoapple_smc_telemetry_devsscopes it strictly toapple,t8152-smcboards describing anapple,smc-rtcchild node.Documentation/devicetree/bindings/rtc/apple,j700-pmu-rtc.yaml+arch/arm64/boot/dts/apple/t8152-j873g.dts:apple,t8152-pmu-rtc(withapple,t6041-pmu-rtcfallback),nub_spmi0AIC IRQ 675 interrupt controller,rtc_offset@2100(0x6bytes),pmu_rtc(SPMI IRQ 2,wakeup-source), andapple,smc-rtcundersmcall follow the existing Abbey/Maverick PMU RTC andmacsmc-rtcwiring cleanly. (Note: trivial 1-line adjacency inapple,j700-pmu-rtc.yamlwith#3936whichever merges second.)- Exact-head J873g hardware verification (
boot_id=f4b808b9) covers both/dev/rtc0and/dev/rtc1UTC parity, awake alarm IRQ0 -> 1, and3/3rtcwake -d /dev/rtc0 -m freeze -s 5cycles with network and G18G Borealis intact. pr-textis green; let queuedapple-buildanddt-checkscomplete green before merging (note thathost-testscurrently has an unrelated failure onmaininapple-dcp/display-sleep-merge-tests.pydcp->ext272from#3815).
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Local CI receipt for Hosted apple-build, KUnit plan and host-tests have been queued since 14:09 UTC. dt-checks and pr-text are already green on this head. These are the same checks, run on the merge tree. Merge tree: Setup: an x86_64 build host cross-compiling for arm64 (clang 23.1.3,
Notes
Result: everything passes, with no new warnings against main. |
What: Enable both the Woodcote PMU RTC (
/dev/rtc0with hardwarewakealarm) and SMC RTC (/dev/rtc1) on Mac mini M6 (apple,j873g/ T8152):nvmem: apple-spmi-nvmem: addapple,woodcote-pmicto the child-population allowlist sodevm_of_platform_populate()probes itspmu_rtcchild.mfd: macsmc: register the OF-matchedmacsmc-rtccell inapple_smc_telemetry_devsforapple,t8152-smc.dt-bindings: rtc: apple,j700-pmu-rtc: documentapple,t8152-pmu-rtcwithapple,t6041-pmu-rtcfallback (Woodcote shares the exact0x2000register layout and0x210048-bitrtc_offsetscratchpad per the J873g ADT).arm64: dts: apple: t8152-j873g: wirenub_spmi0AIC IRQ 675 as an interrupt controller, addrtc_offset@2100andpmu_rtc(SPMI IRQ 2,wakeup-source) onpmic@e, and addapple,smc-rtcundersmc.Tested: Live J873g (Mac mini M6, 27.2
mBoot-20457.41.3stub,aura 1.0.0b19-gb226aae1) at exact headcfa038589ade,boot_id=f4b808b9:apple-pmu-rtc 308714000.spmi:pmic@e:rtcregistered as/dev/rtc0with writablewakealarmandapple_spmi 2 EdgeIRQ, andmacsmc-rtcregistered as/dev/rtc1; both read matching UTC wall time to the second (2026-12-02 14:06:43).rtcwake -d /dev/rtc0 -m no -s 3): IRQ 77 incremented0 -> 1.3/3s2idlecycles (rtcwake -d /dev/rtc0 -m freeze -s 5):suspend_stats/success 0 -> 3,fail 0, IRQ 771 -> 4; RTL8127 10GbEend0, N1 Wi-Fiwlp1s0f0, and G18G Borealis Vulkan (Apple M6 (G18G B1)) all stayed healthy post-wake with 0 BUG/Oops/WARN/GPU faults.scripts/checkpatch.pl --strict --git HEAD~4..HEAD: 0 errors, 0 warnings, 0 checks across all 4 commits.Risk: two-way · scoped to
apple,woodcote-pmic,apple,t8152-smc, andt8152-j873g.dts, following the existing Abbey PMU RTC (t6040/t8132) andmacsmc-rtcpatterns.Not yet: Deep-sleep (
mem) wake testing on T8152 (noapple,t8152-sleepprovider yet); other T8152 boards.