summaryrefslogtreecommitdiff
path: root/meta-ibm
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
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')
-rw-r--r--meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/p10bmc/everest/config.json8
-rw-r--r--meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/p10bmc/rainier-1s4u/config.json8
-rw-r--r--meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/p10bmc/rainier-2u/config.json12
-rw-r--r--meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/p10bmc/rainier-4u/config.json12
-rw-r--r--meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/witherspoon/config.json8
5 files changed, 24 insertions, 24 deletions
diff --git a/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/p10bmc/everest/config.json b/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/p10bmc/everest/config.json
index 439aedcac..928eca25e 100644
--- a/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/p10bmc/everest/config.json
+++ b/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/p10bmc/everest/config.json
@@ -6,7 +6,7 @@
{
"type": "gpio",
"key": 15,
- "physpath": "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a780.i2c-bus/i2c-14/i2c-30/30-0061",
+ "physpath": "/sys/bus/i2c/devices/30-0061",
"devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
},
{
@@ -28,7 +28,7 @@
{
"type": "gpio",
"key": 14,
- "physpath": "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a780.i2c-bus/i2c-14/i2c-30/30-0061",
+ "physpath": "/sys/bus/i2c/devices/30-0061",
"devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
},
{
@@ -50,7 +50,7 @@
{
"type": "gpio",
"key": 13,
- "physpath": "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a780.i2c-bus/i2c-14/i2c-30/30-0061",
+ "physpath": "/sys/bus/i2c/devices/30-0061",
"devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
},
{
@@ -72,7 +72,7 @@
{
"type": "gpio",
"key": 12,
- "physpath": "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a780.i2c-bus/i2c-14/i2c-30/30-0061",
+ "physpath": "/sys/bus/i2c/devices/30-0061",
"devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
},
{
diff --git a/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/p10bmc/rainier-1s4u/config.json b/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/p10bmc/rainier-1s4u/config.json
index 5bcda88b3..65697e557 100644
--- a/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/p10bmc/rainier-1s4u/config.json
+++ b/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/p10bmc/rainier-1s4u/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": 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"
},
{
diff --git a/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/p10bmc/rainier-2u/config.json b/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/p10bmc/rainier-2u/config.json
index 726451028..a5cc1bf66 100644
--- a/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/p10bmc/rainier-2u/config.json
+++ b/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/p10bmc/rainier-2u/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"
},
{
@@ -28,7 +28,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"
},
{
@@ -50,7 +50,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"
},
{
@@ -72,7 +72,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"
},
{
@@ -94,7 +94,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"
},
{
@@ -116,7 +116,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"
},
{
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"
},
{
diff --git a/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/witherspoon/config.json b/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/witherspoon/config.json
index 36cdae85b..52262fe35 100644
--- a/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/witherspoon/config.json
+++ b/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/witherspoon/config.json
@@ -6,7 +6,7 @@
{
"type": "gpio",
"key": 4,
- "physpath": "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a100.i2c-bus/i2c-3/3-0060",
+ "physpath": "/sys/bus/i2c/devices/3-0060",
"devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
},
{
@@ -28,7 +28,7 @@
{
"type": "gpio",
"key": 5,
- "physpath": "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a100.i2c-bus/i2c-3/3-0060",
+ "physpath": "/sys/bus/i2c/devices/3-0060",
"devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
},
{
@@ -50,7 +50,7 @@
{
"type": "gpio",
"key": 6,
- "physpath": "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a100.i2c-bus/i2c-3/3-0060",
+ "physpath": "/sys/bus/i2c/devices/3-0060",
"devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
},
{
@@ -72,7 +72,7 @@
{
"type": "gpio",
"key": 7,
- "physpath": "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a100.i2c-bus/i2c-3/3-0060",
+ "physpath": "/sys/bus/i2c/devices/3-0060",
"devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
},
{