blob: 585b8fc4c43aeef899481e9ec3e4c86012d393ed [file] [log] [blame]
Norman Jamesc9239a32015-10-06 16:54:31 -05001#! /usr/bin/python
2
3import dbus
4import Openbmc
5
6HOME_PATH = './'
Norman Jamesc9239a32015-10-06 16:54:31 -05007CACHE_PATH = HOME_PATH+'cache/'
8FRU_PATH = CACHE_PATH+'frus/'
Norman James25d80dd2015-10-08 07:02:25 -05009FLASH_DOWNLOAD_PATH = "/tmp"
10
Norman James969227c2015-10-08 15:10:47 -050011SYSTEM_NAME = "Palmetto"
Norman Jamesc9239a32015-10-06 16:54:31 -050012
Norman Jamesa3e47c42015-10-18 14:43:10 -050013
14## System states
15## state can change to next state in 2 ways:
16## - a process emits a GotoSystemState signal with state name to goto
17## - objects specified in EXIT_STATE_DEPEND have started
Norman Jamesc9239a32015-10-06 16:54:31 -050018SYSTEM_STATES = [
Norman Jamesa3e47c42015-10-18 14:43:10 -050019 'BMC_INIT',
20 'BMC_STARTING',
21 'BMC_READY',
22 'HOST_POWERING_ON',
23 'HOST_POWERED_ON',
24 'HOST_BOOTING',
Norman Jamesc9239a32015-10-06 16:54:31 -050025 'HOST_UP',
Norman Jamesa3e47c42015-10-18 14:43:10 -050026 'HOST_POWERED_DOWN',
Norman Jamesc9239a32015-10-06 16:54:31 -050027]
28
Norman Jamesa3e47c42015-10-18 14:43:10 -050029EXIT_STATE_DEPEND = {
30 'BMC_STARTING' : {
31 '/org/openbmc/control/chassis0': 0,
32 '/org/openbmc/control/power0' : 0,
33 '/org/openbmc/control/led/BMC_READY' : 0,
34 '/org/openbmc/control/Host_0' : 0,
35 }
36}
37
38## method will be called when state is entered
Norman Jamesc9239a32015-10-06 16:54:31 -050039ENTER_STATE_CALLBACK = {
Norman Jamesa3e47c42015-10-18 14:43:10 -050040 'HOST_POWERED_ON' : {
Norman Jamesc9239a32015-10-06 16:54:31 -050041 'bus_name' : 'org.openbmc.control.Host',
42 'obj_name' : '/org/openbmc/control/Host_0',
43 'interface_name' : 'org.openbmc.control.Host',
44 'method_name' : 'boot'
Norman Jamesa3e47c42015-10-18 14:43:10 -050045 },
46 'BMC_READY' : {
47 'bus_name' : 'org.openbmc.control.led',
48 'obj_name' : '/org/openbmc/control/led/BMC_READY',
49 'interface_name' : 'org.openbmc.Led',
50 'method_name' : 'setOn'
Norman Jamesc9239a32015-10-06 16:54:31 -050051 }
52}
53
54SYSTEM_CONFIG = {}
55
56SYSTEM_CONFIG['org.openbmc.control.Bmc'] = {
Norman Jamesa3e47c42015-10-18 14:43:10 -050057 'system_state' : 'BMC_INIT',
Norman Jamesc9239a32015-10-06 16:54:31 -050058 'start_process' : True,
59 'monitor_process' : True,
60 'process_name' : 'control_bmc.exe',
61 'heartbeat' : 'no',
62 'instances' : [ { 'name' : 'Bmc_0' } ]
63 }
64
65SYSTEM_CONFIG['org.openbmc.managers.Inventory'] = {
Norman Jamesa3e47c42015-10-18 14:43:10 -050066 'system_state' : 'BMC_STARTING',
Norman Jamesc9239a32015-10-06 16:54:31 -050067 'start_process' : True,
68 'monitor_process' : True,
69 'process_name' : 'inventory_items.py',
70 'heartbeat' : 'no',
Norman James25d80dd2015-10-08 07:02:25 -050071 'instances' : [ { 'name' : SYSTEM_NAME } ]
Norman Jamesc9239a32015-10-06 16:54:31 -050072 }
73SYSTEM_CONFIG['org.openbmc.control.PciePresent'] = {
Norman Jamesa3e47c42015-10-18 14:43:10 -050074 'system_state' : 'HOST_POWERED_ON',
Norman Jamesc9239a32015-10-06 16:54:31 -050075 'start_process' : True,
76 'monitor_process' : False,
77 'process_name' : 'pcie_slot_present.exe',
78 'heartbeat' : 'no',
79 'instances' : [ { 'name' : 'Slots_0' } ]
80 }
Norman James0ee61922015-10-14 09:39:11 -050081SYSTEM_CONFIG['org.openbmc.sensor.Power8Virtual'] = {
Norman Jamesa3e47c42015-10-18 14:43:10 -050082 'system_state' : 'BMC_STARTING',
Norman James0ee61922015-10-14 09:39:11 -050083 'start_process' : True,
84 'monitor_process' : True,
85 'process_name' : 'sensors_virtual_p8.py',
86 'heartbeat' : 'no',
Norman Jamesa3e47c42015-10-18 14:43:10 -050087 'instances' : [ { 'name' : 'virtual' } ]
Norman James0ee61922015-10-14 09:39:11 -050088 }
Norman Jamesc9239a32015-10-06 16:54:31 -050089
90SYSTEM_CONFIG['org.openbmc.managers.Sensors'] = {
Norman Jamesa3e47c42015-10-18 14:43:10 -050091 'system_state' : 'BMC_STARTING',
Norman Jamesc9239a32015-10-06 16:54:31 -050092 'start_process' : True,
93 'monitor_process' : True,
94 'process_name' : 'sensor_manager.py',
95 'heartbeat' : 'no',
Norman James25d80dd2015-10-08 07:02:25 -050096 'instances' : [ { 'name' : SYSTEM_NAME } ]
Norman Jamesc9239a32015-10-06 16:54:31 -050097 }
98
99SYSTEM_CONFIG['org.openbmc.watchdog.Host'] = {
Norman Jamesa3e47c42015-10-18 14:43:10 -0500100 'system_state' : 'BMC_STARTING',
Norman Jamesc9239a32015-10-06 16:54:31 -0500101 'start_process' : True,
102 'monitor_process' : True,
103 'process_name' : 'host_watchdog.exe',
104 'heartbeat' : 'no',
105 'instances' : [
106 {
107 'name' : 'HostWatchdog_0',
108 'properties' : {
109 'org.openbmc.Watchdog' : {
110 'poll_interval': 3000,
111 }
112 }
113 }
114 ]
115 }
116
117SYSTEM_CONFIG['org.openbmc.control.Power'] = {
Norman Jamesa3e47c42015-10-18 14:43:10 -0500118 'system_state' : 'BMC_STARTING',
Norman Jamesc9239a32015-10-06 16:54:31 -0500119 'start_process' : True,
120 'monitor_process' : True,
121 'process_name' : 'power_control.exe',
Norman James4fa99d42015-10-08 09:21:17 -0500122 'heartbeat' : 'no',
Norman Jamesc9239a32015-10-06 16:54:31 -0500123 'instances' : [
124 {
Norman Jamesa3e47c42015-10-18 14:43:10 -0500125 'name' : 'power0',
Norman Jamesc9239a32015-10-06 16:54:31 -0500126 'user_label': 'Power control',
127 'properties' : {
128 'org.openbmc.Control': {
129 'poll_interval' : 3000
130 },
131 'org.openbmc.control.Power': {
132 'pgood_timeout' : 10
133 }
134 }
135 }
136 ]
137 }
138
139SYSTEM_CONFIG['org.openbmc.sensors.Temperature.Ambient'] = {
Norman Jamesa3e47c42015-10-18 14:43:10 -0500140 'system_state' : 'BMC_STARTING',
Norman Jamesc9239a32015-10-06 16:54:31 -0500141 'start_process' : True,
142 'monitor_process' : True,
143 'process_name' : 'sensor_ambient.exe',
Norman James4fa99d42015-10-08 09:21:17 -0500144 'heartbeat' : 'no',
Norman Jamesc9239a32015-10-06 16:54:31 -0500145 'instances' : [
146 {
147 'name' : 'FrontChassis',
148 'user_label': 'Ambient Temperature 1',
149 'properties' : {
150 'org.openbmc.SensorValue': {
151 'poll_interval' : 5000,
152 },
153 'org.openbmc.SensorThreshold' : {
154 'lower_critical': 5,
155 'lower_warning' : 10,
156 'upper_warning' : 15,
157 'upper_critical': 20
158 },
159 'org.openbmc.SensorI2c' : {
160 'dev_path' : '/dev/i2c/i2c0',
161 'address' : '0xA0'
162 }
163 }
164 },
165 ]
166 }
167SYSTEM_CONFIG['org.openbmc.buttons.Power'] = {
Norman Jamesa3e47c42015-10-18 14:43:10 -0500168 'system_state' : 'BMC_STARTING',
Norman Jamesc9239a32015-10-06 16:54:31 -0500169 'start_process' : True,
170 'monitor_process' : True,
171 'process_name' : 'button_power.exe',
172 'heartbeat' : 'no',
173 'instances' : [ { 'name' : 'PowerButton_0' } ]
174 }
Norman Jamesa3e47c42015-10-18 14:43:10 -0500175SYSTEM_CONFIG['org.openbmc.control.led'] = {
176 'system_state' : 'BMC_STARTING',
Norman Jamesc9239a32015-10-06 16:54:31 -0500177 'start_process' : True,
178 'monitor_process' : True,
Norman Jamesa3e47c42015-10-18 14:43:10 -0500179 'process_name' : 'led_controller.exe',
Norman Jamesc9239a32015-10-06 16:54:31 -0500180 'heartbeat' : 'no',
Norman Jamesa3e47c42015-10-18 14:43:10 -0500181 'instances' : [ { 'name' : 'Dummy' } ]
Norman Jamesc9239a32015-10-06 16:54:31 -0500182 }
183SYSTEM_CONFIG['org.openbmc.flash.Bios'] = {
Norman Jamesa3e47c42015-10-18 14:43:10 -0500184 'system_state' : 'BMC_STARTING',
Norman Jamesc9239a32015-10-06 16:54:31 -0500185 'start_process' : True,
186 'monitor_process' : True,
187 'process_name' : 'flash_bios.exe',
188 'heartbeat' : 'no',
189 'instances' : [ { 'name' : 'Bios_0' } ]
190 }
191
Norman Jamesf066e872015-10-07 15:29:51 -0500192SYSTEM_CONFIG['org.openbmc.manager.Download'] = {
Norman Jamesa3e47c42015-10-18 14:43:10 -0500193 'system_state' : 'BMC_STARTING',
Norman Jamesc9239a32015-10-06 16:54:31 -0500194 'start_process' : True,
195 'monitor_process' : True,
Norman Jamesf066e872015-10-07 15:29:51 -0500196 'process_name' : 'download_manager.py',
Norman Jamesc9239a32015-10-06 16:54:31 -0500197 'heartbeat' : 'no',
Norman James25d80dd2015-10-08 07:02:25 -0500198 'instances' : [ { 'name' : SYSTEM_NAME } ]
Norman Jamesc9239a32015-10-06 16:54:31 -0500199 }
200
201SYSTEM_CONFIG['org.openbmc.control.Host'] = {
Norman Jamesa3e47c42015-10-18 14:43:10 -0500202 'system_state' : 'BMC_STARTING',
Norman Jamesc9239a32015-10-06 16:54:31 -0500203 'start_process' : True,
204 'monitor_process' : True,
205 'process_name' : 'control_host.exe',
206 'heartbeat' : 'no',
207 'instances' : [ { 'name' : 'Host_0' } ]
208 }
209SYSTEM_CONFIG['org.openbmc.control.Chassis'] = {
Norman Jamesa3e47c42015-10-18 14:43:10 -0500210 'system_state' : 'BMC_STARTING',
Norman Jamesc9239a32015-10-06 16:54:31 -0500211 'start_process' : True,
212 'monitor_process' : True,
213 'process_name' : 'chassis_control.py',
214 'heartbeat' : 'no',
Norman Jamesa3e47c42015-10-18 14:43:10 -0500215 'instances' : [ { 'name' : 'chassis0' } ]
Norman Jamesc9239a32015-10-06 16:54:31 -0500216 }
217
218SYSTEM_CONFIG['org.openbmc.vpd'] = {
Norman Jamesa3e47c42015-10-18 14:43:10 -0500219 'system_state' : 'HOST_POWERED_ON',
220 'start_process' : False,
Norman Jamesc9239a32015-10-06 16:54:31 -0500221 'monitor_process' : False,
222 'process_name' : 'board_vpd.exe',
223 'heartbeat' : 'no',
224 'instances' : [ { 'name' : 'MBVPD_0' } ]
225 }
226
227SYSTEM_CONFIG['org.openbmc.sensors.Occ'] = {
Norman Jamesa3e47c42015-10-18 14:43:10 -0500228 'system_state' : 'BMC_STARTING',
229 'start_process' : False,
230 'monitor_process' : False,
Norman Jamesc9239a32015-10-06 16:54:31 -0500231 'process_name' : 'sensor_occ.exe',
232 'heartbeat' : 'no',
233 'instances' : [
234 {
235 'name' : 'Occ_0',
236 'properties' : {
237 'org.openbmc.Occ' : {
238 'poll_interval' : 3000,
239 }
240 }
241 },
242
243 ]
244 }
245
246SYSTEM_CONFIG['org.openbmc.sensors.Fan'] = {
Norman Jamesa3e47c42015-10-18 14:43:10 -0500247 'system_state' : 'BMC_STARTING',
Norman Jamesc9239a32015-10-06 16:54:31 -0500248 'start_process' : True,
249 'monitor_process' : True,
250 'process_name' : 'fan.exe',
251 'heartbeat' : 'no',
252 'instances' : [ {'name' : 'Fan_0' }, {'name' : 'Fan_1'}, {'name' : 'Fan_2'} ]
253 }
254
255NON_CACHABLE_PROPERTIES = {
256 'name' : True,
257 'user_label' : True,
258 'location' : True,
259 'state' : True,
260 'cache' : True
261}
Norman Jamesa3e47c42015-10-18 14:43:10 -0500262INVENTORY_ROOT = '/org/openbmc/inventory'
Norman Jamesc9239a32015-10-06 16:54:31 -0500263
264FRU_INSTANCES = {
265 '<inventory_root>/system' :
266 {
267 'fru_type' : Openbmc.FRU_TYPES['SYSTEM'],
268 'is_fru' : True,
269 },
270 '<inventory_root>/system/io_board' :
271 {
272 'fru_type' : Openbmc.FRU_TYPES['MAIN_PLANAR'],
273 'manufacturer' : 'FOXCONN',
274 'is_fru' : True,
275 'location' : 'C1',
276 },
277
278 '<inventory_root>/system/motherboard' :
279 {
280 'fru_type' : Openbmc.FRU_TYPES['MAIN_PLANAR'],
281 'manufacturer' : 'FOXCONN',
282 'is_fru' : True,
283 'location' : 'C0',
284 },
285 '<inventory_root>/system/fan0' :
286 {
287 'fru_type' : Openbmc.FRU_TYPES['FAN'],
288 'manufacturer' : 'DELTA',
289 'is_fru' : True,
290 'location' : 'F0',
291 },
292 '<inventory_root>/system/fan1' :
293 {
294 'fru_type' : Openbmc.FRU_TYPES['FAN'],
295 'manufacturer' : 'DELTA',
296 'is_fru' : True,
297 'location' : 'F1',
298 },
299 '<inventory_root>/system/io_board/bmc' :
300 {
301 'fru_type' : Openbmc.FRU_TYPES['BMC'],
302 'manufacturer' : 'ASPEED',
303 'is_fru' : False,
304 },
305 '<inventory_root>/system/motherboard/cpu0' :
306 {
307 'fru_type' : Openbmc.FRU_TYPES['CPU'],
308 'manufacturer' : 'IBM',
309 'is_fru' : True,
310 'location' : 'P0',
311 },
312 '<inventory_root>/system/motherboard/cpu0/core0' :
313 {
314 'fru_type' : Openbmc.FRU_TYPES['CORE'],
315 'is_fru' : False,
316 },
Norman James0ee61922015-10-14 09:39:11 -0500317 '<inventory_root>/system/motherboard/cpu0/core1' : {
318 'fru_type' : Openbmc.FRU_TYPES['CORE'],
319 'is_fru' : False,
320 },
321 '<inventory_root>/system/motherboard/cpu0/core2' : {
322 'fru_type' : Openbmc.FRU_TYPES['CORE'],
323 'is_fru' : False,
324 },
325 '<inventory_root>/system/motherboard/cpu0/core3' : {
326 'fru_type' : Openbmc.FRU_TYPES['CORE'],
327 'is_fru' : False,
328 },
329 '<inventory_root>/system/motherboard/cpu0/core4' : {
330 'fru_type' : Openbmc.FRU_TYPES['CORE'],
331 'is_fru' : False,
332 },
333 '<inventory_root>/system/motherboard/cpu0/core5' : {
334 'fru_type' : Openbmc.FRU_TYPES['CORE'],
335 'is_fru' : False,
336 },
337 '<inventory_root>/system/motherboard/cpu0/core6' : {
338 'fru_type' : Openbmc.FRU_TYPES['CORE'],
339 'is_fru' : False,
340 },
341 '<inventory_root>/system/motherboard/cpu0/core7' : {
342 'fru_type' : Openbmc.FRU_TYPES['CORE'],
343 'is_fru' : False,
344 },
345 '<inventory_root>/system/motherboard/cpu0/core8' : {
346 'fru_type' : Openbmc.FRU_TYPES['CORE'],
347 'is_fru' : False,
348 },
349 '<inventory_root>/system/motherboard/cpu0/core9' : {
350 'fru_type' : Openbmc.FRU_TYPES['CORE'],
351 'is_fru' : False,
352 },
353 '<inventory_root>/system/motherboard/cpu0/core10' : {
354 'fru_type' : Openbmc.FRU_TYPES['CORE'],
355 'is_fru' : False,
356 },
357 '<inventory_root>/system/motherboard/cpu0/core11' : {
Norman Jamesc9239a32015-10-06 16:54:31 -0500358 'fru_type' : Openbmc.FRU_TYPES['CORE'],
359 'is_fru' : False,
360 },
Norman Jamesa53e6cf2015-10-15 10:22:47 -0500361 '<inventory_root>/system/motherboard/centaur0' :
362 {
363 'fru_type' : 0,
364 'is_fru' : False,
365 },
Norman Jamesc9239a32015-10-06 16:54:31 -0500366 '<inventory_root>/system/motherboard/dimm0' :
367 {
368 'fru_type' : Openbmc.FRU_TYPES['DIMM'],
369 'is_fru' : True,
370 },
371 '<inventory_root>/system/motherboard/dimm1' :
372 {
373 'fru_type' : Openbmc.FRU_TYPES['DIMM'],
374 'is_fru' : True,
375 },
376 '<inventory_root>/system/motherboard/dimm2' :
377 {
378 'fru_type' : Openbmc.FRU_TYPES['DIMM'],
379 'is_fru' : True,
380 },
381 '<inventory_root>/system/motherboard/dimm3' :
382 {
383 'fru_type' : Openbmc.FRU_TYPES['DIMM'],
384 'is_fru' : True,
385 },
386 '<inventory_root>/system/io_board/pcie_slot0' :
387 {
388 'fru_type' : Openbmc.FRU_TYPES['PCIE_CARD'],
389 'user_label' : 'PCIe card 0',
390 'is_fru' : True,
391 },
392 '<inventory_root>/system/io_board/pcie_slot1' :
393 {
394 'fru_type' : Openbmc.FRU_TYPES['PCIE_CARD'],
395 'user_label' : 'PCIe card 1',
396 'is_fru' : True,
397 },
398}
399
400ID_LOOKUP = {
401 'FRU' : {
Norman Jamesa3e47c42015-10-18 14:43:10 -0500402 0x0d : '<inventory_root>/system',
Norman Jamesb32a0fe2015-10-18 16:11:02 -0500403 0x34 : '<inventory_root>/system/motherboard',
Norman James0ee61922015-10-14 09:39:11 -0500404 0x01 : '<inventory_root>/system/motherboard/cpu0',
Norman Jamesa3e47c42015-10-18 14:43:10 -0500405 0x02 : '<inventory_root>/system/motherboard/centaur0',
Norman James0ee61922015-10-14 09:39:11 -0500406 0x03 : '<inventory_root>/system/motherboard/dimm0',
407 0x04 : '<inventory_root>/system/motherboard/dimm1',
408 0x05 : '<inventory_root>/system/motherboard/dimm2',
409 0x06 : '<inventory_root>/system/motherboard/dimm3',
Norman Jamesa3e47c42015-10-18 14:43:10 -0500410 0xff : '<inventory_root>/system',
Norman Jamesc9239a32015-10-06 16:54:31 -0500411 },
412 'SENSOR' : {
Norman James0ee61922015-10-14 09:39:11 -0500413 0x2f : '<inventory_root>/system/motherboard/cpu0',
414 0x22 : '<inventory_root>/system/motherboard/cpu0/core0',
415 0x23 : '<inventory_root>/system/motherboard/cpu0/core1',
416 0x24 : '<inventory_root>/system/motherboard/cpu0/core2',
417 0x25 : '<inventory_root>/system/motherboard/cpu0/core3',
418 0x26 : '<inventory_root>/system/motherboard/cpu0/core4',
419 0x27 : '<inventory_root>/system/motherboard/cpu0/core5',
420 0x28 : '<inventory_root>/system/motherboard/cpu0/core6',
421 0x29 : '<inventory_root>/system/motherboard/cpu0/core7',
422 0x2a : '<inventory_root>/system/motherboard/cpu0/core8',
423 0x2b : '<inventory_root>/system/motherboard/cpu0/core9',
424 0x2c : '<inventory_root>/system/motherboard/cpu0/core10',
425 0x2d : '<inventory_root>/system/motherboard/cpu0/core11',
Norman Jamesa53e6cf2015-10-15 10:22:47 -0500426 0x2e : '<inventory_root>/system/motherboard/centaur0',
Norman James0ee61922015-10-14 09:39:11 -0500427 0x1e : '<inventory_root>/system/motherboard/dimm0',
428 0x1f : '<inventory_root>/system/motherboard/dimm1',
429 0x20 : '<inventory_root>/system/motherboard/dimm2',
430 0x21 : '<inventory_root>/system/motherboard/dimm3',
431 0x09 : '/org/openbmc/sensor/virtual/BootCount',
432 0x05 : '/org/openbmc/sensor/virtual/BootProgress',
433 0x04 : '/org/openbmc/sensor/virtual/HostStatus',
434 0x08 : '/org/openbmc/sensor/virtual/OccStatus',
435 0x32 : '/org/openbmc/sensor/virtual/OperatingSystemStatus',
Norman Jamesc9239a32015-10-06 16:54:31 -0500436 },
437 'GPIO_PRESENT' : {
Norman Jamesc9239a32015-10-06 16:54:31 -0500438 'SLOT0_PRESENT' : '<inventory_root>/system/io_board/pcie_slot0',
439 'SLOT1_PRESENT' : '<inventory_root>/system/io_board/pcie_slot1',
Norman Jamesc9239a32015-10-06 16:54:31 -0500440 }
441}
442
443GPIO_CONFIG = {}
Norman James25d80dd2015-10-08 07:02:25 -0500444GPIO_CONFIG['FSI_CLK'] = { 'gpio_num': 484, 'direction': 'out' }
445GPIO_CONFIG['FSI_DATA'] = { 'gpio_num': 485, 'direction': 'out' }
446GPIO_CONFIG['FSI_ENABLE'] = { 'gpio_num': 504, 'direction': 'out' }
447GPIO_CONFIG['POWER_PIN'] = { 'gpio_num': 449, 'direction': 'out' }
448GPIO_CONFIG['CRONUS_SEL'] = { 'gpio_num': 486, 'direction': 'out' }
449GPIO_CONFIG['PGOOD'] = { 'gpio_num': 503, 'direction': 'in' }
450GPIO_CONFIG['IDENTIFY'] = { 'gpio_num': 365, 'direction': 'out' }
Norman Jamesa3e47c42015-10-18 14:43:10 -0500451GPIO_CONFIG['BMC_READY'] = { 'gpio_num': 365, 'direction': 'out' }
Norman James25d80dd2015-10-08 07:02:25 -0500452GPIO_CONFIG['POWER_BUTTON'] = { 'gpio_num': 448, 'direction': 'falling' }
Norman Jamesc9239a32015-10-06 16:54:31 -0500453GPIO_CONFIG['SLOT0_RISER_PRESENT'] = { 'gpio_num': 104, 'direction': 'in' }
454GPIO_CONFIG['SLOT1_RISER_PRESENT'] = { 'gpio_num': 105, 'direction': 'in' }
455GPIO_CONFIG['SLOT2_RISER_PRESENT'] = { 'gpio_num': 106, 'direction': 'in' }
456GPIO_CONFIG['SLOT0_PRESENT'] = { 'gpio_num': 107, 'direction': 'in' }
457GPIO_CONFIG['SLOT1_PRESENT'] = { 'gpio_num': 108, 'direction': 'in' }
458GPIO_CONFIG['SLOT2_PRESENT'] = { 'gpio_num': 109, 'direction': 'in' }
459GPIO_CONFIG['MEZZ0_PRESENT'] = { 'gpio_num': 112, 'direction': 'in' }
460GPIO_CONFIG['MEZZ1_PRESENT'] = { 'gpio_num': 113, 'direction': 'in' }
461
462