Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Sander Vanheule and committed by
Thomas Bogendoerfer
5ae16e22 b3992b82

+9
+9
arch/mips/boot/dts/realtek/cisco_sg220-26.dts
··· 4 4 5 5 #include "rtl838x.dtsi" 6 6 7 + #include <dt-bindings/gpio/gpio.h> 8 + 7 9 / { 8 10 model = "Cisco SG220-26"; 9 11 compatible = "cisco,sg220-26", "realtek,rtl8382-soc"; ··· 18 16 memory@0 { 19 17 device_type = "memory"; 20 18 reg = <0x0 0x8000000>; 19 + }; 20 + 21 + gpio-restart { 22 + compatible = "gpio-restart"; 23 + gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; 24 + priority = <192>; 25 + open-source; 21 26 }; 22 27 }; 23 28