prettier: re-format
Prettier is enabled in openbmc-build-scripts on Markdown, JSON, and YAML
files to have consistent formatting for these file types. Re-run the
formatter on the whole repository.
Change-Id: I2e1710e269896e36a8bd864cfc81ff3b1c033222
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/scripts/entity-example.md b/scripts/entity-example.md
index 98dbade..c2c6f4b 100644
--- a/scripts/entity-example.md
+++ b/scripts/entity-example.md
@@ -1,4 +1,5 @@
-If your platform requires the entity container map, you can provide a json file of the format:
+If your platform requires the entity container map, you can provide a json file
+of the format:
```
[
diff --git a/scripts/fru-read-example.yaml b/scripts/fru-read-example.yaml
index 41e1598..a186794 100644
--- a/scripts/fru-read-example.yaml
+++ b/scripts/fru-read-example.yaml
@@ -11,129 +11,129 @@
# d-bus Properties
# IPMI Fru mapping
0:
- /system:
- entityID: 23
- entityInstance: 1
- interfaces:
- xyz.openbmc_project.Inventory.Item:
- PrettyName:
- IPMIFruProperty: Product Name
- IPMIFruSection: Product
- xyz.openbmc_project.Inventory.Decorator.Asset:
- Manufacturer:
- IPMIFruProperty: Manufacturer
- IPMIFruSection: Product
- PartNumber:
- IPMIFruProperty: Part Number
- IPMIFruSection: Product
- SerialNumber:
- IPMIFruProperty: Serial Number
- IPMIFruSection: Product
- BuildDate:
- IPMIFruProperty: Mfg Date
- IPMIFruSection: Product
- xyz.openbmc_project.Inventory.Decorator.Revision:
- Version:
- IPMIFruProperty: Version
- IPMIFruSection: Product
- xyz.openbmc_project.Inventory.Item.System:
+ /system:
+ entityID: 23
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.Inventory.Item:
+ PrettyName:
+ IPMIFruProperty: Product Name
+ IPMIFruSection: Product
+ xyz.openbmc_project.Inventory.Decorator.Asset:
+ Manufacturer:
+ IPMIFruProperty: Manufacturer
+ IPMIFruSection: Product
+ PartNumber:
+ IPMIFruProperty: Part Number
+ IPMIFruSection: Product
+ SerialNumber:
+ IPMIFruProperty: Serial Number
+ IPMIFruSection: Product
+ BuildDate:
+ IPMIFruProperty: Mfg Date
+ IPMIFruSection: Product
+ xyz.openbmc_project.Inventory.Decorator.Revision:
+ Version:
+ IPMIFruProperty: Version
+ IPMIFruSection: Product
+ xyz.openbmc_project.Inventory.Item.System:
1:
- /system/chassis/motherboard/dimm0:
- entityID: 32
- entityInstance: 1
- interfaces:
- xyz.openbmc_project.Inventory.Item:
- PrettyName:
- IPMIFruProperty: Product Name
- IPMIFruSection: Product
- xyz.openbmc_project.Inventory.Decorator.Asset:
- Manufacturer:
- IPMIFruProperty: Manufacturer
- IPMIFruSection: Product
- BuildDate:
- IPMIFruProperty: Mfg Date
- IPMIFruSection: Product
- SerialNumber:
- IPMIFruProperty: Serial Number
- IPMIFruSection: Product
- PartNumber:
- IPMIFruProperty: Part Number
- IPMIFruSection: Product
- xyz.openbmc_project.Inventory.Decorator.Revision:
- Version:
- IPMIFruProperty: Version
- IPMIFruSection: Product
- xyz.openbmc_project.Inventory.Item.Dimm:
+ /system/chassis/motherboard/dimm0:
+ entityID: 32
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.Inventory.Item:
+ PrettyName:
+ IPMIFruProperty: Product Name
+ IPMIFruSection: Product
+ xyz.openbmc_project.Inventory.Decorator.Asset:
+ Manufacturer:
+ IPMIFruProperty: Manufacturer
+ IPMIFruSection: Product
+ BuildDate:
+ IPMIFruProperty: Mfg Date
+ IPMIFruSection: Product
+ SerialNumber:
+ IPMIFruProperty: Serial Number
+ IPMIFruSection: Product
+ PartNumber:
+ IPMIFruProperty: Part Number
+ IPMIFruSection: Product
+ xyz.openbmc_project.Inventory.Decorator.Revision:
+ Version:
+ IPMIFruProperty: Version
+ IPMIFruSection: Product
+ xyz.openbmc_project.Inventory.Item.Dimm:
2:
- /system/chassis/motherboard/dimm1:
- entityID: 32
- entityInstance: 2
- interfaces:
- xyz.openbmc_project.Inventory.Item:
- PrettyName:
- IPMIFruProperty: Product Name
- IPMIFruSection: Product
- xyz.openbmc_project.Inventory.Decorator.Asset:
- Manufacturer:
- IPMIFruProperty: Manufacturer
- IPMIFruSection: Product
- BuildDate:
- IPMIFruProperty: Mfg Date
- IPMIFruSection: Product
- SerialNumber:
- IPMIFruProperty: Serial Number
- IPMIFruSection: Product
- PartNumber:
- IPMIFruProperty: Part Number
- IPMIFruSection: Product
- xyz.openbmc_project.Inventory.Decorator.Revision:
- Version:
- IPMIFruProperty: Version
- IPMIFruSection: Product
- xyz.openbmc_project.Inventory.Item.Dimm:
+ /system/chassis/motherboard/dimm1:
+ entityID: 32
+ entityInstance: 2
+ interfaces:
+ xyz.openbmc_project.Inventory.Item:
+ PrettyName:
+ IPMIFruProperty: Product Name
+ IPMIFruSection: Product
+ xyz.openbmc_project.Inventory.Decorator.Asset:
+ Manufacturer:
+ IPMIFruProperty: Manufacturer
+ IPMIFruSection: Product
+ BuildDate:
+ IPMIFruProperty: Mfg Date
+ IPMIFruSection: Product
+ SerialNumber:
+ IPMIFruProperty: Serial Number
+ IPMIFruSection: Product
+ PartNumber:
+ IPMIFruProperty: Part Number
+ IPMIFruSection: Product
+ xyz.openbmc_project.Inventory.Decorator.Revision:
+ Version:
+ IPMIFruProperty: Version
+ IPMIFruSection: Product
+ xyz.openbmc_project.Inventory.Item.Dimm:
3:
- /system/chassis/motherboard/cpu0:
- entityID: 3
- entityInstance: 1
- interfaces:
- xyz.openbmc_project.Inventory.Item:
- PrettyName:
- IPMIFruProperty: Product Name
- IPMIFruSection: Board
- xyz.openbmc_project.Inventory.Decorator.Asset:
- BuildDate:
- IPMIFruProperty: Mfg Date
- IPMIFruSection: Board
- SerialNumber:
- IPMIFruProperty: Serial Number
- IPMIFruSection: Board
- PartNumber:
- IPMIFruProperty: Part Number
- IPMIFruSection: Board
- Manufacturer:
- IPMIFruProperty: Manufacturer
- IPMIFruSection: Board
- xyz.openbmc_project.Inventory.Item.Cpu:
+ /system/chassis/motherboard/cpu0:
+ entityID: 3
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.Inventory.Item:
+ PrettyName:
+ IPMIFruProperty: Product Name
+ IPMIFruSection: Board
+ xyz.openbmc_project.Inventory.Decorator.Asset:
+ BuildDate:
+ IPMIFruProperty: Mfg Date
+ IPMIFruSection: Board
+ SerialNumber:
+ IPMIFruProperty: Serial Number
+ IPMIFruSection: Board
+ PartNumber:
+ IPMIFruProperty: Part Number
+ IPMIFruSection: Board
+ Manufacturer:
+ IPMIFruProperty: Manufacturer
+ IPMIFruSection: Board
+ xyz.openbmc_project.Inventory.Item.Cpu:
4:
- /system/chassis/motherboard/cpu1:
- entityID: 3
- entityInstance: 2
- interfaces:
- xyz.openbmc_project.Inventory.Item:
- PrettyName:
- IPMIFruProperty: Product Name
- IPMIFruSection: Board
- xyz.openbmc_project.Inventory.Decorator.Asset:
- BuildDate:
- IPMIFruProperty: Mfg Date
- IPMIFruSection: Board
- SerialNumber:
- IPMIFruProperty: Serial Number
- IPMIFruSection: Board
- PartNumber:
- IPMIFruProperty: Part Number
- IPMIFruSection: Board
- Manufacturer:
- IPMIFruProperty: Manufacturer
- IPMIFruSection: Board
- xyz.openbmc_project.Inventory.Item.Cpu:
+ /system/chassis/motherboard/cpu1:
+ entityID: 3
+ entityInstance: 2
+ interfaces:
+ xyz.openbmc_project.Inventory.Item:
+ PrettyName:
+ IPMIFruProperty: Product Name
+ IPMIFruSection: Board
+ xyz.openbmc_project.Inventory.Decorator.Asset:
+ BuildDate:
+ IPMIFruProperty: Mfg Date
+ IPMIFruSection: Board
+ SerialNumber:
+ IPMIFruProperty: Serial Number
+ IPMIFruSection: Board
+ PartNumber:
+ IPMIFruProperty: Part Number
+ IPMIFruSection: Board
+ Manufacturer:
+ IPMIFruProperty: Manufacturer
+ IPMIFruSection: Board
+ xyz.openbmc_project.Inventory.Item.Cpu:
diff --git a/scripts/inventory-sensor-example.yaml b/scripts/inventory-sensor-example.yaml
index 7ff78fb..5dde38f 100644
--- a/scripts/inventory-sensor-example.yaml
+++ b/scripts/inventory-sensor-example.yaml
@@ -1,340 +1,340 @@
/xyz/openbmc_project/inventory/system/chassis/motherboard/dimm0:
- sensorID: 0xa6
- sensorType: 0x0C
- eventReadingType: 0x6F
- offset: 0x04
+ sensorID: 0xa6
+ sensorType: 0x0C
+ eventReadingType: 0x6F
+ offset: 0x04
/xyz/openbmc_project/inventory/system/chassis/motherboard/dimm1:
- sensorID: 0xa8
- sensorType: 0x0C
- eventReadingType: 0x6F
- offset: 0x04
+ sensorID: 0xa8
+ sensorType: 0x0C
+ eventReadingType: 0x6F
+ offset: 0x04
/xyz/openbmc_project/inventory/system/chassis/motherboard/dimm10:
- sensorID: 0xba
- sensorType: 0x0C
- eventReadingType: 0x6F
- offset: 0x04
+ sensorID: 0xba
+ sensorType: 0x0C
+ eventReadingType: 0x6F
+ offset: 0x04
/xyz/openbmc_project/inventory/system/chassis/motherboard/dimm11:
- sensorID: 0xbc
- sensorType: 0x0C
- eventReadingType: 0x6F
- offset: 0x04
+ sensorID: 0xbc
+ sensorType: 0x0C
+ eventReadingType: 0x6F
+ offset: 0x04
/xyz/openbmc_project/inventory/system/chassis/motherboard/dimm12:
- sensorID: 0xbe
- sensorType: 0x0C
- eventReadingType: 0x6F
- offset: 0x04
+ sensorID: 0xbe
+ sensorType: 0x0C
+ eventReadingType: 0x6F
+ offset: 0x04
/xyz/openbmc_project/inventory/system/chassis/motherboard/dimm13:
- sensorID: 0xc0
- sensorType: 0x0C
- eventReadingType: 0x6F
- offset: 0x04
+ sensorID: 0xc0
+ sensorType: 0x0C
+ eventReadingType: 0x6F
+ offset: 0x04
/xyz/openbmc_project/inventory/system/chassis/motherboard/dimm14:
- sensorID: 0xc2
- sensorType: 0x0C
- eventReadingType: 0x6F
- offset: 0x04
+ sensorID: 0xc2
+ sensorType: 0x0C
+ eventReadingType: 0x6F
+ offset: 0x04
/xyz/openbmc_project/inventory/system/chassis/motherboard/dimm15:
- sensorID: 0xc4
- sensorType: 0x0C
- eventReadingType: 0x6F
- offset: 0x04
+ sensorID: 0xc4
+ sensorType: 0x0C
+ eventReadingType: 0x6F
+ offset: 0x04
/xyz/openbmc_project/inventory/system/chassis/motherboard/dimm2:
- sensorID: 0xaa
- sensorType: 0x0C
- eventReadingType: 0x6F
- offset: 0x04
+ sensorID: 0xaa
+ sensorType: 0x0C
+ eventReadingType: 0x6F
+ offset: 0x04
/xyz/openbmc_project/inventory/system/chassis/motherboard/dimm3:
- sensorID: 0xac
- sensorType: 0x0C
- eventReadingType: 0x6F
- offset: 0x04
+ sensorID: 0xac
+ sensorType: 0x0C
+ eventReadingType: 0x6F
+ offset: 0x04
/xyz/openbmc_project/inventory/system/chassis/motherboard/dimm4:
- sensorID: 0xae
- sensorType: 0x0C
- eventReadingType: 0x6F
- offset: 0x04
+ sensorID: 0xae
+ sensorType: 0x0C
+ eventReadingType: 0x6F
+ offset: 0x04
/xyz/openbmc_project/inventory/system/chassis/motherboard/dimm5:
- sensorID: 0xb0
- sensorType: 0x0C
- eventReadingType: 0x6F
- offset: 0x04
+ sensorID: 0xb0
+ sensorType: 0x0C
+ eventReadingType: 0x6F
+ offset: 0x04
/xyz/openbmc_project/inventory/system/chassis/motherboard/dimm6:
- sensorID: 0xb2
- sensorType: 0x0C
- eventReadingType: 0x6F
- offset: 0x04
+ sensorID: 0xb2
+ sensorType: 0x0C
+ eventReadingType: 0x6F
+ offset: 0x04
/xyz/openbmc_project/inventory/system/chassis/motherboard/dimm7:
- sensorID: 0xb4
- sensorType: 0x0C
- eventReadingType: 0x6F
- offset: 0x04
+ sensorID: 0xb4
+ sensorType: 0x0C
+ eventReadingType: 0x6F
+ offset: 0x04
/xyz/openbmc_project/inventory/system/chassis/motherboard/dimm8:
- sensorID: 0xb6
- sensorType: 0x0C
- eventReadingType: 0x6F
- offset: 0x04
+ sensorID: 0xb6
+ sensorType: 0x0C
+ eventReadingType: 0x6F
+ offset: 0x04
/xyz/openbmc_project/inventory/system/chassis/motherboard/dimm9:
- sensorID: 0xb8
- sensorType: 0x0C
- eventReadingType: 0x6F
- offset: 0x04
+ sensorID: 0xb8
+ sensorType: 0x0C
+ eventReadingType: 0x6F
+ offset: 0x04
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0:
- sensorID: 0x5a
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x5a
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0/core0:
- sensorID: 0x12
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x12
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0/core1:
- sensorID: 0x15
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x15
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0/core2:
- sensorID: 0x18
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x18
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0/core3:
- sensorID: 0x1b
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x1b
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0/core4:
- sensorID: 0x1e
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x1e
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0/core5:
- sensorID: 0x21
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x21
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0/core6:
- sensorID: 0x24
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x24
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0/core7:
- sensorID: 0x27
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x27
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0/core8:
- sensorID: 0x2a
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x2a
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0/core9:
- sensorID: 0x2d
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x2d
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0/core10:
- sensorID: 0x30
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x30
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0/core11:
- sensorID: 0x33
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x33
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0/core12:
- sensorID: 0x36
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x36
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0/core13:
- sensorID: 0x39
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x39
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0/core14:
- sensorID: 0x3c
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x3c
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0/core15:
- sensorID: 0x3f
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x3f
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0/core16:
- sensorID: 0x42
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x42
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0/core17:
- sensorID: 0x45
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x45
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0/core18:
- sensorID: 0x48
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x48
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0/core19:
- sensorID: 0x4b
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x4b
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0/core20:
- sensorID: 0x4e
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x4e
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0/core21:
- sensorID: 0x51
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x51
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0/core22:
- sensorID: 0x54
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x54
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu0/core23:
- sensorID: 0x57
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x57
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1:
- sensorID: 0xa4
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0xa4
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core0:
- sensorID: 0x5c
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x5c
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core1:
- sensorID: 0x5f
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x5f
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core2:
- sensorID: 0x62
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x62
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core3:
- sensorID: 0x65
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x65
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core4:
- sensorID: 0x68
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x68
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core5:
- sensorID: 0x6b
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x6b
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core6:
- sensorID: 0x6e
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x6e
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core7:
- sensorID: 0x71
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x71
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core8:
- sensorID: 0x74
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x74
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core9:
- sensorID: 0x77
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x77
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core10:
- sensorID: 0x7a
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x7a
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core11:
- sensorID: 0x7d
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x7d
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core12:
- sensorID: 0x80
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x80
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core13:
- sensorID: 0x83
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x83
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core14:
- sensorID: 0x86
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x86
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core15:
- sensorID: 0x89
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x89
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core16:
- sensorID: 0x8c
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x8c
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core17:
- sensorID: 0x8f
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x8f
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core18:
- sensorID: 0x92
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x92
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core19:
- sensorID: 0x95
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x95
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core20:
- sensorID: 0x98
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x98
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core21:
- sensorID: 0x9b
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x9b
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core22:
- sensorID: 0x9e
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0x9e
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard/cpu1/core23:
- sensorID: 0xa1
- sensorType: 0x07
- eventReadingType: 0x6F
- offset: 0x08
+ sensorID: 0xa1
+ sensorType: 0x07
+ eventReadingType: 0x6F
+ offset: 0x08
/xyz/openbmc_project/inventory/system/chassis/motherboard:
- sensorID: 0x0c
- sensorType: 0xC7
- eventReadingType: 0x03
- offset: 0x00
+ sensorID: 0x0c
+ sensorType: 0xC7
+ eventReadingType: 0x03
+ offset: 0x00
/xyz/openbmc_project/inventory/system:
- sensorID: 0x01
- sensorType: 0x12
- eventReadingType: 0x6F
- offset: 0x02
+ sensorID: 0x01
+ sensorType: 0x12
+ eventReadingType: 0x6F
+ offset: 0x02
diff --git a/scripts/sensor-example.yaml b/scripts/sensor-example.yaml
index 869702e..89430e4 100644
--- a/scripts/sensor-example.yaml
+++ b/scripts/sensor-example.yaml
@@ -1,194 +1,194 @@
# Sensor id is the key
0x60:
- sensorType: 0x07
- sensorReadingType: 0x6F
- # A "set" operation on this sensor should update this d-bus path.
- # If the path is not specified, an MRW parser will try to determine the path
- # based on the sensor id, on MRW based systems. This typically happens for
- # inventory items.
- path: /org/open_power/control/occ0
- # The interface that exposes method(s) to update the path above.
- serviceInterface: org.freedesktop.DBus.Properties
- # Where the sensor value is represented - assertion bits/reading/event data
- readingType: assertion
- # indicate if a sensor is READ/WRITE/RW.
- # This particular sensor read and write operation is allowed
- mutability: Mutability::Write|Mutability::Read
- # Sensor name would be occ0
- sensorNamePattern: nameLeaf
- eventType: 0x6F
- # All the d-bus interfaces : properties that must be updated for this path
- interfaces:
- # One or more interface dict entries
- org.open_power.OCC.Status:
- OccActive:
- Offsets:
- # Sensor type specific offset
- 0x06:
- # OccActive is a boolean
- type: "bool"
- # If offset 0x06 is asserted, set OccActive as false.
- assert: "false"
- deassert: "true"
+ sensorType: 0x07
+ sensorReadingType: 0x6F
+ # A "set" operation on this sensor should update this d-bus path.
+ # If the path is not specified, an MRW parser will try to determine the path
+ # based on the sensor id, on MRW based systems. This typically happens for
+ # inventory items.
+ path: /org/open_power/control/occ0
+ # The interface that exposes method(s) to update the path above.
+ serviceInterface: org.freedesktop.DBus.Properties
+ # Where the sensor value is represented - assertion bits/reading/event data
+ readingType: assertion
+ # indicate if a sensor is READ/WRITE/RW.
+ # This particular sensor read and write operation is allowed
+ mutability: Mutability::Write|Mutability::Read
+ # Sensor name would be occ0
+ sensorNamePattern: nameLeaf
+ eventType: 0x6F
+ # All the d-bus interfaces : properties that must be updated for this path
+ interfaces:
+ # One or more interface dict entries
+ org.open_power.OCC.Status:
+ OccActive:
+ Offsets:
+ # Sensor type specific offset
+ 0x06:
+ # OccActive is a boolean
+ type: "bool"
+ # If offset 0x06 is asserted, set OccActive as false.
+ assert: "false"
+ deassert: "true"
0x61:
- sensorType: 0x04
- sensorReadingType: 0x6F
- # Inventory paths intentionally leave out the inventory root,
- # /xyz/openbmc_project/inventory, because phosphor-inventory-manager
- # adds that.
- path: /system/chassis/motherboard/dimm1
- serviceInterface: xyz.openbmc_project.Inventory.Manager
- readingType: assertion
- mutability: Mutability::Write|Mutability::Read
- sensorNamePattern: nameLeaf
- interfaces:
- xyz.openbmc_project.State.Decorator.OperationalStatus:
- Functional:
- #Offsets contain the offsets in the sensor data.
- Offsets:
- 0x06:
- assert: true
- deassert: false
- type: bool
- #Prereqs are pre-requisites for this property value to be true.
- Prereqs:
- 0x04:
- assert: false
- deassert: true
- type: bool
- xyz.openbmc_project.Inventory.Item:
- Present:
- Offsets:
- 0x04:
- assert: false
- deassert: true
- type: bool
+ sensorType: 0x04
+ sensorReadingType: 0x6F
+ # Inventory paths intentionally leave out the inventory root,
+ # /xyz/openbmc_project/inventory, because phosphor-inventory-manager
+ # adds that.
+ path: /system/chassis/motherboard/dimm1
+ serviceInterface: xyz.openbmc_project.Inventory.Manager
+ readingType: assertion
+ mutability: Mutability::Write|Mutability::Read
+ sensorNamePattern: nameLeaf
+ interfaces:
+ xyz.openbmc_project.State.Decorator.OperationalStatus:
+ Functional:
+ #Offsets contain the offsets in the sensor data.
+ Offsets:
+ 0x06:
+ assert: true
+ deassert: false
+ type: bool
+ #Prereqs are pre-requisites for this property value to be true.
+ Prereqs:
+ 0x04:
+ assert: false
+ deassert: true
+ type: bool
+ xyz.openbmc_project.Inventory.Item:
+ Present:
+ Offsets:
+ 0x04:
+ assert: false
+ deassert: true
+ type: bool
0x63:
- interfaces:
- xyz.openbmc_project.Control.Boot.RebootAttempts:
- AttemptsLeft:
- Offsets:
- 0xFF:
- type: uint32_t
- path: /xyz/openbmc_project/state/host0
- # A special case of assertion, where the entire assert bitfield
- # serves as the value, or reading. Hence, the offset above is intentionally
- # 0xFF, to indicate not to check any specific bits in the assertion.
- readingType: readingAssertion
- # Sensor name would be AttemptsLeft
- sensorNamePattern: nameProperty
- sensorReadingType: 0x6F
- mutability: Mutability::Write|Mutability::Read
- sensorType: 0xC3
- serviceInterface: org.freedesktop.DBus.Properties
+ interfaces:
+ xyz.openbmc_project.Control.Boot.RebootAttempts:
+ AttemptsLeft:
+ Offsets:
+ 0xFF:
+ type: uint32_t
+ path: /xyz/openbmc_project/state/host0
+ # A special case of assertion, where the entire assert bitfield
+ # serves as the value, or reading. Hence, the offset above is intentionally
+ # 0xFF, to indicate not to check any specific bits in the assertion.
+ readingType: readingAssertion
+ # Sensor name would be AttemptsLeft
+ sensorNamePattern: nameProperty
+ sensorReadingType: 0x6F
+ mutability: Mutability::Write|Mutability::Read
+ sensorType: 0xC3
+ serviceInterface: org.freedesktop.DBus.Properties
0x62:
- interfaces:
- xyz.openbmc_project.Control.Boot.RebootAttempts:
- AttemptsLeft:
- Offsets:
- 0xFF:
- type: uint32_t
- path: /xyz/openbmc_project/state/host1
- readingType: readingAssertion
- # set an explicit name for the sensor
- sensorName: RebootAttempts
- sensorReadingType: 0x6F
- mutability: Mutability::Write|Mutability::Read
- sensorType: 0xC3
- serviceInterface: org.freedesktop.DBus.Properties
+ interfaces:
+ xyz.openbmc_project.Control.Boot.RebootAttempts:
+ AttemptsLeft:
+ Offsets:
+ 0xFF:
+ type: uint32_t
+ path: /xyz/openbmc_project/state/host1
+ readingType: readingAssertion
+ # set an explicit name for the sensor
+ sensorName: RebootAttempts
+ sensorReadingType: 0x6F
+ mutability: Mutability::Write|Mutability::Read
+ sensorType: 0xC3
+ serviceInterface: org.freedesktop.DBus.Properties
0xD0:
- sensorType: 0x01
- path: /xyz/openbmc_project/sensors/temperature/fleeting0
- sensorReadingType: 0x01
- multiplierM: 511
- offsetB: 0
- bExp: 0
- # Result exponent field in Type 1 SDR(2's complement, signed)
- rExp: 0
- # Applies for analog sensors, the actual reading value for the sensor is
- # Value * 10^N
- scale: -3
- # Indicate Analog Data Format, Rate unit, Modifier unit and Percentage
- sensorUnits1 : 0x80
- mutability: Mutability::Write|Mutability::Read
- serviceInterface: org.freedesktop.DBus.Properties
- readingType: readingData
- sensorNamePattern: nameLeaf
- interfaces:
- xyz.openbmc_project.Sensor.Value:
- Value:
- Offsets:
- 0xFF:
- type: int64_t
+ sensorType: 0x01
+ path: /xyz/openbmc_project/sensors/temperature/fleeting0
+ sensorReadingType: 0x01
+ multiplierM: 511
+ offsetB: 0
+ bExp: 0
+ # Result exponent field in Type 1 SDR(2's complement, signed)
+ rExp: 0
+ # Applies for analog sensors, the actual reading value for the sensor is
+ # Value * 10^N
+ scale: -3
+ # Indicate Analog Data Format, Rate unit, Modifier unit and Percentage
+ sensorUnits1: 0x80
+ mutability: Mutability::Write|Mutability::Read
+ serviceInterface: org.freedesktop.DBus.Properties
+ readingType: readingData
+ sensorNamePattern: nameLeaf
+ interfaces:
+ xyz.openbmc_project.Sensor.Value:
+ Value:
+ Offsets:
+ 0xFF:
+ type: int64_t
0x54:
- sensorType: 0x07
- path: /system/chassis/motherboard/cpu0/core22
- sensorReadingType: 0x6F
- serviceInterface: xyz.openbmc_project.Inventory.Manager
- readingType: assertion
- mutability: Mutability::Write|Mutability::Read
- # Sensor name would be cpu0_core22
- sensorNamePattern: nameParentLeaf
- interfaces:
- xyz.openbmc_project.State.Decorator.OperationalStatus:
- Functional:
- Offsets:
- 0x08:
- assert: false
- deassert: true
- type: bool
- Prereqs:
- 0x07:
- assert: true
- deassert: false
- xyz.openbmc_project.Inventory.Item:
- Present:
- Offsets:
- 0x07:
- assert: true
- deassert: false
- #The update will be skipped based on the value of skipOn
- #in this case if offset 0x07 is deasserted
- #the update will be skipped.
- skipOn: deassert
- type: bool
+ sensorType: 0x07
+ path: /system/chassis/motherboard/cpu0/core22
+ sensorReadingType: 0x6F
+ serviceInterface: xyz.openbmc_project.Inventory.Manager
+ readingType: assertion
+ mutability: Mutability::Write|Mutability::Read
+ # Sensor name would be cpu0_core22
+ sensorNamePattern: nameParentLeaf
+ interfaces:
+ xyz.openbmc_project.State.Decorator.OperationalStatus:
+ Functional:
+ Offsets:
+ 0x08:
+ assert: false
+ deassert: true
+ type: bool
+ Prereqs:
+ 0x07:
+ assert: true
+ deassert: false
+ xyz.openbmc_project.Inventory.Item:
+ Present:
+ Offsets:
+ 0x07:
+ assert: true
+ deassert: false
+ #The update will be skipped based on the value of skipOn
+ #in this case if offset 0x07 is deasserted
+ #the update will be skipped.
+ skipOn: deassert
+ type: bool
0xC5:
- sensorType: 0x17
- path: /system/chassis/motherboard/gv100card0
- sensorReadingType: 1
- serviceInterface: xyz.openbmc_project.Inventory.Manager
- readingType: assertion
- mutability: Mutability::Write|Mutability::Read
- sensorNamePattern: nameLeaf
- interfaces:
- xyz.openbmc_project.Inventory.Decorator.Replaceable:
- FieldReplaceable:
- Offsets:
- 7:
- assert: true
- type: bool
- xyz.openbmc_project.Inventory.Item:
- Present:
- Offsets:
- 7:
- assert: true
- deassert: false
- type: bool
- # Example of an interface with no attached properties
- xyz.openbmc_project.Inventory.Item.Accelerator:
- xyz.openbmc_project.State.Decorator.OperationalStatus:
- Functional:
- Offsets:
- 8:
- assert: false
- type: bool
- Prereqs:
- 7:
- assert: true
- type: bool
+ sensorType: 0x17
+ path: /system/chassis/motherboard/gv100card0
+ sensorReadingType: 1
+ serviceInterface: xyz.openbmc_project.Inventory.Manager
+ readingType: assertion
+ mutability: Mutability::Write|Mutability::Read
+ sensorNamePattern: nameLeaf
+ interfaces:
+ xyz.openbmc_project.Inventory.Decorator.Replaceable:
+ FieldReplaceable:
+ Offsets:
+ 7:
+ assert: true
+ type: bool
+ xyz.openbmc_project.Inventory.Item:
+ Present:
+ Offsets:
+ 7:
+ assert: true
+ deassert: false
+ type: bool
+ # Example of an interface with no attached properties
+ xyz.openbmc_project.Inventory.Item.Accelerator:
+ xyz.openbmc_project.State.Decorator.OperationalStatus:
+ Functional:
+ Offsets:
+ 8:
+ assert: false
+ type: bool
+ Prereqs:
+ 7:
+ assert: true
+ type: bool