blob: 6fb8fb3d81d748f1851ee70b1ba03bdb74d47749 [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 }
161SYSTEM_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 }
169SYSTEM_CONFIG['org.openbmc.control.Host'] = {
Norman James362a80f2015-09-14 14:04:39 -0500170 'system_state' : 'STANDBY',
Norman James5d78b4d2015-09-05 13:34:34 -0500171 'start_process' : True,
Norman James6f8d0422015-09-14 18:48:00 -0500172 'monitor_process' : True,
Norman James5d78b4d2015-09-05 13:34:34 -0500173 'process_name' : 'control_host.exe',
Norman Jamesce46e3e2015-08-30 22:25:55 -0500174 'heartbeat' : 'no',
Norman Jamesdfdaca92015-09-27 22:11:15 -0500175 'instances' : [ { 'name' : 'Host_0' } ]
Norman Jamesce46e3e2015-08-30 22:25:55 -0500176 }
177SYSTEM_CONFIG['org.openbmc.control.Chassis'] = {
Norman James362a80f2015-09-14 14:04:39 -0500178 'system_state' : 'STANDBY',
Norman James5d78b4d2015-09-05 13:34:34 -0500179 'start_process' : True,
Norman James6f8d0422015-09-14 18:48:00 -0500180 'monitor_process' : True,
Norman James5d78b4d2015-09-05 13:34:34 -0500181 'process_name' : 'chassis_control.py',
Norman Jamesce46e3e2015-08-30 22:25:55 -0500182 'heartbeat' : 'no',
Norman Jamesdfdaca92015-09-27 22:11:15 -0500183 'instances' : [ { 'name' : 'Chassis' } ]
Norman Jamesce46e3e2015-08-30 22:25:55 -0500184 }
Norman James362a80f2015-09-14 14:04:39 -0500185
Norman James6f8d0422015-09-14 18:48:00 -0500186SYSTEM_CONFIG['org.openbmc.vpd'] = {
Norman James362a80f2015-09-14 14:04:39 -0500187 'system_state' : 'POWERED_ON',
188 'start_process' : True,
Norman James6f8d0422015-09-14 18:48:00 -0500189 'monitor_process' : False,
190 'process_name' : 'board_vpd.exe',
191 'heartbeat' : 'no',
Norman Jamesdfdaca92015-09-27 22:11:15 -0500192 'instances' : [ { 'name' : 'MBVPD_0' } ]
Norman James6f8d0422015-09-14 18:48:00 -0500193 }
194
195SYSTEM_CONFIG['org.openbmc.sensors.Occ'] = {
Norman James2d1ee892015-09-16 23:13:45 -0500196 'system_state' : 'BOOTED',
Norman James6f8d0422015-09-14 18:48:00 -0500197 'start_process' : True,
198 'monitor_process' : True,
Norman James362a80f2015-09-14 14:04:39 -0500199 'process_name' : 'sensor_occ.exe',
200 'heartbeat' : 'no',
201 'instances' : [
202 {
203 'name' : 'Occ_0',
Norman James362a80f2015-09-14 14:04:39 -0500204 'properties' : {
205 'org.openbmc.Occ' : {
206 'poll_interval' : 3000,
207 }
208 }
209 },
210
211 ]
212 }
213
214SYSTEM_CONFIG['org.openbmc.sensors.Fan'] = {
215 'system_state' : 'STANDBY',
Norman James5d78b4d2015-09-05 13:34:34 -0500216 'start_process' : True,
Norman James6f8d0422015-09-14 18:48:00 -0500217 'monitor_process' : True,
Norman James5d78b4d2015-09-05 13:34:34 -0500218 'process_name' : 'fan.exe',
Norman Jamesce46e3e2015-08-30 22:25:55 -0500219 'heartbeat' : 'no',
Norman Jamesdfdaca92015-09-27 22:11:15 -0500220 'instances' : [ {'name' : 'Fan_0' }, {'name' : 'Fan_1'}, {'name' : 'Fan_2'} ]
Norman Jamesce46e3e2015-08-30 22:25:55 -0500221 }
222
Norman James362a80f2015-09-14 14:04:39 -0500223NON_CACHABLE_PROPERTIES = {
224 'name' : True,
225 'user_label' : True,
226 'location' : True,
Norman James19e45912015-10-04 20:19:41 -0500227 'state' : True,
Norman James362a80f2015-09-14 14:04:39 -0500228 'cache' : True
229}
Norman James19e45912015-10-04 20:19:41 -0500230INVENTORY_ROOT = '/org/openbmc/inventory/items'
Norman James362a80f2015-09-14 14:04:39 -0500231
Norman James88872672015-09-21 16:51:35 -0500232FRU_INSTANCES = {
Norman James19e45912015-10-04 20:19:41 -0500233 '<inventory_root>/system' :
Norman James88872672015-09-21 16:51:35 -0500234 {
Norman James19e45912015-10-04 20:19:41 -0500235 'fru_type' : Openbmc.FRU_TYPES['SYSTEM'],
236 'is_fru' : True,
Norman James88872672015-09-21 16:51:35 -0500237 },
Norman James19e45912015-10-04 20:19:41 -0500238 '<inventory_root>/system/io_board' :
Norman James88872672015-09-21 16:51:35 -0500239 {
Norman James19e45912015-10-04 20:19:41 -0500240 'fru_type' : Openbmc.FRU_TYPES['MAIN_PLANAR'],
Norman James88872672015-09-21 16:51:35 -0500241 'manufacturer' : 'FOXCONN',
Norman James19e45912015-10-04 20:19:41 -0500242 'is_fru' : True,
243 'location' : 'C1',
Norman James88872672015-09-21 16:51:35 -0500244 },
Norman James19e45912015-10-04 20:19:41 -0500245
246 '<inventory_root>/system/motherboard' :
Norman James88872672015-09-21 16:51:35 -0500247 {
Norman James19e45912015-10-04 20:19:41 -0500248 'fru_type' : Openbmc.FRU_TYPES['MAIN_PLANAR'],
249 'manufacturer' : 'FOXCONN',
250 'is_fru' : True,
251 'location' : 'C0',
252 },
253 '<inventory_root>/system/fan0' :
254 {
255 'fru_type' : Openbmc.FRU_TYPES['FAN'],
Norman James88872672015-09-21 16:51:35 -0500256 'manufacturer' : 'DELTA',
Norman James19e45912015-10-04 20:19:41 -0500257 'is_fru' : True,
258 'location' : 'F0',
Norman James88872672015-09-21 16:51:35 -0500259 },
Norman James19e45912015-10-04 20:19:41 -0500260 '<inventory_root>/system/fan1' :
Norman James88872672015-09-21 16:51:35 -0500261 {
Norman James19e45912015-10-04 20:19:41 -0500262 'fru_type' : Openbmc.FRU_TYPES['FAN'],
Norman James88872672015-09-21 16:51:35 -0500263 'manufacturer' : 'DELTA',
Norman James19e45912015-10-04 20:19:41 -0500264 'is_fru' : True,
265 'location' : 'F1',
Norman James88872672015-09-21 16:51:35 -0500266 },
Norman James19e45912015-10-04 20:19:41 -0500267 '<inventory_root>/system/io_board/bmc' :
Norman James88872672015-09-21 16:51:35 -0500268 {
Norman James19e45912015-10-04 20:19:41 -0500269 'fru_type' : Openbmc.FRU_TYPES['BMC'],
Norman James88872672015-09-21 16:51:35 -0500270 'manufacturer' : 'ASPEED',
Norman James19e45912015-10-04 20:19:41 -0500271 'is_fru' : False,
Norman James88872672015-09-21 16:51:35 -0500272 },
Norman James19e45912015-10-04 20:19:41 -0500273 '<inventory_root>/system/motherboard/cpu0' :
Norman James88872672015-09-21 16:51:35 -0500274 {
Norman James19e45912015-10-04 20:19:41 -0500275 'fru_type' : Openbmc.FRU_TYPES['CPU'],
Norman James88872672015-09-21 16:51:35 -0500276 'manufacturer' : 'IBM',
Norman James19e45912015-10-04 20:19:41 -0500277 'is_fru' : True,
278 'location' : 'P0',
Norman James88872672015-09-21 16:51:35 -0500279 },
Norman James19e45912015-10-04 20:19:41 -0500280 '<inventory_root>/system/motherboard/cpu0/core0' :
Norman James88872672015-09-21 16:51:35 -0500281 {
Norman James19e45912015-10-04 20:19:41 -0500282 'fru_type' : Openbmc.FRU_TYPES['CORE'],
283 'is_fru' : False,
Norman James88872672015-09-21 16:51:35 -0500284 },
Norman James19e45912015-10-04 20:19:41 -0500285 '<inventory_root>/system/motherboard/cpu0/core1' :
Norman James88872672015-09-21 16:51:35 -0500286 {
Norman James19e45912015-10-04 20:19:41 -0500287 'fru_type' : Openbmc.FRU_TYPES['CORE'],
288 'is_fru' : False,
Norman James88872672015-09-21 16:51:35 -0500289 },
Norman James19e45912015-10-04 20:19:41 -0500290 '<inventory_root>/system/motherboard/dimm0' :
Norman James88872672015-09-21 16:51:35 -0500291 {
Norman James19e45912015-10-04 20:19:41 -0500292 'fru_type' : Openbmc.FRU_TYPES['DIMM'],
293 'is_fru' : True,
Norman James88872672015-09-21 16:51:35 -0500294 },
Norman James19e45912015-10-04 20:19:41 -0500295 '<inventory_root>/system/motherboard/dimm1' :
Norman James88872672015-09-21 16:51:35 -0500296 {
Norman James19e45912015-10-04 20:19:41 -0500297 'fru_type' : Openbmc.FRU_TYPES['DIMM'],
298 'is_fru' : True,
Norman James88872672015-09-21 16:51:35 -0500299 },
Norman James19e45912015-10-04 20:19:41 -0500300 '<inventory_root>/system/io_board/pcie_left_slot_riser' :
301 {
302 'fru_type' : Openbmc.FRU_TYPES['RISER_CARD'],
303 'user_label' : 'Left Slot Riser',
304 'is_fru' : True,
305 },
306 '<inventory_root>/system/io_board/pcie_right_slot_riser' :
307 {
308 'fru_type' : Openbmc.FRU_TYPES['RISER_CARD'],
309 'user_label' : 'Right Slot Riser',
310 'is_fru' : True,
311 },
312 '<inventory_root>/system/io_board/pcie_x16_slot_riser' :
313 {
314 'fru_type' : Openbmc.FRU_TYPES['RISER_CARD'],
315 'user_label' : 'PCIE x16 Slot Riser',
316 'is_fru' : True,
317 },
318 '<inventory_root>/system/io_board/pcie_slot0' :
319 {
320 'fru_type' : Openbmc.FRU_TYPES['PCIE_CARD'],
321 'user_label' : 'OCP Mezz card 0',
322 'is_fru' : True,
323 },
324 '<inventory_root>/system/io_board/pcie_slot1' :
325 {
326 'fru_type' : Openbmc.FRU_TYPES['PCIE_CARD'],
327 'user_label' : 'OCP Mezz card 1',
328 'is_fru' : True,
329 },
330 '<inventory_root>/system/io_board/pcie_slot2' :
331 {
332 'fru_type' : Openbmc.FRU_TYPES['PCIE_CARD'],
333 'user_label' : 'OCP Mezz card 2',
334 'is_fru' : True,
335 },
336 '<inventory_root>/system/io_board/pcie_mezz0' :
337 {
338 'fru_type' : Openbmc.FRU_TYPES['PCIE_CARD'],
339 'user_label' : 'OCP Mezz card 0',
340 'is_fru' : True,
341 },
342 '<inventory_root>/system/io_board/pcie_mezz1' :
343 {
344 'fru_type' : Openbmc.FRU_TYPES['PCIE_CARD'],
345 'user_label' : 'OCP Mezz card 1',
346 'is_fru' : True,
347 },
348
Norman James88872672015-09-21 16:51:35 -0500349}
Norman James362a80f2015-09-14 14:04:39 -0500350
Norman James19e45912015-10-04 20:19:41 -0500351ID_LOOKUP = {
352 'FRU' : {
353 '14' : '<inventory_root>/system/motherboard/dimm0',
354 },
355 'SENSOR' : {
356 '21' : '<inventory_root>/system/motherboard/dimm0',
357 '14' : '/org/openbmc/sensors/HostStatus_0',
358 },
359 'GPIO_PRESENT' : {
360 'SLOT0_RISER_PRESENT' : '<inventory_root>/system/io_board/pcie_left_slot_riser',
361 'SLOT1_RISER_PRESENT' : '<inventory_root>/system/io_board/pcie_right_slot_riser',
362 'SLOT2_RISER_PRESENT' : '<inventory_root>/system/io_board/pcie_x16_slot_riser',
363 'SLOT0_PRESENT' : '<inventory_root>/system/io_board/pcie_slot0',
364 'SLOT1_PRESENT' : '<inventory_root>/system/io_board/pcie_slot1',
365 'SLOT2_PRESENT' : '<inventory_root>/system/io_board/pcie_slot2',
366 'MEZZ0_PRESENT' : '<inventory_root>/system/io_board/pcie_mezz0',
367 'MEZZ1_PRESENT' : '<inventory_root>/system/io_board/pcie_mezz1',
368 }
369}
Norman James362a80f2015-09-14 14:04:39 -0500370
Norman Jamesce46e3e2015-08-30 22:25:55 -0500371GPIO_CONFIG = {}
Norman James362a80f2015-09-14 14:04:39 -0500372GPIO_CONFIG['FSI_CLK'] = { 'gpio_num': 4, 'direction': 'out' }
373GPIO_CONFIG['FSI_DATA'] = { 'gpio_num': 5, 'direction': 'out' }
374GPIO_CONFIG['FSI_ENABLE'] = { 'gpio_num': 24, 'direction': 'out' }
375GPIO_CONFIG['POWER_PIN'] = { 'gpio_num': 33, 'direction': 'out' }
376GPIO_CONFIG['CRONUS_SEL'] = { 'gpio_num': 6, 'direction': 'out' }
377GPIO_CONFIG['PGOOD'] = { 'gpio_num': 23, 'direction': 'in' }
378GPIO_CONFIG['IDENTIFY'] = { 'gpio_num': 34, 'direction': 'out' }
Norman James19e45912015-10-04 20:19:41 -0500379GPIO_CONFIG['POWER_BUTTON'] = { 'gpio_num': 32, 'direction': 'in' }
380GPIO_CONFIG['SLOT0_RISER_PRESENT'] = { 'gpio_num': 104, 'direction': 'in' }
381GPIO_CONFIG['SLOT1_RISER_PRESENT'] = { 'gpio_num': 105, 'direction': 'in' }
382GPIO_CONFIG['SLOT2_RISER_PRESENT'] = { 'gpio_num': 106, 'direction': 'in' }
383GPIO_CONFIG['SLOT0_PRESENT'] = { 'gpio_num': 107, 'direction': 'in' }
384GPIO_CONFIG['SLOT1_PRESENT'] = { 'gpio_num': 108, 'direction': 'in' }
385GPIO_CONFIG['SLOT2_PRESENT'] = { 'gpio_num': 109, 'direction': 'in' }
386GPIO_CONFIG['MEZZ0_PRESENT'] = { 'gpio_num': 112, 'direction': 'in' }
387GPIO_CONFIG['MEZZ1_PRESENT'] = { 'gpio_num': 113, 'direction': 'in' }
388
Norman Jamesce46e3e2015-08-30 22:25:55 -0500389