aboutsummaryrefslogtreecommitdiffstats
path: root/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts
diff options
context:
space:
mode:
authorYash Shah <yash.shah@sifive.com>2020-02-19 09:19:07 +0530
committerPalmer Dabbelt <palmerdabbelt@google.com>2020-03-05 12:27:10 -0800
commit0a91330b2af9f71ceeeed483f92774182b58f6d9 (patch)
tree53c417293df64ba928f3fb19077f842201246a6d /arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts
parentRISC-V: Select Goldfish RTC driver for QEMU virt machine (diff)
downloadlinux-dev-0a91330b2af9f71ceeeed483f92774182b58f6d9.tar.xz
linux-dev-0a91330b2af9f71ceeeed483f92774182b58f6d9.zip
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 <yash.shah@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to '')
-rw-r--r--arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts
index 609198cb1163..4a2729f5ca3f 100644
--- a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts
+++ b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts
@@ -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 {