realtek: netgear-gigabit: Add gpio-restart node
authorSander Vanheule <[email protected]>
Thu, 25 Nov 2021 05:41:59 +0000 (06:41 +0100)
committerHauke Mehrtens <[email protected]>
Sun, 28 Nov 2021 21:43:08 +0000 (22:43 +0100)
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 <[email protected]>
Cc: Michael Mohr <[email protected]>
Cc: Stijn Segers <[email protected]>
Cc: Stijn Tintel <[email protected]>
Signed-off-by: Sander Vanheule <[email protected]>
Tested-by: Bjørn Mork <[email protected]>
target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi

index 6eb316231b47e62ccd21ecd08c030dea3add65ad..72956359d18b197a6d2e09545e4979fc24deef5a 100644 (file)
                        linux,code = <KEY_RESTART>;
                };
        };
+
+       gpio-restart {
+               compatible = "gpio-restart";
+               gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+               open-source;
+       };
 };
 
 &gpio0 {