diff options
author | eportnov <eportnov@ibs.ru> | 2022-06-24 10:31:26 +0300 |
---|---|---|
committer | eportnov <eportnov@ibs.ru> | 2022-06-29 12:23:23 +0300 |
commit | f454c4d6ac9b17a29ccadaf285ea6bb23013d794 (patch) | |
tree | 9014ee96756fd49fb1c763576dcfc9449e28dbd7 | |
parent | ffa10feef7f28375764204742eb6ff5cda121124 (diff) | |
download | openbmc-f454c4d6ac9b17a29ccadaf285ea6bb23013d794.tar.xz |
Add template chassis
4 files changed, 2107 insertions, 0 deletions
diff --git a/meta-ibs/meta-cp2-5422/recipes-phosphor/inventory/phosphor-inventory-manager-chassis.bb b/meta-ibs/meta-cp2-5422/recipes-phosphor/inventory/phosphor-inventory-manager-chassis.bb new file mode 100644 index 0000000000..145078f099 --- /dev/null +++ b/meta-ibs/meta-cp2-5422/recipes-phosphor/inventory/phosphor-inventory-manager-chassis.bb @@ -0,0 +1,18 @@ +SUMMARY = "Add Chassis interface for inventory manager" +PR = "r1" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" + +inherit allarch +inherit phosphor-inventory-manager + +PROVIDES += "virtual/phosphor-inventory-manager-chassis" +S = "${WORKDIR}" + +SRC_URI = "file://chassis.yaml" + +do_install() { + install -D chassis.yaml ${D}${base_datadir}/events.d/chassis.yaml +} + +FILES:${PN} += "${base_datadir}/events.d/chassis.yaml" diff --git a/meta-ibs/meta-cp2-5422/recipes-phosphor/inventory/phosphor-inventory-manager-chassis/chassis.yaml b/meta-ibs/meta-cp2-5422/recipes-phosphor/inventory/phosphor-inventory-manager-chassis/chassis.yaml new file mode 100644 index 0000000000..f244eb1899 --- /dev/null +++ b/meta-ibs/meta-cp2-5422/recipes-phosphor/inventory/phosphor-inventory-manager-chassis/chassis.yaml @@ -0,0 +1,152 @@ +events: + - name: Add Chassis interface + description: > + Add the chassis interface on the chassis inventory path + type: startup + actions: + - name: createObjects + objs: + /system/board: + xyz.openbmc_project.Inventory.Item.Chassis: + Type: + value: "xyz.openbmc_project.Inventory.Item.Chassis.ChassisType.RackMount" + type: string + /system/board/cpu0: + xyz.openbmc_project.Inventory.Item.Cpu: + Socket: + value: "FCLGA2011-3" + type: string + Family: + value: "XeonCPU-3" + type: string + #EffectiveFamily: + #value: 2 + #type: uint16_t + #EffectiveModel: + #value: 0 + #type: uint16_t + #Id: + #value: 1 + #type: uint64_t + #MaxSpeedInMhz: + #value: 4200 + #type: uint32_t + #Characteristics: + #value: [Capable64bit] + #type: array[enum[self.Capability]] + #CoreCount: + #value: 2 + #type: uint16_t + #ThreadCount: + #value: 0 + #type: uint16_t + #Step: + #value: 1 + #type: uint16_t + #Microcode: + #value: 4200 + #type: uint32_t + #/system/board/cpu0/core0: + #xyz.openbmc_project.Inventory.Item.CpuCore: + #Microcode: + #value: 0 + #type: uint32_t + /system/board/cpu0/operation0: + xyz.openbmc_project.Inventory.Item.CpuCore.OperatingConfig: + #BaseSpeed: + #value: 0 + #type: uint32_t + #BaseSpeedPrioritySettings: + #value: [] + #type: array[struct[uint32, array[uint32]]] + #MaxJunctionTemperature: + #value: 100 + #type: uint32_t + #MaxSpeed: + #value: 5000 + #type: uint32_t + #PowerLimit: + #value: 1000 + #type: uint32_t + #AvailableCoreCount: + #value: 12 + #type: size + #TurboProfile: + #value: [] + #type: array[struct[uint32, size]] + /system/board/dimm0: + xyz.openbmc_project.Inventory.Item.Dimm: + #MemoryDataWidth: + #value: 10 + #type: uint16_t + #MemorySizeInKB: + #value: 16000000 + #type: size + #MemoryDeviceLocator: + #value: 10 + #type: uint16_t + #MemoryType: + #value: "DRAM" + #type: enum[self.DeviceType] + MemoryTypeDetail: + value: "More details" + type: string + #MaxMemorySpeedInMhz: + #value: 2600 + #type: uint16_t + #MemoryAttributes: + #value: 0x07 + #type: byte + #MemoryConfiguredSpeedInMhz: + #value: 2600 + #type: uint16_t + #ECC: + #value: MultiBitECC + #type: enum[self.Ecc] + #CASLatencies: + #value: 21 + #type: uint16_t + #RevisionCode: + #value: 1 + #type: uint16_t + #FormFactor: + #value: "RDIMM" + #type: enum[self.FormFactor] + #MemoryTotalWidth: + #value: 256 + #type: uint16_t + #AllowedSpeedsMT: + #value: [2600] + #type: array[uint16] + #MemoryAttributes: + #value: 0x07 + #type: byte + #MemoryMedia: + #value: "DRAM" + #type: enum[self.MemoryTech] + /system/board/dimm0/memory_location0: + xyz.openbmc_project.Inventory.Item.Dimm.MemoryLocation: + #Socket: + #value: 0x01 + #type: byte + #MemoryController: + #value: 0x03 + #type: byte + #Channel: + #value: 0x08 + #type: byte + #Slot: + #value: 0x01 + #type: byte + /system/board/fan0: + xyz.openbmc_project.Inventory.Item.Fan: + /system/board/fan1: + xyz.openbmc_project.Inventory.Item.Fan: + /system/board/fan2: + xyz.openbmc_project.Inventory.Item.Fan: + /system/board/fan3: + xyz.openbmc_project.Inventory.Item.Fan: + + + + diff --git a/meta-ibs/meta-cp2-5422/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json b/meta-ibs/meta-cp2-5422/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json new file mode 100644 index 0000000000..0f3ffa3d21 --- /dev/null +++ b/meta-ibs/meta-cp2-5422/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json @@ -0,0 +1,1927 @@ +[ + { + "path": "system/chassis/motherboard/powersupply0", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/power/ps0_input_power", + "/xyz/openbmc_project/sensors/power/ps0_output_power", + "/xyz/openbmc_project/sensors/voltage/ps0_input_voltage", + "/xyz/openbmc_project/sensors/voltage/ps0_output_voltage", + "/xyz/openbmc_project/sensors/current/ps0_input_current", + "/xyz/openbmc_project/sensors/current/ps0_output_current", + "/xyz/openbmc_project/sensors/temperature/psu_inlet", + "/xyz/openbmc_project/sensors/voltage/P12V", + "/xyz/openbmc_project/sensors/voltage/P3V3" + ] + }, + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front_psu" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/powersupply0_fault" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/powersupply1", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/power/ps1_input_power", + "/xyz/openbmc_project/sensors/power/ps1_output_power", + "/xyz/openbmc_project/sensors/voltage/ps1_input_voltage", + "/xyz/openbmc_project/sensors/voltage/ps1_output_voltage", + "/xyz/openbmc_project/sensors/current/ps1_input_current", + "/xyz/openbmc_project/sensors/current/ps1_output_current", + "/xyz/openbmc_project/sensors/temperature/psu_inlet", + "/xyz/openbmc_project/sensors/voltage/P12V", + "/xyz/openbmc_project/sensors/voltage/P3V3" + ] + }, + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front_psu" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/powersupply1_fault" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/fan0", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/fan_tach/fan0_0", + "/xyz/openbmc_project/sensors/fan_tach/fan0_1" + ] + }, + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front_fan" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/fan0_fault" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/fan1", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/fan_tach/fan1_0", + "/xyz/openbmc_project/sensors/fan_tach/fan1_1" + ] + }, + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front_fan" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/fan1_fault" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/fan2", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/fan_tach/fan2_0", + "/xyz/openbmc_project/sensors/fan_tach/fan2_1" + ] + }, + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front_fan" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/fan2_fault" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/fan3", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/fan_tach/fan3_0", + "/xyz/openbmc_project/sensors/fan_tach/fan3_1" + ] + }, + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front_fan" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/fan3_fault" + ] + } + ] + }, + { + "path": "system/chassis/motherboard", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/inlet", + "/xyz/openbmc_project/sensors/temperature/bmc_zone", + "/xyz/openbmc_project/sensors/voltage/PVDD_CPU0", + "/xyz/openbmc_project/sensors/voltage/PVCS_CPU0", + "/xyz/openbmc_project/sensors/voltage/PVDDQ_CPU0_CH01", + "/xyz/openbmc_project/sensors/voltage/PVDDQ_CPU0_CH67", + "/xyz/openbmc_project/sensors/voltage/PVDN_CPU0", + "/xyz/openbmc_project/sensors/voltage/PVIO_CPU0", + "/xyz/openbmc_project/sensors/voltage/PVDD_CPU1", + "/xyz/openbmc_project/sensors/voltage/PVCS_CPU1", + "/xyz/openbmc_project/sensors/voltage/PVDDQ_CPU1_CH01", + "/xyz/openbmc_project/sensors/voltage/PVDDQ_CPU1_CH67", + "/xyz/openbmc_project/sensors/voltage/PVDN_CPU1", + "/xyz/openbmc_project/sensors/voltage/PVIO_CPU1" + ] + }, + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front_syshealth" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/bmc_fault" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front-syshot" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/cpu0_fault" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front-syshot" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/cpu1_fault" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0/core0", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p0_core0_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0/core1", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p0_core1_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0/core2", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p0_core2_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0/core3", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p0_core3_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0/core4", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p0_core4_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0/core5", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p0_core5_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0/core6", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p0_core6_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0/core7", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p0_core7_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0/core8", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p0_core8_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0/core9", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p0_core9_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0/core10", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p0_core10_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0/core11", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p0_core11_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0/core12", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p0_core12_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0/core13", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p0_core13_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0/core14", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p0_core14_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0/core15", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p0_core15_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0/core16", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p0_core16_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0/core17", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p0_core17_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0/core18", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p0_core18_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0/core19", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p0_core19_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0/core20", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p0_core20_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0/core21", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p0_core21_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0/core22", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p0_core22_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu0/core23", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p0_core23_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1/core0", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p1_core0_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1/core1", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p1_core1_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1/core2", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p1_core2_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1/core3", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p1_core3_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1/core4", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p1_core4_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1/core5", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p1_core5_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1/core6", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p1_core6_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1/core7", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p1_core7_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1/core8", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p1_core8_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1/core9", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p1_core9_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1/core10", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p1_core10_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1/core11", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p1_core11_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1/core12", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p1_core12_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1/core13", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p1_core13_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1/core14", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p1_core14_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1/core15", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p1_core15_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1/core16", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p1_core16_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1/core17", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p1_core17_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1/core18", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p1_core18_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1/core19", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p1_core19_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1/core20", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p1_core20_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1/core21", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p1_core21_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1/core22", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p1_core22_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/cpu1/core23", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/p1_core23_temp" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/dimm0", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/dimm0_temp" + ] + }, + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front-memory" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/dimm0_fault" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/dimm1", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/dimm1_temp" + ] + }, + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front-memory" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/dimm1_fault" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/dimm2", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/dimm2_temp" + ] + }, + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front-memory" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/dimm2_fault" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/dimm3", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/dimm3_temp" + ] + }, + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front-memory" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/dimm3_fault" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/dimm4", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/dimm4_temp" + ] + }, + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front-memory" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/dimm4_fault" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/dimm5", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/dimm5_temp" + ] + }, + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front-memory" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/dimm5_fault" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/dimm6", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/dimm6_temp" + ] + }, + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front-memory" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/dimm6_fault" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/dimm7", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/dimm7_temp" + ] + }, + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front-memory" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/dimm7_fault" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/dimm8", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/dimm8_temp" + ] + }, + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front-memory" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/dimm8_fault" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/dimm9", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/dimm9_temp" + ] + }, + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front-memory" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/dimm9_fault" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/dimm10", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/dimm10_temp" + ] + }, + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front-memory" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/dimm10_fault" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/dimm11", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/dimm11_temp" + ] + }, + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front-memory" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/dimm11_fault" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/dimm12", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/dimm12_temp" + ] + }, + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front-memory" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/dimm12_fault" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/dimm13", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/dimm13_temp" + ] + }, + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front-memory" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/dimm13_fault" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/dimm14", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/dimm14_temp" + ] + }, + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front-memory" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/dimm14_fault" + ] + } + ] + }, + { + "path": "system/chassis/motherboard/dimm15", + "endpoints": + [ + { + "types": + { + "rType": "inventory", + "fType": "sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/temperature/dimm15_temp" + ] + }, + { + "types": + { + "rType": "inventory", + "fType": "leds" + }, + "paths": + [ + "/xyz/openbmc_project/led/physical/front-memory" + ] + }, + { + "types": + { + "rType": "fru", + "fType": "fault_led_group" + }, + "paths": + [ + "/xyz/openbmc_project/led/groups/dimm15_fault" + ] + } + ] + }, + { + "path": "system/chassis", + "endpoints": + [ + { + "types": + { + "rType": "chassis", + "fType": "all_sensors" + }, + "paths": + [ + "/xyz/openbmc_project/sensors/fan_tach/fan0_0", + "/xyz/openbmc_project/sensors/fan_tach/fan0_1", + "/xyz/openbmc_project/sensors/fan_tach/fan1_0", + "/xyz/openbmc_project/sensors/fan_tach/fan1_1", + "/xyz/openbmc_project/sensors/fan_tach/fan2_0", + "/xyz/openbmc_project/sensors/fan_tach/fan2_1", + "/xyz/openbmc_project/sensors/fan_tach/fan3_0", + "/xyz/openbmc_project/sensors/fan_tach/fan3_1", + + "/xyz/openbmc_project/sensors/temperature/p0_core0_temp", + "/xyz/openbmc_project/sensors/temperature/p0_core1_temp", + "/xyz/openbmc_project/sensors/temperature/p0_core2_temp", + "/xyz/openbmc_project/sensors/temperature/p0_core3_temp", + "/xyz/openbmc_project/sensors/temperature/p0_core4_temp", + "/xyz/openbmc_project/sensors/temperature/p0_core5_temp", + "/xyz/openbmc_project/sensors/temperature/p0_core6_temp", + "/xyz/openbmc_project/sensors/temperature/p0_core7_temp", + "/xyz/openbmc_project/sensors/temperature/p0_core8_temp", + "/xyz/openbmc_project/sensors/temperature/p0_core9_temp", + "/xyz/openbmc_project/sensors/temperature/p0_core10_temp", + "/xyz/openbmc_project/sensors/temperature/p0_core11_temp", + "/xyz/openbmc_project/sensors/temperature/p0_core12_temp", + "/xyz/openbmc_project/sensors/temperature/p0_core13_temp", + "/xyz/openbmc_project/sensors/temperature/p0_core14_temp", + "/xyz/openbmc_project/sensors/temperature/p0_core15_temp", + "/xyz/openbmc_project/sensors/temperature/p0_core16_temp", + "/xyz/openbmc_project/sensors/temperature/p0_core17_temp", + "/xyz/openbmc_project/sensors/temperature/p0_core18_temp", + "/xyz/openbmc_project/sensors/temperature/p0_core19_temp", + "/xyz/openbmc_project/sensors/temperature/p0_core20_temp", + "/xyz/openbmc_project/sensors/temperature/p0_core21_temp", + "/xyz/openbmc_project/sensors/temperature/p0_core22_temp", + "/xyz/openbmc_project/sensors/temperature/p0_core23_temp", + "/xyz/openbmc_project/sensors/temperature/p1_core0_temp", + "/xyz/openbmc_project/sensors/temperature/p1_core1_temp", + "/xyz/openbmc_project/sensors/temperature/p1_core2_temp", + "/xyz/openbmc_project/sensors/temperature/p1_core3_temp", + "/xyz/openbmc_project/sensors/temperature/p1_core4_temp", + "/xyz/openbmc_project/sensors/temperature/p1_core5_temp", + "/xyz/openbmc_project/sensors/temperature/p1_core6_temp", + "/xyz/openbmc_project/sensors/temperature/p1_core7_temp", + "/xyz/openbmc_project/sensors/temperature/p1_core8_temp", + "/xyz/openbmc_project/sensors/temperature/p1_core9_temp", + "/xyz/openbmc_project/sensors/temperature/p1_core10_temp", + "/xyz/openbmc_project/sensors/temperature/p1_core11_temp", + "/xyz/openbmc_project/sensors/temperature/p1_core12_temp", + "/xyz/openbmc_project/sensors/temperature/p1_core13_temp", + "/xyz/openbmc_project/sensors/temperature/p1_core14_temp", + "/xyz/openbmc_project/sensors/temperature/p1_core15_temp", + "/xyz/openbmc_project/sensors/temperature/p1_core16_temp", + "/xyz/openbmc_project/sensors/temperature/p1_core17_temp", + "/xyz/openbmc_project/sensors/temperature/p1_core18_temp", + "/xyz/openbmc_project/sensors/temperature/p1_core19_temp", + "/xyz/openbmc_project/sensors/temperature/p1_core20_temp", + "/xyz/openbmc_project/sensors/temperature/p1_core21_temp", + "/xyz/openbmc_project/sensors/temperature/p1_core22_temp", + "/xyz/openbmc_project/sensors/temperature/p1_core23_temp", + + "/xyz/openbmc_project/sensors/temperature/dimm0_temp", + "/xyz/openbmc_project/sensors/temperature/dimm1_temp", + "/xyz/openbmc_project/sensors/temperature/dimm2_temp", + "/xyz/openbmc_project/sensors/temperature/dimm3_temp", + "/xyz/openbmc_project/sensors/temperature/dimm4_temp", + "/xyz/openbmc_project/sensors/temperature/dimm5_temp", + "/xyz/openbmc_project/sensors/temperature/dimm6_temp", + "/xyz/openbmc_project/sensors/temperature/dimm7_temp", + "/xyz/openbmc_project/sensors/temperature/dimm8_temp", + "/xyz/openbmc_project/sensors/temperature/dimm9_temp", + "/xyz/openbmc_project/sensors/temperature/dimm10_temp", + "/xyz/openbmc_project/sensors/temperature/dimm11_temp", + "/xyz/openbmc_project/sensors/temperature/dimm12_temp", + "/xyz/openbmc_project/sensors/temperature/dimm13_temp", + "/xyz/openbmc_project/sensors/temperature/dimm14_temp", + "/xyz/openbmc_project/sensors/temperature/dimm15_temp", + + "/xyz/openbmc_project/sensors/temperature/inlet", + "/xyz/openbmc_project/sensors/temperature/outlet", + "/xyz/openbmc_project/sensors/temperature/ocp_zone", + "/xyz/openbmc_project/sensors/temperature/bmc_zone", + "/xyz/openbmc_project/sensors/voltage/P12V", + "/xyz/openbmc_project/sensors/voltage/P3V3", + "/xyz/openbmc_project/sensors/voltage/P5V", + "/xyz/openbmc_project/sensors/voltage/PVCS_CPU0", + "/xyz/openbmc_project/sensors/voltage/PVCS_CPU1", + "/xyz/openbmc_project/sensors/voltage/PVDDQ_CPU0_CH01", + "/xyz/openbmc_project/sensors/voltage/PVDDQ_CPU0_CH067", + "/xyz/openbmc_project/sensors/voltage/PVDDQ_CPU1_CH01", + "/xyz/openbmc_project/sensors/voltage/PVDDQ_CPU1_CH067", + "/xyz/openbmc_project/sensors/voltage/PVDD_CPU0", + "/xyz/openbmc_project/sensors/voltage/PVDD_CPU1", + "/xyz/openbmc_project/sensors/voltage/PVDN_CPU0", + "/xyz/openbmc_project/sensors/voltage/PVDN_CPU1", + "/xyz/openbmc_project/sensors/voltage/PVIO_CPU0", + "/xyz/openbmc_project/sensors/voltage/PVIO_CPU1", + "/xyz/openbmc_project/sensors/power/ps0_input_power", + "/xyz/openbmc_project/sensors/power/ps0_output_power", + "/xyz/openbmc_project/sensors/power/ps1_input_power", + "/xyz/openbmc_project/sensors/power/ps1_output_power", + "/xyz/openbmc_project/sensors/voltage/ps0_input_voltage", + "/xyz/openbmc_project/sensors/voltage/ps0_output_voltage", + "/xyz/openbmc_project/sensors/voltage/ps1_input_voltage", + "/xyz/openbmc_project/sensors/voltage/ps1_output_voltage", + "/xyz/openbmc_project/sensors/current/ps0_input_current", + "/xyz/openbmc_project/sensors/current/ps0_output_current", + "/xyz/openbmc_project/sensors/current/ps1_input_current", + "/xyz/openbmc_project/sensors/current/ps1_output_current", + "/xyz/openbmc_project/sensors/temperature/psu_inlet" + ] + } + ] + } +] diff --git a/meta-ibs/meta-cp2-5422/recipes-phosphor/inventory/phosphor-inventory-manager_%.bbappend b/meta-ibs/meta-cp2-5422/recipes-phosphor/inventory/phosphor-inventory-manager_%.bbappend new file mode 100644 index 0000000000..0620c2d8c9 --- /dev/null +++ b/meta-ibs/meta-cp2-5422/recipes-phosphor/inventory/phosphor-inventory-manager_%.bbappend @@ -0,0 +1,10 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" +PACKAGECONFIG:append = " associations" +SRC_URI += " file://associations.json" + +DEPENDS += " phosphor-inventory-manager-chassis" + +do_install:append() { + install -d ${D}${base_datadir} + install -m 0755 ${WORKDIR}/associations.json ${D}${base_datadir}/associations.json +} |