Re: [PATCH] arm64: dts: amlogic: meson-sm1-odroid: mark the Ethernet PHY as a wakeup source

From: Neil Armstrong

Date: Mon Nov 09 2026 - 03:56:06 EST


On 11/9/26 01:57, Igor Velkov via B4 Relay wrote:
From: Igor Velkov <iav@xxxxxx>

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@xxxxxx>
---
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@xxxxxx
---
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@xxxxxxxxxx>

Thanks,
Neil