diff mbox series

[linux-riscv,J,17/17] riscv: dts: sifive unmatched: Add gpio poweroff

Message ID 20220225203301.20851-18-dimitri.ledkov@canonical.com
State New
Headers show
Series Update SiFive dtbs | expand

Commit Message

Dimitri John Ledkov Feb. 25, 2022, 8:33 p.m. UTC
From: Ron Economos <w6rz@comcast.net>

Some of the GPIO pins on the Unmatched are wire up to control the power
of the board, indicate that in the device tree.

Signed-off-by: Ron Economos <w6rz@comcast.net>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
(cherry picked from commit db3f02df1853acf4d678bcddb3f1eab23219b410)
BugLink: https://bugs.launchpad.net/bugs/1960420
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
---
 arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
index 0fa2990fa0..df5d1c98dc 100644
--- a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
+++ b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
@@ -80,6 +80,11 @@  rtcclk: rtcclk {
 		clock-frequency = <RTCCLK_FREQ>;
 		clock-output-names = "rtcclk";
 	};
+
+	gpio-poweroff {
+		compatible = "gpio-poweroff";
+		gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
+	};
 };
 
 &uart0 {