build/patch/kernel/mvebu-next/94-helios4-dts-add-wake-on-lan-support.patch
Aditya Prayoga 1ec2a163fe mvebu-next: helios4: Add Wake on LAN support
Interrupt pin of the Ethernet PHY is connected to GPIO. The PHY can be
configured to raise interrupt when it received WoL magic packet.

This patch use gpio-keys as wakeup source for Wake on LAN as currently
there is no way to use the GPIO directly under mvneta driver.

Signed-off-by: Aditya Prayoga <aditya@kobol.io>
2019-02-12 10:34:30 +08:00

23 lines
540 B
Diff

diff --git a/arch/arm/boot/dts/armada-388-helios4.dts b/arch/arm/boot/dts/armada-388-helios4.dts
index 705adfa8c..d5afbfc53 100644
--- a/arch/arm/boot/dts/armada-388-helios4.dts
+++ b/arch/arm/boot/dts/armada-388-helios4.dts
@@ -84,6 +84,18 @@
};
};
+ gpio-keys {
+ compatible = "gpio-keys";
+ pinctrl-0 = <&microsom_phy0_int_pins>;
+
+ wol {
+ label = "Wake-On-LAN";
+ linux,code = <KEY_WAKEUP>;
+ gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
+ wakeup-source;
+ };
+ };
+
io-leds {
compatible = "gpio-leds";
sata1-led {