From 2e74157dae6a195b69589232e6ad532775e0cb70 Mon Sep 17 00:00:00 2001 From: Matthew Barth Date: Fri, 8 Jan 2021 11:58:33 -0600 Subject: 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. (From meta-ibm rev: 072949a9b84112572559baa76d12b9a7c77f8547) Signed-off-by: Matthew Barth Change-Id: I9456ff8bd4298f3414f41180732e8e17b738acfa Signed-off-by: Andrew Geissler --- .../rainier/everest/config.json | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/rainier/everest/config.json b/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/rainier/everest/config.json index a9f1061fd..439aedcac 100644 --- a/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/rainier/everest/config.json +++ b/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/rainier/everest/config.json @@ -3,6 +3,12 @@ "name": "fan0", "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": [ @@ -19,6 +25,12 @@ "name": "fan1", "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": [ @@ -35,6 +47,12 @@ "name": "fan2", "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": [ @@ -51,6 +69,12 @@ "name": "fan3", "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": [ -- cgit v1.2.3