* [PATCH] arm64: dts: amlogic: meson-sm1-odroid-hc4: wire the RTC alarm interrupt
@ 2026-10-19 21:52 Igor Velkov via B4 Relay
2026-10-20 8:38 ` Neil Armstrong
2026-12-01 8:35 ` Neil Armstrong
0 siblings, 2 replies; 4+ messages in thread
From: Igor Velkov via B4 Relay @ 2026-10-19 21:52 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Neil Armstrong,
Kevin Hilman, Jerome Brunet, Martin Blumenstingl
Cc: devicetree, linux-arm-kernel, linux-amlogic, linux-kernel, Igor Velkov
From: Igor Velkov <iav@iav.lv>
The PCF8563 on the OLED/RTC add-on board drives its interrupt output
to GPIOX_5, pin 4 of the P1 header, but the rtc node does not describe
it. The alarm interrupt is therefore never delivered and cannot wake
the board.
Describe the line as a level-low interrupt of the GPIO interrupt
controller.
Tested on ODROID-HC4: the alarm interrupt fires and wakes the board
from s2idle.
Assisted-by: LLM
Signed-off-by: Igor Velkov <iav@iav.lv>
---
This needs commit 5831f5fef100 ("rtc: pcf8563: pass the driver data to
the alarm interrupt handler") in the rtc tree: without it the first
alarm oopses. Waking from s2idle also needs commit 5b6e2a46b80d
("irqchip/meson-gpio: Allow the GPIO interrupts to wake the system")
in tip irq/drivers.
---
arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts
index 5f15c2299509..25a8a60e152c 100644
--- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts
@@ -105,6 +105,8 @@ rtc: rtc@51 {
status = "okay";
compatible = "nxp,pcf8563";
reg = <0x51>;
+ interrupt-parent = <&gpio_intc>;
+ interrupts = <IRQID_GPIOX_5 IRQ_TYPE_LEVEL_LOW>;
wakeup-source;
};
};
---
base-commit: b44e2be772f866985cafdf90355285069ea68495
change-id: 20261020-hc4-rtc-alarm-irq-b2b8c68d54f5
Best regards,
--
Igor Velkov <iav@iav.lv>
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] arm64: dts: amlogic: meson-sm1-odroid-hc4: wire the RTC alarm interrupt
2026-10-19 21:52 [PATCH] arm64: dts: amlogic: meson-sm1-odroid-hc4: wire the RTC alarm interrupt Igor Velkov via B4 Relay
@ 2026-10-20 8:38 ` Neil Armstrong
2026-12-01 2:26 ` Igor Velkov
2026-12-01 8:35 ` Neil Armstrong
1 sibling, 1 reply; 4+ messages in thread
From: Neil Armstrong @ 2026-10-20 8:38 UTC (permalink / raw)
To: iav, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Kevin Hilman, Jerome Brunet, Martin Blumenstingl
Cc: devicetree, linux-arm-kernel, linux-amlogic, linux-kernel
On 10/19/26 23:52, Igor Velkov via B4 Relay wrote:
> From: Igor Velkov <iav@iav.lv>
>
> The PCF8563 on the OLED/RTC add-on board drives its interrupt output
> to GPIOX_5, pin 4 of the P1 header, but the rtc node does not describe
> it. The alarm interrupt is therefore never delivered and cannot wake
> the board.
>
> Describe the line as a level-low interrupt of the GPIO interrupt
> controller.
>
> Tested on ODROID-HC4: the alarm interrupt fires and wakes the board
> from s2idle.
>
> Assisted-by: LLM
> Signed-off-by: Igor Velkov <iav@iav.lv>
> ---
> This needs commit 5831f5fef100 ("rtc: pcf8563: pass the driver data to
> the alarm interrupt handler") in the rtc tree: without it the first
> alarm oopses. Waking from s2idle also needs commit 5b6e2a46b80d
> ("irqchip/meson-gpio: Allow the GPIO interrupts to wake the system")
> in tip irq/drivers.
> ---
> arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts
> index 5f15c2299509..25a8a60e152c 100644
> --- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts
> +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts
> @@ -105,6 +105,8 @@ rtc: rtc@51 {
> status = "okay";
> compatible = "nxp,pcf8563";
> reg = <0x51>;
> + interrupt-parent = <&gpio_intc>;
> + interrupts = <IRQID_GPIOX_5 IRQ_TYPE_LEVEL_LOW>;
> wakeup-source;
> };
> };
>
> ---
> base-commit: b44e2be772f866985cafdf90355285069ea68495
> change-id: 20261020-hc4-rtc-alarm-irq-b2b8c68d54f5
>
> Best regards,
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Thanks,
Neil
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] arm64: dts: amlogic: meson-sm1-odroid-hc4: wire the RTC alarm interrupt
2026-10-20 8:38 ` Neil Armstrong
@ 2026-12-01 2:26 ` Igor Velkov
0 siblings, 0 replies; 4+ messages in thread
From: Igor Velkov @ 2026-12-01 2:26 UTC (permalink / raw)
To: Neil Armstrong
Cc: Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, devicetree, linux-arm-kernel,
linux-amlogic, linux-kernel
Hi Neil,
Gentle ping on this one and on "arm64: dts: amlogic: meson-sm1-odroid:
mark the Ethernet PHY as a wakeup source" [1]. Both have your
Reviewed-by; could they still make it into v7.5?
[1] https://lore.kernel.org/r/20261109-hc4-phy-wakeup-v1-1-d98784ecac88@iav.lv
Thanks,
Igor
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64: dts: amlogic: meson-sm1-odroid-hc4: wire the RTC alarm interrupt
2026-10-19 21:52 [PATCH] arm64: dts: amlogic: meson-sm1-odroid-hc4: wire the RTC alarm interrupt Igor Velkov via B4 Relay
2026-10-20 8:38 ` Neil Armstrong
@ 2026-12-01 8:35 ` Neil Armstrong
1 sibling, 0 replies; 4+ messages in thread
From: Neil Armstrong @ 2026-12-01 8:35 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Kevin Hilman,
Jerome Brunet, Martin Blumenstingl, Igor Velkov
Cc: devicetree, linux-arm-kernel, linux-amlogic, linux-kernel
Hi,
On Mon, 19 Oct 2026 21:52:01 +0000, Igor Velkov wrote:
> The PCF8563 on the OLED/RTC add-on board drives its interrupt output
> to GPIOX_5, pin 4 of the P1 header, but the rtc node does not describe
> it. The alarm interrupt is therefore never delivered and cannot wake
> the board.
>
> Describe the line as a level-low interrupt of the GPIO interrupt
> controller.
>
> [...]
Thanks, Applied to https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git (v7.5/arm64-dt)
[1/1] arm64: dts: amlogic: meson-sm1-odroid-hc4: wire the RTC alarm interrupt
https://git.kernel.org/amlogic/c/49db8ad2807a09ca535c26eaac1b4dfe13b8db9f
These changes has been applied on the intermediate git tree [1].
The v7.5/arm64-dt branch will then be sent via a formal Pull Request to the Linux SoC maintainers
for inclusion in their intermediate git branches in order to be sent to Linus during
the next merge window, or sooner if it's a set of fixes.
In the cases of fixes, those will be merged in the current release candidate
kernel and as soon they appear on the Linux master branch they will be
backported to the previous Stable and Long-Stable kernels [2].
The intermediate git branches are merged daily in the linux-next tree [3],
people are encouraged testing these pre-release kernels and report issues on the
relevant mailing-lists.
If problems are discovered on those changes, please submit a signed-off-by revert
patch followed by a corrective changeset.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git
[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
[3] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
--
Neil
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-12-01 8:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-19 21:52 [PATCH] arm64: dts: amlogic: meson-sm1-odroid-hc4: wire the RTC alarm interrupt Igor Velkov via B4 Relay
2026-10-20 8:38 ` Neil Armstrong
2026-12-01 2:26 ` Igor Velkov
2026-12-01 8:35 ` Neil Armstrong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®