diff mbox series

[20/22] ARM: dts: aspeed: everest: Enable fan watchdog

Message ID 20210329150020.13632-21-eajames@linux.ibm.com
State Accepted
Commit 6cebf3764fea1cd4afae7a0b6f1274469c3de857
Headers show
Series ARM: dts: aspeed: Updates for Rainier and Everest machines | expand

Commit Message

Eddie James March 29, 2021, 3 p.m. UTC
Set watchdog 1 to pulse the fan watchdog circuit that drives the FAULT
pin of the MAX31785, resulting in fans running at full speed, if at
any point the BMC stops pulsing it, such as a BMC reboot at runtime.
Enable watchdog 2 for BMC reboots.

Signed-off-by: Matthew Barth <msbarth@linux.ibm.com>
Signed-off-by: Eddie James <eajames@linux.ibm.com>
---
 arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

Comments

Andrew Jeffery April 8, 2021, 12:34 a.m. UTC | #1
On Tue, 30 Mar 2021, at 01:30, Eddie James wrote:
> Set watchdog 1 to pulse the fan watchdog circuit that drives the FAULT

> pin of the MAX31785, resulting in fans running at full speed, if at

> any point the BMC stops pulsing it, such as a BMC reboot at runtime.

> Enable watchdog 2 for BMC reboots.

> 

> Signed-off-by: Matthew Barth <msbarth@linux.ibm.com>

> Signed-off-by: Eddie James <eajames@linux.ibm.com>


Acked-by: Andrew Jeffery <andrew@aj.id.au>
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts b/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts
index f33c22f824cd..4836750776d0 100644
--- a/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts
@@ -2335,6 +2335,20 @@  &mac3 {
 	use-ncsi;
 };
 
+&wdt1 {
+	aspeed,reset-type = "none";
+	aspeed,external-signal;
+	aspeed,ext-push-pull;
+	aspeed,ext-active-high;
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_wdtrst1_default>;
+};
+
+&wdt2 {
+	status = "okay";
+};
+
 &xdma {
 	status = "okay";
 	memory-region = <&vga_memory>;