blob: 9760cd013f01c581971457c492fc73b88590635a [file] [log] [blame]
Deepak Kodihalli1bb0d382017-08-12 02:01:27 -05001# Sensor id is the key
20x60:
3 sensorType: 0x07
Ratan Gupta47bf3ed2017-03-04 08:33:57 +05304 sensorReadingType: 0x6F
Deepak Kodihalli1bb0d382017-08-12 02:01:27 -05005 # 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 Subhashchandrane0af7202017-07-12 06:35:20 -050013 readingType: assertion
Jayanth Othayoth0922bde2018-04-02 07:59:34 -050014 # indicate if a sensor is READ/WRITE/RW.
15 # This particular sensor read and write operation is allowed
16 mutability: Mutability::Write|Mutability::Read
Tom Joseph31ff6e62018-01-24 16:10:09 +053017 # Sensor name would be occ0
18 sensorNamePattern: nameLeaf
Deepak Kodihalli1bb0d382017-08-12 02:01:27 -050019 eventType: 0x6F
20 # All the d-bus interfaces : properties that must be updated for this path
Ratan Gupta47bf3ed2017-03-04 08:33:57 +053021 interfaces:
Deepak Kodihalli1bb0d382017-08-12 02:01:27 -050022 # One or more interface dict entries
23 org.open_power.OCC.Status:
24 OccActive:
Dhruvaraj Subhashchandrane245e4e2017-10-03 03:58:05 -050025 Offsets:
26 # Sensor type specific offset
27 0x06:
28 # OccActive is a boolean
29 type: "bool"
30 # If offset 0x06 is asserted, set OccActive as false.
31 assert: "false"
32 deassert: "true"
Deepak Kodihalli1bb0d382017-08-12 02:01:27 -050033
340x61:
35 sensorType: 0x04
36 sensorReadingType: 0x6F
37 # Inventory paths intentionally leave out the inventory root,
38 # /xyz/openbmc_project/inventory, because phosphor-inventory-manager
39 # adds that.
40 path: /system/chassis/motherboard/dimm1
41 serviceInterface: xyz.openbmc_project.Inventory.Manager
42 readingType: assertion
Jayanth Othayoth0922bde2018-04-02 07:59:34 -050043 mutability: Mutability::Write|Mutability::Read
Tom Joseph31ff6e62018-01-24 16:10:09 +053044 sensorNamePattern: nameLeaf
Deepak Kodihalli1bb0d382017-08-12 02:01:27 -050045 interfaces:
Deepak Kodihalli1bb0d382017-08-12 02:01:27 -050046 xyz.openbmc_project.State.Decorator.OperationalStatus:
47 Functional:
Dhruvaraj Subhashchandrane245e4e2017-10-03 03:58:05 -050048 #Offsets contain the offsets in the sensor data.
49 Offsets:
50 0x06:
51 assert: true
52 deassert: false
53 type: bool
54 #Prereqs are pre-requisites for this property value to be true.
55 Prereqs:
56 0x04:
57 assert: false
58 deassert: true
59 type: bool
60 xyz.openbmc_project.Inventory.Item:
61 Present:
62 Offsets:
Dhruvaraj Subhashchandrane84841c2017-08-22 07:40:27 -050063 0x04:
64 assert: false
65 deassert: true
66 type: bool
Deepak Kodihalli1bb0d382017-08-12 02:01:27 -050067
680x63:
Dhruvaraj Subhashchandrane0af7202017-07-12 06:35:20 -050069 interfaces:
70 xyz.openbmc_project.Control.Boot.RebootAttempts:
71 AttemptsLeft:
Dhruvaraj Subhashchandrane245e4e2017-10-03 03:58:05 -050072 Offsets:
73 0xFF:
74 type: uint32_t
Deepak Kodihalli1bb0d382017-08-12 02:01:27 -050075 path: /xyz/openbmc_project/state/host0
76 # A special case of assertion, where the entire assert bitfield
77 # serves as the value, or reading. Hence, the offset above is intentionally
78 # 0xFF, to indicate not to check any specific bits in the assertion.
79 readingType: readingAssertion
Tom Joseph31ff6e62018-01-24 16:10:09 +053080 # Sensor name would be AttemptsLeft
81 sensorNamePattern: nameProperty
Ratan Gupta47bf3ed2017-03-04 08:33:57 +053082 sensorReadingType: 0x6F
Jayanth Othayoth0922bde2018-04-02 07:59:34 -050083 mutability: Mutability::Write|Mutability::Read
Deepak Kodihalli1bb0d382017-08-12 02:01:27 -050084 sensorType: 0xC3
85 serviceInterface: org.freedesktop.DBus.Properties
86
870x62:
Ratan Gupta47bf3ed2017-03-04 08:33:57 +053088 interfaces:
Deepak Kodihalli1bb0d382017-08-12 02:01:27 -050089 xyz.openbmc_project.Control.Boot.RebootAttempts:
90 AttemptsLeft:
Dhruvaraj Subhashchandrane245e4e2017-10-03 03:58:05 -050091 Offsets:
92 0xFF:
93 type: uint32_t
Deepak Kodihalli1bb0d382017-08-12 02:01:27 -050094 path: /xyz/openbmc_project/state/host1
95 readingType: readingAssertion
Jeremy Kerrbe4ffa82020-08-10 16:17:37 +080096 # set an explicit name for the sensor
97 sensorName: RebootAttempts
Ratan Gupta47bf3ed2017-03-04 08:33:57 +053098 sensorReadingType: 0x6F
Jayanth Othayoth0922bde2018-04-02 07:59:34 -050099 mutability: Mutability::Write|Mutability::Read
Deepak Kodihalli1bb0d382017-08-12 02:01:27 -0500100 sensorType: 0xC3
101 serviceInterface: org.freedesktop.DBus.Properties
Emily Shaffercc941e12017-06-14 13:06:26 -0700102
1030xD0:
104 sensorType: 0x01
105 path: /xyz/openbmc_project/sensors/temperature/fleeting0
106 sensorReadingType: 0x01
107 multiplierM: 511
108 offsetB: 0
109 bExp: 0
Tom Joseph0a1301c2018-02-16 08:27:00 +0530110 # Result exponent field in Type 1 SDR(2's complement, signed)
111 rExp: 0
112 # Applies for analog sensors, the actual reading value for the sensor is
113 # Value * 10^N
114 scale: -3
Emily Shaffercc941e12017-06-14 13:06:26 -0700115 mutability: Mutability::Write|Mutability::Read
116 serviceInterface: org.freedesktop.DBus.Properties
117 readingType: readingData
Tom Joseph31ff6e62018-01-24 16:10:09 +0530118 sensorNamePattern: nameLeaf
Emily Shaffercc941e12017-06-14 13:06:26 -0700119 interfaces:
120 xyz.openbmc_project.Sensor.Value:
121 Value:
Dhruvaraj Subhashchandrane245e4e2017-10-03 03:58:05 -0500122 Offsets:
123 0xFF:
124 type: int64_t
Emily Shaffercc941e12017-06-14 13:06:26 -0700125
Dhruvaraj Subhashchandrane84841c2017-08-22 07:40:27 -05001260x54:
127 sensorType: 0x07
128 path: /system/chassis/motherboard/cpu0/core22
129 sensorReadingType: 0x6F
130 serviceInterface: xyz.openbmc_project.Inventory.Manager
131 readingType: assertion
Jayanth Othayoth0922bde2018-04-02 07:59:34 -0500132 mutability: Mutability::Write|Mutability::Read
Tom Joseph31ff6e62018-01-24 16:10:09 +0530133 # Sensor name would be cpu0_core22
134 sensorNamePattern: nameParentLeaf
Dhruvaraj Subhashchandrane84841c2017-08-22 07:40:27 -0500135 interfaces:
136 xyz.openbmc_project.State.Decorator.OperationalStatus:
137 Functional:
Dhruvaraj Subhashchandrane245e4e2017-10-03 03:58:05 -0500138 Offsets:
Dhruvaraj Subhashchandrane84841c2017-08-22 07:40:27 -0500139 0x08:
140 assert: false
141 deassert: true
142 type: bool
Dhruvaraj Subhashchandrane245e4e2017-10-03 03:58:05 -0500143 Prereqs:
144 0x07:
145 assert: true
146 deassert: false
Dhruvaraj Subhashchandrane84841c2017-08-22 07:40:27 -0500147 xyz.openbmc_project.Inventory.Item:
148 Present:
Dhruvaraj Subhashchandrane245e4e2017-10-03 03:58:05 -0500149 Offsets:
Dhruvaraj Subhashchandrane84841c2017-08-22 07:40:27 -0500150 0x07:
151 assert: true
152 deassert: false
153 #The update will be skipped based on the value of skipOn
154 #in this case if offset 0x07 is deasserted
155 #the update will be skipped.
156 skipOn: deassert
157 type: bool
Santosh Puranikbbf8bd62019-05-01 19:02:52 +0530158
1590xC5:
160 sensorType: 0x17
161 path: /system/chassis/motherboard/gv100card0
162 sensorReadingType: 1
163 serviceInterface: xyz.openbmc_project.Inventory.Manager
164 readingType: assertion
165 mutability: Mutability::Write|Mutability::Read
166 sensorNamePattern: nameLeaf
167 interfaces:
168 xyz.openbmc_project.Inventory.Decorator.Replaceable:
169 FieldReplaceable:
170 Offsets:
171 7:
172 assert: true
173 deassert: true
174 type: bool
175 xyz.openbmc_project.Inventory.Item:
176 Present:
177 Offsets:
178 7:
179 assert: true
180 deassert: false
181 type: bool
182 # Example of an interface with no attached properties
183 xyz.openbmc_project.Inventory.Item.Accelerator:
184 xyz.openbmc_project.State.Decorator.OperationalStatus:
185 Functional:
186 Offsets:
187 8:
188 assert: false
189 deassert: true
190 type: bool
191 Prereqs:
192 7:
193 assert: true
194 deassert: false
195 type: bool