* [PATCH] arm64: dts: amlogic: meson-sm1-odroid: mark the Ethernet PHY as a wakeup source
@ 2026-11-09 0:57 Igor Velkov via B4 Relay
2026-11-09 8:44 ` Neil Armstrong
0 siblings, 1 reply; 2+ messages in thread
From: Igor Velkov via B4 Relay @ 2026-11-09 0:57 UTC (permalink / raw)
To: Neil Armstrong, Kevin Hilman, Jerome Brunet, Martin Blumenstingl,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: devicetree, linux-arm-kernel, linux-amlogic, linux-kernel, Igor Velkov
From: Igor Velkov <iav@iav.lv>
The RTL8211F interrupt is wired to GPIOZ_14 and described in the PHY
node, but the node does not declare that it can wake the board. Without
wakeup-source the Realtek driver does not make the PHY wakeup capable,
so phylink leaves Wake-on-LAN to the MAC, and a magic packet does not
wake the board from s2idle.
Signed-off-by: Igor Velkov <iav@iav.lv>
---
Tested on ODROID-HC4 with Linux 7.4-rc1 and the U-Boot and .config of
Armbian: s2idle, Wake-on-LAN set with ethtool after the link is up. With
this change a magic packet woke the board 5 of 5 times, in 8 s, with
pm_wakeup_irq pointing at the PHY. Without it, 0 of 2: the RTC alarm
woke the board.
The test DTB had two other changes: the RTC alarm interrupt [1] and PCIe
disabled. With PCIe enabled the board did not resume 2 of 2. In the one
console capture resume starts when the packet is sent, then a hard LOCKUP
and a panic follow while pci_pm_resume_noirq() of the root port runs;
pci-meson has no system PM. So on the HC4 with its stock DT this property
alone does not give working Wake-on-LAN yet.
Not tested on ODROID-C4, which shares this node.
[1] https://lore.kernel.org/r/20261019-hc4-rtc-alarm-irq-v1-1-078fc79e596f@iav.lv
---
arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi
index e6f02d738a21..9a4684dfbde3 100644
--- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi
@@ -277,6 +277,7 @@ external_phy: ethernet-phy@0 {
interrupt-parent = <&gpio_intc>;
/* MAC_INTR on GPIOZ_14 */
interrupts = <IRQID_GPIOZ_14 IRQ_TYPE_LEVEL_LOW>;
+ wakeup-source;
};
};
---
base-commit: 81e55899e134541583a4e611ff750e1868671c67
change-id: 20261109-hc4-phy-wakeup-9c15ebaa311e
Best regards,
--
Igor Velkov <iav@iav.lv>
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] arm64: dts: amlogic: meson-sm1-odroid: mark the Ethernet PHY as a wakeup source
2026-11-09 0:57 [PATCH] arm64: dts: amlogic: meson-sm1-odroid: mark the Ethernet PHY as a wakeup source Igor Velkov via B4 Relay
@ 2026-11-09 8:44 ` Neil Armstrong
0 siblings, 0 replies; 2+ messages in thread
From: Neil Armstrong @ 2026-11-09 8:44 UTC (permalink / raw)
To: iav, Kevin Hilman, Jerome Brunet, Martin Blumenstingl,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: devicetree, linux-arm-kernel, linux-amlogic, linux-kernel
On 11/9/26 01:57, Igor Velkov via B4 Relay wrote:
> From: Igor Velkov <iav@iav.lv>
>
> The RTL8211F interrupt is wired to GPIOZ_14 and described in the PHY
> node, but the node does not declare that it can wake the board. Without
> wakeup-source the Realtek driver does not make the PHY wakeup capable,
> so phylink leaves Wake-on-LAN to the MAC, and a magic packet does not
> wake the board from s2idle.
>
> Signed-off-by: Igor Velkov <iav@iav.lv>
> ---
> Tested on ODROID-HC4 with Linux 7.4-rc1 and the U-Boot and .config of
> Armbian: s2idle, Wake-on-LAN set with ethtool after the link is up. With
> this change a magic packet woke the board 5 of 5 times, in 8 s, with
> pm_wakeup_irq pointing at the PHY. Without it, 0 of 2: the RTC alarm
> woke the board.
>
> The test DTB had two other changes: the RTC alarm interrupt [1] and PCIe
> disabled. With PCIe enabled the board did not resume 2 of 2. In the one
> console capture resume starts when the packet is sent, then a hard LOCKUP
> and a panic follow while pci_pm_resume_noirq() of the root port runs;
> pci-meson has no system PM. So on the HC4 with its stock DT this property
> alone does not give working Wake-on-LAN yet.
>
> Not tested on ODROID-C4, which shares this node.
>
> [1] https://lore.kernel.org/r/20261019-hc4-rtc-alarm-irq-v1-1-078fc79e596f@iav.lv
> ---
> arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi
> index e6f02d738a21..9a4684dfbde3 100644
> --- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi
> +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi
> @@ -277,6 +277,7 @@ external_phy: ethernet-phy@0 {
> interrupt-parent = <&gpio_intc>;
> /* MAC_INTR on GPIOZ_14 */
> interrupts = <IRQID_GPIOZ_14 IRQ_TYPE_LEVEL_LOW>;
> + wakeup-source;
> };
> };
>
>
> ---
> base-commit: 81e55899e134541583a4e611ff750e1868671c67
> change-id: 20261109-hc4-phy-wakeup-9c15ebaa311e
>
> Best regards,
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Thanks,
Neil
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-09 8:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-09 0:57 [PATCH] arm64: dts: amlogic: meson-sm1-odroid: mark the Ethernet PHY as a wakeup source Igor Velkov via B4 Relay
2026-11-09 8:44 ` 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®