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