Repository navigation
arm64: dts: apple: t8142: wire nub_spmi0 IRQ and Abbey PMU RTC - #3936
Conversation
satchlj
left a comment
There was a problem hiding this comment.
Verdict: FINISH, then merge (diff and hardware verification look clean; waiting only on queued CI to finish green).
Reviewed 16e59b300edc (a44b7f20 binding + 16e59b30 DTS):
Documentation/devicetree/bindings/rtc/apple,j700-pmu-rtc.yamladdsapple,t8142-pmu-rtcalongsideapple,t6050-pmu-rtcandapple,t8132-pmu-rtcunder theapple,t6041-pmu-rtcfallback.arch/arm64/boot/dts/apple/t8142-j813-power.dtsiwiresnub_spmi0as an interrupt controller (AIC_IRQ 584,IRQ_TYPE_LEVEL_HIGH) and addspmu_rtc: rtconpmic@ewith SPMI IRQ2(IRQ_TYPE_EDGE_RISING), sharedrtc_offsetNVMEM cell, andwakeup-source, matching the existing Abbey PMU RTC pattern ont6040/t8132/t602x.- Exact-head J813 hardware verification is included (UTC match against
macsmc-rtc, awake alarm IRQ0 -> 1,3/3rtcwake -d /dev/rtc0 -m freeze -s 5cycles passing withsuspend_stats/success 0 -> 3and display + Wi-Fi intact), andNot yetclearly states J815 andmemwake coverage. - Remaining before approval: wait for queued
dt-checks,host-tests,pr-text, andreadinesschecks on16e59b30to complete green, then ready to flip toAPPROVE.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
satchlj
left a comment
There was a problem hiding this comment.
Verdict: APPROVE (16e59b300edc).
- Binding (
apple,t8142-pmu-rtcunderapple,t6041-pmu-rtcfallback),t8142-j813-power.dtsi(nub_spmi0AIC IRQ 584 +pmu_rtcSPMI IRQ 2 +rtc_offset+wakeup-source), and exact-head J8133/3rtcwakehardware verification are all clean. - Verified the
host-testsfailure log (run46894045622): it failed solely inapple-dcp(provider-admission,ordered-rx) anddisplay-sleep-merge-tests.py(no member named 'ext272' in 'struct apple_dcp'), which is an unrelated regression onmainfrom#3815(1ca91a159830) and does not touch DTS or bindings. pr-textis green anddt-checksis still running (letdt-checksfinish green before merging).
|
J813 row (MacBook Air 13" M5) for the deep-sleep ( Not the exact head. The DTB is this PR's two commits on our daily tree, and it runs under our daily kernel: main
One thing to know: on deep wakes the Not run: the exact head kernel, J815, longer sleeps, or an alarm set while the lid is closed. Assisted-by: LLM (Claude:Opus 5.5) |
Document apple,t8142-pmu-rtc as compatible with apple,t6041-pmu-rtc for the Abbey PMU RTC on T8142 (M5) boards, which shares the exact 0x2000 register layout and 0x2100 48-bit rtc_offset scratchpad. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
Describe the nub_spmi0 AIC interrupt (IRQ 584 per the J813 ADT) as an interrupt controller and add the Abbey PMU RTC child node (apple,t8142-pmu-rtc, apple,t6041-pmu-rtc, SPMI IRQ 2, shared rtc_offset NVMEM cell, wakeup-source) on pmic@e in t8142-j813-power.dtsi. This exposes /dev/rtc0 (apple-pmu-rtc) with hardware wakealarm support so rtcwake can arm timed s2idle and deep-sleep wakes on J813/J815. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
16e59b3 to
38947b3
Compare
RyanTheTide
left a comment
There was a problem hiding this comment.
Re-checked rebased head 38947b3bd54a after #3938: arch/arm64/boot/dts/apple/t8142-j813-power.dtsi is byte-identical (aaae5a70279bd) to 16e59b300edc (verified by satchlj's prior approval + J813 3/3 rtcwake rows including gig3m's deep-sleep mem wake row), and Documentation/devicetree/bindings/rtc/apple,j700-pmu-rtc.yaml keeps both apple,t8142-pmu-rtc and apple,t8152-pmu-rtc cleanly under apple,t6041-pmu-rtc.
satchlj
left a comment
There was a problem hiding this comment.
Re-reviewed updated head 38947b3bd54a (arm64: dts: apple: t8142: wire nub_spmi0 IRQ and Abbey PMU RTC):
- Both
4b4dc70fe6e9(apple,t8142-pmu-rtcbinding) and38947b3bd54a(t8142-j813-power.dtsinub_spmi0IRQ controller +pmu_rtcwakeup-source) are clean,pr-textis green, DCO andRisk:are present, and the J813 M5 deep-sleeprtcwake -d rtc0 -m mem -s 203/3 PASS row landed.
Holding re-approval only for queued dt-checks and host-tests to finish green at 38947b3bd54a.
|
Merging at |
What: Wire
nub_spmi0AIC IRQ 584 as an interrupt controller and add the Abbey PMU RTC child node (apple,t8142-pmu-rtc,apple,t6041-pmu-rtc, SPMI IRQ 2, sharedrtc_offsetNVMEM cell,wakeup-source) int8142-j813-power.dtsi, plus documentapple,t8142-pmu-rtcinapple,j700-pmu-rtc.yaml.Tested: Live J813 (13-inch M5 MacBook Air, 27.2
mBoot-20457.41.3stub) on7.3.0+(9177b2d474f8) with the exact DTB built from16e59b300edc,boot_id=49eabf67:apple-pmu-rtc 388714000.spmi:pmic@e:rtcregistered as/dev/rtc0matchingmacsmc-rtc(/dev/rtc1) UTC wall time to the second (2026-12-02 13:38:39), exposing writable/sys/class/rtc/rtc0/wakealarmandapple_spmi 2 EdgeIRQ.rtcwake -d /dev/rtc0 -m no -s 3): IRQ count incremented0 -> 1.3/3s2idlecycles (rtcwake -d /dev/rtc0 -m freeze -s 5):suspend_stats/success 0 -> 3,fail 0, IRQ count1 -> 4,eDP-1+DP-1+ N1 Wi-Fi (wlp1s0f0) intact after every wake, 0 BUG/Oops/WARN.scripts/checkpatch.pl --strict --git HEAD~2..HEAD: 0 errors, 0 warnings, 0 checks; bothapple/t8142-j813.dtbandapple/t8142-j815.dtbbuild cleanly.Risk: two-way · DTS + binding only; follows the exact
t6040.dtsi/t8132-jxxx.dtsiAbbey PMU RTC pattern and#3933(t602x) wiring.Not yet: J815 (15-inch M5 MacBook Air, shares
t8142-j813-power.dtsi) hardware verification; deep-sleep (mem) wake test viartc0.