kernel/sifiveu: Restore kernel files for v6.1
[openwrt/staging/pepe2k.git] / target / linux / sifiveu / patches-6.1 / 0004-riscv-sifive-unmatched-add-gpio-poweroff-node.patch
1 From 14ede57943bc4209755d08daf93ac7be967d7fbe Mon Sep 17 00:00:00 2001
2 From: David Abdurachmanov <david.abdurachmanov@sifive.com>
3 Date: Mon, 13 Sep 2021 02:18:30 -0700
4 Subject: [PATCH 4/7] riscv: sifive: unmatched: add gpio-poweroff node
5
6 Add gpio-poweroff node to allow powering off the system.
7
8 Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
9 ---
10 arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 6 ++++++
11 1 file changed, 6 insertions(+)
12
13 --- a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
14 +++ b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
15 @@ -86,6 +86,11 @@
16 };
17 };
18 };
19 +
20 + gpio-poweroff {
21 + compatible = "gpio-poweroff";
22 + gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
23 + };
24 };
25
26 &uart0 {