Unverified Commit 0a91330b authored by Yash Shah's avatar Yash Shah Committed by Palmer Dabbelt
Browse files

riscv: dts: Add GPIO reboot method to HiFive Unleashed DTS file



Add the ability to reboot the HiFive Unleashed board via GPIO.

Signed-off-by: default avatarYash Shah <yash.shah@sifive.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
Signed-off-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
parent d2047aba
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
/* Copyright (c) 2018-2019 SiFive, Inc */

#include "fu540-c000.dtsi"
#include <dt-bindings/gpio/gpio.h>

/* Clock frequency (in Hz) of the PCB crystal for rtcclk */
#define RTCCLK_FREQ		1000000
@@ -41,6 +42,10 @@
		clock-frequency = <RTCCLK_FREQ>;
		clock-output-names = "rtcclk";
	};
	gpio-restart {
		compatible = "gpio-restart";
		gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
	};
};

&uart0 {