From 4b4dc70fe6e9a7569b99ba53a3b3ac005d1b630b Mon Sep 17 00:00:00 2001 From: Thomas Glanzmann Date: Wed, 2 Dec 2026 14:40:02 +0100 Subject: [PATCH 1/2] dt-bindings: rtc: apple,j700-pmu-rtc: add T8142 compatible 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 --- Documentation/devicetree/bindings/rtc/apple,j700-pmu-rtc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/rtc/apple,j700-pmu-rtc.yaml b/Documentation/devicetree/bindings/rtc/apple,j700-pmu-rtc.yaml index 43d6e47b1c604..371e11db4abb8 100644 --- a/Documentation/devicetree/bindings/rtc/apple,j700-pmu-rtc.yaml +++ b/Documentation/devicetree/bindings/rtc/apple,j700-pmu-rtc.yaml @@ -48,6 +48,7 @@ properties: - enum: - apple,t6050-pmu-rtc - apple,t8132-pmu-rtc + - apple,t8142-pmu-rtc - apple,t8152-pmu-rtc - const: apple,t6041-pmu-rtc - items: From 38947b3bd54a79b9b27567e767ae1dccfa225d35 Mon Sep 17 00:00:00 2001 From: Thomas Glanzmann Date: Wed, 2 Dec 2026 14:40:02 +0100 Subject: [PATCH 2/2] arm64: dts: apple: t8142: wire nub_spmi0 IRQ and Abbey PMU RTC 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 --- arch/arm64/boot/dts/apple/t8142-j813-power.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t8142-j813-power.dtsi b/arch/arm64/boot/dts/apple/t8142-j813-power.dtsi index 6f4d9198a86ea..aaae5a70279bd 100644 --- a/arch/arm64/boot/dts/apple/t8142-j813-power.dtsi +++ b/arch/arm64/boot/dts/apple/t8142-j813-power.dtsi @@ -28,11 +28,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>;