xref: /openbmc/skeleton/configs/Barreleye.py (revision 1902990d)
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' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
35	'<inventory_root>/system/bios' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
36	'<inventory_root>/system/misc' : { 'fru_type' : 'SYSTEM','is_fru' : False, },
37
38	'<inventory_root>/system/chassis' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
39
40	'<inventory_root>/system/chassis/motherboard' : { 'fru_type' : 'MAIN_PLANAR','is_fru' : True, },
41	'<inventory_root>/system/chassis/io_board' : { 'fru_type' : 'DAUGHTER_CARD','is_fru' : True, },
42	'<inventory_root>/system/chassis/sas_expander' : { 'fru_type' : 'DAUGHTER_CARD','is_fru' : True, },
43	'<inventory_root>/system/chassis/hdd_backplane' : { 'fru_type' : 'DAUGHTER_CARD','is_fru' : True, },
44
45	'<inventory_root>/system/systemevent'                  : { 'fru_type' : 'SYSTEM_EVENT', 'is_fru' : False, },
46	'<inventory_root>/system/chassis/motherboard/refclock' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
47	'<inventory_root>/system/chassis/motherboard/pcieclock': { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
48	'<inventory_root>/system/chassis/motherboard/todclock' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
49	'<inventory_root>/system/chassis/motherboard/apss'     : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
50
51	'<inventory_root>/system/chassis/fan0' : { 'fru_type' : 'FAN','is_fru' : True, },
52	'<inventory_root>/system/chassis/fan1' : { 'fru_type' : 'FAN','is_fru' : True, },
53	'<inventory_root>/system/chassis/fan2' : { 'fru_type' : 'FAN','is_fru' : True, },
54	'<inventory_root>/system/chassis/fan3' : { 'fru_type' : 'FAN','is_fru' : True, },
55	'<inventory_root>/system/chassis/fan4' : { 'fru_type' : 'FAN','is_fru' : True, },
56	'<inventory_root>/system/chassis/fan5' : { 'fru_type' : 'FAN','is_fru' : True, },
57
58	'<inventory_root>/system/chassis/motherboard/bmc' : { 'fru_type' : 'BMC','is_fru' : False, 'manufacturer' : 'ASPEED' },
59
60	'<inventory_root>/system/chassis/motherboard/cpu0' : { 'fru_type' : 'CPU', 'is_fru' : True, },
61	'<inventory_root>/system/chassis/motherboard/cpu1' : { 'fru_type' : 'CPU', 'is_fru' : True, },
62
63	'<inventory_root>/system/chassis/motherboard/cpu0/core0' : { 'fru_type' : 'CORE', 'is_fru' : False, },
64	'<inventory_root>/system/chassis/motherboard/cpu0/core1' : { 'fru_type' : 'CORE', 'is_fru' : False, },
65	'<inventory_root>/system/chassis/motherboard/cpu0/core2' : { 'fru_type' : 'CORE', 'is_fru' : False, },
66	'<inventory_root>/system/chassis/motherboard/cpu0/core3' : { 'fru_type' : 'CORE', 'is_fru' : False, },
67	'<inventory_root>/system/chassis/motherboard/cpu0/core4' : { 'fru_type' : 'CORE', 'is_fru' : False, },
68	'<inventory_root>/system/chassis/motherboard/cpu0/core5' : { 'fru_type' : 'CORE', 'is_fru' : False, },
69	'<inventory_root>/system/chassis/motherboard/cpu0/core6' : { 'fru_type' : 'CORE', 'is_fru' : False, },
70	'<inventory_root>/system/chassis/motherboard/cpu0/core7' : { 'fru_type' : 'CORE', 'is_fru' : False, },
71	'<inventory_root>/system/chassis/motherboard/cpu0/core8' : { 'fru_type' : 'CORE', 'is_fru' : False, },
72	'<inventory_root>/system/chassis/motherboard/cpu0/core9' : { 'fru_type' : 'CORE', 'is_fru' : False, },
73	'<inventory_root>/system/chassis/motherboard/cpu0/core10': { 'fru_type' : 'CORE', 'is_fru' : False, },
74	'<inventory_root>/system/chassis/motherboard/cpu0/core11': { 'fru_type' : 'CORE', 'is_fru' : False, },
75
76	'<inventory_root>/system/chassis/motherboard/cpu1/core0' : { 'fru_type' : 'CORE', 'is_fru' : False, },
77	'<inventory_root>/system/chassis/motherboard/cpu1/core1' : { 'fru_type' : 'CORE', 'is_fru' : False, },
78	'<inventory_root>/system/chassis/motherboard/cpu1/core2' : { 'fru_type' : 'CORE', 'is_fru' : False, },
79	'<inventory_root>/system/chassis/motherboard/cpu1/core3' : { 'fru_type' : 'CORE', 'is_fru' : False, },
80	'<inventory_root>/system/chassis/motherboard/cpu1/core4' : { 'fru_type' : 'CORE', 'is_fru' : False, },
81	'<inventory_root>/system/chassis/motherboard/cpu1/core5' : { 'fru_type' : 'CORE', 'is_fru' : False, },
82	'<inventory_root>/system/chassis/motherboard/cpu1/core6' : { 'fru_type' : 'CORE', 'is_fru' : False, },
83	'<inventory_root>/system/chassis/motherboard/cpu1/core7' : { 'fru_type' : 'CORE', 'is_fru' : False, },
84	'<inventory_root>/system/chassis/motherboard/cpu1/core8' : { 'fru_type' : 'CORE', 'is_fru' : False, },
85	'<inventory_root>/system/chassis/motherboard/cpu1/core9' : { 'fru_type' : 'CORE', 'is_fru' : False, },
86	'<inventory_root>/system/chassis/motherboard/cpu1/core10' : { 'fru_type' : 'CORE', 'is_fru' : False, },
87	'<inventory_root>/system/chassis/motherboard/cpu1/core11' : { 'fru_type' : 'CORE', 'is_fru' : False, },
88
89	'<inventory_root>/system/chassis/motherboard/membuf0' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
90	'<inventory_root>/system/chassis/motherboard/membuf1' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
91	'<inventory_root>/system/chassis/motherboard/membuf2' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
92	'<inventory_root>/system/chassis/motherboard/membuf3' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
93	'<inventory_root>/system/chassis/motherboard/membuf4' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
94	'<inventory_root>/system/chassis/motherboard/membuf5' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
95	'<inventory_root>/system/chassis/motherboard/membuf6' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
96	'<inventory_root>/system/chassis/motherboard/membuf7' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
97
98	'<inventory_root>/system/chassis/motherboard/dimm0' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
99	'<inventory_root>/system/chassis/motherboard/dimm1' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
100	'<inventory_root>/system/chassis/motherboard/dimm2' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
101	'<inventory_root>/system/chassis/motherboard/dimm3' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
102	'<inventory_root>/system/chassis/motherboard/dimm4' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
103	'<inventory_root>/system/chassis/motherboard/dimm5' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
104	'<inventory_root>/system/chassis/motherboard/dimm6' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
105	'<inventory_root>/system/chassis/motherboard/dimm7' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
106	'<inventory_root>/system/chassis/motherboard/dimm8' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
107	'<inventory_root>/system/chassis/motherboard/dimm9' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
108	'<inventory_root>/system/chassis/motherboard/dimm10' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
109	'<inventory_root>/system/chassis/motherboard/dimm11' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
110	'<inventory_root>/system/chassis/motherboard/dimm12' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
111	'<inventory_root>/system/chassis/motherboard/dimm13' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
112	'<inventory_root>/system/chassis/motherboard/dimm14' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
113	'<inventory_root>/system/chassis/motherboard/dimm15' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
114	'<inventory_root>/system/chassis/motherboard/dimm16' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
115	'<inventory_root>/system/chassis/motherboard/dimm17' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
116	'<inventory_root>/system/chassis/motherboard/dimm18' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
117	'<inventory_root>/system/chassis/motherboard/dimm19' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
118	'<inventory_root>/system/chassis/motherboard/dimm20' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
119	'<inventory_root>/system/chassis/motherboard/dimm21' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
120	'<inventory_root>/system/chassis/motherboard/dimm22' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
121	'<inventory_root>/system/chassis/motherboard/dimm23' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
122	'<inventory_root>/system/chassis/motherboard/dimm24' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
123	'<inventory_root>/system/chassis/motherboard/dimm25' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
124	'<inventory_root>/system/chassis/motherboard/dimm26' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
125	'<inventory_root>/system/chassis/motherboard/dimm27' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
126	'<inventory_root>/system/chassis/motherboard/dimm28' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
127	'<inventory_root>/system/chassis/motherboard/dimm29' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
128	'<inventory_root>/system/chassis/motherboard/dimm30' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
129	'<inventory_root>/system/chassis/motherboard/dimm31' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
130
131	'<inventory_root>/system/chassis/io_board/pcie_slot0_riser' : { 'fru_type' : 'PCIE_RISER', 'is_fru' : True,},
132	'<inventory_root>/system/chassis/io_board/pcie_slot1_riser' : { 'fru_type' : 'PCIE_RISER', 'is_fru' : True,},
133	'<inventory_root>/system/chassis/io_board/pcie_slot2_riser' : { 'fru_type' : 'PCIE_RISER', 'is_fru' : True,},
134	'<inventory_root>/system/chassis/io_board/pcie_slot0' : { 'fru_type' : 'PCIE_CARD', 'is_fru' : True,},
135	'<inventory_root>/system/chassis/io_board/pcie_slot1' :	{ 'fru_type' : 'PCIE_CARD', 'is_fru' : True,},
136	'<inventory_root>/system/chassis/io_board/pcie_slot2' :	{ 'fru_type' : 'PCIE_CARD', 'is_fru' : True,},
137	'<inventory_root>/system/chassis/io_board/pcie_mezz0' :	{ 'fru_type' : 'PCIE_CARD', 'is_fru' : True,},
138	'<inventory_root>/system/chassis/io_board/pcie_mezz1' :	{ 'fru_type' : 'PCIE_CARD', 'is_fru' : True,},
139}
140
141ID_LOOKUP = {
142	'FRU' : {
143		0x03 : '<inventory_root>/system/chassis/motherboard',
144		0x40 : '<inventory_root>/system/chassis/io_board',
145		0x01 : '<inventory_root>/system/chassis/motherboard/cpu0',
146                0x02 : '<inventory_root>/system/chassis/motherboard/cpu1',
147		0x04 : '<inventory_root>/system/chassis/motherboard/membuf0',
148                0x05 : '<inventory_root>/system/chassis/motherboard/membuf1',
149                0x06 : '<inventory_root>/system/chassis/motherboard/membuf2',
150                0x07 : '<inventory_root>/system/chassis/motherboard/membuf3',
151                0x08 : '<inventory_root>/system/chassis/motherboard/membuf4',
152                0x09 : '<inventory_root>/system/chassis/motherboard/membuf5',
153                0x0a : '<inventory_root>/system/chassis/motherboard/membuf6',
154                0x0b : '<inventory_root>/system/chassis/motherboard/membuf7',
155		0x0c : '<inventory_root>/system/chassis/motherboard/dimm0',
156		0x0d : '<inventory_root>/system/chassis/motherboard/dimm1',
157		0x0e : '<inventory_root>/system/chassis/motherboard/dimm2',
158		0x0f : '<inventory_root>/system/chassis/motherboard/dimm3',
159                0x10 : '<inventory_root>/system/chassis/motherboard/dimm4',
160                0x11 : '<inventory_root>/system/chassis/motherboard/dimm5',
161                0x12 : '<inventory_root>/system/chassis/motherboard/dimm6',
162                0x13 : '<inventory_root>/system/chassis/motherboard/dimm7',
163                0x14 : '<inventory_root>/system/chassis/motherboard/dimm8',
164                0x15 : '<inventory_root>/system/chassis/motherboard/dimm9',
165		0x16 : '<inventory_root>/system/chassis/motherboard/dimm10',
166		0x17 : '<inventory_root>/system/chassis/motherboard/dimm11',
167		0x18 : '<inventory_root>/system/chassis/motherboard/dimm12',
168		0x19 : '<inventory_root>/system/chassis/motherboard/dimm13',
169		0x1a : '<inventory_root>/system/chassis/motherboard/dimm14',
170		0x1b : '<inventory_root>/system/chassis/motherboard/dimm15',
171		0x1c : '<inventory_root>/system/chassis/motherboard/dimm16',
172		0x1d : '<inventory_root>/system/chassis/motherboard/dimm17',
173		0x1e : '<inventory_root>/system/chassis/motherboard/dimm18',
174		0x1f : '<inventory_root>/system/chassis/motherboard/dimm19',
175		0x20 : '<inventory_root>/system/chassis/motherboard/dimm20',
176                0x21 : '<inventory_root>/system/chassis/motherboard/dimm21',
177                0x22 : '<inventory_root>/system/chassis/motherboard/dimm22',
178                0x23 : '<inventory_root>/system/chassis/motherboard/dimm23',
179                0x24 : '<inventory_root>/system/chassis/motherboard/dimm24',
180                0x25 : '<inventory_root>/system/chassis/motherboard/dimm25',
181                0x26 : '<inventory_root>/system/chassis/motherboard/dimm26',
182                0x27 : '<inventory_root>/system/chassis/motherboard/dimm27',
183                0x28 : '<inventory_root>/system/chassis/motherboard/dimm28',
184                0x29 : '<inventory_root>/system/chassis/motherboard/dimm29',
185                0x2a : '<inventory_root>/system/chassis/motherboard/dimm30',
186                0x2b : '<inventory_root>/system/chassis/motherboard/dimm31',
187		0x33 : '<inventory_root>/system',
188	},
189	'FRU_STR' : {
190		'PRODUCT_0'  : '<inventory_root>/system/bios',
191		'BOARD_3'    : '<inventory_root>/system/misc',
192		'PRODUCT_51' : '<inventory_root>/system/misc',
193		'BOARD_100'  : '<inventory_root>/system/chassis/io_board',
194		'BOARD_101'  : '<inventory_root>/system/chassis/sas_expander',
195		'BOARD_102'  : '<inventory_root>/system/chassis/hdd_backplane',
196		'CHASSIS_3'  : '<inventory_root>/system/chassis/motherboard',
197		'BOARD_1'    : '<inventory_root>/system/chassis/motherboard/cpu0',
198		'BOARD_2'    : '<inventory_root>/system/chassis/motherboard/cpu1',
199		'BOARD_4'    : '<inventory_root>/system/chassis/motherboard/membuf0',
200		'BOARD_5'    : '<inventory_root>/system/chassis/motherboard/membuf1',
201		'BOARD_6'    : '<inventory_root>/system/chassis/motherboard/membuf2',
202		'BOARD_7'    : '<inventory_root>/system/chassis/motherboard/membuf3',
203		'BOARD_8'    : '<inventory_root>/system/chassis/motherboard/membuf4',
204		'BOARD_9'    : '<inventory_root>/system/chassis/motherboard/membuf5',
205		'BOARD_10'   : '<inventory_root>/system/chassis/motherboard/membuf6',
206		'BOARD_11'   : '<inventory_root>/system/chassis/motherboard/membuf7',
207		'PRODUCT_12'   : '<inventory_root>/system/chassis/motherboard/dimm0',
208		'PRODUCT_13'   : '<inventory_root>/system/chassis/motherboard/dimm1',
209		'PRODUCT_14'   : '<inventory_root>/system/chassis/motherboard/dimm2',
210		'PRODUCT_15'   : '<inventory_root>/system/chassis/motherboard/dimm3',
211		'PRODUCT_16'   : '<inventory_root>/system/chassis/motherboard/dimm4',
212		'PRODUCT_17'   : '<inventory_root>/system/chassis/motherboard/dimm5',
213		'PRODUCT_18'   : '<inventory_root>/system/chassis/motherboard/dimm6',
214		'PRODUCT_19'   : '<inventory_root>/system/chassis/motherboard/dimm7',
215		'PRODUCT_20'   : '<inventory_root>/system/chassis/motherboard/dimm8',
216		'PRODUCT_21'   : '<inventory_root>/system/chassis/motherboard/dimm9',
217		'PRODUCT_22'   : '<inventory_root>/system/chassis/motherboard/dimm10',
218		'PRODUCT_23'   : '<inventory_root>/system/chassis/motherboard/dimm11',
219		'PRODUCT_24'   : '<inventory_root>/system/chassis/motherboard/dimm12',
220		'PRODUCT_25'   : '<inventory_root>/system/chassis/motherboard/dimm13',
221		'PRODUCT_26'   : '<inventory_root>/system/chassis/motherboard/dimm14',
222		'PRODUCT_27'   : '<inventory_root>/system/chassis/motherboard/dimm15',
223		'PRODUCT_28'   : '<inventory_root>/system/chassis/motherboard/dimm16',
224		'PRODUCT_29'   : '<inventory_root>/system/chassis/motherboard/dimm17',
225		'PRODUCT_30'   : '<inventory_root>/system/chassis/motherboard/dimm18',
226		'PRODUCT_31'   : '<inventory_root>/system/chassis/motherboard/dimm19',
227		'PRODUCT_32'   : '<inventory_root>/system/chassis/motherboard/dimm20',
228		'PRODUCT_33'   : '<inventory_root>/system/chassis/motherboard/dimm21',
229		'PRODUCT_34'   : '<inventory_root>/system/chassis/motherboard/dimm22',
230		'PRODUCT_35'   : '<inventory_root>/system/chassis/motherboard/dimm23',
231		'PRODUCT_36'   : '<inventory_root>/system/chassis/motherboard/dimm24',
232		'PRODUCT_37'   : '<inventory_root>/system/chassis/motherboard/dimm25',
233		'PRODUCT_38'   : '<inventory_root>/system/chassis/motherboard/dimm26',
234		'PRODUCT_39'   : '<inventory_root>/system/chassis/motherboard/dimm27',
235		'PRODUCT_40'   : '<inventory_root>/system/chassis/motherboard/dimm28',
236		'PRODUCT_41'   : '<inventory_root>/system/chassis/motherboard/dimm29',
237		'PRODUCT_42'   : '<inventory_root>/system/chassis/motherboard/dimm30',
238		'PRODUCT_43'   : '<inventory_root>/system/chassis/motherboard/dimm31',
239	},
240	'SENSOR' : {
241		0x35 : '<inventory_root>/system/systemevent',
242		0x36 : '<inventory_root>/system/powerlimit',
243                0x34 : '<inventory_root>/system/chassis/motherboard',
244		0x31 : '<inventory_root>/system/chassis/motherboard/pcielink',
245		0x37 : '<inventory_root>/system/chassis/motherboard/refclock',
246		0x38 : '<inventory_root>/system/chassis/motherboard/pcieclock',
247		0x39 : '<inventory_root>/system/chassis/motherboard/todclock',
248		0x3A : '<inventory_root>/system/chassis/motherboard/apss',
249		0x0c : '<inventory_root>/system/chassis/motherboard/cpu0',
250                0x0e : '<inventory_root>/system/chassis/motherboard/cpu1',
251		0xc8 : '<inventory_root>/system/chassis/motherboard/cpu0/core0',
252		0xc9 : '<inventory_root>/system/chassis/motherboard/cpu0/core1',
253		0xca : '<inventory_root>/system/chassis/motherboard/cpu0/core2',
254		0xcb : '<inventory_root>/system/chassis/motherboard/cpu0/core3',
255		0xcc : '<inventory_root>/system/chassis/motherboard/cpu0/core4',
256		0xcd : '<inventory_root>/system/chassis/motherboard/cpu0/core5',
257		0xce : '<inventory_root>/system/chassis/motherboard/cpu0/core6',
258		0xcf : '<inventory_root>/system/chassis/motherboard/cpu0/core7',
259		0xd0 : '<inventory_root>/system/chassis/motherboard/cpu0/core8',
260		0xd1 : '<inventory_root>/system/chassis/motherboard/cpu0/core9',
261		0xd2 : '<inventory_root>/system/chassis/motherboard/cpu0/core10',
262		0xd3 : '<inventory_root>/system/chassis/motherboard/cpu0/core11',
263                0xd4 : '<inventory_root>/system/chassis/motherboard/cpu1/core0',
264                0xd5 : '<inventory_root>/system/chassis/motherboard/cpu1/core1',
265                0xd6 : '<inventory_root>/system/chassis/motherboard/cpu1/core2',
266                0xd7 : '<inventory_root>/system/chassis/motherboard/cpu1/core3',
267                0xd8 : '<inventory_root>/system/chassis/motherboard/cpu1/core4',
268                0xd9 : '<inventory_root>/system/chassis/motherboard/cpu1/core5',
269                0xda : '<inventory_root>/system/chassis/motherboard/cpu1/core6',
270                0xdb : '<inventory_root>/system/chassis/motherboard/cpu1/core7',
271                0xdc : '<inventory_root>/system/chassis/motherboard/cpu1/core8',
272                0xdd : '<inventory_root>/system/chassis/motherboard/cpu1/core9',
273                0xde : '<inventory_root>/system/chassis/motherboard/cpu1/core10',
274                0xdf : '<inventory_root>/system/chassis/motherboard/cpu1/core11',
275		0x40 : '<inventory_root>/system/chassis/motherboard/membuf0',
276    	        0x41 : '<inventory_root>/system/chassis/motherboard/membuf1',
277       		0x42 : '<inventory_root>/system/chassis/motherboard/membuf2',
278       		0x43 : '<inventory_root>/system/chassis/motherboard/membuf3',
279       		0x44 : '<inventory_root>/system/chassis/motherboard/membuf4',
280                0x45 : '<inventory_root>/system/chassis/motherboard/membuf5',
281                0x46 : '<inventory_root>/system/chassis/motherboard/membuf6',
282                0x47 : '<inventory_root>/system/chassis/motherboard/membuf7',
283		0x10 : '<inventory_root>/system/chassis/motherboard/dimm0',
284		0x11 : '<inventory_root>/system/chassis/motherboard/dimm1',
285		0x12 : '<inventory_root>/system/chassis/motherboard/dimm2',
286		0x13 : '<inventory_root>/system/chassis/motherboard/dimm3',
287                0x14 : '<inventory_root>/system/chassis/motherboard/dimm4',
288                0x15 : '<inventory_root>/system/chassis/motherboard/dimm5',
289                0x16 : '<inventory_root>/system/chassis/motherboard/dimm6',
290                0x17 : '<inventory_root>/system/chassis/motherboard/dimm7',
291                0x18 : '<inventory_root>/system/chassis/motherboard/dimm8',
292                0x19 : '<inventory_root>/system/chassis/motherboard/dimm9',
293                0x1a : '<inventory_root>/system/chassis/motherboard/dimm10',
294                0x1b : '<inventory_root>/system/chassis/motherboard/dimm11',
295                0x1c : '<inventory_root>/system/chassis/motherboard/dimm12',
296                0x1d : '<inventory_root>/system/chassis/motherboard/dimm13',
297                0x1e : '<inventory_root>/system/chassis/motherboard/dimm14',
298                0x1f : '<inventory_root>/system/chassis/motherboard/dimm15',
299                0x20 : '<inventory_root>/system/chassis/motherboard/dimm16',
300                0x21 : '<inventory_root>/system/chassis/motherboard/dimm17',
301                0x22 : '<inventory_root>/system/chassis/motherboard/dimm18',
302                0x23 : '<inventory_root>/system/chassis/motherboard/dimm19',
303                0x24 : '<inventory_root>/system/chassis/motherboard/dimm20',
304                0x25 : '<inventory_root>/system/chassis/motherboard/dimm21',
305                0x26 : '<inventory_root>/system/chassis/motherboard/dimm22',
306                0x27 : '<inventory_root>/system/chassis/motherboard/dimm23',
307                0x28 : '<inventory_root>/system/chassis/motherboard/dimm24',
308                0x29 : '<inventory_root>/system/chassis/motherboard/dimm25',
309                0x2a : '<inventory_root>/system/chassis/motherboard/dimm26',
310                0x2b : '<inventory_root>/system/chassis/motherboard/dimm27',
311                0x2c : '<inventory_root>/system/chassis/motherboard/dimm28',
312                0x2d : '<inventory_root>/system/chassis/motherboard/dimm29',
313                0x2e : '<inventory_root>/system/chassis/motherboard/dimm30',
314                0x2f : '<inventory_root>/system/chassis/motherboard/dimm31',
315		0x09 : '/org/openbmc/sensors/host/BootCount',
316		0x05 : '/org/openbmc/sensors/host/BootProgress',
317		0x04 : '/org/openbmc/sensors/host/HostStatus',
318		0x32 : '/org/openbmc/sensors/host/OperatingSystemStatus',
319	},
320	'GPIO_PRESENT' : {
321		'SLOT0_RISER_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_slot0_riser',
322		'SLOT1_RISER_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_slot1_riser',
323		'SLOT2_RISER_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_slot2_riser',
324		'SLOT0_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_slot0',
325		'SLOT1_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_slot1',
326		'SLOT2_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_slot2',
327		'MEZZ0_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_mezz0',
328		'MEZZ1_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_mezz1',
329	}
330}
331
332GPIO_CONFIG = {}
333GPIO_CONFIG['FSI_CLK']    =   { 'gpio_pin': 'A4', 'direction': 'out' }
334GPIO_CONFIG['FSI_DATA']   =   { 'gpio_pin': 'A5', 'direction': 'out' }
335GPIO_CONFIG['FSI_ENABLE'] =   { 'gpio_pin': 'D0', 'direction': 'out' }
336GPIO_CONFIG['POWER_PIN']  =   { 'gpio_pin': 'E1', 'direction': 'out'  }
337GPIO_CONFIG['CRONUS_SEL'] =   { 'gpio_pin': 'A6', 'direction': 'out'  }
338GPIO_CONFIG['PGOOD']      =   { 'gpio_pin': 'C7', 'direction': 'in'  }
339GPIO_CONFIG['POWER_BUTTON'] = { 'gpio_pin': 'E0', 'direction': 'both' }
340GPIO_CONFIG['PCIE_RESET']   = { 'gpio_pin': 'B5', 'direction': 'out' }
341GPIO_CONFIG['USB_RESET']    = { 'gpio_pin': 'B6', 'direction': 'out' }
342
343GPIO_CONFIG['IDBTN']       = { 'gpio_pin': 'Q7', 'direction': 'out' }
344GPIO_CONFIG['BMC_THROTTLE']       = { 'gpio_pin': 'J3', 'direction': 'out' }
345GPIO_CONFIG['RESET_BUTTON']       = { 'gpio_pin': 'E2', 'direction': 'both' }
346GPIO_CONFIG['CPLD_TCK']    	  =   { 'gpio_pin': 'P0', 'direction': 'out' }
347GPIO_CONFIG['CPLD_TDO']    	  =   { 'gpio_pin': 'P1', 'direction': 'out' }
348GPIO_CONFIG['CPLD_TDI']    	  =   { 'gpio_pin': 'P2', 'direction': 'out' }
349GPIO_CONFIG['CPLD_TMS']    	  =   { 'gpio_pin': 'P3', 'direction': 'out' }
350GPIO_CONFIG['CHECKSTOP']   	  =   { 'gpio_pin': 'P5', 'direction': 'falling' }
351
352GPIO_CONFIG['SLOT0_RISER_PRESENT'] =   { 'gpio_pin': 'N0', 'direction': 'in' }
353GPIO_CONFIG['SLOT1_RISER_PRESENT'] =   { 'gpio_pin': 'N1', 'direction': 'in' }
354GPIO_CONFIG['SLOT2_RISER_PRESENT'] =   { 'gpio_pin': 'N2', 'direction': 'in' }
355GPIO_CONFIG['SLOT0_PRESENT'] =         { 'gpio_pin': 'N3', 'direction': 'in' }
356GPIO_CONFIG['SLOT1_PRESENT'] =         { 'gpio_pin': 'N4', 'direction': 'in' }
357GPIO_CONFIG['SLOT2_PRESENT'] =         { 'gpio_pin': 'N5', 'direction': 'in' }
358GPIO_CONFIG['MEZZ0_PRESENT'] =         { 'gpio_pin': 'O0', 'direction': 'in' }
359GPIO_CONFIG['MEZZ1_PRESENT'] =         { 'gpio_pin': 'O1', 'direction': 'in' }
360
361GPIO_CONFIGS = {
362    'power_config' : {
363        'power_good_in' : 'PGOOD',
364        'power_up_outs' : [
365            ('POWER_PIN', False),
366        ],
367        'reset_outs' : [
368            ('USB_RESET', False),
369        ],
370        'pci_reset_outs': [
371            # net name, polarity, reset hold
372            ('PCIE_RESET', False, False),
373        ],
374    },
375    'hostctl_config' : {
376        'fsi_data' : 'FSI_DATA',
377        'fsi_clk' : 'FSI_CLK',
378        'fsi_enable' : 'FSI_ENABLE',
379        'cronus_sel' : 'CRONUS_SEL',
380        'optionals' : [
381            ('BMC_THROTTLE', True),
382            ('IDBTN', False),
383        ],
384    },
385}
386
387# Miscellaneous non-poll sensor with system specific properties.
388# The sensor id is the same as those defined in ID_LOOKUP['SENSOR'].
389MISC_SENSORS = {
390	0x09 : { 'class' : 'BootCountSensor' },
391	0x05 : { 'class' : 'BootProgressSensor' },
392	0x32 : { 'class' : 'OperatingSystemStatusSensor' },
393}
394
395# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
396