Move Jsons, services and rules to VPD repo
This commit moves Jsons, service files and rules to the VPD repo,
and installing it by meson.
Test: Tested the image on simics and a rainier system , booted to
standby succesfully.
Also, I verified all the jsons, rules and service files are in the
appropriate location.
Signed-off-by: Alpana Kumari <alpankum@in.ibm.com>
Change-Id: I538b7159e5226134c3e0d16bbb1686166cd17441
diff --git a/ibm_vpd/fru/vpd_inventory.json b/ibm_vpd/fru/vpd_inventory.json
new file mode 100644
index 0000000..09ba571
--- /dev/null
+++ b/ibm_vpd/fru/vpd_inventory.json
@@ -0,0 +1,491 @@
+{
+ "commonInterfaces": {
+ "xyz.openbmc_project.Inventory.Decorator.Asset": {
+ "PartNumber": {
+ "recordName": "VINI",
+ "keywordName": "PN"
+ },
+ "SerialNumber": {
+ "recordName": "VINI",
+ "keywordName": "SN"
+ },
+ "SparePartNumber": {
+ "recordName": "VINI",
+ "keywordName": "FN"
+ },
+ "Model": {
+ "recordName": "VINI",
+ "keywordName": "CC"
+ },
+ "BuildDate": {
+ "recordName": "VR10",
+ "keywordName": "DC",
+ "encoding": "DATE"
+ }
+ },
+ "xyz.openbmc_project.Inventory.Item": {
+ "PrettyName": {
+ "recordName": "VINI",
+ "keywordName": "DR"
+ },
+ "Present": true
+ }
+ },
+ "frus": {
+ "/sys/bus/i2c/drivers/at24/8-0050/eeprom": [
+ {
+ "inventoryPath": "/system/chassis/motherboard",
+ "isSystemVpd": true,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Board.Motherboard": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-P0"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system",
+ "inherit": false,
+ "isSystemVpd": true,
+ "copyRecords": ["VSYS"],
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.System": null,
+ "xyz.openbmc_project.Inventory.Decorator.Asset": {
+ "SerialNumber": {
+ "recordName": "VSYS",
+ "keywordName": "SE"
+ },
+ "Model": {
+ "recordName": "VSYS",
+ "keywordName": "TM"
+ },
+ "SubModel": {
+ "recordName": "VSYS",
+ "keywordName": "BR"
+ }
+ },
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Umts"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis",
+ "inherit": false,
+ "isSystemVpd": true,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Chassis": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs"
+ }
+ }
+ }
+ ],
+ "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a480.i2c-bus/i2c-8/8-0051/8-00510/nvmem": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/ebmc_card_bmc",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Bmc": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-P0-C5"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/ebmc_card_bmc/ethernet0",
+ "inherit": false,
+ "noprime": true,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Ethernet": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-P0-C5-T0"
+ },
+ "xyz.openbmc_project.Inventory.Item.NetworkInterface": {
+ "MACAddress": {
+ "recordName": "VCFG",
+ "keywordName": "Z0",
+ "encoding": "MAC"
+ }
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/ebmc_card_bmc/ethernet1",
+ "inherit": false,
+ "noprime": true,
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Ethernet": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-P0-C5-T1"
+ },
+ "xyz.openbmc_project.Inventory.Item.NetworkInterface": {
+ "MACAddress": {
+ "recordName": "VCFG",
+ "keywordName": "Z1",
+ "encoding": "MAC"
+ }
+ }
+ }
+ }
+ ],
+ "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a080.i2c-bus/i2c-0/0-0051/0-00510/nvmem": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/tpm_wilson",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Tpm": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-P0-C22"
+ }
+ }
+ }
+ ],
+ "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a400.i2c-bus/i2c-7/7-0050/7-00500/nvmem": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/base_op_panel_blyth",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Panel": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-D0"
+ }
+ }
+ }
+ ],
+ "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a400.i2c-bus/i2c-7/7-0051/7-00510/nvmem": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/lcd_op_panel_hill",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Panel": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-D1"
+ }
+ }
+ }
+ ],
+ "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a500.i2c-bus/i2c-9/9-0050/9-00500/nvmem": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/vdd_vrm0",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Vrm": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-P0-C14"
+ }
+ }
+ }
+ ],
+ "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a580.i2c-bus/i2c-10/10-0050/10-00500/nvmem": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/vdd_vrm1",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Vrm": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-P0-C23"
+ }
+ }
+ }
+ ],
+ "/sys/devices/platform/ahb/ahb:apb/1e79b000.fsi/fsi-master/fsi0/slave@00:00/00:00:00:04/spi_master/spi12/spi12.0/spi12.00/nvmem": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/cpu0",
+ "powerOffOnly": true,
+ "offset": 196608,
+ "size": 65504,
+ "type": "fruAndModule",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Cpu": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-P0-C15"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/cpu1",
+ "inheritEI": false,
+ "type": "moduleOnly",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Cpu": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-P0-C15"
+ }
+ }
+ }
+ ],
+ "/sys/devices/platform/ahb/ahb:apb/1e79b000.fsi/fsi-master/fsi0/slave@00:00/00:00:00:0a/fsi-master/fsi1/slave@01:00/01:01:00:04/spi_master/spi22/spi22.0/spi22.00/nvmem": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/cpu1",
+ "powerOffOnly": true,
+ "offset": 196608,
+ "size": 65504,
+ "inherit": false,
+ "type": "moduleOnly",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Cpu": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-P0-C15"
+ }
+ }
+ }
+ ],
+ "/sys/devices/platform/ahb/ahb:apb/1e79b000.fsi/fsi-master/fsi0/slave@00:00/00:00:00:0a/fsi-master/fsi1/slave@02:00/01:02:00:04/spi_master/spi32/spi32.0/spi32.00/nvmem": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/cpu2",
+ "powerOffOnly": true,
+ "offset": 196608,
+ "size": 65504,
+ "type": "fruAndModule",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Cpu": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-P0-C24"
+ }
+ }
+ },
+ {
+ "inventoryPath": "/system/chassis/motherboard/cpu3",
+ "inheritEI": false,
+ "type": "moduleOnly",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Cpu": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-P0-C24"
+ }
+ }
+ }
+ ],
+ "/sys/devices/platform/ahb/ahb:apb/1e79b000.fsi/fsi-master/fsi0/slave@00:00/00:00:00:0a/fsi-master/fsi1/slave@03:00/01:03:00:04/spi_master/spi42/spi42.0/spi42.00/nvmem": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/cpu3",
+ "powerOffOnly": true,
+ "offset": 196608,
+ "size": 65504,
+ "inherit": false,
+ "type": "moduleOnly",
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.Cpu": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-P0-C24"
+ }
+ }
+ }
+ ],
+ "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a280.i2c-bus/i2c-4/4-0050/4-00500/nvmem": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card0",
+ "bind": "4-0050",
+ "preAction": {
+ "pin": "SLOT0_PRSNT_EN_RSVD",
+ "value": 1
+ },
+ "postActionFail": {
+ "pin": "SLOT0_PRSNT_EN_RSVD",
+ "value": 0
+ },
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeDevice": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-P0-C0"
+ }
+ }
+ }
+ ],
+ "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a300.i2c-bus/i2c-5/5-0050/5-00500/nvmem": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card3",
+ "bind": "5-0050",
+ "preAction": {
+ "pin": "SLOT3_PRSNT_EN_RSVD",
+ "value": 1
+ },
+ "postActionFail": {
+ "pin": "SLOT3_PRSNT_EN_RSVD",
+ "value": 0
+ },
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeDevice": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-P0-C3"
+ }
+ }
+ }
+ ],
+ "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a300.i2c-bus/i2c-5/5-0051/5-00510/nvmem": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card4",
+ "bind": "5-0051",
+ "preAction": {
+ "pin": "SLOT4_PRSNT_EN_RSVD",
+ "value": 1
+ },
+ "postActionFail": {
+ "pin": "SLOT4_PRSNT_EN_RSVD",
+ "value": 0
+ },
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeDevice": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-P0-C4"
+ }
+ }
+ }
+ ],
+ "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a600.i2c-bus/i2c-11/11-0050/11-00500/nvmem": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card10",
+ "bind": "11-0050",
+ "preAction": {
+ "pin": "SLOT10_PRSNT_EN_RSVD",
+ "value": 1
+ },
+ "postActionFail": {
+ "pin": "SLOT10_PRSNT_EN_RSVD",
+ "value": 0
+ },
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeDevice": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-P0-C10"
+ }
+ }
+ }
+ ],
+ "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a280.i2c-bus/i2c-4/4-0052/4-00520/nvmem": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card2",
+ "bind": "4-0052",
+ "preAction": {
+ "pin": "SLOT2_PRSNT_EN_RSVD",
+ "value": 1
+ },
+ "postActionFail": {
+ "pin": "SLOT2_PRSNT_EN_RSVD",
+ "value": 0
+ },
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeDevice": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-P0-C2"
+ }
+ }
+ }
+ ],
+ "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a380.i2c-bus/i2c-6/6-0053/6-00530/nvmem": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card6",
+ "bind": "6-0053",
+ "preAction": {
+ "pin": "SLOT6_PRSNT_EN_RSVD",
+ "value": 1
+ },
+ "postActionFail": {
+ "pin": "SLOT6_PRSNT_EN_RSVD",
+ "value": 0
+ },
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeDevice": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-P0-C6"
+ }
+ }
+ }
+ ],
+ "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a380.i2c-bus/i2c-6/6-0052/6-00520/nvmem": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card7",
+ "bind": "6-0052",
+ "preAction": {
+ "pin": "SLOT7_PRSNT_EN_RSVD",
+ "value": 1
+ },
+ "postActionFail": {
+ "pin": "SLOT7_PRSNT_EN_RSVD",
+ "value": 0
+ },
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeDevice": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-P0-C7"
+ }
+ }
+ }
+ ],
+ "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a380.i2c-bus/i2c-6/6-0050/6-00500/nvmem": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card9",
+ "bind": "6-0050",
+ "preAction": {
+ "pin": "SLOT9_PRSNT_EN_RSVD",
+ "value": 1
+ },
+ "postActionFail": {
+ "pin": "SLOT9_PRSNT_EN_RSVD",
+ "value": 0
+ },
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeDevice": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-P0-C9"
+ }
+ }
+ }
+ ],
+ "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a600.i2c-bus/i2c-11/11-0051/11-00510/nvmem": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card11",
+ "bind": "11-0051",
+ "preAction": {
+ "pin": "SLOT11_PRSNT_EN_RSVD",
+ "value": 1
+ },
+ "postActionFail": {
+ "pin": "SLOT11_PRSNT_EN_RSVD",
+ "value": 0
+ },
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeDevice": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-P0-C11"
+ }
+ }
+ }
+ ],
+ "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a280.i2c-bus/i2c-4/4-0051/4-00510/nvmem": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card1",
+ "bind": "4-0051",
+ "preAction": {
+ "pin": "SLOT1_PRSNT_EN_RSVD",
+ "value": 1
+ },
+ "postActionFail": {
+ "pin": "SLOT1_PRSNT_EN_RSVD",
+ "value": 0
+ },
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeDevice": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-P0-C1"
+ }
+ }
+ }
+ ],
+ "/sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a380.i2c-bus/i2c-6/6-0051/6-00510/nvmem": [
+ {
+ "inventoryPath": "/system/chassis/motherboard/pcie_cable_card8",
+ "bind": "6-0051",
+ "preAction": {
+ "pin": "SLOT8_PRSNT_EN_RSVD",
+ "value": 1
+ },
+ "postActionFail": {
+ "pin": "SLOT8_PRSNT_EN_RSVD",
+ "value": 0
+ },
+ "extraInterfaces": {
+ "xyz.openbmc_project.Inventory.Item.PCIeDevice": null,
+ "com.ibm.ipzvpd.Location": {
+ "LocationCode": "Ufcs-P0-C8"
+ }
+ }
+ }
+ ]
+ }
+}