rainier: Re-add fan presence gpios on Everest
Corrected the gpio pins and paths for detecting fans wired to a PCA9552
behind a mux according to the Everest schematics. Fan presence will fail
to access these gpios until the Everest dts is updated to expose them.
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Change-Id: Ia08e8a3fe5ad9ee12e24da47c4b65e4b2896aae5
diff --git a/recipes-phosphor/fans/phosphor-fan-presence-config/rainier/everest/config.json b/recipes-phosphor/fans/phosphor-fan-presence-config/rainier/everest/config.json
index a9f1061..439aedc 100644
--- a/recipes-phosphor/fans/phosphor-fan-presence-config/rainier/everest/config.json
+++ b/recipes-phosphor/fans/phosphor-fan-presence-config/rainier/everest/config.json
@@ -4,6 +4,12 @@
"path": "/system/chassis/motherboard/fan0",
"methods": [
{
+ "type": "gpio",
+ "key": 15,
+ "physpath": "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a780.i2c-bus/i2c-14/i2c-30/30-0061",
+ "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
+ },
+ {
"type": "tach",
"sensors": [
"fan0_0",
@@ -20,6 +26,12 @@
"path": "/system/chassis/motherboard/fan1",
"methods": [
{
+ "type": "gpio",
+ "key": 14,
+ "physpath": "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a780.i2c-bus/i2c-14/i2c-30/30-0061",
+ "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
+ },
+ {
"type": "tach",
"sensors": [
"fan1_0",
@@ -36,6 +48,12 @@
"path": "/system/chassis/motherboard/fan2",
"methods": [
{
+ "type": "gpio",
+ "key": 13,
+ "physpath": "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a780.i2c-bus/i2c-14/i2c-30/30-0061",
+ "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
+ },
+ {
"type": "tach",
"sensors": [
"fan2_0",
@@ -52,6 +70,12 @@
"path": "/system/chassis/motherboard/fan3",
"methods": [
{
+ "type": "gpio",
+ "key": 12,
+ "physpath": "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a780.i2c-bus/i2c-14/i2c-30/30-0061",
+ "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
+ },
+ {
"type": "tach",
"sensors": [
"fan3_0",