xref: /openbmc/skeleton/configs/Witherspoon.py (revision 75fe8cc4)
1*75fe8cc4SPatrick Williams# System states
2*75fe8cc4SPatrick Williams#   state can change to next state in 2 ways:
3*75fe8cc4SPatrick Williams#   - a process emits a GotoSystemState signal with state name to goto
4*75fe8cc4SPatrick Williams#   - objects specified in EXIT_STATE_DEPEND have started
5e5fe522aSYi LiSYSTEM_STATES = [
6*75fe8cc4SPatrick Williams    "BASE_APPS",
7*75fe8cc4SPatrick Williams    "BMC_STARTING",
8*75fe8cc4SPatrick Williams    "BMC_READY",
9*75fe8cc4SPatrick Williams    "HOST_POWERING_ON",
10*75fe8cc4SPatrick Williams    "HOST_POWERED_ON",
11*75fe8cc4SPatrick Williams    "HOST_BOOTING",
12*75fe8cc4SPatrick Williams    "HOST_BOOTED",
13*75fe8cc4SPatrick Williams    "HOST_POWERED_OFF",
14e5fe522aSYi Li]
15e5fe522aSYi Li
16e5fe522aSYi LiEXIT_STATE_DEPEND = {
17*75fe8cc4SPatrick Williams    "BASE_APPS": {
18*75fe8cc4SPatrick Williams        "/org/openbmc/sensors": 0,
19e5fe522aSYi Li    },
20*75fe8cc4SPatrick Williams    "BMC_STARTING": {
21*75fe8cc4SPatrick Williams        "/org/openbmc/control/chassis0": 0,
22*75fe8cc4SPatrick Williams        "/org/openbmc/control/power0": 0,
23*75fe8cc4SPatrick Williams        "/org/openbmc/control/flash/bios": 0,
24e5fe522aSYi Li    },
25e5fe522aSYi Li}
26e5fe522aSYi Li
27e5fe522aSYi LiFRU_INSTANCES = {
28*75fe8cc4SPatrick Williams    "<inventory_root>/system": {
29*75fe8cc4SPatrick Williams        "fru_type": "SYSTEM",
30*75fe8cc4SPatrick Williams        "is_fru": True,
31*75fe8cc4SPatrick Williams        "present": "True",
32*75fe8cc4SPatrick Williams    },
33*75fe8cc4SPatrick Williams    "<inventory_root>/system/bios": {
34*75fe8cc4SPatrick Williams        "fru_type": "SYSTEM",
35*75fe8cc4SPatrick Williams        "is_fru": True,
36*75fe8cc4SPatrick Williams        "present": "True",
37*75fe8cc4SPatrick Williams    },
38*75fe8cc4SPatrick Williams    "<inventory_root>/system/misc": {
39*75fe8cc4SPatrick Williams        "fru_type": "SYSTEM",
40*75fe8cc4SPatrick Williams        "is_fru": False,
41*75fe8cc4SPatrick Williams    },
42*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis": {
43*75fe8cc4SPatrick Williams        "fru_type": "SYSTEM",
44*75fe8cc4SPatrick Williams        "is_fru": True,
45*75fe8cc4SPatrick Williams        "present": "True",
46*75fe8cc4SPatrick Williams    },
47*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard": {
48*75fe8cc4SPatrick Williams        "fru_type": "MAIN_PLANAR",
49*75fe8cc4SPatrick Williams        "is_fru": True,
50*75fe8cc4SPatrick Williams    },
51*75fe8cc4SPatrick Williams    "<inventory_root>/system/systemevent": {
52*75fe8cc4SPatrick Williams        "fru_type": "SYSTEM_EVENT",
53*75fe8cc4SPatrick Williams        "is_fru": False,
54*75fe8cc4SPatrick Williams    },
55*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/refclock": {
56*75fe8cc4SPatrick Williams        "fru_type": "MAIN_PLANAR",
57*75fe8cc4SPatrick Williams        "is_fru": False,
58*75fe8cc4SPatrick Williams    },
59*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/pcieclock": {
60*75fe8cc4SPatrick Williams        "fru_type": "MAIN_PLANAR",
61*75fe8cc4SPatrick Williams        "is_fru": False,
62*75fe8cc4SPatrick Williams    },
63*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/todclock": {
64*75fe8cc4SPatrick Williams        "fru_type": "MAIN_PLANAR",
65*75fe8cc4SPatrick Williams        "is_fru": False,
66*75fe8cc4SPatrick Williams    },
67*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/apss": {
68*75fe8cc4SPatrick Williams        "fru_type": "MAIN_PLANAR",
69*75fe8cc4SPatrick Williams        "is_fru": False,
70*75fe8cc4SPatrick Williams    },
71*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/fan0": {
72*75fe8cc4SPatrick Williams        "fru_type": "FAN",
73*75fe8cc4SPatrick Williams        "is_fru": True,
74*75fe8cc4SPatrick Williams    },
75*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/fan1": {
76*75fe8cc4SPatrick Williams        "fru_type": "FAN",
77*75fe8cc4SPatrick Williams        "is_fru": True,
78*75fe8cc4SPatrick Williams    },
79*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/fan2": {
80*75fe8cc4SPatrick Williams        "fru_type": "FAN",
81*75fe8cc4SPatrick Williams        "is_fru": True,
82*75fe8cc4SPatrick Williams    },
83*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/fan3": {
84*75fe8cc4SPatrick Williams        "fru_type": "FAN",
85*75fe8cc4SPatrick Williams        "is_fru": True,
86*75fe8cc4SPatrick Williams    },
87*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/bmc": {
88*75fe8cc4SPatrick Williams        "fru_type": "BMC",
89*75fe8cc4SPatrick Williams        "is_fru": False,
90*75fe8cc4SPatrick Williams        "manufacturer": "ASPEED",
91*75fe8cc4SPatrick Williams    },
92*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu0": {
93*75fe8cc4SPatrick Williams        "fru_type": "CPU",
94*75fe8cc4SPatrick Williams        "is_fru": True,
95*75fe8cc4SPatrick Williams    },
96*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu1": {
97*75fe8cc4SPatrick Williams        "fru_type": "CPU",
98*75fe8cc4SPatrick Williams        "is_fru": True,
99*75fe8cc4SPatrick Williams    },
100*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu0/core0": {
101*75fe8cc4SPatrick Williams        "fru_type": "CORE",
102*75fe8cc4SPatrick Williams        "is_fru": False,
103*75fe8cc4SPatrick Williams    },
104*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu0/core1": {
105*75fe8cc4SPatrick Williams        "fru_type": "CORE",
106*75fe8cc4SPatrick Williams        "is_fru": False,
107*75fe8cc4SPatrick Williams    },
108*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu0/core2": {
109*75fe8cc4SPatrick Williams        "fru_type": "CORE",
110*75fe8cc4SPatrick Williams        "is_fru": False,
111*75fe8cc4SPatrick Williams    },
112*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu0/core3": {
113*75fe8cc4SPatrick Williams        "fru_type": "CORE",
114*75fe8cc4SPatrick Williams        "is_fru": False,
115*75fe8cc4SPatrick Williams    },
116*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu0/core4": {
117*75fe8cc4SPatrick Williams        "fru_type": "CORE",
118*75fe8cc4SPatrick Williams        "is_fru": False,
119*75fe8cc4SPatrick Williams    },
120*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu0/core5": {
121*75fe8cc4SPatrick Williams        "fru_type": "CORE",
122*75fe8cc4SPatrick Williams        "is_fru": False,
123*75fe8cc4SPatrick Williams    },
124*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu0/core6": {
125*75fe8cc4SPatrick Williams        "fru_type": "CORE",
126*75fe8cc4SPatrick Williams        "is_fru": False,
127*75fe8cc4SPatrick Williams    },
128*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu0/core7": {
129*75fe8cc4SPatrick Williams        "fru_type": "CORE",
130*75fe8cc4SPatrick Williams        "is_fru": False,
131*75fe8cc4SPatrick Williams    },
132*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu0/core8": {
133*75fe8cc4SPatrick Williams        "fru_type": "CORE",
134*75fe8cc4SPatrick Williams        "is_fru": False,
135*75fe8cc4SPatrick Williams    },
136*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu0/core9": {
137*75fe8cc4SPatrick Williams        "fru_type": "CORE",
138*75fe8cc4SPatrick Williams        "is_fru": False,
139*75fe8cc4SPatrick Williams    },
140*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu0/core10": {
141*75fe8cc4SPatrick Williams        "fru_type": "CORE",
142*75fe8cc4SPatrick Williams        "is_fru": False,
143*75fe8cc4SPatrick Williams    },
144*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu0/core11": {
145*75fe8cc4SPatrick Williams        "fru_type": "CORE",
146*75fe8cc4SPatrick Williams        "is_fru": False,
147*75fe8cc4SPatrick Williams    },
148*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu1/core0": {
149*75fe8cc4SPatrick Williams        "fru_type": "CORE",
150*75fe8cc4SPatrick Williams        "is_fru": False,
151*75fe8cc4SPatrick Williams    },
152*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu1/core1": {
153*75fe8cc4SPatrick Williams        "fru_type": "CORE",
154*75fe8cc4SPatrick Williams        "is_fru": False,
155*75fe8cc4SPatrick Williams    },
156*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu1/core2": {
157*75fe8cc4SPatrick Williams        "fru_type": "CORE",
158*75fe8cc4SPatrick Williams        "is_fru": False,
159*75fe8cc4SPatrick Williams    },
160*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu1/core3": {
161*75fe8cc4SPatrick Williams        "fru_type": "CORE",
162*75fe8cc4SPatrick Williams        "is_fru": False,
163*75fe8cc4SPatrick Williams    },
164*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu1/core4": {
165*75fe8cc4SPatrick Williams        "fru_type": "CORE",
166*75fe8cc4SPatrick Williams        "is_fru": False,
167*75fe8cc4SPatrick Williams    },
168*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu1/core5": {
169*75fe8cc4SPatrick Williams        "fru_type": "CORE",
170*75fe8cc4SPatrick Williams        "is_fru": False,
171*75fe8cc4SPatrick Williams    },
172*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu1/core6": {
173*75fe8cc4SPatrick Williams        "fru_type": "CORE",
174*75fe8cc4SPatrick Williams        "is_fru": False,
175*75fe8cc4SPatrick Williams    },
176*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu1/core7": {
177*75fe8cc4SPatrick Williams        "fru_type": "CORE",
178*75fe8cc4SPatrick Williams        "is_fru": False,
179*75fe8cc4SPatrick Williams    },
180*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu1/core8": {
181*75fe8cc4SPatrick Williams        "fru_type": "CORE",
182*75fe8cc4SPatrick Williams        "is_fru": False,
183*75fe8cc4SPatrick Williams    },
184*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu1/core9": {
185*75fe8cc4SPatrick Williams        "fru_type": "CORE",
186*75fe8cc4SPatrick Williams        "is_fru": False,
187*75fe8cc4SPatrick Williams    },
188*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu1/core10": {
189*75fe8cc4SPatrick Williams        "fru_type": "CORE",
190*75fe8cc4SPatrick Williams        "is_fru": False,
191*75fe8cc4SPatrick Williams    },
192*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/cpu1/core11": {
193*75fe8cc4SPatrick Williams        "fru_type": "CORE",
194*75fe8cc4SPatrick Williams        "is_fru": False,
195*75fe8cc4SPatrick Williams    },
196*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/membuf0": {
197*75fe8cc4SPatrick Williams        "fru_type": "MEMORY_BUFFER",
198*75fe8cc4SPatrick Williams        "is_fru": False,
199*75fe8cc4SPatrick Williams    },
200*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/membuf1": {
201*75fe8cc4SPatrick Williams        "fru_type": "MEMORY_BUFFER",
202*75fe8cc4SPatrick Williams        "is_fru": False,
203*75fe8cc4SPatrick Williams    },
204*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/membuf2": {
205*75fe8cc4SPatrick Williams        "fru_type": "MEMORY_BUFFER",
206*75fe8cc4SPatrick Williams        "is_fru": False,
207*75fe8cc4SPatrick Williams    },
208*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/membuf3": {
209*75fe8cc4SPatrick Williams        "fru_type": "MEMORY_BUFFER",
210*75fe8cc4SPatrick Williams        "is_fru": False,
211*75fe8cc4SPatrick Williams    },
212*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/membuf4": {
213*75fe8cc4SPatrick Williams        "fru_type": "MEMORY_BUFFER",
214*75fe8cc4SPatrick Williams        "is_fru": False,
215*75fe8cc4SPatrick Williams    },
216*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/membuf5": {
217*75fe8cc4SPatrick Williams        "fru_type": "MEMORY_BUFFER",
218*75fe8cc4SPatrick Williams        "is_fru": False,
219*75fe8cc4SPatrick Williams    },
220*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/membuf6": {
221*75fe8cc4SPatrick Williams        "fru_type": "MEMORY_BUFFER",
222*75fe8cc4SPatrick Williams        "is_fru": False,
223*75fe8cc4SPatrick Williams    },
224*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/membuf7": {
225*75fe8cc4SPatrick Williams        "fru_type": "MEMORY_BUFFER",
226*75fe8cc4SPatrick Williams        "is_fru": False,
227*75fe8cc4SPatrick Williams    },
228*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm0": {
229*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
230*75fe8cc4SPatrick Williams        "is_fru": True,
231*75fe8cc4SPatrick Williams    },
232*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm1": {
233*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
234*75fe8cc4SPatrick Williams        "is_fru": True,
235*75fe8cc4SPatrick Williams    },
236*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm2": {
237*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
238*75fe8cc4SPatrick Williams        "is_fru": True,
239*75fe8cc4SPatrick Williams    },
240*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm3": {
241*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
242*75fe8cc4SPatrick Williams        "is_fru": True,
243*75fe8cc4SPatrick Williams    },
244*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm4": {
245*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
246*75fe8cc4SPatrick Williams        "is_fru": True,
247*75fe8cc4SPatrick Williams    },
248*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm5": {
249*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
250*75fe8cc4SPatrick Williams        "is_fru": True,
251*75fe8cc4SPatrick Williams    },
252*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm6": {
253*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
254*75fe8cc4SPatrick Williams        "is_fru": True,
255*75fe8cc4SPatrick Williams    },
256*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm7": {
257*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
258*75fe8cc4SPatrick Williams        "is_fru": True,
259*75fe8cc4SPatrick Williams    },
260*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm8": {
261*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
262*75fe8cc4SPatrick Williams        "is_fru": True,
263*75fe8cc4SPatrick Williams    },
264*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm9": {
265*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
266*75fe8cc4SPatrick Williams        "is_fru": True,
267*75fe8cc4SPatrick Williams    },
268*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm10": {
269*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
270*75fe8cc4SPatrick Williams        "is_fru": True,
271*75fe8cc4SPatrick Williams    },
272*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm11": {
273*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
274*75fe8cc4SPatrick Williams        "is_fru": True,
275*75fe8cc4SPatrick Williams    },
276*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm12": {
277*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
278*75fe8cc4SPatrick Williams        "is_fru": True,
279*75fe8cc4SPatrick Williams    },
280*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm13": {
281*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
282*75fe8cc4SPatrick Williams        "is_fru": True,
283*75fe8cc4SPatrick Williams    },
284*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm14": {
285*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
286*75fe8cc4SPatrick Williams        "is_fru": True,
287*75fe8cc4SPatrick Williams    },
288*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm15": {
289*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
290*75fe8cc4SPatrick Williams        "is_fru": True,
291*75fe8cc4SPatrick Williams    },
292*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm16": {
293*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
294*75fe8cc4SPatrick Williams        "is_fru": True,
295*75fe8cc4SPatrick Williams    },
296*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm17": {
297*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
298*75fe8cc4SPatrick Williams        "is_fru": True,
299*75fe8cc4SPatrick Williams    },
300*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm18": {
301*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
302*75fe8cc4SPatrick Williams        "is_fru": True,
303*75fe8cc4SPatrick Williams    },
304*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm19": {
305*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
306*75fe8cc4SPatrick Williams        "is_fru": True,
307*75fe8cc4SPatrick Williams    },
308*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm20": {
309*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
310*75fe8cc4SPatrick Williams        "is_fru": True,
311*75fe8cc4SPatrick Williams    },
312*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm21": {
313*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
314*75fe8cc4SPatrick Williams        "is_fru": True,
315*75fe8cc4SPatrick Williams    },
316*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm22": {
317*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
318*75fe8cc4SPatrick Williams        "is_fru": True,
319*75fe8cc4SPatrick Williams    },
320*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm23": {
321*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
322*75fe8cc4SPatrick Williams        "is_fru": True,
323*75fe8cc4SPatrick Williams    },
324*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm24": {
325*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
326*75fe8cc4SPatrick Williams        "is_fru": True,
327*75fe8cc4SPatrick Williams    },
328*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm25": {
329*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
330*75fe8cc4SPatrick Williams        "is_fru": True,
331*75fe8cc4SPatrick Williams    },
332*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm26": {
333*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
334*75fe8cc4SPatrick Williams        "is_fru": True,
335*75fe8cc4SPatrick Williams    },
336*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm27": {
337*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
338*75fe8cc4SPatrick Williams        "is_fru": True,
339*75fe8cc4SPatrick Williams    },
340*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm28": {
341*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
342*75fe8cc4SPatrick Williams        "is_fru": True,
343*75fe8cc4SPatrick Williams    },
344*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm29": {
345*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
346*75fe8cc4SPatrick Williams        "is_fru": True,
347*75fe8cc4SPatrick Williams    },
348*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm30": {
349*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
350*75fe8cc4SPatrick Williams        "is_fru": True,
351*75fe8cc4SPatrick Williams    },
352*75fe8cc4SPatrick Williams    "<inventory_root>/system/chassis/motherboard/dimm31": {
353*75fe8cc4SPatrick Williams        "fru_type": "DIMM",
354*75fe8cc4SPatrick Williams        "is_fru": True,
355*75fe8cc4SPatrick Williams    },
356e5fe522aSYi Li}
357e5fe522aSYi Li
358e5fe522aSYi LiID_LOOKUP = {
359*75fe8cc4SPatrick Williams    "FRU": {
360*75fe8cc4SPatrick Williams        0x01: "<inventory_root>/system/chassis/motherboard/cpu0",
361*75fe8cc4SPatrick Williams        0x02: "<inventory_root>/system/chassis/motherboard/cpu1",
362*75fe8cc4SPatrick Williams        0x03: "<inventory_root>/system/chassis/motherboard",
363*75fe8cc4SPatrick Williams        0x04: "<inventory_root>/system/chassis/motherboard/membuf0",
364*75fe8cc4SPatrick Williams        0x05: "<inventory_root>/system/chassis/motherboard/membuf1",
365*75fe8cc4SPatrick Williams        0x06: "<inventory_root>/system/chassis/motherboard/membuf2",
366*75fe8cc4SPatrick Williams        0x07: "<inventory_root>/system/chassis/motherboard/membuf3",
367*75fe8cc4SPatrick Williams        0x08: "<inventory_root>/system/chassis/motherboard/membuf4",
368*75fe8cc4SPatrick Williams        0x09: "<inventory_root>/system/chassis/motherboard/membuf5",
369*75fe8cc4SPatrick Williams        0x0C: "<inventory_root>/system/chassis/motherboard/dimm0",
370*75fe8cc4SPatrick Williams        0x0D: "<inventory_root>/system/chassis/motherboard/dimm1",
371*75fe8cc4SPatrick Williams        0x0E: "<inventory_root>/system/chassis/motherboard/dimm2",
372*75fe8cc4SPatrick Williams        0x0F: "<inventory_root>/system/chassis/motherboard/dimm3",
373*75fe8cc4SPatrick Williams        0x10: "<inventory_root>/system/chassis/motherboard/dimm4",
374*75fe8cc4SPatrick Williams        0x11: "<inventory_root>/system/chassis/motherboard/dimm5",
375*75fe8cc4SPatrick Williams        0x12: "<inventory_root>/system/chassis/motherboard/dimm6",
376*75fe8cc4SPatrick Williams        0x13: "<inventory_root>/system/chassis/motherboard/dimm7",
377*75fe8cc4SPatrick Williams        0x14: "<inventory_root>/system/chassis/motherboard/dimm8",
378*75fe8cc4SPatrick Williams        0x15: "<inventory_root>/system/chassis/motherboard/dimm9",
379*75fe8cc4SPatrick Williams        0x16: "<inventory_root>/system/chassis/motherboard/dimm10",
380*75fe8cc4SPatrick Williams        0x17: "<inventory_root>/system/chassis/motherboard/dimm11",
381*75fe8cc4SPatrick Williams        0x18: "<inventory_root>/system/chassis/motherboard/dimm12",
382*75fe8cc4SPatrick Williams        0x19: "<inventory_root>/system/chassis/motherboard/dimm13",
383*75fe8cc4SPatrick Williams        0x1A: "<inventory_root>/system/chassis/motherboard/dimm14",
384*75fe8cc4SPatrick Williams        0x1B: "<inventory_root>/system/chassis/motherboard/dimm15",
385*75fe8cc4SPatrick Williams        0x1C: "<inventory_root>/system/chassis/motherboard/dimm16",
386*75fe8cc4SPatrick Williams        0x1D: "<inventory_root>/system/chassis/motherboard/dimm17",
387*75fe8cc4SPatrick Williams        0x1E: "<inventory_root>/system/chassis/motherboard/dimm18",
388*75fe8cc4SPatrick Williams        0x1F: "<inventory_root>/system/chassis/motherboard/dimm19",
389*75fe8cc4SPatrick Williams        0x20: "<inventory_root>/system/chassis/motherboard/dimm20",
390*75fe8cc4SPatrick Williams        0x21: "<inventory_root>/system/chassis/motherboard/dimm21",
391*75fe8cc4SPatrick Williams        0x22: "<inventory_root>/system/chassis/motherboard/dimm22",
392*75fe8cc4SPatrick Williams        0x23: "<inventory_root>/system/chassis/motherboard/dimm23",
393*75fe8cc4SPatrick Williams        0x24: "<inventory_root>/system/chassis/motherboard/dimm24",
394*75fe8cc4SPatrick Williams        0x25: "<inventory_root>/system/chassis/motherboard/dimm25",
395*75fe8cc4SPatrick Williams        0x26: "<inventory_root>/system/chassis/motherboard/dimm26",
396*75fe8cc4SPatrick Williams        0x27: "<inventory_root>/system/chassis/motherboard/dimm27",
397*75fe8cc4SPatrick Williams        0x28: "<inventory_root>/system/chassis/motherboard/dimm28",
398*75fe8cc4SPatrick Williams        0x29: "<inventory_root>/system/chassis/motherboard/dimm29",
399*75fe8cc4SPatrick Williams        0x2A: "<inventory_root>/system/chassis/motherboard/dimm30",
400*75fe8cc4SPatrick Williams        0x2B: "<inventory_root>/system/chassis/motherboard/dimm31",
401e5fe522aSYi Li    },
402*75fe8cc4SPatrick Williams    "FRU_STR": {
403*75fe8cc4SPatrick Williams        "PRODUCT_0": "<inventory_root>/system/bios",
404*75fe8cc4SPatrick Williams        "BOARD_1": "<inventory_root>/system/chassis/motherboard/cpu0",
405*75fe8cc4SPatrick Williams        "BOARD_2": "<inventory_root>/system/chassis/motherboard/cpu1",
406*75fe8cc4SPatrick Williams        "CHASSIS_3": "<inventory_root>/system/chassis/motherboard",
407*75fe8cc4SPatrick Williams        "BOARD_3": "<inventory_root>/system/misc",
408*75fe8cc4SPatrick Williams        "BOARD_4": "<inventory_root>/system/chassis/motherboard/membuf0",
409*75fe8cc4SPatrick Williams        "BOARD_5": "<inventory_root>/system/chassis/motherboard/membuf1",
410*75fe8cc4SPatrick Williams        "BOARD_6": "<inventory_root>/system/chassis/motherboard/membuf2",
411*75fe8cc4SPatrick Williams        "BOARD_7": "<inventory_root>/system/chassis/motherboard/membuf3",
412*75fe8cc4SPatrick Williams        "BOARD_8": "<inventory_root>/system/chassis/motherboard/membuf4",
413*75fe8cc4SPatrick Williams        "BOARD_9": "<inventory_root>/system/chassis/motherboard/membuf5",
414*75fe8cc4SPatrick Williams        "BOARD_10": "<inventory_root>/system/chassis/motherboard/membuf6",
415*75fe8cc4SPatrick Williams        "BOARD_11": "<inventory_root>/system/chassis/motherboard/membuf7",
416*75fe8cc4SPatrick Williams        "PRODUCT_12": "<inventory_root>/system/chassis/motherboard/dimm0",
417*75fe8cc4SPatrick Williams        "PRODUCT_13": "<inventory_root>/system/chassis/motherboard/dimm1",
418*75fe8cc4SPatrick Williams        "PRODUCT_14": "<inventory_root>/system/chassis/motherboard/dimm2",
419*75fe8cc4SPatrick Williams        "PRODUCT_15": "<inventory_root>/system/chassis/motherboard/dimm3",
420*75fe8cc4SPatrick Williams        "PRODUCT_16": "<inventory_root>/system/chassis/motherboard/dimm4",
421*75fe8cc4SPatrick Williams        "PRODUCT_17": "<inventory_root>/system/chassis/motherboard/dimm5",
422*75fe8cc4SPatrick Williams        "PRODUCT_18": "<inventory_root>/system/chassis/motherboard/dimm6",
423*75fe8cc4SPatrick Williams        "PRODUCT_19": "<inventory_root>/system/chassis/motherboard/dimm7",
424*75fe8cc4SPatrick Williams        "PRODUCT_20": "<inventory_root>/system/chassis/motherboard/dimm8",
425*75fe8cc4SPatrick Williams        "PRODUCT_21": "<inventory_root>/system/chassis/motherboard/dimm9",
426*75fe8cc4SPatrick Williams        "PRODUCT_22": "<inventory_root>/system/chassis/motherboard/dimm10",
427*75fe8cc4SPatrick Williams        "PRODUCT_23": "<inventory_root>/system/chassis/motherboard/dimm11",
428*75fe8cc4SPatrick Williams        "PRODUCT_24": "<inventory_root>/system/chassis/motherboard/dimm12",
429*75fe8cc4SPatrick Williams        "PRODUCT_25": "<inventory_root>/system/chassis/motherboard/dimm13",
430*75fe8cc4SPatrick Williams        "PRODUCT_26": "<inventory_root>/system/chassis/motherboard/dimm14",
431*75fe8cc4SPatrick Williams        "PRODUCT_27": "<inventory_root>/system/chassis/motherboard/dimm15",
432*75fe8cc4SPatrick Williams        "PRODUCT_28": "<inventory_root>/system/chassis/motherboard/dimm16",
433*75fe8cc4SPatrick Williams        "PRODUCT_29": "<inventory_root>/system/chassis/motherboard/dimm17",
434*75fe8cc4SPatrick Williams        "PRODUCT_30": "<inventory_root>/system/chassis/motherboard/dimm18",
435*75fe8cc4SPatrick Williams        "PRODUCT_31": "<inventory_root>/system/chassis/motherboard/dimm19",
436*75fe8cc4SPatrick Williams        "PRODUCT_32": "<inventory_root>/system/chassis/motherboard/dimm20",
437*75fe8cc4SPatrick Williams        "PRODUCT_33": "<inventory_root>/system/chassis/motherboard/dimm21",
438*75fe8cc4SPatrick Williams        "PRODUCT_34": "<inventory_root>/system/chassis/motherboard/dimm22",
439*75fe8cc4SPatrick Williams        "PRODUCT_35": "<inventory_root>/system/chassis/motherboard/dimm23",
440*75fe8cc4SPatrick Williams        "PRODUCT_36": "<inventory_root>/system/chassis/motherboard/dimm24",
441*75fe8cc4SPatrick Williams        "PRODUCT_37": "<inventory_root>/system/chassis/motherboard/dimm25",
442*75fe8cc4SPatrick Williams        "PRODUCT_38": "<inventory_root>/system/chassis/motherboard/dimm26",
443*75fe8cc4SPatrick Williams        "PRODUCT_39": "<inventory_root>/system/chassis/motherboard/dimm27",
444*75fe8cc4SPatrick Williams        "PRODUCT_40": "<inventory_root>/system/chassis/motherboard/dimm28",
445*75fe8cc4SPatrick Williams        "PRODUCT_41": "<inventory_root>/system/chassis/motherboard/dimm29",
446*75fe8cc4SPatrick Williams        "PRODUCT_42": "<inventory_root>/system/chassis/motherboard/dimm30",
447*75fe8cc4SPatrick Williams        "PRODUCT_43": "<inventory_root>/system/chassis/motherboard/dimm31",
448*75fe8cc4SPatrick Williams        "PRODUCT_47": "<inventory_root>/system/misc",
449e5fe522aSYi Li    },
450*75fe8cc4SPatrick Williams    "SENSOR": {
451*75fe8cc4SPatrick Williams        0x02: "/org/openbmc/sensors/host/HostStatus",
452*75fe8cc4SPatrick Williams        0x03: "/org/openbmc/sensors/host/BootProgress",
453*75fe8cc4SPatrick Williams        0x5A: "<inventory_root>/system/chassis/motherboard/cpu0",
454*75fe8cc4SPatrick Williams        0xA4: "<inventory_root>/system/chassis/motherboard/cpu1",
455*75fe8cc4SPatrick Williams        0x1E: "<inventory_root>/system/chassis/motherboard/dimm3",
456*75fe8cc4SPatrick Williams        0x1F: "<inventory_root>/system/chassis/motherboard/dimm2",
457*75fe8cc4SPatrick Williams        0x20: "<inventory_root>/system/chassis/motherboard/dimm1",
458*75fe8cc4SPatrick Williams        0x21: "<inventory_root>/system/chassis/motherboard/dimm0",
459*75fe8cc4SPatrick Williams        0x22: "<inventory_root>/system/chassis/motherboard/dimm7",
460*75fe8cc4SPatrick Williams        0x23: "<inventory_root>/system/chassis/motherboard/dimm6",
461*75fe8cc4SPatrick Williams        0x24: "<inventory_root>/system/chassis/motherboard/dimm5",
462*75fe8cc4SPatrick Williams        0x25: "<inventory_root>/system/chassis/motherboard/dimm4",
463*75fe8cc4SPatrick Williams        0x26: "<inventory_root>/system/chassis/motherboard/dimm11",
464*75fe8cc4SPatrick Williams        0x27: "<inventory_root>/system/chassis/motherboard/dimm10",
465*75fe8cc4SPatrick Williams        0x28: "<inventory_root>/system/chassis/motherboard/dimm9",
466*75fe8cc4SPatrick Williams        0x29: "<inventory_root>/system/chassis/motherboard/dimm8",
467*75fe8cc4SPatrick Williams        0x2A: "<inventory_root>/system/chassis/motherboard/dimm15",
468*75fe8cc4SPatrick Williams        0x2B: "<inventory_root>/system/chassis/motherboard/dimm14",
469*75fe8cc4SPatrick Williams        0x2C: "<inventory_root>/system/chassis/motherboard/dimm13",
470*75fe8cc4SPatrick Williams        0x2D: "<inventory_root>/system/chassis/motherboard/dimm12",
471*75fe8cc4SPatrick Williams        0x2E: "<inventory_root>/system/chassis/motherboard/dimm19",
472*75fe8cc4SPatrick Williams        0x2F: "<inventory_root>/system/chassis/motherboard/dimm18",
473*75fe8cc4SPatrick Williams        0x30: "<inventory_root>/system/chassis/motherboard/dimm17",
474*75fe8cc4SPatrick Williams        0x31: "<inventory_root>/system/chassis/motherboard/dimm16",
475*75fe8cc4SPatrick Williams        0x32: "<inventory_root>/system/chassis/motherboard/dimm23",
476*75fe8cc4SPatrick Williams        0x33: "<inventory_root>/system/chassis/motherboard/dimm22",
477*75fe8cc4SPatrick Williams        0x34: "<inventory_root>/system/chassis/motherboard/dimm21",
478*75fe8cc4SPatrick Williams        0x35: "<inventory_root>/system/chassis/motherboard/dimm20",
479*75fe8cc4SPatrick Williams        0x36: "<inventory_root>/system/chassis/motherboard/dimm27",
480*75fe8cc4SPatrick Williams        0x37: "<inventory_root>/system/chassis/motherboard/dimm26",
481*75fe8cc4SPatrick Williams        0x38: "<inventory_root>/system/chassis/motherboard/dimm25",
482*75fe8cc4SPatrick Williams        0x39: "<inventory_root>/system/chassis/motherboard/dimm24",
483*75fe8cc4SPatrick Williams        0x3A: "<inventory_root>/system/chassis/motherboard/dimm31",
484*75fe8cc4SPatrick Williams        0x3B: "<inventory_root>/system/chassis/motherboard/dimm30",
485*75fe8cc4SPatrick Williams        0x3C: "<inventory_root>/system/chassis/motherboard/dimm29",
486*75fe8cc4SPatrick Williams        0x3D: "<inventory_root>/system/chassis/motherboard/dimm28",
487*75fe8cc4SPatrick Williams        0x3E: "<inventory_root>/system/chassis/motherboard/cpu0/core0",
488*75fe8cc4SPatrick Williams        0x3F: "<inventory_root>/system/chassis/motherboard/cpu0/core1",
489*75fe8cc4SPatrick Williams        0x40: "<inventory_root>/system/chassis/motherboard/cpu0/core2",
490*75fe8cc4SPatrick Williams        0x41: "<inventory_root>/system/chassis/motherboard/cpu0/core3",
491*75fe8cc4SPatrick Williams        0x42: "<inventory_root>/system/chassis/motherboard/cpu0/core4",
492*75fe8cc4SPatrick Williams        0x43: "<inventory_root>/system/chassis/motherboard/cpu0/core5",
493*75fe8cc4SPatrick Williams        0x44: "<inventory_root>/system/chassis/motherboard/cpu0/core6",
494*75fe8cc4SPatrick Williams        0x45: "<inventory_root>/system/chassis/motherboard/cpu0/core7",
495*75fe8cc4SPatrick Williams        0x46: "<inventory_root>/system/chassis/motherboard/cpu0/core8",
496*75fe8cc4SPatrick Williams        0x47: "<inventory_root>/system/chassis/motherboard/cpu0/core9",
497*75fe8cc4SPatrick Williams        0x48: "<inventory_root>/system/chassis/motherboard/cpu0/core10",
498*75fe8cc4SPatrick Williams        0x49: "<inventory_root>/system/chassis/motherboard/cpu0/core11",
499*75fe8cc4SPatrick Williams        0x4A: "<inventory_root>/system/chassis/motherboard/cpu1/core0",
500*75fe8cc4SPatrick Williams        0x4B: "<inventory_root>/system/chassis/motherboard/cpu1/core1",
501*75fe8cc4SPatrick Williams        0x4C: "<inventory_root>/system/chassis/motherboard/cpu1/core2",
502*75fe8cc4SPatrick Williams        0x4D: "<inventory_root>/system/chassis/motherboard/cpu1/core3",
503*75fe8cc4SPatrick Williams        0x4E: "<inventory_root>/system/chassis/motherboard/cpu1/core4",
504*75fe8cc4SPatrick Williams        0x4F: "<inventory_root>/system/chassis/motherboard/cpu1/core5",
505*75fe8cc4SPatrick Williams        0x50: "<inventory_root>/system/chassis/motherboard/cpu1/core6",
506*75fe8cc4SPatrick Williams        0x51: "<inventory_root>/system/chassis/motherboard/cpu1/core7",
507*75fe8cc4SPatrick Williams        0x52: "<inventory_root>/system/chassis/motherboard/cpu1/core8",
508*75fe8cc4SPatrick Williams        0x53: "<inventory_root>/system/chassis/motherboard/cpu1/core9",
509*75fe8cc4SPatrick Williams        0x54: "<inventory_root>/system/chassis/motherboard/cpu1/core10",
510*75fe8cc4SPatrick Williams        0x55: "<inventory_root>/system/chassis/motherboard/cpu1/core11",
511*75fe8cc4SPatrick Williams        0x56: "<inventory_root>/system/chassis/motherboard/membuf0",
512*75fe8cc4SPatrick Williams        0x57: "<inventory_root>/system/chassis/motherboard/membuf1",
513*75fe8cc4SPatrick Williams        0x58: "<inventory_root>/system/chassis/motherboard/membuf2",
514*75fe8cc4SPatrick Williams        0x59: "<inventory_root>/system/chassis/motherboard/membuf3",
515*75fe8cc4SPatrick Williams        0x5A: "<inventory_root>/system/chassis/motherboard/membuf4",
516*75fe8cc4SPatrick Williams        0x5B: "<inventory_root>/system/chassis/motherboard/membuf5",
517*75fe8cc4SPatrick Williams        0x5C: "<inventory_root>/system/chassis/motherboard/membuf6",
518*75fe8cc4SPatrick Williams        0x5D: "<inventory_root>/system/chassis/motherboard/membuf7",
519*75fe8cc4SPatrick Williams        0x07: "/org/openbmc/sensors/host/BootCount",
520*75fe8cc4SPatrick Williams        0x0C: "<inventory_root>/system/chassis/motherboard",
521*75fe8cc4SPatrick Williams        0x01: "<inventory_root>/system/systemevent",
522*75fe8cc4SPatrick Williams        0x08: "<inventory_root>/system/powerlimit",
523*75fe8cc4SPatrick Williams        0x0D: "<inventory_root>/system/chassis/motherboard/refclock",
524*75fe8cc4SPatrick Williams        0x0E: "<inventory_root>/system/chassis/motherboard/pcieclock",
525*75fe8cc4SPatrick Williams        0x0F: "<inventory_root>/system/chassis/motherboard/todclock",
526*75fe8cc4SPatrick Williams        0x10: "<inventory_root>/system/chassis/motherboard/apss",
527*75fe8cc4SPatrick Williams        0x02: "/org/openbmc/sensors/host/OperatingSystemStatus",
528*75fe8cc4SPatrick Williams        0x04: "<inventory_root>/system/chassis/motherboard/pcielink",
529*75fe8cc4SPatrick Williams        0x0B: "/xyz/openbmc_project/sensors/chassis/PowerSupplyRedundancy",
530*75fe8cc4SPatrick Williams        0xDA: "/org/openbmc/sensors/host/TurboAllowed",
531*75fe8cc4SPatrick Williams        0xD8: "/org/openbmc/sensors/host/PowerSupplyDerating",
532e5fe522aSYi Li    },
533*75fe8cc4SPatrick Williams    "GPIO_PRESENT": {},
534e5fe522aSYi Li}
535e5fe522aSYi Li
5364088ec38SXo Wang
537e5fe522aSYi Li# Miscellaneous non-poll sensor with system specific properties.
538e5fe522aSYi Li# The sensor id is the same as those defined in ID_LOOKUP['SENSOR'].
539e5fe522aSYi LiMISC_SENSORS = {
540e688d94bSJayanth Othayoth    # Garrison value is used, Not in P9 XML yet.
541e5fe522aSYi Li}
54253066750SBrad Bishop
54353066750SBrad Bishop# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
544