linux/arch/mips/boot/dts/realtek/cisco_sg220-26.dts
Sander Vanheule 5ae16e22b0 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>
2025-02-21 15:10:26 +01:00

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";
};