blob: ba0a3219b34b3f64911a03fe7ba6b7c57c092c5b [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
Norman Jamesc9239a32015-10-06 16:54:31 -0500139SYSTEM_CONFIG['org.openbmc.buttons.Power'] = {
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' : 'button_power.exe',
144 'heartbeat' : 'no',
145 'instances' : [ { 'name' : 'PowerButton_0' } ]
146 }
Norman Jamesa3e47c42015-10-18 14:43:10 -0500147SYSTEM_CONFIG['org.openbmc.control.led'] = {
148 'system_state' : 'BMC_STARTING',
Norman Jamesc9239a32015-10-06 16:54:31 -0500149 'start_process' : True,
150 'monitor_process' : True,
Norman Jamesa3e47c42015-10-18 14:43:10 -0500151 'process_name' : 'led_controller.exe',
Norman Jamesc9239a32015-10-06 16:54:31 -0500152 'heartbeat' : 'no',
Norman Jamesa3e47c42015-10-18 14:43:10 -0500153 'instances' : [ { 'name' : 'Dummy' } ]
Norman Jamesc9239a32015-10-06 16:54:31 -0500154 }
155SYSTEM_CONFIG['org.openbmc.flash.Bios'] = {
Norman Jamesa3e47c42015-10-18 14:43:10 -0500156 'system_state' : 'BMC_STARTING',
Norman Jamesc9239a32015-10-06 16:54:31 -0500157 'start_process' : True,
158 'monitor_process' : True,
159 'process_name' : 'flash_bios.exe',
160 'heartbeat' : 'no',
161 'instances' : [ { 'name' : 'Bios_0' } ]
162 }
163
Norman Jamesf066e872015-10-07 15:29:51 -0500164SYSTEM_CONFIG['org.openbmc.manager.Download'] = {
Norman Jamesa3e47c42015-10-18 14:43:10 -0500165 'system_state' : 'BMC_STARTING',
Norman Jamesc9239a32015-10-06 16:54:31 -0500166 'start_process' : True,
167 'monitor_process' : True,
Norman Jamesf066e872015-10-07 15:29:51 -0500168 'process_name' : 'download_manager.py',
Norman Jamesc9239a32015-10-06 16:54:31 -0500169 'heartbeat' : 'no',
Norman James25d80dd2015-10-08 07:02:25 -0500170 'instances' : [ { 'name' : SYSTEM_NAME } ]
Norman Jamesc9239a32015-10-06 16:54:31 -0500171 }
172
173SYSTEM_CONFIG['org.openbmc.control.Host'] = {
Norman Jamesa3e47c42015-10-18 14:43:10 -0500174 'system_state' : 'BMC_STARTING',
Norman Jamesc9239a32015-10-06 16:54:31 -0500175 'start_process' : True,
176 'monitor_process' : True,
177 'process_name' : 'control_host.exe',
178 'heartbeat' : 'no',
179 'instances' : [ { 'name' : 'Host_0' } ]
180 }
181SYSTEM_CONFIG['org.openbmc.control.Chassis'] = {
Norman Jamesa3e47c42015-10-18 14:43:10 -0500182 'system_state' : 'BMC_STARTING',
Norman Jamesc9239a32015-10-06 16:54:31 -0500183 'start_process' : True,
184 'monitor_process' : True,
185 'process_name' : 'chassis_control.py',
186 'heartbeat' : 'no',
Norman Jamesa3e47c42015-10-18 14:43:10 -0500187 'instances' : [ { 'name' : 'chassis0' } ]
Norman Jamesc9239a32015-10-06 16:54:31 -0500188 }
189
190SYSTEM_CONFIG['org.openbmc.vpd'] = {
Norman Jamesa3e47c42015-10-18 14:43:10 -0500191 'system_state' : 'HOST_POWERED_ON',
192 'start_process' : False,
Norman Jamesc9239a32015-10-06 16:54:31 -0500193 'monitor_process' : False,
194 'process_name' : 'board_vpd.exe',
195 'heartbeat' : 'no',
196 'instances' : [ { 'name' : 'MBVPD_0' } ]
197 }
198
Norman Jamesc9239a32015-10-06 16:54:31 -0500199SYSTEM_CONFIG['org.openbmc.sensors.Fan'] = {
Norman Jamesa3e47c42015-10-18 14:43:10 -0500200 'system_state' : 'BMC_STARTING',
Norman Jamesc9239a32015-10-06 16:54:31 -0500201 'start_process' : True,
202 'monitor_process' : True,
203 'process_name' : 'fan.exe',
204 'heartbeat' : 'no',
205 'instances' : [ {'name' : 'Fan_0' }, {'name' : 'Fan_1'}, {'name' : 'Fan_2'} ]
206 }
207
208NON_CACHABLE_PROPERTIES = {
209 'name' : True,
210 'user_label' : True,
211 'location' : True,
212 'state' : True,
213 'cache' : True
214}
Norman Jamesa3e47c42015-10-18 14:43:10 -0500215INVENTORY_ROOT = '/org/openbmc/inventory'
Norman Jamesc9239a32015-10-06 16:54:31 -0500216
217FRU_INSTANCES = {
218 '<inventory_root>/system' :
Norman James0706ae02015-10-19 16:09:47 -0500219 { 'fru_type' : 'SYSTEM','is_fru' : True, },
Norman Jamesc9239a32015-10-06 16:54:31 -0500220
Norman Jamesa42446a2015-10-19 11:12:45 -0500221 '<inventory_root>/system/chassis' :
Norman James0706ae02015-10-19 16:09:47 -0500222 { 'fru_type' : 'SYSTEM','is_fru' : True, },
Norman Jamesa42446a2015-10-19 11:12:45 -0500223
224 '<inventory_root>/system/chassis/motherboard' :
Norman James0706ae02015-10-19 16:09:47 -0500225 { 'fru_type' : 'MAIN_PLANAR','is_fru' : True, },
Norman Jamesa42446a2015-10-19 11:12:45 -0500226
227 '<inventory_root>/system/chassis/fan0' :
Norman James0706ae02015-10-19 16:09:47 -0500228 { 'fru_type' : 'FAN','is_fru' : True, },
Norman Jamesa42446a2015-10-19 11:12:45 -0500229 '<inventory_root>/system/chassis/fan1' :
Norman James0706ae02015-10-19 16:09:47 -0500230 { 'fru_type' : 'FAN','is_fru' : True, },
Norman Jamesa42446a2015-10-19 11:12:45 -0500231 '<inventory_root>/system/chassis/fan2' :
Norman James0706ae02015-10-19 16:09:47 -0500232 { 'fru_type' : 'FAN','is_fru' : True, },
Norman Jamesa42446a2015-10-19 11:12:45 -0500233 '<inventory_root>/system/chassis/fan3' :
Norman James0706ae02015-10-19 16:09:47 -0500234 { 'fru_type' : 'FAN','is_fru' : True, },
Norman Jamesa42446a2015-10-19 11:12:45 -0500235 '<inventory_root>/system/chassis/fan4' :
Norman James0706ae02015-10-19 16:09:47 -0500236 { 'fru_type' : 'FAN','is_fru' : True, },
Norman Jamesa42446a2015-10-19 11:12:45 -0500237
238 '<inventory_root>/system/chassis/motherboard/bmc' :
Norman James0706ae02015-10-19 16:09:47 -0500239 { 'fru_type' : 'BMC','is_fru' : False,
Norman Jamesa42446a2015-10-19 11:12:45 -0500240 'manufacturer' : 'ASPEED' },
241 '<inventory_root>/system/chassis/motherboard/cpu0' :
Norman James0706ae02015-10-19 16:09:47 -0500242 { 'fru_type' : 'CPU', 'is_fru' : True, },
Norman Jamesa42446a2015-10-19 11:12:45 -0500243
244 '<inventory_root>/system/chassis/motherboard/cpu0/core0' :
Norman James0706ae02015-10-19 16:09:47 -0500245 { 'fru_type' : 'CORE', 'is_fru' : False, },
Norman Jamesa42446a2015-10-19 11:12:45 -0500246
247 '<inventory_root>/system/chassis/motherboard/cpu0/core1' :
Norman James0706ae02015-10-19 16:09:47 -0500248 { 'fru_type' : 'CORE', 'is_fru' : False, },
Norman Jamesa42446a2015-10-19 11:12:45 -0500249
250 '<inventory_root>/system/chassis/motherboard/cpu0/core2' :
Norman James0706ae02015-10-19 16:09:47 -0500251 { 'fru_type' : 'CORE', 'is_fru' : False, },
Norman Jamesa42446a2015-10-19 11:12:45 -0500252
253 '<inventory_root>/system/chassis/motherboard/cpu0/core3' :
Norman James0706ae02015-10-19 16:09:47 -0500254 { 'fru_type' : 'CORE', 'is_fru' : False, },
Norman Jamesa42446a2015-10-19 11:12:45 -0500255
256 '<inventory_root>/system/chassis/motherboard/cpu0/core4' :
Norman James0706ae02015-10-19 16:09:47 -0500257 { 'fru_type' : 'CORE', 'is_fru' : False, },
Norman Jamesa42446a2015-10-19 11:12:45 -0500258
259 '<inventory_root>/system/chassis/motherboard/cpu0/core5' :
Norman James0706ae02015-10-19 16:09:47 -0500260 { 'fru_type' : 'CORE', 'is_fru' : False, },
Norman Jamesa42446a2015-10-19 11:12:45 -0500261
262 '<inventory_root>/system/chassis/motherboard/cpu0/core6' :
Norman James0706ae02015-10-19 16:09:47 -0500263 { 'fru_type' : 'CORE', 'is_fru' : False, },
Norman Jamesa42446a2015-10-19 11:12:45 -0500264
265 '<inventory_root>/system/chassis/motherboard/cpu0/core7' :
Norman James0706ae02015-10-19 16:09:47 -0500266 { 'fru_type' : 'CORE', 'is_fru' : False, },
Norman Jamesa42446a2015-10-19 11:12:45 -0500267
268 '<inventory_root>/system/chassis/motherboard/cpu0/core8' :
Norman James0706ae02015-10-19 16:09:47 -0500269 { 'fru_type' : 'CORE', 'is_fru' : False, },
Norman Jamesa42446a2015-10-19 11:12:45 -0500270
271 '<inventory_root>/system/chassis/motherboard/cpu0/core9' :
Norman James0706ae02015-10-19 16:09:47 -0500272 { 'fru_type' : 'CORE', 'is_fru' : False, },
Norman Jamesa42446a2015-10-19 11:12:45 -0500273
274 '<inventory_root>/system/chassis/motherboard/cpu0/core10' :
Norman James0706ae02015-10-19 16:09:47 -0500275 { 'fru_type' : 'CORE', 'is_fru' : False, },
Norman Jamesa42446a2015-10-19 11:12:45 -0500276
277 '<inventory_root>/system/chassis/motherboard/cpu0/core11' :
Norman James0706ae02015-10-19 16:09:47 -0500278 { 'fru_type' : 'CORE', 'is_fru' : False, },
Norman Jamesa42446a2015-10-19 11:12:45 -0500279
280 '<inventory_root>/system/chassis/motherboard/centaur0' :
Norman James0706ae02015-10-19 16:09:47 -0500281 { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
Norman Jamesa42446a2015-10-19 11:12:45 -0500282
283 '<inventory_root>/system/chassis/motherboard/dimm0' :
Norman James0706ae02015-10-19 16:09:47 -0500284 { 'fru_type' : 'DIMM', 'is_fru' : True,},
Norman Jamesa42446a2015-10-19 11:12:45 -0500285
286 '<inventory_root>/system/chassis/motherboard/dimm1' :
Norman James0706ae02015-10-19 16:09:47 -0500287 { 'fru_type' : 'DIMM', 'is_fru' : True,},
Norman Jamesa42446a2015-10-19 11:12:45 -0500288
289 '<inventory_root>/system/chassis/motherboard/dimm2' :
Norman James0706ae02015-10-19 16:09:47 -0500290 { 'fru_type' : 'DIMM', 'is_fru' : True,},
Norman Jamesa42446a2015-10-19 11:12:45 -0500291
292 '<inventory_root>/system/chassis/motherboard/dimm3' :
Norman James0706ae02015-10-19 16:09:47 -0500293 { 'fru_type' : 'DIMM', 'is_fru' : True,},
Norman Jamesa42446a2015-10-19 11:12:45 -0500294
295 '<inventory_root>/system/chassis/io_board/pcie_slot0' :
Norman James0706ae02015-10-19 16:09:47 -0500296 { 'fru_type' : 'PCIE_CARD', 'is_fru' : True,},
Norman Jamesa42446a2015-10-19 11:12:45 -0500297
298 '<inventory_root>/system/chassis/io_board/pcie_slot1' :
Norman James0706ae02015-10-19 16:09:47 -0500299 { 'fru_type' : 'PCIE_CARD', 'is_fru' : True,},
Norman Jamesa42446a2015-10-19 11:12:45 -0500300
Norman Jamesc9239a32015-10-06 16:54:31 -0500301}
302
303ID_LOOKUP = {
304 'FRU' : {
Norman Jamesa42446a2015-10-19 11:12:45 -0500305 0x0d : '<inventory_root>/system/chassis',
306 0x34 : '<inventory_root>/system/chassis/motherboard',
307 0x01 : '<inventory_root>/system/chassis/motherboard/cpu0',
308 0x02 : '<inventory_root>/system/chassis/motherboard/centaur0',
309 0x03 : '<inventory_root>/system/chassis/motherboard/dimm0',
310 0x04 : '<inventory_root>/system/chassis/motherboard/dimm1',
311 0x05 : '<inventory_root>/system/chassis/motherboard/dimm2',
312 0x06 : '<inventory_root>/system/chassis/motherboard/dimm3',
Norman Jamesa3e47c42015-10-18 14:43:10 -0500313 0xff : '<inventory_root>/system',
Norman Jamesc9239a32015-10-06 16:54:31 -0500314 },
Norman Jamesa42446a2015-10-19 11:12:45 -0500315 'FRU_STR' : {
Norman Jamesfe635e82015-10-20 07:47:22 -0500316 'PRODUCT_15' : '<inventory_root>/system',
317 'CHASSIS_2' : '<inventory_root>/system/chassis',
318 'BOARD_1' : '<inventory_root>/system/chassis/motherboard/cpu0',
319 'BOARD_2' : '<inventory_root>/system/chassis/motherboard/centaur0',
320 'PRODUCT_3' : '<inventory_root>/system/chassis/motherboard/dimm0',
321 'PRODUCT_4' : '<inventory_root>/system/chassis/motherboard/dimm1',
322 'PRODUCT_5' : '<inventory_root>/system/chassis/motherboard/dimm2',
323 'PRODUCT_6' : '<inventory_root>/system/chassis/motherboard/dimm3',
Norman Jamesa42446a2015-10-19 11:12:45 -0500324 },
Norman Jamesc9239a32015-10-06 16:54:31 -0500325 'SENSOR' : {
Norman Jamesa42446a2015-10-19 11:12:45 -0500326 0x2f : '<inventory_root>/system/chassis/motherboard/cpu0',
327 0x22 : '<inventory_root>/system/chassis/motherboard/cpu0/core0',
328 0x23 : '<inventory_root>/system/chassis/motherboard/cpu0/core1',
329 0x24 : '<inventory_root>/system/chassis/motherboard/cpu0/core2',
330 0x25 : '<inventory_root>/system/chassis/motherboard/cpu0/core3',
331 0x26 : '<inventory_root>/system/chassis/motherboard/cpu0/core4',
332 0x27 : '<inventory_root>/system/chassis/motherboard/cpu0/core5',
333 0x28 : '<inventory_root>/system/chassis/motherboard/cpu0/core6',
334 0x29 : '<inventory_root>/system/chassis/motherboard/cpu0/core7',
335 0x2a : '<inventory_root>/system/chassis/motherboard/cpu0/core8',
336 0x2b : '<inventory_root>/system/chassis/motherboard/cpu0/core9',
337 0x2c : '<inventory_root>/system/chassis/motherboard/cpu0/core10',
338 0x2d : '<inventory_root>/system/chassis/motherboard/cpu0/core11',
339 0x2e : '<inventory_root>/system/chassis/motherboard/centaur0',
340 0x1e : '<inventory_root>/system/chassis/motherboard/dimm0',
341 0x1f : '<inventory_root>/system/chassis/motherboard/dimm1',
342 0x20 : '<inventory_root>/system/chassis/motherboard/dimm2',
343 0x21 : '<inventory_root>/system/chassis/motherboard/dimm3',
Norman James0ee61922015-10-14 09:39:11 -0500344 0x09 : '/org/openbmc/sensor/virtual/BootCount',
345 0x05 : '/org/openbmc/sensor/virtual/BootProgress',
346 0x04 : '/org/openbmc/sensor/virtual/HostStatus',
347 0x08 : '/org/openbmc/sensor/virtual/OccStatus',
348 0x32 : '/org/openbmc/sensor/virtual/OperatingSystemStatus',
Norman Jamesc9239a32015-10-06 16:54:31 -0500349 },
350 'GPIO_PRESENT' : {
Norman Jamesa42446a2015-10-19 11:12:45 -0500351 'SLOT0_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_slot0',
352 'SLOT1_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_slot1',
Norman Jamesc9239a32015-10-06 16:54:31 -0500353 }
354}
355
356GPIO_CONFIG = {}
Norman James25d80dd2015-10-08 07:02:25 -0500357GPIO_CONFIG['FSI_CLK'] = { 'gpio_num': 484, 'direction': 'out' }
358GPIO_CONFIG['FSI_DATA'] = { 'gpio_num': 485, 'direction': 'out' }
359GPIO_CONFIG['FSI_ENABLE'] = { 'gpio_num': 504, 'direction': 'out' }
360GPIO_CONFIG['POWER_PIN'] = { 'gpio_num': 449, 'direction': 'out' }
361GPIO_CONFIG['CRONUS_SEL'] = { 'gpio_num': 486, 'direction': 'out' }
362GPIO_CONFIG['PGOOD'] = { 'gpio_num': 503, 'direction': 'in' }
363GPIO_CONFIG['IDENTIFY'] = { 'gpio_num': 365, 'direction': 'out' }
Norman Jamesa3e47c42015-10-18 14:43:10 -0500364GPIO_CONFIG['BMC_READY'] = { 'gpio_num': 365, 'direction': 'out' }
Norman James25d80dd2015-10-08 07:02:25 -0500365GPIO_CONFIG['POWER_BUTTON'] = { 'gpio_num': 448, 'direction': 'falling' }
Norman Jamesc9239a32015-10-06 16:54:31 -0500366GPIO_CONFIG['SLOT0_RISER_PRESENT'] = { 'gpio_num': 104, 'direction': 'in' }
367GPIO_CONFIG['SLOT1_RISER_PRESENT'] = { 'gpio_num': 105, 'direction': 'in' }
368GPIO_CONFIG['SLOT2_RISER_PRESENT'] = { 'gpio_num': 106, 'direction': 'in' }
Norman Jamesa42446a2015-10-19 11:12:45 -0500369GPIO_CONFIG['SLOT0_PRESENT'] = { 'gpio_num': 470, 'direction': 'in' }
370GPIO_CONFIG['SLOT1_PRESENT'] = { 'gpio_num': 471, 'direction': 'in' }
Norman Jamesc9239a32015-10-06 16:54:31 -0500371GPIO_CONFIG['SLOT2_PRESENT'] = { 'gpio_num': 109, 'direction': 'in' }
372GPIO_CONFIG['MEZZ0_PRESENT'] = { 'gpio_num': 112, 'direction': 'in' }
373GPIO_CONFIG['MEZZ1_PRESENT'] = { 'gpio_num': 113, 'direction': 'in' }
374
375