summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meta-ampere/meta-mitchell/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json230
-rw-r--r--meta-ampere/meta-mitchell/recipes-phosphor/inventory/phosphor-inventory-manager_%.bbappend10
-rw-r--r--meta-ampere/meta-mitchell/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json17
3 files changed, 257 insertions, 0 deletions
diff --git a/meta-ampere/meta-mitchell/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json b/meta-ampere/meta-mitchell/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json
new file mode 100644
index 0000000000..1a55553ded
--- /dev/null
+++ b/meta-ampere/meta-mitchell/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json
@@ -0,0 +1,230 @@
+[
+ {
+ "path": "system/board/Mt_Mitchell_Motherboard/FAN0",
+ "endpoints":
+ [
+ {
+ "types":
+ {
+ "rType": "inventory",
+ "fType": "sensors"
+ },
+ "paths":
+ [
+ "/xyz/openbmc_project/sensors/fan_tach/FAN0_F",
+ "/xyz/openbmc_project/sensors/fan_tach/FAN0_R"
+ ]
+ },
+ {
+ "types": {
+ "rType": "fault_identified_by",
+ "fType": "fault_identifying"
+ },
+ "paths": [
+ "/xyz/openbmc_project/led/groups/fan_fault"
+ ]
+ },
+ {
+ "types":
+ {
+ "rType": "cooled_by",
+ "fType": "cooling"
+ },
+ "paths":
+ [
+ "/xyz/openbmc_project/inventory/system/chassis"
+ ]
+ }
+ ]
+ },
+ {
+ "path": "system/board/Mt_Mitchell_Motherboard/FAN1",
+ "endpoints":
+ [
+ {
+ "types":
+ {
+ "rType": "inventory",
+ "fType": "sensors"
+ },
+ "paths":
+ [
+ "/xyz/openbmc_project/sensors/fan_tach/FAN1_F",
+ "/xyz/openbmc_project/sensors/fan_tach/FAN1_R"
+ ]
+ },
+ {
+ "types": {
+ "rType": "fault_identified_by",
+ "fType": "fault_identifying"
+ },
+ "paths": [
+ "/xyz/openbmc_project/led/groups/fan_fault"
+ ]
+ },
+ {
+ "types":
+ {
+ "rType": "cooled_by",
+ "fType": "cooling"
+ },
+ "paths":
+ [
+ "/xyz/openbmc_project/inventory/system/chassis"
+ ]
+ }
+ ]
+ },
+ {
+ "path": "system/board/Mt_Mitchell_Motherboard/FAN2",
+ "endpoints":
+ [
+ {
+ "types":
+ {
+ "rType": "inventory",
+ "fType": "sensors"
+ },
+ "paths":
+ [
+ "/xyz/openbmc_project/sensors/fan_tach/FAN2_F",
+ "/xyz/openbmc_project/sensors/fan_tach/FAN2_R"
+ ]
+ },
+ {
+ "types": {
+ "rType": "fault_identified_by",
+ "fType": "fault_identifying"
+ },
+ "paths": [
+ "/xyz/openbmc_project/led/groups/fan_fault"
+ ]
+ },
+ {
+ "types":
+ {
+ "rType": "cooled_by",
+ "fType": "cooling"
+ },
+ "paths":
+ [
+ "/xyz/openbmc_project/inventory/system/chassis"
+ ]
+ }
+ ]
+ },
+ {
+ "path": "system/board/Mt_Mitchell_Motherboard/FAN3",
+ "endpoints":
+ [
+ {
+ "types":
+ {
+ "rType": "inventory",
+ "fType": "sensors"
+ },
+ "paths":
+ [
+ "/xyz/openbmc_project/sensors/fan_tach/FAN3_F",
+ "/xyz/openbmc_project/sensors/fan_tach/FAN3_R"
+ ]
+ },
+ {
+ "types": {
+ "rType": "fault_identified_by",
+ "fType": "fault_identifying"
+ },
+ "paths": [
+ "/xyz/openbmc_project/led/groups/fan_fault"
+ ]
+ },
+ {
+ "types":
+ {
+ "rType": "cooled_by",
+ "fType": "cooling"
+ },
+ "paths":
+ [
+ "/xyz/openbmc_project/inventory/system/chassis"
+ ]
+ }
+ ]
+ },
+ {
+ "path": "system/board/Mt_Mitchell_Motherboard/FAN4",
+ "endpoints":
+ [
+ {
+ "types":
+ {
+ "rType": "inventory",
+ "fType": "sensors"
+ },
+ "paths":
+ [
+ "/xyz/openbmc_project/sensors/fan_tach/FAN4_F",
+ "/xyz/openbmc_project/sensors/fan_tach/FAN4_R"
+ ]
+ },
+ {
+ "types": {
+ "rType": "fault_identified_by",
+ "fType": "fault_identifying"
+ },
+ "paths": [
+ "/xyz/openbmc_project/led/groups/fan_fault"
+ ]
+ },
+ {
+ "types":
+ {
+ "rType": "cooled_by",
+ "fType": "cooling"
+ },
+ "paths":
+ [
+ "/xyz/openbmc_project/inventory/system/chassis"
+ ]
+ }
+ ]
+ },
+ {
+ "path": "system/board/Mt_Mitchell_Motherboard/FAN5",
+ "endpoints":
+ [
+ {
+ "types":
+ {
+ "rType": "inventory",
+ "fType": "sensors"
+ },
+ "paths":
+ [
+ "/xyz/openbmc_project/sensors/fan_tach/FAN5_F",
+ "/xyz/openbmc_project/sensors/fan_tach/FAN5_R"
+ ]
+ },
+ {
+ "types": {
+ "rType": "fault_identified_by",
+ "fType": "fault_identifying"
+ },
+ "paths": [
+ "/xyz/openbmc_project/led/groups/fan_fault"
+ ]
+ },
+ {
+ "types":
+ {
+ "rType": "cooled_by",
+ "fType": "cooling"
+ },
+ "paths":
+ [
+ "/xyz/openbmc_project/inventory/system/chassis"
+ ]
+ }
+ ]
+ }
+] \ No newline at end of file
diff --git a/meta-ampere/meta-mitchell/recipes-phosphor/inventory/phosphor-inventory-manager_%.bbappend b/meta-ampere/meta-mitchell/recipes-phosphor/inventory/phosphor-inventory-manager_%.bbappend
new file mode 100644
index 0000000000..768c66758f
--- /dev/null
+++ b/meta-ampere/meta-mitchell/recipes-phosphor/inventory/phosphor-inventory-manager_%.bbappend
@@ -0,0 +1,10 @@
+DEPENDS:append = " inventory-cleanup"
+
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+PACKAGECONFIG:append = " associations"
+SRC_URI:append = " file://associations.json"
+
+do_install:append() {
+ install -d ${D}${base_datadir}
+ install -m 0755 ${WORKDIR}/associations.json ${D}${base_datadir}
+}
diff --git a/meta-ampere/meta-mitchell/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json b/meta-ampere/meta-mitchell/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json
index 84b78bf42c..ef35e053bb 100644
--- a/meta-ampere/meta-mitchell/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json
+++ b/meta-ampere/meta-mitchell/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json
@@ -43,6 +43,23 @@
"Period": 1000
}
]
+ },
+ {
+ "group": "fan_fault",
+ "members": [
+ {
+ "Name": "fan_fault",
+ "Action": "On",
+ "DutyOn": 50,
+ "Period": 1000
+ },
+ {
+ "Name": "fault",
+ "Action": "On",
+ "DutyOn": 50,
+ "Period": 1000
+ }
+ ]
}
]
}