mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

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>
33 lines
540 B
Text
33 lines
540 B
Text
// SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause
|
|
|
|
/dts-v1/;
|
|
|
|
#include "rtl838x.dtsi"
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
/ {
|
|
model = "Cisco SG220-26";
|
|
compatible = "cisco,sg220-26", "realtek,rtl8382-soc";
|
|
|
|
chosen {
|
|
stdout-path = "serial0:9600n8";
|
|
bootargs = "earlycon console=ttyS0,9600";
|
|
};
|
|
|
|
memory@0 {
|
|
device_type = "memory";
|
|
reg = <0x0 0x8000000>;
|
|
};
|
|
|
|
gpio-restart {
|
|
compatible = "gpio-restart";
|
|
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
|
|
priority = <192>;
|
|
open-source;
|
|
};
|
|
};
|
|
|
|
&uart0 {
|
|
status = "okay";
|
|
};
|