From: Sander Vanheule Date: Sun, 19 Jan 2025 18:34:24 +0000 (+0100) Subject: mips: dts: realtek: Add restart to Cisco SG220-26P X-Git-Tag: v6.15-rc1~112^2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5ae16e22b0a04123dc95e0ce9b251fd953bdd0c6;p=thirdparty%2Flinux.git mips: dts: realtek: Add restart to Cisco SG220-26P 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 Signed-off-by: Thomas Bogendoerfer --- diff --git a/arch/mips/boot/dts/realtek/cisco_sg220-26.dts b/arch/mips/boot/dts/realtek/cisco_sg220-26.dts index cb85d172a1d37..fab3d552404d8 100644 --- a/arch/mips/boot/dts/realtek/cisco_sg220-26.dts +++ b/arch/mips/boot/dts/realtek/cisco_sg220-26.dts @@ -4,6 +4,8 @@ #include "rtl838x.dtsi" +#include + / { model = "Cisco SG220-26"; compatible = "cisco,sg220-26", "realtek,rtl8382-soc"; @@ -17,6 +19,13 @@ device_type = "memory"; reg = <0x0 0x8000000>; }; + + gpio-restart { + compatible = "gpio-restart"; + gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; + priority = <192>; + open-source; + }; }; &uart0 {