aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorSander Vanheule <sander@svanheule.net>2021-11-25 06:41:59 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2021-11-28 22:43:08 +0100
commit22f85d63cf47450604c0256b332942e845b1079f (patch)
tree1a9c1a4f400ce55cf30d93153dc39eabae1e61ac /target/linux
parent3f4d6da453c94adb0827a75c625f619ac40d8dab (diff)
downloadupstream-22f85d63cf47450604c0256b332942e845b1079f.tar.gz
upstream-22f85d63cf47450604c0256b332942e845b1079f.tar.bz2
upstream-22f85d63cf47450604c0256b332942e845b1079f.zip
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@me.com> Cc: Michael Mohr <akihana@gmail.com> Cc: Stijn Segers <foss@volatilesystems.org> Cc: Stijn Tintel <stijn@linux-ipv6.be> Signed-off-by: Sander Vanheule <sander@svanheule.net> Tested-by: Bjørn Mork <bjorn@mork.no>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi6
1 files changed, 6 insertions, 0 deletions
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 {