11bb0d387SDeepak Kodihalli# Sensor id is the key 21bb0d387SDeepak Kodihalli0x60: 31bb0d387SDeepak Kodihalli sensorType: 0x07 447bf3eddSRatan Gupta sensorReadingType: 0x6F 51bb0d387SDeepak Kodihalli # A "set" operation on this sensor should update this d-bus path. 61bb0d387SDeepak Kodihalli # If the path is not specified, an MRW parser will try to determine the path 71bb0d387SDeepak Kodihalli # based on the sensor id, on MRW based systems. This typically happens for 81bb0d387SDeepak Kodihalli # inventory items. 91bb0d387SDeepak Kodihalli path: /org/open_power/control/occ0 101bb0d387SDeepak Kodihalli # The interface that exposes method(s) to update the path above. 111bb0d387SDeepak Kodihalli serviceInterface: org.freedesktop.DBus.Properties 121bb0d387SDeepak Kodihalli # Where the sensor value is represented - assertion bits/reading/event data 13e0af7209SDhruvaraj Subhashchandran readingType: assertion 140922bde4SJayanth Othayoth # indicate if a sensor is READ/WRITE/RW. 150922bde4SJayanth Othayoth # This particular sensor read and write operation is allowed 160922bde4SJayanth Othayoth mutability: Mutability::Write|Mutability::Read 1731ff6e6fSTom Joseph # Sensor name would be occ0 1831ff6e6fSTom Joseph sensorNamePattern: nameLeaf 191bb0d387SDeepak Kodihalli eventType: 0x6F 201bb0d387SDeepak Kodihalli # All the d-bus interfaces : properties that must be updated for this path 2147bf3eddSRatan Gupta interfaces: 221bb0d387SDeepak Kodihalli # One or more interface dict entries 231bb0d387SDeepak Kodihalli org.open_power.OCC.Status: 241bb0d387SDeepak Kodihalli OccActive: 25e245e4e9SDhruvaraj Subhashchandran Offsets: 261bb0d387SDeepak Kodihalli # Sensor type specific offset 271bb0d387SDeepak Kodihalli 0x06: 281bb0d387SDeepak Kodihalli # OccActive is a boolean 291bb0d387SDeepak Kodihalli type: "bool" 301bb0d387SDeepak Kodihalli # If offset 0x06 is asserted, set OccActive as false. 3147bf3eddSRatan Gupta assert: "false" 321bb0d387SDeepak Kodihalli deassert: "true" 331bb0d387SDeepak Kodihalli 341bb0d387SDeepak Kodihalli0x61: 351bb0d387SDeepak Kodihalli sensorType: 0x04 361bb0d387SDeepak Kodihalli sensorReadingType: 0x6F 371bb0d387SDeepak Kodihalli # Inventory paths intentionally leave out the inventory root, 381bb0d387SDeepak Kodihalli # /xyz/openbmc_project/inventory, because phosphor-inventory-manager 391bb0d387SDeepak Kodihalli # adds that. 401bb0d387SDeepak Kodihalli path: /system/chassis/motherboard/dimm1 411bb0d387SDeepak Kodihalli serviceInterface: xyz.openbmc_project.Inventory.Manager 421bb0d387SDeepak Kodihalli readingType: assertion 430922bde4SJayanth Othayoth mutability: Mutability::Write|Mutability::Read 4431ff6e6fSTom Joseph sensorNamePattern: nameLeaf 451bb0d387SDeepak Kodihalli interfaces: 46e245e4e9SDhruvaraj Subhashchandran xyz.openbmc_project.State.Decorator.OperationalStatus: 47e245e4e9SDhruvaraj Subhashchandran Functional: 48e245e4e9SDhruvaraj Subhashchandran #Offsets contain the offsets in the sensor data. 49e245e4e9SDhruvaraj Subhashchandran Offsets: 50e84841ceSDhruvaraj Subhashchandran 0x06: 511bb0d387SDeepak Kodihalli assert: true 521bb0d387SDeepak Kodihalli deassert: false 5347bf3eddSRatan Gupta type: bool 54e245e4e9SDhruvaraj Subhashchandran #Prereqs are pre-requisites for this property value to be true. 55e245e4e9SDhruvaraj Subhashchandran Prereqs: 56e245e4e9SDhruvaraj Subhashchandran 0x04: 57e245e4e9SDhruvaraj Subhashchandran assert: false 58e245e4e9SDhruvaraj Subhashchandran deassert: true 59e245e4e9SDhruvaraj Subhashchandran type: bool 60e245e4e9SDhruvaraj Subhashchandran xyz.openbmc_project.Inventory.Item: 61e245e4e9SDhruvaraj Subhashchandran Present: 62e245e4e9SDhruvaraj Subhashchandran Offsets: 63e84841ceSDhruvaraj Subhashchandran 0x04: 641bb0d387SDeepak Kodihalli assert: false 651bb0d387SDeepak Kodihalli deassert: true 661bb0d387SDeepak Kodihalli type: bool 671bb0d387SDeepak Kodihalli 681bb0d387SDeepak Kodihalli0x63: 69e0af7209SDhruvaraj Subhashchandran interfaces: 70e0af7209SDhruvaraj Subhashchandran xyz.openbmc_project.Control.Boot.RebootAttempts: 71e0af7209SDhruvaraj Subhashchandran AttemptsLeft: 72e245e4e9SDhruvaraj Subhashchandran Offsets: 73e0af7209SDhruvaraj Subhashchandran 0xFF: 74e0af7209SDhruvaraj Subhashchandran type: uint32_t 751bb0d387SDeepak Kodihalli path: /xyz/openbmc_project/state/host0 761bb0d387SDeepak Kodihalli # A special case of assertion, where the entire assert bitfield 771bb0d387SDeepak Kodihalli # serves as the value, or reading. Hence, the offset above is intentionally 781bb0d387SDeepak Kodihalli # 0xFF, to indicate not to check any specific bits in the assertion. 791bb0d387SDeepak Kodihalli readingType: readingAssertion 8031ff6e6fSTom Joseph # Sensor name would be AttemptsLeft 8131ff6e6fSTom Joseph sensorNamePattern: nameProperty 8247bf3eddSRatan Gupta sensorReadingType: 0x6F 830922bde4SJayanth Othayoth mutability: Mutability::Write|Mutability::Read 841bb0d387SDeepak Kodihalli sensorType: 0xC3 851bb0d387SDeepak Kodihalli serviceInterface: org.freedesktop.DBus.Properties 861bb0d387SDeepak Kodihalli 871bb0d387SDeepak Kodihalli0x62: 8847bf3eddSRatan Gupta interfaces: 891bb0d387SDeepak Kodihalli xyz.openbmc_project.Control.Boot.RebootAttempts: 901bb0d387SDeepak Kodihalli AttemptsLeft: 91e245e4e9SDhruvaraj Subhashchandran Offsets: 921bb0d387SDeepak Kodihalli 0xFF: 931bb0d387SDeepak Kodihalli type: uint32_t 941bb0d387SDeepak Kodihalli path: /xyz/openbmc_project/state/host1 951bb0d387SDeepak Kodihalli readingType: readingAssertion 96be4ffa87SJeremy Kerr # set an explicit name for the sensor 97be4ffa87SJeremy Kerr sensorName: RebootAttempts 9847bf3eddSRatan Gupta sensorReadingType: 0x6F 990922bde4SJayanth Othayoth mutability: Mutability::Write|Mutability::Read 1001bb0d387SDeepak Kodihalli sensorType: 0xC3 1011bb0d387SDeepak Kodihalli serviceInterface: org.freedesktop.DBus.Properties 102cc941e15SEmily Shaffer 103cc941e15SEmily Shaffer0xD0: 104cc941e15SEmily Shaffer sensorType: 0x01 105cc941e15SEmily Shaffer path: /xyz/openbmc_project/sensors/temperature/fleeting0 106cc941e15SEmily Shaffer sensorReadingType: 0x01 107cc941e15SEmily Shaffer multiplierM: 511 108cc941e15SEmily Shaffer offsetB: 0 109cc941e15SEmily Shaffer bExp: 0 1100a1301c1STom Joseph # Result exponent field in Type 1 SDR(2's complement, signed) 1110a1301c1STom Joseph rExp: 0 1120a1301c1STom Joseph # Applies for analog sensors, the actual reading value for the sensor is 1130a1301c1STom Joseph # Value * 10^N 1140a1301c1STom Joseph scale: -3 115*c5324251STony Lee # Indicate Analog Data Format, Rate unit, Modifier unit and Percentage 116*c5324251STony Lee sensorUnits1 : 0x80 117cc941e15SEmily Shaffer mutability: Mutability::Write|Mutability::Read 118cc941e15SEmily Shaffer serviceInterface: org.freedesktop.DBus.Properties 119cc941e15SEmily Shaffer readingType: readingData 12031ff6e6fSTom Joseph sensorNamePattern: nameLeaf 121cc941e15SEmily Shaffer interfaces: 122cc941e15SEmily Shaffer xyz.openbmc_project.Sensor.Value: 123cc941e15SEmily Shaffer Value: 124e245e4e9SDhruvaraj Subhashchandran Offsets: 125cc941e15SEmily Shaffer 0xFF: 126cc941e15SEmily Shaffer type: int64_t 127cc941e15SEmily Shaffer 128e84841ceSDhruvaraj Subhashchandran0x54: 129e84841ceSDhruvaraj Subhashchandran sensorType: 0x07 130e84841ceSDhruvaraj Subhashchandran path: /system/chassis/motherboard/cpu0/core22 131e84841ceSDhruvaraj Subhashchandran sensorReadingType: 0x6F 132e84841ceSDhruvaraj Subhashchandran serviceInterface: xyz.openbmc_project.Inventory.Manager 133e84841ceSDhruvaraj Subhashchandran readingType: assertion 1340922bde4SJayanth Othayoth mutability: Mutability::Write|Mutability::Read 13531ff6e6fSTom Joseph # Sensor name would be cpu0_core22 13631ff6e6fSTom Joseph sensorNamePattern: nameParentLeaf 137e84841ceSDhruvaraj Subhashchandran interfaces: 138e84841ceSDhruvaraj Subhashchandran xyz.openbmc_project.State.Decorator.OperationalStatus: 139e84841ceSDhruvaraj Subhashchandran Functional: 140e245e4e9SDhruvaraj Subhashchandran Offsets: 141e84841ceSDhruvaraj Subhashchandran 0x08: 142e84841ceSDhruvaraj Subhashchandran assert: false 143e84841ceSDhruvaraj Subhashchandran deassert: true 144e84841ceSDhruvaraj Subhashchandran type: bool 145e245e4e9SDhruvaraj Subhashchandran Prereqs: 146e245e4e9SDhruvaraj Subhashchandran 0x07: 147e245e4e9SDhruvaraj Subhashchandran assert: true 148e245e4e9SDhruvaraj Subhashchandran deassert: false 149e84841ceSDhruvaraj Subhashchandran xyz.openbmc_project.Inventory.Item: 150e84841ceSDhruvaraj Subhashchandran Present: 151e245e4e9SDhruvaraj Subhashchandran Offsets: 152e84841ceSDhruvaraj Subhashchandran 0x07: 153e84841ceSDhruvaraj Subhashchandran assert: true 154e84841ceSDhruvaraj Subhashchandran deassert: false 155e84841ceSDhruvaraj Subhashchandran #The update will be skipped based on the value of skipOn 156e84841ceSDhruvaraj Subhashchandran #in this case if offset 0x07 is deasserted 157e84841ceSDhruvaraj Subhashchandran #the update will be skipped. 158e84841ceSDhruvaraj Subhashchandran skipOn: deassert 159e84841ceSDhruvaraj Subhashchandran type: bool 160bbf8bd6cSSantosh Puranik 161bbf8bd6cSSantosh Puranik0xC5: 162bbf8bd6cSSantosh Puranik sensorType: 0x17 163bbf8bd6cSSantosh Puranik path: /system/chassis/motherboard/gv100card0 164bbf8bd6cSSantosh Puranik sensorReadingType: 1 165bbf8bd6cSSantosh Puranik serviceInterface: xyz.openbmc_project.Inventory.Manager 166bbf8bd6cSSantosh Puranik readingType: assertion 167bbf8bd6cSSantosh Puranik mutability: Mutability::Write|Mutability::Read 168bbf8bd6cSSantosh Puranik sensorNamePattern: nameLeaf 169bbf8bd6cSSantosh Puranik interfaces: 170bbf8bd6cSSantosh Puranik xyz.openbmc_project.Inventory.Decorator.Replaceable: 171bbf8bd6cSSantosh Puranik FieldReplaceable: 172bbf8bd6cSSantosh Puranik Offsets: 173bbf8bd6cSSantosh Puranik 7: 174bbf8bd6cSSantosh Puranik assert: true 175bbf8bd6cSSantosh Puranik deassert: true 176bbf8bd6cSSantosh Puranik type: bool 177bbf8bd6cSSantosh Puranik xyz.openbmc_project.Inventory.Item: 178bbf8bd6cSSantosh Puranik Present: 179bbf8bd6cSSantosh Puranik Offsets: 180bbf8bd6cSSantosh Puranik 7: 181bbf8bd6cSSantosh Puranik assert: true 182bbf8bd6cSSantosh Puranik deassert: false 183bbf8bd6cSSantosh Puranik type: bool 184bbf8bd6cSSantosh Puranik # Example of an interface with no attached properties 185bbf8bd6cSSantosh Puranik xyz.openbmc_project.Inventory.Item.Accelerator: 186bbf8bd6cSSantosh Puranik xyz.openbmc_project.State.Decorator.OperationalStatus: 187bbf8bd6cSSantosh Puranik Functional: 188bbf8bd6cSSantosh Puranik Offsets: 189bbf8bd6cSSantosh Puranik 8: 190bbf8bd6cSSantosh Puranik assert: false 191bbf8bd6cSSantosh Puranik deassert: true 192bbf8bd6cSSantosh Puranik type: bool 193bbf8bd6cSSantosh Puranik Prereqs: 194bbf8bd6cSSantosh Puranik 7: 195bbf8bd6cSSantosh Puranik assert: true 196bbf8bd6cSSantosh Puranik deassert: false 197bbf8bd6cSSantosh Puranik type: bool 198