Skip to content

Commit

Permalink
riscv: dts: sifive unmatched: Add gpio poweroff
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ron Economos authored and Palmer Dabbelt committed Jan 20, 2022
1 parent 3c2905e commit db3f02d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
clock-frequency = <RTCCLK_FREQ>;
clock-output-names = "rtcclk";
};

gpio-poweroff {
compatible = "gpio-poweroff";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
};

&uart0 {
Expand Down

0 comments on commit db3f02d

Please sign in to comment.