Repository navigation
arm64: dts: apple: t8142-j704: Wire nub-spmi0's interrupt and the PMU RTC - #4365
Draft
EliasJernberg wants to merge 1 commit into
Draft
EliasJernberg wants to merge 1 commit into
EliasJernberg wants to merge 1 commit into
Conversation
… RTC Describe J704 the same way as J813: nub-spmi0 is an interrupt controller on AIC 584 (ADT /arm-io/nub-spmi0 interrupts[1]), and pmu-main's RTC alarm is its event 2 (pmu-main interrupts [2, 62]). The alarm comparator at 0x2000 (info-rtc_alarm_ctrl, _offset 0x2008, _mask 0x200e) has the T6041 layout, so the RTC can wake the machine from suspend-to-idle. Signed-off-by: Elias Jernberg <eliasjernberg@gmail.com>
This branch has not been deployed
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.
What: j704 gets the same PMU RTC wiring that j813 already has on main: nub-spmi0 becomes an interrupt controller with its AIC interrupt, and the Abbey PMU gets an
apple,t8142-pmu-rtcchild that uses event 2 as its alarm interrupt. 13 lines in t8142-j704-power.dtsi, no driver change, no new binding.Why: without it, J704 has only the SMC RTC, with no alarm.
/sys/class/rtc/rtc0/wakealarmis missing, sortcwakeand timed wake from suspend do not work.Tested: J704 (M5).
apple-pmu-rtc, 0.94 s off system time. A 20 s alarm wakes the machine from shallow s2idle (IRQ 112). A 27.5 s deep s2idle cycle ends on the RTC alarm, and Wi-Fi is back 2 s after resume.hwclock0.68 s off,wakealarmpresent.dtbs_checkonly, see below.Risk: two-way. Only J704's device tree. Reverting removes the RTC and the alarm, and the SMC RTC stays as before.
Not yet: