mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-27 01:02:19 +00:00
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>
23 lines
540 B
Diff
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 = <µsom_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 {
|