From: Sander Vanheule Date: Thu, 25 Nov 2021 05:41:59 +0000 (+0100) Subject: realtek: netgear-gigabit: Add gpio-restart node X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=22f85d63cf47450604c0256b332942e845b1079f;p=openwrt%2Fstaging%2Fthess.git 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 Cc: Michael Mohr Cc: Stijn Segers Cc: Stijn Tintel Signed-off-by: Sander Vanheule Tested-by: Bjørn Mork --- 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 = ; }; }; + + gpio-restart { + compatible = "gpio-restart"; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + open-source; + }; }; &gpio0 {