Deepak Kodihalli | 1bb0d38 | 2017-08-12 02:01:27 -0500 | [diff] [blame] | 1 | # Sensor id is the key |
| 2 | 0x60: |
| 3 | sensorType: 0x07 |
Ratan Gupta | 47bf3ed | 2017-03-04 08:33:57 +0530 | [diff] [blame] | 4 | sensorReadingType: 0x6F |
Deepak Kodihalli | 1bb0d38 | 2017-08-12 02:01:27 -0500 | [diff] [blame] | 5 | # A "set" operation on this sensor should update this d-bus path. |
| 6 | # If the path is not specified, an MRW parser will try to determine the path |
| 7 | # based on the sensor id, on MRW based systems. This typically happens for |
| 8 | # inventory items. |
| 9 | path: /org/open_power/control/occ0 |
| 10 | # The interface that exposes method(s) to update the path above. |
| 11 | serviceInterface: org.freedesktop.DBus.Properties |
| 12 | # Where the sensor value is represented - assertion bits/reading/event data |
Dhruvaraj Subhashchandran | e0af720 | 2017-07-12 06:35:20 -0500 | [diff] [blame] | 13 | readingType: assertion |
Tom Joseph | 31ff6e6 | 2018-01-24 16:10:09 +0530 | [diff] [blame] | 14 | # Sensor name would be occ0 |
| 15 | sensorNamePattern: nameLeaf |
Deepak Kodihalli | 1bb0d38 | 2017-08-12 02:01:27 -0500 | [diff] [blame] | 16 | eventType: 0x6F |
| 17 | # All the d-bus interfaces : properties that must be updated for this path |
Ratan Gupta | 47bf3ed | 2017-03-04 08:33:57 +0530 | [diff] [blame] | 18 | interfaces: |
Deepak Kodihalli | 1bb0d38 | 2017-08-12 02:01:27 -0500 | [diff] [blame] | 19 | # One or more interface dict entries |
| 20 | org.open_power.OCC.Status: |
| 21 | OccActive: |
Dhruvaraj Subhashchandran | e245e4e | 2017-10-03 03:58:05 -0500 | [diff] [blame] | 22 | Offsets: |
| 23 | # Sensor type specific offset |
| 24 | 0x06: |
| 25 | # OccActive is a boolean |
| 26 | type: "bool" |
| 27 | # If offset 0x06 is asserted, set OccActive as false. |
| 28 | assert: "false" |
| 29 | deassert: "true" |
Deepak Kodihalli | 1bb0d38 | 2017-08-12 02:01:27 -0500 | [diff] [blame] | 30 | |
| 31 | 0x61: |
| 32 | sensorType: 0x04 |
| 33 | sensorReadingType: 0x6F |
| 34 | # Inventory paths intentionally leave out the inventory root, |
| 35 | # /xyz/openbmc_project/inventory, because phosphor-inventory-manager |
| 36 | # adds that. |
| 37 | path: /system/chassis/motherboard/dimm1 |
| 38 | serviceInterface: xyz.openbmc_project.Inventory.Manager |
| 39 | readingType: assertion |
Tom Joseph | 31ff6e6 | 2018-01-24 16:10:09 +0530 | [diff] [blame] | 40 | sensorNamePattern: nameLeaf |
Deepak Kodihalli | 1bb0d38 | 2017-08-12 02:01:27 -0500 | [diff] [blame] | 41 | interfaces: |
Deepak Kodihalli | 1bb0d38 | 2017-08-12 02:01:27 -0500 | [diff] [blame] | 42 | xyz.openbmc_project.State.Decorator.OperationalStatus: |
| 43 | Functional: |
Dhruvaraj Subhashchandran | e245e4e | 2017-10-03 03:58:05 -0500 | [diff] [blame] | 44 | #Offsets contain the offsets in the sensor data. |
| 45 | Offsets: |
| 46 | 0x06: |
| 47 | assert: true |
| 48 | deassert: false |
| 49 | type: bool |
| 50 | #Prereqs are pre-requisites for this property value to be true. |
| 51 | Prereqs: |
| 52 | 0x04: |
| 53 | assert: false |
| 54 | deassert: true |
| 55 | type: bool |
| 56 | xyz.openbmc_project.Inventory.Item: |
| 57 | Present: |
| 58 | Offsets: |
Dhruvaraj Subhashchandran | e84841c | 2017-08-22 07:40:27 -0500 | [diff] [blame] | 59 | 0x04: |
| 60 | assert: false |
| 61 | deassert: true |
| 62 | type: bool |
Deepak Kodihalli | 1bb0d38 | 2017-08-12 02:01:27 -0500 | [diff] [blame] | 63 | |
| 64 | 0x63: |
Dhruvaraj Subhashchandran | e0af720 | 2017-07-12 06:35:20 -0500 | [diff] [blame] | 65 | interfaces: |
| 66 | xyz.openbmc_project.Control.Boot.RebootAttempts: |
| 67 | AttemptsLeft: |
Dhruvaraj Subhashchandran | e245e4e | 2017-10-03 03:58:05 -0500 | [diff] [blame] | 68 | Offsets: |
| 69 | 0xFF: |
| 70 | type: uint32_t |
Deepak Kodihalli | 1bb0d38 | 2017-08-12 02:01:27 -0500 | [diff] [blame] | 71 | path: /xyz/openbmc_project/state/host0 |
| 72 | # A special case of assertion, where the entire assert bitfield |
| 73 | # serves as the value, or reading. Hence, the offset above is intentionally |
| 74 | # 0xFF, to indicate not to check any specific bits in the assertion. |
| 75 | readingType: readingAssertion |
Tom Joseph | 31ff6e6 | 2018-01-24 16:10:09 +0530 | [diff] [blame] | 76 | # Sensor name would be AttemptsLeft |
| 77 | sensorNamePattern: nameProperty |
Ratan Gupta | 47bf3ed | 2017-03-04 08:33:57 +0530 | [diff] [blame] | 78 | sensorReadingType: 0x6F |
Deepak Kodihalli | 1bb0d38 | 2017-08-12 02:01:27 -0500 | [diff] [blame] | 79 | sensorType: 0xC3 |
| 80 | serviceInterface: org.freedesktop.DBus.Properties |
| 81 | |
| 82 | 0x62: |
Ratan Gupta | 47bf3ed | 2017-03-04 08:33:57 +0530 | [diff] [blame] | 83 | interfaces: |
Deepak Kodihalli | 1bb0d38 | 2017-08-12 02:01:27 -0500 | [diff] [blame] | 84 | xyz.openbmc_project.Control.Boot.RebootAttempts: |
| 85 | AttemptsLeft: |
Dhruvaraj Subhashchandran | e245e4e | 2017-10-03 03:58:05 -0500 | [diff] [blame] | 86 | Offsets: |
| 87 | 0xFF: |
| 88 | type: uint32_t |
Deepak Kodihalli | 1bb0d38 | 2017-08-12 02:01:27 -0500 | [diff] [blame] | 89 | path: /xyz/openbmc_project/state/host1 |
| 90 | readingType: readingAssertion |
Tom Joseph | 31ff6e6 | 2018-01-24 16:10:09 +0530 | [diff] [blame] | 91 | sensorNamePattern: nameProperty |
Ratan Gupta | 47bf3ed | 2017-03-04 08:33:57 +0530 | [diff] [blame] | 92 | sensorReadingType: 0x6F |
Deepak Kodihalli | 1bb0d38 | 2017-08-12 02:01:27 -0500 | [diff] [blame] | 93 | sensorType: 0xC3 |
| 94 | serviceInterface: org.freedesktop.DBus.Properties |
Emily Shaffer | cc941e1 | 2017-06-14 13:06:26 -0700 | [diff] [blame] | 95 | |
| 96 | 0xD0: |
| 97 | sensorType: 0x01 |
| 98 | path: /xyz/openbmc_project/sensors/temperature/fleeting0 |
| 99 | sensorReadingType: 0x01 |
| 100 | multiplierM: 511 |
| 101 | offsetB: 0 |
| 102 | bExp: 0 |
| 103 | mutability: Mutability::Write|Mutability::Read |
| 104 | serviceInterface: org.freedesktop.DBus.Properties |
| 105 | readingType: readingData |
Tom Joseph | 31ff6e6 | 2018-01-24 16:10:09 +0530 | [diff] [blame] | 106 | sensorNamePattern: nameLeaf |
Emily Shaffer | cc941e1 | 2017-06-14 13:06:26 -0700 | [diff] [blame] | 107 | interfaces: |
| 108 | xyz.openbmc_project.Sensor.Value: |
| 109 | Value: |
Dhruvaraj Subhashchandran | e245e4e | 2017-10-03 03:58:05 -0500 | [diff] [blame] | 110 | Offsets: |
| 111 | 0xFF: |
| 112 | type: int64_t |
Emily Shaffer | cc941e1 | 2017-06-14 13:06:26 -0700 | [diff] [blame] | 113 | |
Dhruvaraj Subhashchandran | e84841c | 2017-08-22 07:40:27 -0500 | [diff] [blame] | 114 | 0x54: |
| 115 | sensorType: 0x07 |
| 116 | path: /system/chassis/motherboard/cpu0/core22 |
| 117 | sensorReadingType: 0x6F |
| 118 | serviceInterface: xyz.openbmc_project.Inventory.Manager |
| 119 | readingType: assertion |
Tom Joseph | 31ff6e6 | 2018-01-24 16:10:09 +0530 | [diff] [blame] | 120 | # Sensor name would be cpu0_core22 |
| 121 | sensorNamePattern: nameParentLeaf |
Dhruvaraj Subhashchandran | e84841c | 2017-08-22 07:40:27 -0500 | [diff] [blame] | 122 | interfaces: |
| 123 | xyz.openbmc_project.State.Decorator.OperationalStatus: |
| 124 | Functional: |
Dhruvaraj Subhashchandran | e245e4e | 2017-10-03 03:58:05 -0500 | [diff] [blame] | 125 | Offsets: |
Dhruvaraj Subhashchandran | e84841c | 2017-08-22 07:40:27 -0500 | [diff] [blame] | 126 | 0x08: |
| 127 | assert: false |
| 128 | deassert: true |
| 129 | type: bool |
Dhruvaraj Subhashchandran | e245e4e | 2017-10-03 03:58:05 -0500 | [diff] [blame] | 130 | Prereqs: |
| 131 | 0x07: |
| 132 | assert: true |
| 133 | deassert: false |
Dhruvaraj Subhashchandran | e84841c | 2017-08-22 07:40:27 -0500 | [diff] [blame] | 134 | xyz.openbmc_project.Inventory.Item: |
| 135 | Present: |
Dhruvaraj Subhashchandran | e245e4e | 2017-10-03 03:58:05 -0500 | [diff] [blame] | 136 | Offsets: |
Dhruvaraj Subhashchandran | e84841c | 2017-08-22 07:40:27 -0500 | [diff] [blame] | 137 | 0x07: |
| 138 | assert: true |
| 139 | deassert: false |
| 140 | #The update will be skipped based on the value of skipOn |
| 141 | #in this case if offset 0x07 is deasserted |
| 142 | #the update will be skipped. |
| 143 | skipOn: deassert |
| 144 | type: bool |