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
1431ff6e6fSTom Joseph  # Sensor name would be occ0
1531ff6e6fSTom Joseph  sensorNamePattern: nameLeaf
161bb0d387SDeepak Kodihalli  eventType: 0x6F
171bb0d387SDeepak Kodihalli  # All the d-bus interfaces : properties that must be updated for this path
1847bf3eddSRatan Gupta  interfaces:
191bb0d387SDeepak Kodihalli    # One or more interface dict entries
201bb0d387SDeepak Kodihalli    org.open_power.OCC.Status:
211bb0d387SDeepak Kodihalli      OccActive:
22e245e4e9SDhruvaraj Subhashchandran        Offsets:
231bb0d387SDeepak Kodihalli          # Sensor type specific offset
241bb0d387SDeepak Kodihalli          0x06:
251bb0d387SDeepak Kodihalli            # OccActive is a boolean
261bb0d387SDeepak Kodihalli            type: "bool"
271bb0d387SDeepak Kodihalli            # If offset 0x06 is asserted, set OccActive as false.
2847bf3eddSRatan Gupta            assert: "false"
291bb0d387SDeepak Kodihalli            deassert: "true"
301bb0d387SDeepak Kodihalli
311bb0d387SDeepak Kodihalli0x61:
321bb0d387SDeepak Kodihalli  sensorType: 0x04
331bb0d387SDeepak Kodihalli  sensorReadingType: 0x6F
341bb0d387SDeepak Kodihalli  # Inventory paths intentionally leave out the inventory root,
351bb0d387SDeepak Kodihalli  # /xyz/openbmc_project/inventory, because phosphor-inventory-manager
361bb0d387SDeepak Kodihalli  # adds that.
371bb0d387SDeepak Kodihalli  path: /system/chassis/motherboard/dimm1
381bb0d387SDeepak Kodihalli  serviceInterface: xyz.openbmc_project.Inventory.Manager
391bb0d387SDeepak Kodihalli  readingType: assertion
4031ff6e6fSTom Joseph  sensorNamePattern: nameLeaf
411bb0d387SDeepak Kodihalli  interfaces:
42e245e4e9SDhruvaraj Subhashchandran    xyz.openbmc_project.State.Decorator.OperationalStatus:
43e245e4e9SDhruvaraj Subhashchandran      Functional:
44e245e4e9SDhruvaraj Subhashchandran        #Offsets contain the offsets in the sensor data.
45e245e4e9SDhruvaraj Subhashchandran        Offsets:
46e84841ceSDhruvaraj Subhashchandran          0x06:
471bb0d387SDeepak Kodihalli            assert: true
481bb0d387SDeepak Kodihalli            deassert: false
4947bf3eddSRatan Gupta            type: bool
50e245e4e9SDhruvaraj Subhashchandran        #Prereqs are pre-requisites for this property value to be true.
51e245e4e9SDhruvaraj Subhashchandran        Prereqs:
52e245e4e9SDhruvaraj Subhashchandran          0x04:
53e245e4e9SDhruvaraj Subhashchandran            assert: false
54e245e4e9SDhruvaraj Subhashchandran            deassert: true
55e245e4e9SDhruvaraj Subhashchandran            type: bool
56e245e4e9SDhruvaraj Subhashchandran    xyz.openbmc_project.Inventory.Item:
57e245e4e9SDhruvaraj Subhashchandran      Present:
58e245e4e9SDhruvaraj Subhashchandran        Offsets:
59e84841ceSDhruvaraj Subhashchandran          0x04:
601bb0d387SDeepak Kodihalli            assert: false
611bb0d387SDeepak Kodihalli            deassert: true
621bb0d387SDeepak Kodihalli            type: bool
631bb0d387SDeepak Kodihalli
641bb0d387SDeepak Kodihalli0x63:
65e0af7209SDhruvaraj Subhashchandran  interfaces:
66e0af7209SDhruvaraj Subhashchandran    xyz.openbmc_project.Control.Boot.RebootAttempts:
67e0af7209SDhruvaraj Subhashchandran      AttemptsLeft:
68e245e4e9SDhruvaraj Subhashchandran        Offsets:
69e0af7209SDhruvaraj Subhashchandran          0xFF:
70e0af7209SDhruvaraj Subhashchandran            type: uint32_t
711bb0d387SDeepak Kodihalli  path: /xyz/openbmc_project/state/host0
721bb0d387SDeepak Kodihalli  # A special case of assertion, where the entire assert bitfield
731bb0d387SDeepak Kodihalli  # serves as the value, or reading. Hence, the offset above is intentionally
741bb0d387SDeepak Kodihalli  # 0xFF, to indicate not to check any specific bits in the assertion.
751bb0d387SDeepak Kodihalli  readingType: readingAssertion
7631ff6e6fSTom Joseph  # Sensor name would be AttemptsLeft
7731ff6e6fSTom Joseph  sensorNamePattern: nameProperty
7847bf3eddSRatan Gupta  sensorReadingType: 0x6F
791bb0d387SDeepak Kodihalli  sensorType: 0xC3
801bb0d387SDeepak Kodihalli  serviceInterface: org.freedesktop.DBus.Properties
811bb0d387SDeepak Kodihalli
821bb0d387SDeepak Kodihalli0x62:
8347bf3eddSRatan Gupta  interfaces:
841bb0d387SDeepak Kodihalli    xyz.openbmc_project.Control.Boot.RebootAttempts:
851bb0d387SDeepak Kodihalli      AttemptsLeft:
86e245e4e9SDhruvaraj Subhashchandran        Offsets:
871bb0d387SDeepak Kodihalli          0xFF:
881bb0d387SDeepak Kodihalli            type: uint32_t
891bb0d387SDeepak Kodihalli  path: /xyz/openbmc_project/state/host1
901bb0d387SDeepak Kodihalli  readingType: readingAssertion
9131ff6e6fSTom Joseph  sensorNamePattern: nameProperty
9247bf3eddSRatan Gupta  sensorReadingType: 0x6F
931bb0d387SDeepak Kodihalli  sensorType: 0xC3
941bb0d387SDeepak Kodihalli  serviceInterface: org.freedesktop.DBus.Properties
95cc941e15SEmily Shaffer
96cc941e15SEmily Shaffer0xD0:
97cc941e15SEmily Shaffer  sensorType: 0x01
98cc941e15SEmily Shaffer  path: /xyz/openbmc_project/sensors/temperature/fleeting0
99cc941e15SEmily Shaffer  sensorReadingType: 0x01
100cc941e15SEmily Shaffer  multiplierM: 511
101cc941e15SEmily Shaffer  offsetB: 0
102cc941e15SEmily Shaffer  bExp: 0
103*0a1301c1STom Joseph  # Result exponent field in Type 1 SDR(2's complement, signed)
104*0a1301c1STom Joseph  rExp: 0
105*0a1301c1STom Joseph  # Applies for analog sensors, the actual reading value for the sensor is
106*0a1301c1STom Joseph  # Value * 10^N
107*0a1301c1STom Joseph  scale: -3
108cc941e15SEmily Shaffer  mutability: Mutability::Write|Mutability::Read
109cc941e15SEmily Shaffer  serviceInterface: org.freedesktop.DBus.Properties
110cc941e15SEmily Shaffer  readingType: readingData
11131ff6e6fSTom Joseph  sensorNamePattern: nameLeaf
112cc941e15SEmily Shaffer  interfaces:
113cc941e15SEmily Shaffer    xyz.openbmc_project.Sensor.Value:
114cc941e15SEmily Shaffer      Value:
115e245e4e9SDhruvaraj Subhashchandran        Offsets:
116cc941e15SEmily Shaffer          0xFF:
117cc941e15SEmily Shaffer            type: int64_t
118cc941e15SEmily Shaffer
119e84841ceSDhruvaraj Subhashchandran0x54:
120e84841ceSDhruvaraj Subhashchandran  sensorType: 0x07
121e84841ceSDhruvaraj Subhashchandran  path: /system/chassis/motherboard/cpu0/core22
122e84841ceSDhruvaraj Subhashchandran  sensorReadingType: 0x6F
123e84841ceSDhruvaraj Subhashchandran  serviceInterface: xyz.openbmc_project.Inventory.Manager
124e84841ceSDhruvaraj Subhashchandran  readingType: assertion
12531ff6e6fSTom Joseph  # Sensor name would be cpu0_core22
12631ff6e6fSTom Joseph  sensorNamePattern: nameParentLeaf
127e84841ceSDhruvaraj Subhashchandran  interfaces:
128e84841ceSDhruvaraj Subhashchandran    xyz.openbmc_project.State.Decorator.OperationalStatus:
129e84841ceSDhruvaraj Subhashchandran      Functional:
130e245e4e9SDhruvaraj Subhashchandran        Offsets:
131e84841ceSDhruvaraj Subhashchandran          0x08:
132e84841ceSDhruvaraj Subhashchandran            assert: false
133e84841ceSDhruvaraj Subhashchandran            deassert: true
134e84841ceSDhruvaraj Subhashchandran            type: bool
135e245e4e9SDhruvaraj Subhashchandran        Prereqs:
136e245e4e9SDhruvaraj Subhashchandran          0x07:
137e245e4e9SDhruvaraj Subhashchandran            assert: true
138e245e4e9SDhruvaraj Subhashchandran            deassert: false
139e84841ceSDhruvaraj Subhashchandran    xyz.openbmc_project.Inventory.Item:
140e84841ceSDhruvaraj Subhashchandran      Present:
141e245e4e9SDhruvaraj Subhashchandran        Offsets:
142e84841ceSDhruvaraj Subhashchandran          0x07:
143e84841ceSDhruvaraj Subhashchandran            assert: true
144e84841ceSDhruvaraj Subhashchandran            deassert: false
145e84841ceSDhruvaraj Subhashchandran            #The update will be skipped based on the value of skipOn
146e84841ceSDhruvaraj Subhashchandran            #in this case if offset 0x07 is deasserted
147e84841ceSDhruvaraj Subhashchandran            #the update will be skipped.
148e84841ceSDhruvaraj Subhashchandran            skipOn: deassert
149e84841ceSDhruvaraj Subhashchandran            type: bool
150