summaryrefslogtreecommitdiff
path: root/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/p10bmc/rainier-4u/config.json
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2021-04-26 22:45:44 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2021-05-17 22:07:44 +0300
commit8075c2f436f32c7703d605711672aa3bed7805b3 (patch)
tree0be66fed33d976155f1a8d373b68196426ab9530 /meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/p10bmc/rainier-4u/config.json
parent30a84931915a0c489d492a523e36bf614dd9a0cb (diff)
downloadopenbmc-8075c2f436f32c7703d605711672aa3bed7805b3.tar.xz
ibm: Use the generic fan-presence I2C paths
The fan presence detect application uses I2C device paths in its config files to address the IO expanders that IBM systems use to monitor fan presence detects. Use the /sys/bus/i2c/devices/... paths in these config files instead of the absolute paths. These new paths are links to the actual paths, and shouldn't change even if some internal kernel change drives an actual device path change. There are other config files today that do this the same way. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I39ed9d703cf6bdc821a54c6d5d087f7fc080705b
Diffstat (limited to 'meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/p10bmc/rainier-4u/config.json')
-rw-r--r--meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/p10bmc/rainier-4u/config.json12
1 files changed, 6 insertions, 6 deletions
diff --git a/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/p10bmc/rainier-4u/config.json b/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/p10bmc/rainier-4u/config.json
index 94e7e69f8..620a32907 100644
--- a/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/p10bmc/rainier-4u/config.json
+++ b/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/p10bmc/rainier-4u/config.json
@@ -6,7 +6,7 @@
{
"type": "gpio",
"key": 6,
- "physpath": "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a400.i2c-bus/i2c-7/7-0061",
+ "physpath": "/sys/bus/i2c/devices/7-0061",
"devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
},
{
@@ -27,7 +27,7 @@
{
"type": "gpio",
"key": 7,
- "physpath": "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a400.i2c-bus/i2c-7/7-0061",
+ "physpath": "/sys/bus/i2c/devices/7-0061",
"devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
},
{
@@ -48,7 +48,7 @@
{
"type": "gpio",
"key": 8,
- "physpath": "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a400.i2c-bus/i2c-7/7-0061",
+ "physpath": "/sys/bus/i2c/devices/7-0061",
"devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
},
{
@@ -69,7 +69,7 @@
{
"type": "gpio",
"key": 9,
- "physpath": "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a400.i2c-bus/i2c-7/7-0061",
+ "physpath": "/sys/bus/i2c/devices/7-0061",
"devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
},
{
@@ -90,7 +90,7 @@
{
"type": "gpio",
"key": 10,
- "physpath": "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a400.i2c-bus/i2c-7/7-0061",
+ "physpath": "/sys/bus/i2c/devices/7-0061",
"devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
},
{
@@ -111,7 +111,7 @@
{
"type": "gpio",
"key": 11,
- "physpath": "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a400.i2c-bus/i2c-7/7-0061",
+ "physpath": "/sys/bus/i2c/devices/7-0061",
"devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
},
{