xref: /openbmc/skeleton/configs/Barreleye.py (revision d8c6f5a3)
1# System states
2#   state can change to next state in 2 ways:
3#   - a process emits a GotoSystemState signal with state name to goto
4#   - objects specified in EXIT_STATE_DEPEND have started
5SYSTEM_STATES = [
6    "BASE_APPS",
7    "BMC_STARTING",
8    "BMC_STARTING2",
9    "BMC_READY",
10    "HOST_POWERING_ON",
11    "HOST_POWERED_ON",
12    "INVENTORY_UPLOADED",
13    "HOST_BOOTING",
14    "HOST_BOOTED",
15    "HOST_POWERED_OFF",
16]
17
18EXIT_STATE_DEPEND = {
19    "BASE_APPS": {
20        "/org/openbmc/sensors": 0,
21    },
22    "BMC_STARTING": {
23        "/org/openbmc/control/power0": 0,
24        "/org/openbmc/control/host0": 0,
25        "/org/openbmc/control/flash/bios": 0,
26    },
27    "BMC_STARTING2": {
28        "/org/openbmc/control/fans": 0,
29        "/org/openbmc/control/chassis0": 0,
30    },
31}
32
33FRU_INSTANCES = {
34    "<inventory_root>/system": {
35        "fru_type": "SYSTEM",
36        "is_fru": True,
37        "present": "True",
38    },
39    "<inventory_root>/system/bios": {
40        "fru_type": "SYSTEM",
41        "is_fru": True,
42        "present": "True",
43    },
44    "<inventory_root>/system/misc": {
45        "fru_type": "SYSTEM",
46        "is_fru": False,
47    },
48    "<inventory_root>/system/chassis": {
49        "fru_type": "SYSTEM",
50        "is_fru": True,
51        "present": "True",
52    },
53    "<inventory_root>/system/chassis/motherboard": {
54        "fru_type": "MAIN_PLANAR",
55        "is_fru": True,
56    },
57    "<inventory_root>/system/chassis/io_board": {
58        "fru_type": "DAUGHTER_CARD",
59        "is_fru": True,
60    },
61    "<inventory_root>/system/chassis/sas_expander": {
62        "fru_type": "DAUGHTER_CARD",
63        "is_fru": True,
64    },
65    "<inventory_root>/system/chassis/hdd_backplane": {
66        "fru_type": "DAUGHTER_CARD",
67        "is_fru": True,
68    },
69    "<inventory_root>/system/systemevent": {
70        "fru_type": "SYSTEM_EVENT",
71        "is_fru": False,
72    },
73    "<inventory_root>/system/chassis/motherboard/refclock": {
74        "fru_type": "MAIN_PLANAR",
75        "is_fru": False,
76    },
77    "<inventory_root>/system/chassis/motherboard/pcieclock": {
78        "fru_type": "MAIN_PLANAR",
79        "is_fru": False,
80    },
81    "<inventory_root>/system/chassis/motherboard/todclock": {
82        "fru_type": "MAIN_PLANAR",
83        "is_fru": False,
84    },
85    "<inventory_root>/system/chassis/motherboard/apss": {
86        "fru_type": "MAIN_PLANAR",
87        "is_fru": False,
88    },
89    "<inventory_root>/system/chassis/fan0": {
90        "fru_type": "FAN",
91        "is_fru": True,
92    },
93    "<inventory_root>/system/chassis/fan1": {
94        "fru_type": "FAN",
95        "is_fru": True,
96    },
97    "<inventory_root>/system/chassis/fan2": {
98        "fru_type": "FAN",
99        "is_fru": True,
100    },
101    "<inventory_root>/system/chassis/fan3": {
102        "fru_type": "FAN",
103        "is_fru": True,
104    },
105    "<inventory_root>/system/chassis/fan4": {
106        "fru_type": "FAN",
107        "is_fru": True,
108    },
109    "<inventory_root>/system/chassis/fan5": {
110        "fru_type": "FAN",
111        "is_fru": True,
112    },
113    "<inventory_root>/system/chassis/motherboard/bmc": {
114        "fru_type": "BMC",
115        "is_fru": False,
116        "manufacturer": "ASPEED",
117    },
118    "<inventory_root>/system/chassis/motherboard/cpu0": {
119        "fru_type": "CPU",
120        "is_fru": True,
121    },
122    "<inventory_root>/system/chassis/motherboard/cpu1": {
123        "fru_type": "CPU",
124        "is_fru": True,
125    },
126    "<inventory_root>/system/chassis/motherboard/cpu0/core0": {
127        "fru_type": "CORE",
128        "is_fru": False,
129    },
130    "<inventory_root>/system/chassis/motherboard/cpu0/core1": {
131        "fru_type": "CORE",
132        "is_fru": False,
133    },
134    "<inventory_root>/system/chassis/motherboard/cpu0/core2": {
135        "fru_type": "CORE",
136        "is_fru": False,
137    },
138    "<inventory_root>/system/chassis/motherboard/cpu0/core3": {
139        "fru_type": "CORE",
140        "is_fru": False,
141    },
142    "<inventory_root>/system/chassis/motherboard/cpu0/core4": {
143        "fru_type": "CORE",
144        "is_fru": False,
145    },
146    "<inventory_root>/system/chassis/motherboard/cpu0/core5": {
147        "fru_type": "CORE",
148        "is_fru": False,
149    },
150    "<inventory_root>/system/chassis/motherboard/cpu0/core6": {
151        "fru_type": "CORE",
152        "is_fru": False,
153    },
154    "<inventory_root>/system/chassis/motherboard/cpu0/core7": {
155        "fru_type": "CORE",
156        "is_fru": False,
157    },
158    "<inventory_root>/system/chassis/motherboard/cpu0/core8": {
159        "fru_type": "CORE",
160        "is_fru": False,
161    },
162    "<inventory_root>/system/chassis/motherboard/cpu0/core9": {
163        "fru_type": "CORE",
164        "is_fru": False,
165    },
166    "<inventory_root>/system/chassis/motherboard/cpu0/core10": {
167        "fru_type": "CORE",
168        "is_fru": False,
169    },
170    "<inventory_root>/system/chassis/motherboard/cpu0/core11": {
171        "fru_type": "CORE",
172        "is_fru": False,
173    },
174    "<inventory_root>/system/chassis/motherboard/cpu1/core0": {
175        "fru_type": "CORE",
176        "is_fru": False,
177    },
178    "<inventory_root>/system/chassis/motherboard/cpu1/core1": {
179        "fru_type": "CORE",
180        "is_fru": False,
181    },
182    "<inventory_root>/system/chassis/motherboard/cpu1/core2": {
183        "fru_type": "CORE",
184        "is_fru": False,
185    },
186    "<inventory_root>/system/chassis/motherboard/cpu1/core3": {
187        "fru_type": "CORE",
188        "is_fru": False,
189    },
190    "<inventory_root>/system/chassis/motherboard/cpu1/core4": {
191        "fru_type": "CORE",
192        "is_fru": False,
193    },
194    "<inventory_root>/system/chassis/motherboard/cpu1/core5": {
195        "fru_type": "CORE",
196        "is_fru": False,
197    },
198    "<inventory_root>/system/chassis/motherboard/cpu1/core6": {
199        "fru_type": "CORE",
200        "is_fru": False,
201    },
202    "<inventory_root>/system/chassis/motherboard/cpu1/core7": {
203        "fru_type": "CORE",
204        "is_fru": False,
205    },
206    "<inventory_root>/system/chassis/motherboard/cpu1/core8": {
207        "fru_type": "CORE",
208        "is_fru": False,
209    },
210    "<inventory_root>/system/chassis/motherboard/cpu1/core9": {
211        "fru_type": "CORE",
212        "is_fru": False,
213    },
214    "<inventory_root>/system/chassis/motherboard/cpu1/core10": {
215        "fru_type": "CORE",
216        "is_fru": False,
217    },
218    "<inventory_root>/system/chassis/motherboard/cpu1/core11": {
219        "fru_type": "CORE",
220        "is_fru": False,
221    },
222    "<inventory_root>/system/chassis/motherboard/membuf0": {
223        "fru_type": "MEMORY_BUFFER",
224        "is_fru": False,
225    },
226    "<inventory_root>/system/chassis/motherboard/membuf1": {
227        "fru_type": "MEMORY_BUFFER",
228        "is_fru": False,
229    },
230    "<inventory_root>/system/chassis/motherboard/membuf2": {
231        "fru_type": "MEMORY_BUFFER",
232        "is_fru": False,
233    },
234    "<inventory_root>/system/chassis/motherboard/membuf3": {
235        "fru_type": "MEMORY_BUFFER",
236        "is_fru": False,
237    },
238    "<inventory_root>/system/chassis/motherboard/membuf4": {
239        "fru_type": "MEMORY_BUFFER",
240        "is_fru": False,
241    },
242    "<inventory_root>/system/chassis/motherboard/membuf5": {
243        "fru_type": "MEMORY_BUFFER",
244        "is_fru": False,
245    },
246    "<inventory_root>/system/chassis/motherboard/membuf6": {
247        "fru_type": "MEMORY_BUFFER",
248        "is_fru": False,
249    },
250    "<inventory_root>/system/chassis/motherboard/membuf7": {
251        "fru_type": "MEMORY_BUFFER",
252        "is_fru": False,
253    },
254    "<inventory_root>/system/chassis/motherboard/dimm0": {
255        "fru_type": "DIMM",
256        "is_fru": True,
257    },
258    "<inventory_root>/system/chassis/motherboard/dimm1": {
259        "fru_type": "DIMM",
260        "is_fru": True,
261    },
262    "<inventory_root>/system/chassis/motherboard/dimm2": {
263        "fru_type": "DIMM",
264        "is_fru": True,
265    },
266    "<inventory_root>/system/chassis/motherboard/dimm3": {
267        "fru_type": "DIMM",
268        "is_fru": True,
269    },
270    "<inventory_root>/system/chassis/motherboard/dimm4": {
271        "fru_type": "DIMM",
272        "is_fru": True,
273    },
274    "<inventory_root>/system/chassis/motherboard/dimm5": {
275        "fru_type": "DIMM",
276        "is_fru": True,
277    },
278    "<inventory_root>/system/chassis/motherboard/dimm6": {
279        "fru_type": "DIMM",
280        "is_fru": True,
281    },
282    "<inventory_root>/system/chassis/motherboard/dimm7": {
283        "fru_type": "DIMM",
284        "is_fru": True,
285    },
286    "<inventory_root>/system/chassis/motherboard/dimm8": {
287        "fru_type": "DIMM",
288        "is_fru": True,
289    },
290    "<inventory_root>/system/chassis/motherboard/dimm9": {
291        "fru_type": "DIMM",
292        "is_fru": True,
293    },
294    "<inventory_root>/system/chassis/motherboard/dimm10": {
295        "fru_type": "DIMM",
296        "is_fru": True,
297    },
298    "<inventory_root>/system/chassis/motherboard/dimm11": {
299        "fru_type": "DIMM",
300        "is_fru": True,
301    },
302    "<inventory_root>/system/chassis/motherboard/dimm12": {
303        "fru_type": "DIMM",
304        "is_fru": True,
305    },
306    "<inventory_root>/system/chassis/motherboard/dimm13": {
307        "fru_type": "DIMM",
308        "is_fru": True,
309    },
310    "<inventory_root>/system/chassis/motherboard/dimm14": {
311        "fru_type": "DIMM",
312        "is_fru": True,
313    },
314    "<inventory_root>/system/chassis/motherboard/dimm15": {
315        "fru_type": "DIMM",
316        "is_fru": True,
317    },
318    "<inventory_root>/system/chassis/motherboard/dimm16": {
319        "fru_type": "DIMM",
320        "is_fru": True,
321    },
322    "<inventory_root>/system/chassis/motherboard/dimm17": {
323        "fru_type": "DIMM",
324        "is_fru": True,
325    },
326    "<inventory_root>/system/chassis/motherboard/dimm18": {
327        "fru_type": "DIMM",
328        "is_fru": True,
329    },
330    "<inventory_root>/system/chassis/motherboard/dimm19": {
331        "fru_type": "DIMM",
332        "is_fru": True,
333    },
334    "<inventory_root>/system/chassis/motherboard/dimm20": {
335        "fru_type": "DIMM",
336        "is_fru": True,
337    },
338    "<inventory_root>/system/chassis/motherboard/dimm21": {
339        "fru_type": "DIMM",
340        "is_fru": True,
341    },
342    "<inventory_root>/system/chassis/motherboard/dimm22": {
343        "fru_type": "DIMM",
344        "is_fru": True,
345    },
346    "<inventory_root>/system/chassis/motherboard/dimm23": {
347        "fru_type": "DIMM",
348        "is_fru": True,
349    },
350    "<inventory_root>/system/chassis/motherboard/dimm24": {
351        "fru_type": "DIMM",
352        "is_fru": True,
353    },
354    "<inventory_root>/system/chassis/motherboard/dimm25": {
355        "fru_type": "DIMM",
356        "is_fru": True,
357    },
358    "<inventory_root>/system/chassis/motherboard/dimm26": {
359        "fru_type": "DIMM",
360        "is_fru": True,
361    },
362    "<inventory_root>/system/chassis/motherboard/dimm27": {
363        "fru_type": "DIMM",
364        "is_fru": True,
365    },
366    "<inventory_root>/system/chassis/motherboard/dimm28": {
367        "fru_type": "DIMM",
368        "is_fru": True,
369    },
370    "<inventory_root>/system/chassis/motherboard/dimm29": {
371        "fru_type": "DIMM",
372        "is_fru": True,
373    },
374    "<inventory_root>/system/chassis/motherboard/dimm30": {
375        "fru_type": "DIMM",
376        "is_fru": True,
377    },
378    "<inventory_root>/system/chassis/motherboard/dimm31": {
379        "fru_type": "DIMM",
380        "is_fru": True,
381    },
382    "<inventory_root>/system/chassis/io_board/pcie_slot0_riser": {
383        "fru_type": "PCIE_RISER",
384        "is_fru": True,
385    },
386    "<inventory_root>/system/chassis/io_board/pcie_slot1_riser": {
387        "fru_type": "PCIE_RISER",
388        "is_fru": True,
389    },
390    "<inventory_root>/system/chassis/io_board/pcie_slot2_riser": {
391        "fru_type": "PCIE_RISER",
392        "is_fru": True,
393    },
394    "<inventory_root>/system/chassis/io_board/pcie_slot0": {
395        "fru_type": "PCIE_CARD",
396        "is_fru": True,
397    },
398    "<inventory_root>/system/chassis/io_board/pcie_slot1": {
399        "fru_type": "PCIE_CARD",
400        "is_fru": True,
401    },
402    "<inventory_root>/system/chassis/io_board/pcie_slot2": {
403        "fru_type": "PCIE_CARD",
404        "is_fru": True,
405    },
406    "<inventory_root>/system/chassis/io_board/pcie_mezz0": {
407        "fru_type": "PCIE_CARD",
408        "is_fru": True,
409    },
410    "<inventory_root>/system/chassis/io_board/pcie_mezz1": {
411        "fru_type": "PCIE_CARD",
412        "is_fru": True,
413    },
414}
415
416ID_LOOKUP = {
417    "FRU": {
418        0x03: "<inventory_root>/system/chassis/motherboard",
419        0x40: "<inventory_root>/system/chassis/io_board",
420        0x01: "<inventory_root>/system/chassis/motherboard/cpu0",
421        0x02: "<inventory_root>/system/chassis/motherboard/cpu1",
422        0x04: "<inventory_root>/system/chassis/motherboard/membuf0",
423        0x05: "<inventory_root>/system/chassis/motherboard/membuf1",
424        0x06: "<inventory_root>/system/chassis/motherboard/membuf2",
425        0x07: "<inventory_root>/system/chassis/motherboard/membuf3",
426        0x08: "<inventory_root>/system/chassis/motherboard/membuf4",
427        0x09: "<inventory_root>/system/chassis/motherboard/membuf5",
428        0x0A: "<inventory_root>/system/chassis/motherboard/membuf6",
429        0x0B: "<inventory_root>/system/chassis/motherboard/membuf7",
430        0x0C: "<inventory_root>/system/chassis/motherboard/dimm0",
431        0x0D: "<inventory_root>/system/chassis/motherboard/dimm1",
432        0x0E: "<inventory_root>/system/chassis/motherboard/dimm2",
433        0x0F: "<inventory_root>/system/chassis/motherboard/dimm3",
434        0x10: "<inventory_root>/system/chassis/motherboard/dimm4",
435        0x11: "<inventory_root>/system/chassis/motherboard/dimm5",
436        0x12: "<inventory_root>/system/chassis/motherboard/dimm6",
437        0x13: "<inventory_root>/system/chassis/motherboard/dimm7",
438        0x14: "<inventory_root>/system/chassis/motherboard/dimm8",
439        0x15: "<inventory_root>/system/chassis/motherboard/dimm9",
440        0x16: "<inventory_root>/system/chassis/motherboard/dimm10",
441        0x17: "<inventory_root>/system/chassis/motherboard/dimm11",
442        0x18: "<inventory_root>/system/chassis/motherboard/dimm12",
443        0x19: "<inventory_root>/system/chassis/motherboard/dimm13",
444        0x1A: "<inventory_root>/system/chassis/motherboard/dimm14",
445        0x1B: "<inventory_root>/system/chassis/motherboard/dimm15",
446        0x1C: "<inventory_root>/system/chassis/motherboard/dimm16",
447        0x1D: "<inventory_root>/system/chassis/motherboard/dimm17",
448        0x1E: "<inventory_root>/system/chassis/motherboard/dimm18",
449        0x1F: "<inventory_root>/system/chassis/motherboard/dimm19",
450        0x20: "<inventory_root>/system/chassis/motherboard/dimm20",
451        0x21: "<inventory_root>/system/chassis/motherboard/dimm21",
452        0x22: "<inventory_root>/system/chassis/motherboard/dimm22",
453        0x23: "<inventory_root>/system/chassis/motherboard/dimm23",
454        0x24: "<inventory_root>/system/chassis/motherboard/dimm24",
455        0x25: "<inventory_root>/system/chassis/motherboard/dimm25",
456        0x26: "<inventory_root>/system/chassis/motherboard/dimm26",
457        0x27: "<inventory_root>/system/chassis/motherboard/dimm27",
458        0x28: "<inventory_root>/system/chassis/motherboard/dimm28",
459        0x29: "<inventory_root>/system/chassis/motherboard/dimm29",
460        0x2A: "<inventory_root>/system/chassis/motherboard/dimm30",
461        0x2B: "<inventory_root>/system/chassis/motherboard/dimm31",
462        0x33: "<inventory_root>/system",
463    },
464    "FRU_STR": {
465        "PRODUCT_0": "<inventory_root>/system/bios",
466        "BOARD_3": "<inventory_root>/system/misc",
467        "PRODUCT_51": "<inventory_root>/system/misc",
468        "BOARD_100": "<inventory_root>/system/chassis/io_board",
469        "BOARD_101": "<inventory_root>/system/chassis/sas_expander",
470        "BOARD_102": "<inventory_root>/system/chassis/hdd_backplane",
471        "CHASSIS_3": "<inventory_root>/system/chassis/motherboard",
472        "BOARD_1": "<inventory_root>/system/chassis/motherboard/cpu0",
473        "BOARD_2": "<inventory_root>/system/chassis/motherboard/cpu1",
474        "BOARD_4": "<inventory_root>/system/chassis/motherboard/membuf0",
475        "BOARD_5": "<inventory_root>/system/chassis/motherboard/membuf1",
476        "BOARD_6": "<inventory_root>/system/chassis/motherboard/membuf2",
477        "BOARD_7": "<inventory_root>/system/chassis/motherboard/membuf3",
478        "BOARD_8": "<inventory_root>/system/chassis/motherboard/membuf4",
479        "BOARD_9": "<inventory_root>/system/chassis/motherboard/membuf5",
480        "BOARD_10": "<inventory_root>/system/chassis/motherboard/membuf6",
481        "BOARD_11": "<inventory_root>/system/chassis/motherboard/membuf7",
482        "PRODUCT_12": "<inventory_root>/system/chassis/motherboard/dimm0",
483        "PRODUCT_13": "<inventory_root>/system/chassis/motherboard/dimm1",
484        "PRODUCT_14": "<inventory_root>/system/chassis/motherboard/dimm2",
485        "PRODUCT_15": "<inventory_root>/system/chassis/motherboard/dimm3",
486        "PRODUCT_16": "<inventory_root>/system/chassis/motherboard/dimm4",
487        "PRODUCT_17": "<inventory_root>/system/chassis/motherboard/dimm5",
488        "PRODUCT_18": "<inventory_root>/system/chassis/motherboard/dimm6",
489        "PRODUCT_19": "<inventory_root>/system/chassis/motherboard/dimm7",
490        "PRODUCT_20": "<inventory_root>/system/chassis/motherboard/dimm8",
491        "PRODUCT_21": "<inventory_root>/system/chassis/motherboard/dimm9",
492        "PRODUCT_22": "<inventory_root>/system/chassis/motherboard/dimm10",
493        "PRODUCT_23": "<inventory_root>/system/chassis/motherboard/dimm11",
494        "PRODUCT_24": "<inventory_root>/system/chassis/motherboard/dimm12",
495        "PRODUCT_25": "<inventory_root>/system/chassis/motherboard/dimm13",
496        "PRODUCT_26": "<inventory_root>/system/chassis/motherboard/dimm14",
497        "PRODUCT_27": "<inventory_root>/system/chassis/motherboard/dimm15",
498        "PRODUCT_28": "<inventory_root>/system/chassis/motherboard/dimm16",
499        "PRODUCT_29": "<inventory_root>/system/chassis/motherboard/dimm17",
500        "PRODUCT_30": "<inventory_root>/system/chassis/motherboard/dimm18",
501        "PRODUCT_31": "<inventory_root>/system/chassis/motherboard/dimm19",
502        "PRODUCT_32": "<inventory_root>/system/chassis/motherboard/dimm20",
503        "PRODUCT_33": "<inventory_root>/system/chassis/motherboard/dimm21",
504        "PRODUCT_34": "<inventory_root>/system/chassis/motherboard/dimm22",
505        "PRODUCT_35": "<inventory_root>/system/chassis/motherboard/dimm23",
506        "PRODUCT_36": "<inventory_root>/system/chassis/motherboard/dimm24",
507        "PRODUCT_37": "<inventory_root>/system/chassis/motherboard/dimm25",
508        "PRODUCT_38": "<inventory_root>/system/chassis/motherboard/dimm26",
509        "PRODUCT_39": "<inventory_root>/system/chassis/motherboard/dimm27",
510        "PRODUCT_40": "<inventory_root>/system/chassis/motherboard/dimm28",
511        "PRODUCT_41": "<inventory_root>/system/chassis/motherboard/dimm29",
512        "PRODUCT_42": "<inventory_root>/system/chassis/motherboard/dimm30",
513        "PRODUCT_43": "<inventory_root>/system/chassis/motherboard/dimm31",
514    },
515    "SENSOR": {
516        0x35: "<inventory_root>/system/systemevent",
517        0x36: "<inventory_root>/system/powerlimit",
518        0x34: "<inventory_root>/system/chassis/motherboard",
519        0x31: "<inventory_root>/system/chassis/motherboard/pcielink",
520        0x37: "<inventory_root>/system/chassis/motherboard/refclock",
521        0x38: "<inventory_root>/system/chassis/motherboard/pcieclock",
522        0x39: "<inventory_root>/system/chassis/motherboard/todclock",
523        0x3A: "<inventory_root>/system/chassis/motherboard/apss",
524        0x0C: "<inventory_root>/system/chassis/motherboard/cpu0",
525        0x0E: "<inventory_root>/system/chassis/motherboard/cpu1",
526        0xC8: "<inventory_root>/system/chassis/motherboard/cpu0/core0",
527        0xC9: "<inventory_root>/system/chassis/motherboard/cpu0/core1",
528        0xCA: "<inventory_root>/system/chassis/motherboard/cpu0/core2",
529        0xCB: "<inventory_root>/system/chassis/motherboard/cpu0/core3",
530        0xCC: "<inventory_root>/system/chassis/motherboard/cpu0/core4",
531        0xCD: "<inventory_root>/system/chassis/motherboard/cpu0/core5",
532        0xCE: "<inventory_root>/system/chassis/motherboard/cpu0/core6",
533        0xCF: "<inventory_root>/system/chassis/motherboard/cpu0/core7",
534        0xD0: "<inventory_root>/system/chassis/motherboard/cpu0/core8",
535        0xD1: "<inventory_root>/system/chassis/motherboard/cpu0/core9",
536        0xD2: "<inventory_root>/system/chassis/motherboard/cpu0/core10",
537        0xD3: "<inventory_root>/system/chassis/motherboard/cpu0/core11",
538        0xD4: "<inventory_root>/system/chassis/motherboard/cpu1/core0",
539        0xD5: "<inventory_root>/system/chassis/motherboard/cpu1/core1",
540        0xD6: "<inventory_root>/system/chassis/motherboard/cpu1/core2",
541        0xD7: "<inventory_root>/system/chassis/motherboard/cpu1/core3",
542        0xD8: "<inventory_root>/system/chassis/motherboard/cpu1/core4",
543        0xD9: "<inventory_root>/system/chassis/motherboard/cpu1/core5",
544        0xDA: "<inventory_root>/system/chassis/motherboard/cpu1/core6",
545        0xDB: "<inventory_root>/system/chassis/motherboard/cpu1/core7",
546        0xDC: "<inventory_root>/system/chassis/motherboard/cpu1/core8",
547        0xDD: "<inventory_root>/system/chassis/motherboard/cpu1/core9",
548        0xDE: "<inventory_root>/system/chassis/motherboard/cpu1/core10",
549        0xDF: "<inventory_root>/system/chassis/motherboard/cpu1/core11",
550        0x40: "<inventory_root>/system/chassis/motherboard/membuf0",
551        0x41: "<inventory_root>/system/chassis/motherboard/membuf1",
552        0x42: "<inventory_root>/system/chassis/motherboard/membuf2",
553        0x43: "<inventory_root>/system/chassis/motherboard/membuf3",
554        0x44: "<inventory_root>/system/chassis/motherboard/membuf4",
555        0x45: "<inventory_root>/system/chassis/motherboard/membuf5",
556        0x46: "<inventory_root>/system/chassis/motherboard/membuf6",
557        0x47: "<inventory_root>/system/chassis/motherboard/membuf7",
558        0x10: "<inventory_root>/system/chassis/motherboard/dimm0",
559        0x11: "<inventory_root>/system/chassis/motherboard/dimm1",
560        0x12: "<inventory_root>/system/chassis/motherboard/dimm2",
561        0x13: "<inventory_root>/system/chassis/motherboard/dimm3",
562        0x14: "<inventory_root>/system/chassis/motherboard/dimm4",
563        0x15: "<inventory_root>/system/chassis/motherboard/dimm5",
564        0x16: "<inventory_root>/system/chassis/motherboard/dimm6",
565        0x17: "<inventory_root>/system/chassis/motherboard/dimm7",
566        0x18: "<inventory_root>/system/chassis/motherboard/dimm8",
567        0x19: "<inventory_root>/system/chassis/motherboard/dimm9",
568        0x1A: "<inventory_root>/system/chassis/motherboard/dimm10",
569        0x1B: "<inventory_root>/system/chassis/motherboard/dimm11",
570        0x1C: "<inventory_root>/system/chassis/motherboard/dimm12",
571        0x1D: "<inventory_root>/system/chassis/motherboard/dimm13",
572        0x1E: "<inventory_root>/system/chassis/motherboard/dimm14",
573        0x1F: "<inventory_root>/system/chassis/motherboard/dimm15",
574        0x20: "<inventory_root>/system/chassis/motherboard/dimm16",
575        0x21: "<inventory_root>/system/chassis/motherboard/dimm17",
576        0x22: "<inventory_root>/system/chassis/motherboard/dimm18",
577        0x23: "<inventory_root>/system/chassis/motherboard/dimm19",
578        0x24: "<inventory_root>/system/chassis/motherboard/dimm20",
579        0x25: "<inventory_root>/system/chassis/motherboard/dimm21",
580        0x26: "<inventory_root>/system/chassis/motherboard/dimm22",
581        0x27: "<inventory_root>/system/chassis/motherboard/dimm23",
582        0x28: "<inventory_root>/system/chassis/motherboard/dimm24",
583        0x29: "<inventory_root>/system/chassis/motherboard/dimm25",
584        0x2A: "<inventory_root>/system/chassis/motherboard/dimm26",
585        0x2B: "<inventory_root>/system/chassis/motherboard/dimm27",
586        0x2C: "<inventory_root>/system/chassis/motherboard/dimm28",
587        0x2D: "<inventory_root>/system/chassis/motherboard/dimm29",
588        0x2E: "<inventory_root>/system/chassis/motherboard/dimm30",
589        0x2F: "<inventory_root>/system/chassis/motherboard/dimm31",
590        0x09: "/org/openbmc/sensors/host/BootCount",
591        0x05: "/org/openbmc/sensors/host/BootProgress",
592        0x04: "/org/openbmc/sensors/host/HostStatus",
593        0x32: "/org/openbmc/sensors/host/OperatingSystemStatus",
594    },
595    "GPIO_PRESENT": {
596        "SLOT0_RISER_PRESENT": (
597            "<inventory_root>/system/chassis/io_board/pcie_slot0_riser"
598        ),
599        "SLOT1_RISER_PRESENT": (
600            "<inventory_root>/system/chassis/io_board/pcie_slot1_riser"
601        ),
602        "SLOT2_RISER_PRESENT": (
603            "<inventory_root>/system/chassis/io_board/pcie_slot2_riser"
604        ),
605        "SLOT0_PRESENT": "<inventory_root>/system/chassis/io_board/pcie_slot0",
606        "SLOT1_PRESENT": "<inventory_root>/system/chassis/io_board/pcie_slot1",
607        "SLOT2_PRESENT": "<inventory_root>/system/chassis/io_board/pcie_slot2",
608        "MEZZ0_PRESENT": "<inventory_root>/system/chassis/io_board/pcie_mezz0",
609        "MEZZ1_PRESENT": "<inventory_root>/system/chassis/io_board/pcie_mezz1",
610    },
611}
612
613GPIO_CONFIG = {}
614GPIO_CONFIG["FSI_CLK"] = {"gpio_pin": "A4", "direction": "out"}
615GPIO_CONFIG["FSI_DATA"] = {"gpio_pin": "A5", "direction": "out"}
616GPIO_CONFIG["FSI_ENABLE"] = {"gpio_pin": "D0", "direction": "out"}
617GPIO_CONFIG["POWER_PIN"] = {"gpio_pin": "E1", "direction": "out"}
618GPIO_CONFIG["CRONUS_SEL"] = {"gpio_pin": "A6", "direction": "out"}
619GPIO_CONFIG["PGOOD"] = {"gpio_pin": "C7", "direction": "in"}
620GPIO_CONFIG["POWER_BUTTON"] = {"gpio_pin": "E0", "direction": "both"}
621GPIO_CONFIG["PCIE_RESET"] = {"gpio_pin": "B5", "direction": "out"}
622GPIO_CONFIG["USB_RESET"] = {"gpio_pin": "B6", "direction": "out"}
623
624GPIO_CONFIG["IDBTN"] = {"gpio_pin": "Q7", "direction": "out"}
625GPIO_CONFIG["BMC_THROTTLE"] = {"gpio_pin": "J3", "direction": "out"}
626GPIO_CONFIG["RESET_BUTTON"] = {"gpio_pin": "E2", "direction": "both"}
627GPIO_CONFIG["CPLD_TCK"] = {"gpio_pin": "P0", "direction": "out"}
628GPIO_CONFIG["CPLD_TDO"] = {"gpio_pin": "P1", "direction": "out"}
629GPIO_CONFIG["CPLD_TDI"] = {"gpio_pin": "P2", "direction": "out"}
630GPIO_CONFIG["CPLD_TMS"] = {"gpio_pin": "P3", "direction": "out"}
631GPIO_CONFIG["CHECKSTOP"] = {"gpio_pin": "P5", "direction": "falling"}
632
633GPIO_CONFIG["SLOT0_RISER_PRESENT"] = {"gpio_pin": "N0", "direction": "in"}
634GPIO_CONFIG["SLOT1_RISER_PRESENT"] = {"gpio_pin": "N1", "direction": "in"}
635GPIO_CONFIG["SLOT2_RISER_PRESENT"] = {"gpio_pin": "N2", "direction": "in"}
636GPIO_CONFIG["SLOT0_PRESENT"] = {"gpio_pin": "N3", "direction": "in"}
637GPIO_CONFIG["SLOT1_PRESENT"] = {"gpio_pin": "N4", "direction": "in"}
638GPIO_CONFIG["SLOT2_PRESENT"] = {"gpio_pin": "N5", "direction": "in"}
639GPIO_CONFIG["MEZZ0_PRESENT"] = {"gpio_pin": "O0", "direction": "in"}
640GPIO_CONFIG["MEZZ1_PRESENT"] = {"gpio_pin": "O1", "direction": "in"}
641
642GPIO_CONFIGS = {
643    "power_config": {
644        "power_good_in": "PGOOD",
645        "power_up_outs": [
646            ("POWER_PIN", False),
647        ],
648        "reset_outs": [
649            ("USB_RESET", False),
650        ],
651        "pci_reset_outs": [
652            # net name, polarity, reset hold
653            ("PCIE_RESET", False, False),
654        ],
655    },
656    "hostctl_config": {
657        "fsi_data": "FSI_DATA",
658        "fsi_clk": "FSI_CLK",
659        "fsi_enable": "FSI_ENABLE",
660        "cronus_sel": "CRONUS_SEL",
661        "optionals": [
662            ("BMC_THROTTLE", True),
663            ("IDBTN", False),
664        ],
665    },
666}
667
668# Miscellaneous non-poll sensor with system specific properties.
669# The sensor id is the same as those defined in ID_LOOKUP['SENSOR'].
670MISC_SENSORS = {}
671
672# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
673