Skip to content

Commit 0a91330

Browse files
yashshah7palmer-dabbelt
authored andcommitted
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: Yash Shah <[email protected]> Reviewed-by: Anup Patel <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent d2047ab commit 0a91330

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/* Copyright (c) 2018-2019 SiFive, Inc */
33

44
#include "fu540-c000.dtsi"
5+
#include <dt-bindings/gpio/gpio.h>
56

67
/* Clock frequency (in Hz) of the PCB crystal for rtcclk */
78
#define RTCCLK_FREQ 1000000
@@ -41,6 +42,10 @@
4142
clock-frequency = <RTCCLK_FREQ>;
4243
clock-output-names = "rtcclk";
4344
};
45+
gpio-restart {
46+
compatible = "gpio-restart";
47+
gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
48+
};
4449
};
4550

4651
&uart0 {

0 commit comments

Comments
 (0)