0004-riscv-sifive-unmatched-add-gpio-poweroff-node.patch 732 B

1234567891011121314151617181920212223242526
  1. From 14ede57943bc4209755d08daf93ac7be967d7fbe Mon Sep 17 00:00:00 2001
  2. From: David Abdurachmanov <[email protected]>
  3. Date: Mon, 13 Sep 2021 02:18:30 -0700
  4. Subject: [PATCH 4/7] riscv: sifive: unmatched: add gpio-poweroff node
  5. Add gpio-poweroff node to allow powering off the system.
  6. Signed-off-by: David Abdurachmanov <[email protected]>
  7. ---
  8. arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 6 ++++++
  9. 1 file changed, 6 insertions(+)
  10. --- a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
  11. +++ b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
  12. @@ -86,6 +86,11 @@
  13. };
  14. };
  15. };
  16. +
  17. + gpio-poweroff {
  18. + compatible = "gpio-poweroff";
  19. + gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  20. + };
  21. };
  22. &uart0 {