blob: d2abde5fa0d896bec059917465d24dee72107884 [file] [log] [blame]
Norman Jamesce46e3e2015-08-30 22:25:55 -05001#! /usr/bin/python
Norman James9e6acf92015-09-08 07:00:04 -05002
Norman Jamesce46e3e2015-08-30 22:25:55 -05003import dbus
4import Openbmc
5
Norman James88872672015-09-21 16:51:35 -05006HOME_PATH = './'
Norman James65a295a2015-09-26 22:21:10 -05007BIN_PATH = HOME_PATH+'bin/'
Norman James5d78b4d2015-09-05 13:34:34 -05008CACHE_PATH = HOME_PATH+'cache/'
Norman James362a80f2015-09-14 14:04:39 -05009FRU_PATH = CACHE_PATH+'frus/'
Norman James5d78b4d2015-09-05 13:34:34 -050010
Norman James362a80f2015-09-14 14:04:39 -050011SYSTEM_STATES = [
12 'INIT',
13 'STANDBY',
14 'POWERING_ON',
15 'POWERED_ON',
16 'BOOTING',
17 'HOST_UP',
18 'SHUTTING_DOWN',
19 'POWERING_DOWN'
20]
21
22ENTER_STATE_CALLBACK = {
23 'POWERED_ON' : {
24 'bus_name' : 'org.openbmc.control.Host',
25 'obj_name' : '/org/openbmc/control/Host_0',
26 'interface_name' : 'org.openbmc.control.Host',
27 'method_name' : 'boot'
28 }
Norman James90baede2015-09-02 20:32:49 -050029}
30
Norman Jamesce46e3e2015-08-30 22:25:55 -050031SYSTEM_CONFIG = {}
32
Norman James362a80f2015-09-14 14:04:39 -050033SYSTEM_CONFIG['org.openbmc.control.Bmc'] = {
34 'system_state' : 'INIT',
Norman James9e6acf92015-09-08 07:00:04 -050035 'start_process' : True,
Norman James6f8d0422015-09-14 18:48:00 -050036 'monitor_process' : True,
Norman James362a80f2015-09-14 14:04:39 -050037 'process_name' : 'control_bmc.exe',
Norman James9e6acf92015-09-08 07:00:04 -050038 'heartbeat' : 'no',
Norman Jamesdfdaca92015-09-27 22:11:15 -050039 'instances' : [ { 'name' : 'Bmc_0' } ]
Norman James9e6acf92015-09-08 07:00:04 -050040 }
41
Norman James65a295a2015-09-26 22:21:10 -050042SYSTEM_CONFIG['org.openbmc.managers.Inventory'] = {
Norman James362a80f2015-09-14 14:04:39 -050043 'system_state' : 'STANDBY',
44 'start_process' : True,
Norman James6f8d0422015-09-14 18:48:00 -050045 'monitor_process' : True,
Norman James19e45912015-10-04 20:19:41 -050046 'process_name' : 'inventory_items.py',
Norman James362a80f2015-09-14 14:04:39 -050047 'heartbeat' : 'no',
Norman Jamesdfdaca92015-09-27 22:11:15 -050048 'instances' : [ { 'name' : 'Barreleye' } ]
Norman James362a80f2015-09-14 14:04:39 -050049 }
Norman James19e45912015-10-04 20:19:41 -050050SYSTEM_CONFIG['org.openbmc.control.PciePresent'] = {
51 'system_state' : 'POWERING_ON',
52 'start_process' : True,
53 'monitor_process' : False,
54 'process_name' : 'pcie_slot_present.exe',
55 'heartbeat' : 'no',
56 'instances' : [ { 'name' : 'Slots_0' } ]
57 }
Norman James362a80f2015-09-14 14:04:39 -050058
59
Norman James90baede2015-09-02 20:32:49 -050060SYSTEM_CONFIG['org.openbmc.managers.Sensors'] = {
Norman James362a80f2015-09-14 14:04:39 -050061 'system_state' : 'STANDBY',
Norman James5d78b4d2015-09-05 13:34:34 -050062 'start_process' : True,
Norman James6f8d0422015-09-14 18:48:00 -050063 'monitor_process' : True,
Norman James5d78b4d2015-09-05 13:34:34 -050064 'process_name' : 'sensor_manager.py',
Norman James90baede2015-09-02 20:32:49 -050065 'heartbeat' : 'no',
Norman Jamesdfdaca92015-09-27 22:11:15 -050066 'instances' : [ { 'name' : 'Barreleye' } ]
Norman Jamesce46e3e2015-08-30 22:25:55 -050067 }
68
Norman James362a80f2015-09-14 14:04:39 -050069SYSTEM_CONFIG['org.openbmc.watchdog.Host'] = {
70 'system_state' : 'STANDBY',
Norman James5d78b4d2015-09-05 13:34:34 -050071 'start_process' : True,
Norman James6f8d0422015-09-14 18:48:00 -050072 'monitor_process' : True,
Norman James362a80f2015-09-14 14:04:39 -050073 'process_name' : 'host_watchdog.exe',
Norman James90baede2015-09-02 20:32:49 -050074 'heartbeat' : 'no',
75 'instances' : [
76 {
Norman James362a80f2015-09-14 14:04:39 -050077 'name' : 'HostWatchdog_0',
Norman James362a80f2015-09-14 14:04:39 -050078 'properties' : {
79 'org.openbmc.Watchdog' : {
80 'poll_interval': 3000,
81 }
82 }
Norman James90baede2015-09-02 20:32:49 -050083 }
84 ]
85 }
86
Norman Jamesce46e3e2015-08-30 22:25:55 -050087SYSTEM_CONFIG['org.openbmc.control.Power'] = {
Norman James362a80f2015-09-14 14:04:39 -050088 'system_state' : 'STANDBY',
Norman James5d78b4d2015-09-05 13:34:34 -050089 'start_process' : True,
Norman James6f8d0422015-09-14 18:48:00 -050090 'monitor_process' : True,
Norman James5d78b4d2015-09-05 13:34:34 -050091 'process_name' : 'power_control.exe',
Norman Jamesce46e3e2015-08-30 22:25:55 -050092 'heartbeat' : 'yes',
93 'instances' : [
94 {
Norman James362a80f2015-09-14 14:04:39 -050095 'name' : 'SystemPower_0',
Norman Jamesce46e3e2015-08-30 22:25:55 -050096 'user_label': 'Power control',
Norman James9e6acf92015-09-08 07:00:04 -050097 'properties' : {
98 'org.openbmc.Control': {
99 'poll_interval' : 3000
Norman James32e74e22015-09-15 21:28:06 -0500100 },
101 'org.openbmc.control.Power': {
Norman James88872672015-09-21 16:51:35 -0500102 'pgood_timeout' : 10
Norman James9e6acf92015-09-08 07:00:04 -0500103 }
104 }
Norman Jamesce46e3e2015-08-30 22:25:55 -0500105 }
106 ]
107 }
108
109SYSTEM_CONFIG['org.openbmc.sensors.Temperature.Ambient'] = {
Norman James362a80f2015-09-14 14:04:39 -0500110 'system_state' : 'STANDBY',
Norman James5d78b4d2015-09-05 13:34:34 -0500111 'start_process' : True,
Norman James6f8d0422015-09-14 18:48:00 -0500112 'monitor_process' : True,
Norman James5d78b4d2015-09-05 13:34:34 -0500113 'process_name' : 'sensor_ambient.exe',
Norman Jamesce46e3e2015-08-30 22:25:55 -0500114 'heartbeat' : 'yes',
115 'instances' : [
116 {
Norman James362a80f2015-09-14 14:04:39 -0500117 'name' : 'FrontChassis',
Norman Jamesce46e3e2015-08-30 22:25:55 -0500118 'user_label': 'Ambient Temperature 1',
Norman Jamesce46e3e2015-08-30 22:25:55 -0500119 'properties' : {
Norman James9e6acf92015-09-08 07:00:04 -0500120 'org.openbmc.SensorValue': {
Norman James362a80f2015-09-14 14:04:39 -0500121 'poll_interval' : 5000,
Norman James9e6acf92015-09-08 07:00:04 -0500122 },
Norman James5d78b4d2015-09-05 13:34:34 -0500123 'org.openbmc.SensorThreshold' : {
Norman Jamesce46e3e2015-08-30 22:25:55 -0500124 'lower_critical': 5,
125 'lower_warning' : 10,
126 'upper_warning' : 15,
127 'upper_critical': 20
Norman James90baede2015-09-02 20:32:49 -0500128 },
129 'org.openbmc.SensorI2c' : {
130 'dev_path' : '/dev/i2c/i2c0',
131 'address' : '0xA0'
Norman Jamesce46e3e2015-08-30 22:25:55 -0500132 }
133 }
134 },
Norman Jamesce46e3e2015-08-30 22:25:55 -0500135 ]
136 }
Norman James362a80f2015-09-14 14:04:39 -0500137SYSTEM_CONFIG['org.openbmc.buttons.Power'] = {
138 'system_state' : 'STANDBY',
Norman James5d78b4d2015-09-05 13:34:34 -0500139 'start_process' : True,
Norman James6f8d0422015-09-14 18:48:00 -0500140 'monitor_process' : True,
Norman James5d78b4d2015-09-05 13:34:34 -0500141 'process_name' : 'button_power.exe',
Norman Jamesce46e3e2015-08-30 22:25:55 -0500142 'heartbeat' : 'no',
Norman Jamesdfdaca92015-09-27 22:11:15 -0500143 'instances' : [ { 'name' : 'PowerButton_0' } ]
Norman Jamesce46e3e2015-08-30 22:25:55 -0500144 }
145SYSTEM_CONFIG['org.openbmc.sensors.HostStatus'] = {
Norman James362a80f2015-09-14 14:04:39 -0500146 'system_state' : 'STANDBY',
Norman James5d78b4d2015-09-05 13:34:34 -0500147 'start_process' : True,
Norman James6f8d0422015-09-14 18:48:00 -0500148 'monitor_process' : True,
Norman James5d78b4d2015-09-05 13:34:34 -0500149 'process_name' : 'sensor_host_status.exe',
Norman Jamesce46e3e2015-08-30 22:25:55 -0500150 'heartbeat' : "no",
Norman James19e45912015-10-04 20:19:41 -0500151 'instances' : [ { 'name' : 'HostStatus_0' } ]
Norman Jamesce46e3e2015-08-30 22:25:55 -0500152 }
153SYSTEM_CONFIG['org.openbmc.leds.ChassisIdentify'] = {
Norman James362a80f2015-09-14 14:04:39 -0500154 'system_state' : 'STANDBY',
Norman James5d78b4d2015-09-05 13:34:34 -0500155 'start_process' : True,
Norman James6f8d0422015-09-14 18:48:00 -0500156 'monitor_process' : True,
Norman James5d78b4d2015-09-05 13:34:34 -0500157 'process_name' : 'chassis_identify.exe',
Norman Jamesce46e3e2015-08-30 22:25:55 -0500158 'heartbeat' : 'no',
Norman Jamesdfdaca92015-09-27 22:11:15 -0500159 'instances' : [ { 'name' : 'ChassisIdentify_0' } ]
Norman Jamesce46e3e2015-08-30 22:25:55 -0500160 }
Norman James8c6d8382015-10-06 07:47:16 -0500161SYSTEM_CONFIG['org.openbmc.flash.Bios'] = {
Norman James362a80f2015-09-14 14:04:39 -0500162 'system_state' : 'STANDBY',
Norman James88872672015-09-21 16:51:35 -0500163 'start_process' : False,
Norman James6f8d0422015-09-14 18:48:00 -0500164 'monitor_process' : True,
Norman James5d78b4d2015-09-05 13:34:34 -0500165 'process_name' : 'flash_bios.exe',
Norman Jamesce46e3e2015-08-30 22:25:55 -0500166 'heartbeat' : 'no',
Norman Jamesdfdaca92015-09-27 22:11:15 -0500167 'instances' : [ { 'name' : 'BIOS_0' } ]
Norman Jamesce46e3e2015-08-30 22:25:55 -0500168 }
Norman James8c6d8382015-10-06 07:47:16 -0500169
170SYSTEM_CONFIG['org.openbmc.manager.Flash'] = {
171 'system_state' : 'STANDBY',
172 'start_process' : True,
173 'monitor_process' : True,
174 'process_name' : 'flash_manager.py',
175 'heartbeat' : 'no',
176 'instances' : [ { 'name' : 'FlashManager_0' } ]
177 }
178
Norman Jamesce46e3e2015-08-30 22:25:55 -0500179SYSTEM_CONFIG['org.openbmc.control.Host'] = {
Norman James362a80f2015-09-14 14:04:39 -0500180 'system_state' : 'STANDBY',
Norman James5d78b4d2015-09-05 13:34:34 -0500181 'start_process' : True,
Norman James6f8d0422015-09-14 18:48:00 -0500182 'monitor_process' : True,
Norman James5d78b4d2015-09-05 13:34:34 -0500183 'process_name' : 'control_host.exe',
Norman Jamesce46e3e2015-08-30 22:25:55 -0500184 'heartbeat' : 'no',
Norman Jamesdfdaca92015-09-27 22:11:15 -0500185 'instances' : [ { 'name' : 'Host_0' } ]
Norman Jamesce46e3e2015-08-30 22:25:55 -0500186 }
187SYSTEM_CONFIG['org.openbmc.control.Chassis'] = {
Norman James362a80f2015-09-14 14:04:39 -0500188 'system_state' : 'STANDBY',
Norman James5d78b4d2015-09-05 13:34:34 -0500189 'start_process' : True,
Norman James6f8d0422015-09-14 18:48:00 -0500190 'monitor_process' : True,
Norman James5d78b4d2015-09-05 13:34:34 -0500191 'process_name' : 'chassis_control.py',
Norman Jamesce46e3e2015-08-30 22:25:55 -0500192 'heartbeat' : 'no',
Norman Jamesdfdaca92015-09-27 22:11:15 -0500193 'instances' : [ { 'name' : 'Chassis' } ]
Norman Jamesce46e3e2015-08-30 22:25:55 -0500194 }
Norman James362a80f2015-09-14 14:04:39 -0500195
Norman James6f8d0422015-09-14 18:48:00 -0500196SYSTEM_CONFIG['org.openbmc.vpd'] = {
Norman James1a93d082015-10-06 11:24:34 -0500197 'system_state' : 'POWERING_ON',
Norman James362a80f2015-09-14 14:04:39 -0500198 'start_process' : True,
Norman James6f8d0422015-09-14 18:48:00 -0500199 'monitor_process' : False,
200 'process_name' : 'board_vpd.exe',
201 'heartbeat' : 'no',
Norman Jamesdfdaca92015-09-27 22:11:15 -0500202 'instances' : [ { 'name' : 'MBVPD_0' } ]
Norman James6f8d0422015-09-14 18:48:00 -0500203 }
204
205SYSTEM_CONFIG['org.openbmc.sensors.Occ'] = {
Norman James2d1ee892015-09-16 23:13:45 -0500206 'system_state' : 'BOOTED',
Norman James6f8d0422015-09-14 18:48:00 -0500207 'start_process' : True,
208 'monitor_process' : True,
Norman James362a80f2015-09-14 14:04:39 -0500209 'process_name' : 'sensor_occ.exe',
210 'heartbeat' : 'no',
211 'instances' : [
212 {
213 'name' : 'Occ_0',
Norman James362a80f2015-09-14 14:04:39 -0500214 'properties' : {
215 'org.openbmc.Occ' : {
216 'poll_interval' : 3000,
217 }
218 }
219 },
220
221 ]
222 }
223
224SYSTEM_CONFIG['org.openbmc.sensors.Fan'] = {
225 'system_state' : 'STANDBY',
Norman James5d78b4d2015-09-05 13:34:34 -0500226 'start_process' : True,
Norman James6f8d0422015-09-14 18:48:00 -0500227 'monitor_process' : True,
Norman James5d78b4d2015-09-05 13:34:34 -0500228 'process_name' : 'fan.exe',
Norman Jamesce46e3e2015-08-30 22:25:55 -0500229 'heartbeat' : 'no',
Norman Jamesdfdaca92015-09-27 22:11:15 -0500230 'instances' : [ {'name' : 'Fan_0' }, {'name' : 'Fan_1'}, {'name' : 'Fan_2'} ]
Norman Jamesce46e3e2015-08-30 22:25:55 -0500231 }
232
Norman James362a80f2015-09-14 14:04:39 -0500233NON_CACHABLE_PROPERTIES = {
234 'name' : True,
235 'user_label' : True,
236 'location' : True,
Norman James19e45912015-10-04 20:19:41 -0500237 'state' : True,
Norman James362a80f2015-09-14 14:04:39 -0500238 'cache' : True
239}
Norman James19e45912015-10-04 20:19:41 -0500240INVENTORY_ROOT = '/org/openbmc/inventory/items'
Norman James362a80f2015-09-14 14:04:39 -0500241
Norman James88872672015-09-21 16:51:35 -0500242FRU_INSTANCES = {
Norman James19e45912015-10-04 20:19:41 -0500243 '<inventory_root>/system' :
Norman James88872672015-09-21 16:51:35 -0500244 {
Norman James19e45912015-10-04 20:19:41 -0500245 'fru_type' : Openbmc.FRU_TYPES['SYSTEM'],
246 'is_fru' : True,
Norman James88872672015-09-21 16:51:35 -0500247 },
Norman James19e45912015-10-04 20:19:41 -0500248 '<inventory_root>/system/io_board' :
Norman James88872672015-09-21 16:51:35 -0500249 {
Norman James19e45912015-10-04 20:19:41 -0500250 'fru_type' : Openbmc.FRU_TYPES['MAIN_PLANAR'],
Norman James88872672015-09-21 16:51:35 -0500251 'manufacturer' : 'FOXCONN',
Norman James19e45912015-10-04 20:19:41 -0500252 'is_fru' : True,
253 'location' : 'C1',
Norman James88872672015-09-21 16:51:35 -0500254 },
Norman James19e45912015-10-04 20:19:41 -0500255
256 '<inventory_root>/system/motherboard' :
Norman James88872672015-09-21 16:51:35 -0500257 {
Norman James19e45912015-10-04 20:19:41 -0500258 'fru_type' : Openbmc.FRU_TYPES['MAIN_PLANAR'],
259 'manufacturer' : 'FOXCONN',
260 'is_fru' : True,
261 'location' : 'C0',
262 },
263 '<inventory_root>/system/fan0' :
264 {
265 'fru_type' : Openbmc.FRU_TYPES['FAN'],
Norman James88872672015-09-21 16:51:35 -0500266 'manufacturer' : 'DELTA',
Norman James19e45912015-10-04 20:19:41 -0500267 'is_fru' : True,
268 'location' : 'F0',
Norman James88872672015-09-21 16:51:35 -0500269 },
Norman James19e45912015-10-04 20:19:41 -0500270 '<inventory_root>/system/fan1' :
Norman James88872672015-09-21 16:51:35 -0500271 {
Norman James19e45912015-10-04 20:19:41 -0500272 'fru_type' : Openbmc.FRU_TYPES['FAN'],
Norman James88872672015-09-21 16:51:35 -0500273 'manufacturer' : 'DELTA',
Norman James19e45912015-10-04 20:19:41 -0500274 'is_fru' : True,
275 'location' : 'F1',
Norman James88872672015-09-21 16:51:35 -0500276 },
Norman James19e45912015-10-04 20:19:41 -0500277 '<inventory_root>/system/io_board/bmc' :
Norman James88872672015-09-21 16:51:35 -0500278 {
Norman James19e45912015-10-04 20:19:41 -0500279 'fru_type' : Openbmc.FRU_TYPES['BMC'],
Norman James88872672015-09-21 16:51:35 -0500280 'manufacturer' : 'ASPEED',
Norman James19e45912015-10-04 20:19:41 -0500281 'is_fru' : False,
Norman James88872672015-09-21 16:51:35 -0500282 },
Norman James19e45912015-10-04 20:19:41 -0500283 '<inventory_root>/system/motherboard/cpu0' :
Norman James88872672015-09-21 16:51:35 -0500284 {
Norman James19e45912015-10-04 20:19:41 -0500285 'fru_type' : Openbmc.FRU_TYPES['CPU'],
Norman James88872672015-09-21 16:51:35 -0500286 'manufacturer' : 'IBM',
Norman James19e45912015-10-04 20:19:41 -0500287 'is_fru' : True,
288 'location' : 'P0',
Norman James88872672015-09-21 16:51:35 -0500289 },
Norman James19e45912015-10-04 20:19:41 -0500290 '<inventory_root>/system/motherboard/cpu0/core0' :
Norman James88872672015-09-21 16:51:35 -0500291 {
Norman James19e45912015-10-04 20:19:41 -0500292 'fru_type' : Openbmc.FRU_TYPES['CORE'],
293 'is_fru' : False,
Norman James88872672015-09-21 16:51:35 -0500294 },
Norman James19e45912015-10-04 20:19:41 -0500295 '<inventory_root>/system/motherboard/cpu0/core1' :
Norman James88872672015-09-21 16:51:35 -0500296 {
Norman James19e45912015-10-04 20:19:41 -0500297 'fru_type' : Openbmc.FRU_TYPES['CORE'],
298 'is_fru' : False,
Norman James88872672015-09-21 16:51:35 -0500299 },
Norman James19e45912015-10-04 20:19:41 -0500300 '<inventory_root>/system/motherboard/dimm0' :
Norman James88872672015-09-21 16:51:35 -0500301 {
Norman James19e45912015-10-04 20:19:41 -0500302 'fru_type' : Openbmc.FRU_TYPES['DIMM'],
303 'is_fru' : True,
Norman James88872672015-09-21 16:51:35 -0500304 },
Norman James19e45912015-10-04 20:19:41 -0500305 '<inventory_root>/system/motherboard/dimm1' :
Norman James88872672015-09-21 16:51:35 -0500306 {
Norman James19e45912015-10-04 20:19:41 -0500307 'fru_type' : Openbmc.FRU_TYPES['DIMM'],
308 'is_fru' : True,
Norman James88872672015-09-21 16:51:35 -0500309 },
Norman James19e45912015-10-04 20:19:41 -0500310 '<inventory_root>/system/io_board/pcie_left_slot_riser' :
311 {
312 'fru_type' : Openbmc.FRU_TYPES['RISER_CARD'],
313 'user_label' : 'Left Slot Riser',
314 'is_fru' : True,
315 },
316 '<inventory_root>/system/io_board/pcie_right_slot_riser' :
317 {
318 'fru_type' : Openbmc.FRU_TYPES['RISER_CARD'],
319 'user_label' : 'Right Slot Riser',
320 'is_fru' : True,
321 },
322 '<inventory_root>/system/io_board/pcie_x16_slot_riser' :
323 {
324 'fru_type' : Openbmc.FRU_TYPES['RISER_CARD'],
325 'user_label' : 'PCIE x16 Slot Riser',
326 'is_fru' : True,
327 },
328 '<inventory_root>/system/io_board/pcie_slot0' :
329 {
330 'fru_type' : Openbmc.FRU_TYPES['PCIE_CARD'],
331 'user_label' : 'OCP Mezz card 0',
332 'is_fru' : True,
333 },
334 '<inventory_root>/system/io_board/pcie_slot1' :
335 {
336 'fru_type' : Openbmc.FRU_TYPES['PCIE_CARD'],
337 'user_label' : 'OCP Mezz card 1',
338 'is_fru' : True,
339 },
340 '<inventory_root>/system/io_board/pcie_slot2' :
341 {
342 'fru_type' : Openbmc.FRU_TYPES['PCIE_CARD'],
343 'user_label' : 'OCP Mezz card 2',
344 'is_fru' : True,
345 },
346 '<inventory_root>/system/io_board/pcie_mezz0' :
347 {
348 'fru_type' : Openbmc.FRU_TYPES['PCIE_CARD'],
349 'user_label' : 'OCP Mezz card 0',
350 'is_fru' : True,
351 },
352 '<inventory_root>/system/io_board/pcie_mezz1' :
353 {
354 'fru_type' : Openbmc.FRU_TYPES['PCIE_CARD'],
355 'user_label' : 'OCP Mezz card 1',
356 'is_fru' : True,
357 },
358
Norman James88872672015-09-21 16:51:35 -0500359}
Norman James362a80f2015-09-14 14:04:39 -0500360
Norman James19e45912015-10-04 20:19:41 -0500361ID_LOOKUP = {
362 'FRU' : {
363 '14' : '<inventory_root>/system/motherboard/dimm0',
364 },
365 'SENSOR' : {
366 '21' : '<inventory_root>/system/motherboard/dimm0',
367 '14' : '/org/openbmc/sensors/HostStatus_0',
368 },
369 'GPIO_PRESENT' : {
370 'SLOT0_RISER_PRESENT' : '<inventory_root>/system/io_board/pcie_left_slot_riser',
371 'SLOT1_RISER_PRESENT' : '<inventory_root>/system/io_board/pcie_right_slot_riser',
372 'SLOT2_RISER_PRESENT' : '<inventory_root>/system/io_board/pcie_x16_slot_riser',
373 'SLOT0_PRESENT' : '<inventory_root>/system/io_board/pcie_slot0',
374 'SLOT1_PRESENT' : '<inventory_root>/system/io_board/pcie_slot1',
375 'SLOT2_PRESENT' : '<inventory_root>/system/io_board/pcie_slot2',
376 'MEZZ0_PRESENT' : '<inventory_root>/system/io_board/pcie_mezz0',
377 'MEZZ1_PRESENT' : '<inventory_root>/system/io_board/pcie_mezz1',
378 }
379}
Norman James362a80f2015-09-14 14:04:39 -0500380
Norman Jamesce46e3e2015-08-30 22:25:55 -0500381GPIO_CONFIG = {}
Norman James362a80f2015-09-14 14:04:39 -0500382GPIO_CONFIG['FSI_CLK'] = { 'gpio_num': 4, 'direction': 'out' }
383GPIO_CONFIG['FSI_DATA'] = { 'gpio_num': 5, 'direction': 'out' }
384GPIO_CONFIG['FSI_ENABLE'] = { 'gpio_num': 24, 'direction': 'out' }
385GPIO_CONFIG['POWER_PIN'] = { 'gpio_num': 33, 'direction': 'out' }
386GPIO_CONFIG['CRONUS_SEL'] = { 'gpio_num': 6, 'direction': 'out' }
387GPIO_CONFIG['PGOOD'] = { 'gpio_num': 23, 'direction': 'in' }
388GPIO_CONFIG['IDENTIFY'] = { 'gpio_num': 34, 'direction': 'out' }
Norman James19e45912015-10-04 20:19:41 -0500389GPIO_CONFIG['POWER_BUTTON'] = { 'gpio_num': 32, 'direction': 'in' }
390GPIO_CONFIG['SLOT0_RISER_PRESENT'] = { 'gpio_num': 104, 'direction': 'in' }
391GPIO_CONFIG['SLOT1_RISER_PRESENT'] = { 'gpio_num': 105, 'direction': 'in' }
392GPIO_CONFIG['SLOT2_RISER_PRESENT'] = { 'gpio_num': 106, 'direction': 'in' }
393GPIO_CONFIG['SLOT0_PRESENT'] = { 'gpio_num': 107, 'direction': 'in' }
394GPIO_CONFIG['SLOT1_PRESENT'] = { 'gpio_num': 108, 'direction': 'in' }
395GPIO_CONFIG['SLOT2_PRESENT'] = { 'gpio_num': 109, 'direction': 'in' }
396GPIO_CONFIG['MEZZ0_PRESENT'] = { 'gpio_num': 112, 'direction': 'in' }
397GPIO_CONFIG['MEZZ1_PRESENT'] = { 'gpio_num': 113, 'direction': 'in' }
398
Norman Jamesce46e3e2015-08-30 22:25:55 -0500399