]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
riscv: dts: sifive unmatched: Add gpio poweroff
authorRon Economos <w6rz@comcast.net>
Fri, 31 Dec 2021 06:11:06 +0000 (22:11 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 20 Jan 2022 17:37:23 +0000 (09:37 -0800)
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>
arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts

index 6bfa1f24d3deb45e493a0d4bb8bc75b1f06b6ffa..c4ed9efdff0322070cd7dd8fd41aae5e218f4bbe 100644 (file)
                clock-frequency = <RTCCLK_FREQ>;
                clock-output-names = "rtcclk";
        };
+
+       gpio-poweroff {
+               compatible = "gpio-poweroff";
+               gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
+       };
 };
 
 &uart0 {