From d57ffb9bbeb828519c9ffe88ecaac460fde3de92 Mon Sep 17 00:00:00 2001 From: Matthew Barth Date: Tue, 12 May 2020 16:28:00 -0500 Subject: rainier: Add fan watchdog BMC protection Configure and include the fan watchdog services to drive the fans to 100% PWM if the BMC loses communication to the fan controller chip at any time (i.e. BMC reset while powered on). (From meta-ibm rev: 1264216bc2f10cf08f697bc1c95f10237c95515a) Change-Id: I18865bdc06c1a2be0c2a83d5e83402b9316ee845 Signed-off-by: Matthew Barth Signed-off-by: Andrew Geissler --- .../fans/fan-watchdog/rainier/obmc/fan-watchdog/fan-watchdog.conf | 3 +++ .../fan-watchdog/rainier/obmc/fan-watchdog/reset-fan-watchdog.conf | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 meta-ibm/recipes-phosphor/fans/fan-watchdog/rainier/obmc/fan-watchdog/fan-watchdog.conf create mode 100644 meta-ibm/recipes-phosphor/fans/fan-watchdog/rainier/obmc/fan-watchdog/reset-fan-watchdog.conf (limited to 'meta-ibm/recipes-phosphor/fans') diff --git a/meta-ibm/recipes-phosphor/fans/fan-watchdog/rainier/obmc/fan-watchdog/fan-watchdog.conf b/meta-ibm/recipes-phosphor/fans/fan-watchdog/rainier/obmc/fan-watchdog/fan-watchdog.conf new file mode 100644 index 000000000..ce7824ccb --- /dev/null +++ b/meta-ibm/recipes-phosphor/fans/fan-watchdog/rainier/obmc/fan-watchdog/fan-watchdog.conf @@ -0,0 +1,3 @@ +TIMEOUT=5 +INTERVAL=1 +DEVICE=/dev/watchdog0 diff --git a/meta-ibm/recipes-phosphor/fans/fan-watchdog/rainier/obmc/fan-watchdog/reset-fan-watchdog.conf b/meta-ibm/recipes-phosphor/fans/fan-watchdog/rainier/obmc/fan-watchdog/reset-fan-watchdog.conf new file mode 100644 index 000000000..98cb60288 --- /dev/null +++ b/meta-ibm/recipes-phosphor/fans/fan-watchdog/rainier/obmc/fan-watchdog/reset-fan-watchdog.conf @@ -0,0 +1,4 @@ +GPIO_PATH=/dev/gpiochip0 +GPIO=114 +DELAY=1 +ACTION=low_high -- cgit v1.2.3