diff mbox series

[2/2] realtek: netgear-gigabit: Add gpio-restart node

Message ID 8faf39b1c48cf2fc43c1618babc7bdabc875b329.1637818349.git.sander@svanheule.net
State Accepted
Delegated to: Hauke Mehrtens
Headers show
Series gpio-restart for Netgear switches | expand

Commit Message

Sander Vanheule Nov. 25, 2021, 5:41 a.m. UTC
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>
---
 target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Bjørn Mork Nov. 26, 2021, 12:44 p.m. UTC | #1
Sander Vanheule <sander@svanheule.net> writes:

> The Netgear GS110TPP v1 switch cannot reliably perform cold reboots
> using the system's internal reset controller.

Works perfectly on the GS108Tv3 too, as expected.

Tested-by: Bjørn Mork <bjorn@mork.no>
diff mbox series

Patch

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 6eb316231b47..72956359d18b 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 {