diff options
| author | Sander Vanheule <sander@svanheule.net> | 2025-01-19 21:34:24 +0300 |
|---|---|---|
| committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2025-02-21 17:10:26 +0300 |
| commit | 5ae16e22b0a04123dc95e0ce9b251fd953bdd0c6 (patch) | |
| tree | a78c51432dc2eedfe441311a43afd5109f41f075 | |
| parent | b3992b82ad9e288d773f8bb604299ffc546811b7 (diff) | |
| download | linux-5ae16e22b0a04123dc95e0ce9b251fd953bdd0c6.tar.xz | |
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 <sander@svanheule.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
| -rw-r--r-- | arch/mips/boot/dts/realtek/cisco_sg220-26.dts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/mips/boot/dts/realtek/cisco_sg220-26.dts b/arch/mips/boot/dts/realtek/cisco_sg220-26.dts index cb85d172a1d3..fab3d552404d 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 <dt-bindings/gpio/gpio.h> + / { 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 { |
