From 7a02897b3c9eed32c61b96049dde874d1225fae6 Mon Sep 17 00:00:00 2001 From: Elias Jernberg Date: Fri, 4 Dec 2026 18:24:37 +0100 Subject: [PATCH] arm64: dts: apple: t8142-j704: Wire nub-spmi0's interrupt and the PMU 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 --- arch/arm64/boot/dts/apple/t8142-j704-power.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t8142-j704-power.dtsi b/arch/arm64/boot/dts/apple/t8142-j704-power.dtsi index 6011d77695aa3..71209e9232a95 100644 --- a/arch/arm64/boot/dts/apple/t8142-j704-power.dtsi +++ b/arch/arm64/boot/dts/apple/t8142-j704-power.dtsi @@ -26,11 +26,24 @@ reg = <0x3 0x88714000 0x0 0x4000>; #address-cells = <2>; #size-cells = <0>; + #interrupt-cells = <2>; + interrupt-controller; + interrupt-parent = <&aic>; + interrupts = ; pmic@e { compatible = "apple,abbey-pmic", "apple,spmi-nvmem"; reg = <0xe SPMI_USID>; + pmu_rtc: rtc { + compatible = "apple,t8142-pmu-rtc", "apple,t6041-pmu-rtc"; + interrupt-parent = <&nub_spmi0>; + interrupts = <2 IRQ_TYPE_EDGE_RISING>; + nvmem-cells = <&rtc_offset>; + nvmem-cell-names = "rtc_offset"; + wakeup-source; + }; + nvmem-layout { compatible = "fixed-layout"; #address-cells = <1>;