]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mips: dts: realtek: Add restart to Cisco SG220-26P
authorSander Vanheule <sander@svanheule.net>
Sun, 19 Jan 2025 18:34:24 +0000 (19:34 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 21 Feb 2025 14:10:26 +0000 (15:10 +0100)
Define a gpio-restart node to the Cisco SG220-26P so the device can be
rebooted using the SoC's hard reset pin. Set the priority to 192 so the
gpio-restart method takes priority over the watchdog restart.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/boot/dts/realtek/cisco_sg220-26.dts

index cb85d172a1d37972167f3236e1fde615c59dfc21..fab3d552404d84ab8d96e25de8392e70c733dee1 100644 (file)
@@ -4,6 +4,8 @@
 
 #include "rtl838x.dtsi"
 
+#include <dt-bindings/gpio/gpio.h>
+
 / {
        model = "Cisco SG220-26";
        compatible = "cisco,sg220-26", "realtek,rtl8382-soc";
                device_type = "memory";
                reg = <0x0 0x8000000>;
        };
+
+       gpio-restart {
+               compatible = "gpio-restart";
+               gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
+               priority = <192>;
+               open-source;
+       };
 };
 
 &uart0 {