meta-ibm: p10bmc: Add occ to processor associations

Adding an association between the OCCs and processors, so that the
throttle status can be associated with the applicable processor.

The processor is power_managed_by the OCC.
The OCC is power_managing the processor.

Change-Id: I4f5b9f4ec347665316dae87e1995cebb52ef374c
Signed-off-by: Chris Cain <cjcain@us.ibm.com>
diff --git a/meta-ibm/recipes-phosphor/inventory/phosphor-inventory-manager/p10bmc/ibm,everest_associations.json b/meta-ibm/recipes-phosphor/inventory/phosphor-inventory-manager/p10bmc/ibm,everest_associations.json
index 7beef08..f487cf6 100644
--- a/meta-ibm/recipes-phosphor/inventory/phosphor-inventory-manager/p10bmc/ibm,everest_associations.json
+++ b/meta-ibm/recipes-phosphor/inventory/phosphor-inventory-manager/p10bmc/ibm,everest_associations.json
@@ -2095,6 +2095,17 @@
                     [
                         "/xyz/openbmc_project/led/groups/cpu0_c14_identify"
                     ]
+                },
+                {
+                    "types":
+                    {
+                        "rType": "power_managed_by",
+                        "fType": "power_managing"
+                    },
+                    "paths":
+                    [
+                        "/org/open_power/control/occ0"
+                    ]
                 }
             ]
         },
@@ -2123,6 +2134,17 @@
                     [
                         "/xyz/openbmc_project/led/groups/cpu0_c14_identify"
                     ]
+                },
+                {
+                    "types":
+                    {
+                        "rType": "power_managed_by",
+                        "fType": "power_managing"
+                    },
+                    "paths":
+                    [
+                        "/org/open_power/control/occ1"
+                    ]
                 }
             ]
         },
@@ -2151,6 +2173,17 @@
                     [
                         "/xyz/openbmc_project/led/groups/cpu1_c19_identify"
                     ]
+                },
+                {
+                    "types":
+                    {
+                        "rType": "power_managed_by",
+                        "fType": "power_managing"
+                    },
+                    "paths":
+                    [
+                        "/org/open_power/control/occ2"
+                    ]
                 }
             ]
         },
@@ -2179,6 +2212,17 @@
                     [
                         "/xyz/openbmc_project/led/groups/cpu1_c19_identify"
                     ]
+                },
+                {
+                    "types":
+                    {
+                        "rType": "power_managed_by",
+                        "fType": "power_managing"
+                    },
+                    "paths":
+                    [
+                        "/org/open_power/control/occ3"
+                    ]
                 }
             ]
         },
@@ -2207,6 +2251,17 @@
                     [
                         "/xyz/openbmc_project/led/groups/cpu2_c56_identify"
                     ]
+                },
+                {
+                    "types":
+                    {
+                        "rType": "power_managed_by",
+                        "fType": "power_managing"
+                    },
+                    "paths":
+                    [
+                        "/org/open_power/control/occ4"
+                    ]
                 }
             ]
         },
@@ -2235,6 +2290,17 @@
                     [
                         "/xyz/openbmc_project/led/groups/cpu2_c56_identify"
                     ]
+                },
+                {
+                    "types":
+                    {
+                        "rType": "power_managed_by",
+                        "fType": "power_managing"
+                    },
+                    "paths":
+                    [
+                        "/org/open_power/control/occ5"
+                    ]
                 }
             ]
         },
@@ -2263,6 +2329,17 @@
                     [
                         "/xyz/openbmc_project/led/groups/cpu3_c61_identify"
                     ]
+                },
+                {
+                    "types":
+                    {
+                        "rType": "power_managed_by",
+                        "fType": "power_managing"
+                    },
+                    "paths":
+                    [
+                        "/org/open_power/control/occ6"
+                    ]
                 }
             ]
         },
@@ -2291,6 +2368,17 @@
                     [
                         "/xyz/openbmc_project/led/groups/cpu3_c61_identify"
                     ]
+                },
+                {
+                    "types":
+                    {
+                        "rType": "power_managed_by",
+                        "fType": "power_managing"
+                    },
+                    "paths":
+                    [
+                        "/org/open_power/control/occ7"
+                    ]
                 }
             ]
         },
diff --git a/meta-ibm/recipes-phosphor/inventory/phosphor-inventory-manager/p10bmc/ibm,rainier-2u_associations.json b/meta-ibm/recipes-phosphor/inventory/phosphor-inventory-manager/p10bmc/ibm,rainier-2u_associations.json
index de16f2a..fed6622 100644
--- a/meta-ibm/recipes-phosphor/inventory/phosphor-inventory-manager/p10bmc/ibm,rainier-2u_associations.json
+++ b/meta-ibm/recipes-phosphor/inventory/phosphor-inventory-manager/p10bmc/ibm,rainier-2u_associations.json
@@ -733,6 +733,17 @@
                     [
                         "/xyz/openbmc_project/led/groups/cpu0_identify"
                     ]
+                },
+                {
+                    "types":
+                    {
+                        "rType": "power_managed_by",
+                        "fType": "power_managing"
+                    },
+                    "paths":
+                    [
+                        "/org/open_power/control/occ0"
+                    ]
                 }
             ]
         },
@@ -761,6 +772,17 @@
                     [
                         "/xyz/openbmc_project/led/groups/cpu0_identify"
                     ]
+                },
+                {
+                    "types":
+                    {
+                        "rType": "power_managed_by",
+                        "fType": "power_managing"
+                    },
+                    "paths":
+                    [
+                        "/org/open_power/control/occ1"
+                    ]
                 }
             ]
         },
@@ -789,6 +811,17 @@
                     [
                         "/xyz/openbmc_project/led/groups/cpu1_identify"
                     ]
+                },
+                {
+                    "types":
+                    {
+                        "rType": "power_managed_by",
+                        "fType": "power_managing"
+                    },
+                    "paths":
+                    [
+                        "/org/open_power/control/occ2"
+                    ]
                 }
             ]
         },
@@ -817,6 +850,17 @@
                     [
                         "/xyz/openbmc_project/led/groups/cpu1_identify"
                     ]
+                },
+                {
+                    "types":
+                    {
+                        "rType": "power_managed_by",
+                        "fType": "power_managing"
+                    },
+                    "paths":
+                    [
+                        "/org/open_power/control/occ3"
+                    ]
                 }
             ]
         },
diff --git a/meta-ibm/recipes-phosphor/inventory/phosphor-inventory-manager/p10bmc/ibm,rainier-4u_associations.json b/meta-ibm/recipes-phosphor/inventory/phosphor-inventory-manager/p10bmc/ibm,rainier-4u_associations.json
index 3c6e180..d9aeb78 100644
--- a/meta-ibm/recipes-phosphor/inventory/phosphor-inventory-manager/p10bmc/ibm,rainier-4u_associations.json
+++ b/meta-ibm/recipes-phosphor/inventory/phosphor-inventory-manager/p10bmc/ibm,rainier-4u_associations.json
@@ -875,6 +875,17 @@
                     [
                         "/xyz/openbmc_project/led/groups/cpu0_identify"
                     ]
+                },
+                {
+                    "types":
+                    {
+                        "rType": "power_managed_by",
+                        "fType": "power_managing"
+                    },
+                    "paths":
+                    [
+                        "/org/open_power/control/occ0"
+                    ]
                 }
             ]
         },
@@ -903,6 +914,17 @@
                     [
                         "/xyz/openbmc_project/led/groups/cpu0_identify"
                     ]
+                },
+                {
+                    "types":
+                    {
+                        "rType": "power_managed_by",
+                        "fType": "power_managing"
+                    },
+                    "paths":
+                    [
+                        "/org/open_power/control/occ1"
+                    ]
                 }
             ]
         },
@@ -931,6 +953,17 @@
                     [
                         "/xyz/openbmc_project/led/groups/cpu1_identify"
                     ]
+                },
+                {
+                    "types":
+                    {
+                        "rType": "power_managed_by",
+                        "fType": "power_managing"
+                    },
+                    "paths":
+                    [
+                        "/org/open_power/control/occ2"
+                    ]
                 }
             ]
         },
@@ -959,6 +992,17 @@
                     [
                         "/xyz/openbmc_project/led/groups/cpu1_identify"
                     ]
+                },
+                {
+                    "types":
+                    {
+                        "rType": "power_managed_by",
+                        "fType": "power_managing"
+                    },
+                    "paths":
+                    [
+                        "/org/open_power/control/occ3"
+                    ]
                 }
             ]
         },