Skip to content

Commit 5ae16e2

Browse files
svanheuletsbogend
authored andcommitted
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 <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent b3992b8 commit 5ae16e2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

arch/mips/boot/dts/realtek/cisco_sg220-26.dts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
#include "rtl838x.dtsi"
66

7+
#include <dt-bindings/gpio/gpio.h>
8+
79
/ {
810
model = "Cisco SG220-26";
911
compatible = "cisco,sg220-26", "realtek,rtl8382-soc";
@@ -17,6 +19,13 @@
1719
device_type = "memory";
1820
reg = <0x0 0x8000000>;
1921
};
22+
23+
gpio-restart {
24+
compatible = "gpio-restart";
25+
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
26+
priority = <192>;
27+
open-source;
28+
};
2029
};
2130

2231
&uart0 {

0 commit comments

Comments
 (0)