[openwrt/openwrt] realtek: netgear-gigabit: Add gpio-restart node
LEDE Commits
lede-commits at lists.infradead.org
Sun Nov 28 15:17:45 PST 2021
hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/22f85d63cf47450604c0256b332942e845b1079f
commit 22f85d63cf47450604c0256b332942e845b1079f
Author: Sander Vanheule <sander at svanheule.net>
AuthorDate: Thu Nov 25 06:41:59 2021 +0100
realtek: netgear-gigabit: Add gpio-restart node
The Netgear GS110TPP v1 switch cannot reliably perform cold reboots
using the system's internal reset controller.
On this device, and the other supported Netgear switches, internal GPIO
line 13 is connected to the system's hard reset logic. Expose this GPIO
on all systems to ensure restarts work properly.
Cc: Raylynn Knight <rayknight at me.com>
Cc: Michael Mohr <akihana at gmail.com>
Cc: Stijn Segers <foss at volatilesystems.org>
Cc: Stijn Tintel <stijn at linux-ipv6.be>
Signed-off-by: Sander Vanheule <sander at svanheule.net>
Tested-by: Bjørn Mork <bjorn at mork.no>
---
target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi b/target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi
index 6eb316231b..72956359d1 100644
--- a/target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi
+++ b/target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi
@@ -22,6 +22,12 @@
linux,code = <KEY_RESTART>;
};
};
+
+ gpio-restart {
+ compatible = "gpio-restart";
+ gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+ open-source;
+ };
};
&gpio0 {
More information about the lede-commits
mailing list