xref: /openbmc/skeleton/configs/Barreleye.py (revision c14f6fec)
140a360c2SBrad Bishop#! /usr/bin/python
240a360c2SBrad Bishop
340a360c2SBrad BishopHOME_PATH = './'
440a360c2SBrad BishopGPIO_BASE = 320
540a360c2SBrad BishopSYSTEM_NAME = "Barreleye"
640a360c2SBrad Bishop
740a360c2SBrad Bishop
840a360c2SBrad Bishop## System states
940a360c2SBrad Bishop##   state can change to next state in 2 ways:
1040a360c2SBrad Bishop##   - a process emits a GotoSystemState signal with state name to goto
1140a360c2SBrad Bishop##   - objects specified in EXIT_STATE_DEPEND have started
1240a360c2SBrad BishopSYSTEM_STATES = [
1340a360c2SBrad Bishop	'BASE_APPS',
1440a360c2SBrad Bishop	'BMC_STARTING',
1540a360c2SBrad Bishop	'BMC_STARTING2',
1640a360c2SBrad Bishop	'BMC_READY',
1740a360c2SBrad Bishop	'HOST_POWERING_ON',
1840a360c2SBrad Bishop	'HOST_POWERED_ON',
1940a360c2SBrad Bishop	'INVENTORY_UPLOADED',
2040a360c2SBrad Bishop	'HOST_BOOTING',
2140a360c2SBrad Bishop	'HOST_BOOTED',
2240a360c2SBrad Bishop	'HOST_POWERED_OFF',
2340a360c2SBrad Bishop]
2440a360c2SBrad Bishop
2540a360c2SBrad BishopEXIT_STATE_DEPEND = {
2640a360c2SBrad Bishop	'BASE_APPS' : {
2740a360c2SBrad Bishop		'/org/openbmc/sensors': 0,
2840a360c2SBrad Bishop	},
2940a360c2SBrad Bishop	'BMC_STARTING' : {
3040a360c2SBrad Bishop		'/org/openbmc/control/power0' : 0,
3140a360c2SBrad Bishop		'/org/openbmc/control/host0' : 0,
3240a360c2SBrad Bishop		'/org/openbmc/control/flash/bios' : 0,
3340a360c2SBrad Bishop		'/org/openbmc/sensors/speed/fan5': 0,
3440a360c2SBrad Bishop		'/org/openbmc/inventory/system/chassis/io_board' : 0,
3540a360c2SBrad Bishop	},
3640a360c2SBrad Bishop	'BMC_STARTING2' : {
3740a360c2SBrad Bishop		'/org/openbmc/control/fans' : 0,
3840a360c2SBrad Bishop		'/org/openbmc/control/chassis0': 0,
3940a360c2SBrad Bishop	},
4040a360c2SBrad Bishop}
4140a360c2SBrad Bishop
4240a360c2SBrad Bishop## method will be called when state is entered
4340a360c2SBrad BishopENTER_STATE_CALLBACK = {
4440a360c2SBrad Bishop	'INVENTORY_UPLOADED' : {
4540a360c2SBrad Bishop		'boot' : {
4640a360c2SBrad Bishop			'bus_name'    : 'org.openbmc.control.Host',
4740a360c2SBrad Bishop			'obj_name'    : '/org/openbmc/control/host0',
4840a360c2SBrad Bishop			'interface_name' : 'org.openbmc.control.Host',
4940a360c2SBrad Bishop		},
5040a360c2SBrad Bishop		'setMax' : {
5140a360c2SBrad Bishop			'bus_name'    : 'org.openbmc.control.Fans',
5240a360c2SBrad Bishop			'obj_name'    : '/org/openbmc/control/fans',
5340a360c2SBrad Bishop			'interface_name' : 'org.openbmc.control.Fans',
5440a360c2SBrad Bishop		},
5540a360c2SBrad Bishop		'setOn' : {
5640a360c2SBrad Bishop			'bus_name'   : 'org.openbmc.control.led',
5740a360c2SBrad Bishop			'obj_name'   : '/org/openbmc/control/led/identify',
5840a360c2SBrad Bishop			'interface_name' : 'org.openbmc.Led',
5940a360c2SBrad Bishop		}
6040a360c2SBrad Bishop	},
6140a360c2SBrad Bishop	'HOST_POWERED_OFF' : {
6240a360c2SBrad Bishop		'setOff' : {
6340a360c2SBrad Bishop			'bus_name'   : 'org.openbmc.control.led',
6440a360c2SBrad Bishop			'obj_name'   : '/org/openbmc/control/led/identify',
6540a360c2SBrad Bishop			'interface_name' : 'org.openbmc.Led',
6640a360c2SBrad Bishop		}
6740a360c2SBrad Bishop
6840a360c2SBrad Bishop	},
6940a360c2SBrad Bishop	'BMC_READY' : {
7040a360c2SBrad Bishop		'setOn' : {
7140a360c2SBrad Bishop			'bus_name'   : 'org.openbmc.control.led',
7240a360c2SBrad Bishop			'obj_name'   : '/org/openbmc/control/led/beep',
7340a360c2SBrad Bishop			'interface_name' : 'org.openbmc.Led',
7440a360c2SBrad Bishop		},
7540a360c2SBrad Bishop		'init' : {
7640a360c2SBrad Bishop			'bus_name'   : 'org.openbmc.control.Flash',
7740a360c2SBrad Bishop			'obj_name'   : '/org/openbmc/control/flash/bios',
7840a360c2SBrad Bishop			'interface_name' : 'org.openbmc.Flash',
7940a360c2SBrad Bishop		}
8040a360c2SBrad Bishop	}
8140a360c2SBrad Bishop}
8240a360c2SBrad Bishop
8340a360c2SBrad BishopAPPS = {
8440a360c2SBrad Bishop	'startup_hacks' : {
8540a360c2SBrad Bishop		'system_state'    : 'BASE_APPS',
8640a360c2SBrad Bishop		'start_process'   : True,
8740a360c2SBrad Bishop		'monitor_process' : False,
8840a360c2SBrad Bishop		'process_name'    : 'startup_hacks.sh',
8940a360c2SBrad Bishop	},
9040a360c2SBrad Bishop	'inventory' : {
9140a360c2SBrad Bishop		'system_state'    : 'BMC_STARTING',
9240a360c2SBrad Bishop		'start_process'   : True,
9340a360c2SBrad Bishop		'monitor_process' : True,
9440a360c2SBrad Bishop		'process_name'    : 'inventory_items.py',
9540a360c2SBrad Bishop		'args'            : [ SYSTEM_NAME ]
9640a360c2SBrad Bishop	},
9740a360c2SBrad Bishop	'inventory_upload' : {
9840a360c2SBrad Bishop		'system_state'    : 'HOST_POWERED_ON',
9940a360c2SBrad Bishop		'start_process'   : True,
10040a360c2SBrad Bishop		'monitor_process' : False,
10140a360c2SBrad Bishop		'process_name'    : 'goto_system_state.py',
10240a360c2SBrad Bishop		'args'            : [ 'INVENTORY_UPLOADED', 'inventory_upload.py' ]
10340a360c2SBrad Bishop	},
10440a360c2SBrad Bishop	'pcie_present' : {
10540a360c2SBrad Bishop		'system_state'    : 'INVENTORY_UPLOADED',
10640a360c2SBrad Bishop		'start_process'   : True,
10740a360c2SBrad Bishop		'monitor_process' : False,
10840a360c2SBrad Bishop		'process_name'    : 'pcie_slot_present.exe',
10940a360c2SBrad Bishop	},
11040a360c2SBrad Bishop	'fan_control' : {
11140a360c2SBrad Bishop		'system_state'    : 'BMC_STARTING2',
11240a360c2SBrad Bishop		'start_process'   : True,
11340a360c2SBrad Bishop		'monitor_process' : True,
11440a360c2SBrad Bishop		'process_name'    : 'fan_control.py',
11540a360c2SBrad Bishop	},
11640a360c2SBrad Bishop	'hwmon' : {
11740a360c2SBrad Bishop		'system_state'    : 'BMC_STARTING',
11840a360c2SBrad Bishop		'start_process'   : True,
11940a360c2SBrad Bishop		'monitor_process' : True,
12040a360c2SBrad Bishop		'process_name'    : 'hwmon.py',
12140a360c2SBrad Bishop		'args'            : [ SYSTEM_NAME ]
12240a360c2SBrad Bishop	},
12340a360c2SBrad Bishop	'sensor_manager' : {
12440a360c2SBrad Bishop		'system_state'    : 'BASE_APPS',
12540a360c2SBrad Bishop		'start_process'   : True,
12640a360c2SBrad Bishop		'monitor_process' : True,
12740a360c2SBrad Bishop		'process_name'    : 'sensor_manager2.py',
12840a360c2SBrad Bishop		'args'            : [ SYSTEM_NAME ]
12940a360c2SBrad Bishop	},
13040a360c2SBrad Bishop	'host_watchdog' : {
13140a360c2SBrad Bishop		'system_state'    : 'BMC_STARTING',
13240a360c2SBrad Bishop		'start_process'   : True,
13340a360c2SBrad Bishop		'monitor_process' : True,
13440a360c2SBrad Bishop		'process_name'    : 'host_watchdog.exe',
13540a360c2SBrad Bishop	},
13640a360c2SBrad Bishop	'power_control' : {
13740a360c2SBrad Bishop		'system_state'    : 'BMC_STARTING',
13840a360c2SBrad Bishop		'start_process'   : True,
13940a360c2SBrad Bishop		'monitor_process' : True,
14040a360c2SBrad Bishop		'process_name' : 'power_control.exe',
14140a360c2SBrad Bishop		'args' : [ '3000', '10' ]
14240a360c2SBrad Bishop	},
14340a360c2SBrad Bishop	'power_button' : {
14440a360c2SBrad Bishop		'system_state'    : 'BMC_STARTING',
14540a360c2SBrad Bishop		'start_process'   : True,
14640a360c2SBrad Bishop		'monitor_process' : True,
14740a360c2SBrad Bishop		'process_name'    : 'button_power.exe',
14840a360c2SBrad Bishop	},
14940a360c2SBrad Bishop        'reset_button' : {
15040a360c2SBrad Bishop                'system_state'    : 'BMC_STARTING',
15140a360c2SBrad Bishop                'start_process'   : True,
15240a360c2SBrad Bishop                'monitor_process' : True,
15340a360c2SBrad Bishop                'process_name'    : 'button_reset.exe',
15440a360c2SBrad Bishop        },
155341c8c24SAdriana Kobylak	'host_checkstop' : {
156341c8c24SAdriana Kobylak		'system_state'    : 'BMC_STARTING',
157341c8c24SAdriana Kobylak		'start_process'   : True,
158341c8c24SAdriana Kobylak		'monitor_process' : True,
159341c8c24SAdriana Kobylak		'process_name'    : 'host_checkstop.exe',
160341c8c24SAdriana Kobylak	},
16140a360c2SBrad Bishop	'led_control' : {
16240a360c2SBrad Bishop		'system_state'    : 'BMC_STARTING',
16340a360c2SBrad Bishop		'start_process'   : True,
16440a360c2SBrad Bishop		'monitor_process' : True,
16540a360c2SBrad Bishop		'process_name'    : 'led_controller.exe',
16640a360c2SBrad Bishop	},
16740a360c2SBrad Bishop	'flash_control' : {
16840a360c2SBrad Bishop		'system_state'    : 'BMC_STARTING',
16940a360c2SBrad Bishop		'start_process'   : True,
17040a360c2SBrad Bishop		'monitor_process' : True,
17140a360c2SBrad Bishop		'process_name'    : 'flash_bios.exe',
17240a360c2SBrad Bishop	},
17340a360c2SBrad Bishop	'bmc_flash_control' : {
17440a360c2SBrad Bishop		'system_state'    : 'BMC_STARTING',
17540a360c2SBrad Bishop		'start_process'   : True,
17640a360c2SBrad Bishop		'monitor_process' : True,
17740a360c2SBrad Bishop		'process_name'    : 'bmc_update.py',
17840a360c2SBrad Bishop	},
17940a360c2SBrad Bishop	'download_manager' : {
18040a360c2SBrad Bishop		'system_state'    : 'BMC_STARTING',
18140a360c2SBrad Bishop		'start_process'   : True,
18240a360c2SBrad Bishop		'monitor_process' : True,
18340a360c2SBrad Bishop		'process_name'    : 'download_manager.py',
18440a360c2SBrad Bishop		'args'            : [ SYSTEM_NAME ]
18540a360c2SBrad Bishop	},
18640a360c2SBrad Bishop	'host_control' : {
18740a360c2SBrad Bishop		'system_state'    : 'BMC_STARTING',
18840a360c2SBrad Bishop		'start_process'   : True,
18940a360c2SBrad Bishop		'monitor_process' : True,
19040a360c2SBrad Bishop		'process_name'    : 'control_host.exe',
19140a360c2SBrad Bishop	},
19240a360c2SBrad Bishop	'chassis_control' : {
19340a360c2SBrad Bishop		'system_state'    : 'BMC_STARTING2',
19440a360c2SBrad Bishop		'start_process'   : True,
19540a360c2SBrad Bishop		'monitor_process' : True,
19640a360c2SBrad Bishop		'process_name'    : 'chassis_control.py',
19740a360c2SBrad Bishop	},
19840a360c2SBrad Bishop	'board_vpd' : {
19940a360c2SBrad Bishop		'system_state'    : 'BMC_STARTING2',
20040a360c2SBrad Bishop		'start_process'   : True,
20140a360c2SBrad Bishop		'monitor_process' : False,
20240a360c2SBrad Bishop		'process_name'    : 'phosphor-read-eeprom',
20340a360c2SBrad Bishop		'args'            : ['--eeprom','/sys/bus/i2c/devices/0-0050/eeprom','--fruid','64'],
20440a360c2SBrad Bishop	},
20540a360c2SBrad Bishop	'motherboard_vpd' : {
20640a360c2SBrad Bishop		'system_state'    : 'BMC_STARTING2',
20740a360c2SBrad Bishop		'start_process'   : True,
20840a360c2SBrad Bishop		'monitor_process' : False,
20940a360c2SBrad Bishop		'process_name'    : 'phosphor-read-eeprom',
21040a360c2SBrad Bishop		'args'            : ['--eeprom','/sys/bus/i2c/devices/4-0054/eeprom','--fruid','3'],
21140a360c2SBrad Bishop	},
21240a360c2SBrad Bishop	'exp_vpd' : {
21340a360c2SBrad Bishop		'system_state'    : 'BMC_STARTING2',
21440a360c2SBrad Bishop		'start_process'   : True,
21540a360c2SBrad Bishop		'monitor_process' : False,
21640a360c2SBrad Bishop		'process_name'    : 'phosphor-read-eeprom',
21740a360c2SBrad Bishop		'args'            : ['--eeprom','/sys/bus/i2c/devices/6-0051/eeprom','--fruid','65'],
21840a360c2SBrad Bishop	},
21940a360c2SBrad Bishop	'hdd_vpd' : {
22040a360c2SBrad Bishop		'system_state'    : 'BMC_STARTING2',
22140a360c2SBrad Bishop		'start_process'   : True,
22240a360c2SBrad Bishop		'monitor_process' : False,
22340a360c2SBrad Bishop		'process_name'    : 'phosphor-read-eeprom',
22440a360c2SBrad Bishop		'args'            : ['--eeprom','/sys/bus/i2c/devices/6-0055/eeprom','--fruid','66'],
22540a360c2SBrad Bishop	},
226fb4d2258SAdriana Kobylak	'sync_mac' : {
227fb4d2258SAdriana Kobylak		'system_state'    : 'BMC_READY',
228fb4d2258SAdriana Kobylak		'start_process'   : True,
229fb4d2258SAdriana Kobylak		'monitor_process' : False,
230fb4d2258SAdriana Kobylak		'process_name'    : 'sync_inventory_items.py',
231fb4d2258SAdriana Kobylak		'args'            : ['-t','DAUGHTER_CARD','-n','io_board','-p','"Custom Field 2"','-s','mac'],
232fb4d2258SAdriana Kobylak	},
233fb4d2258SAdriana Kobylak	'sync_uuid' : {
234fb4d2258SAdriana Kobylak		'system_state'    : 'BMC_READY',
235fb4d2258SAdriana Kobylak		'start_process'   : True,
236fb4d2258SAdriana Kobylak		'monitor_process' : False,
237fb4d2258SAdriana Kobylak		'process_name'    : 'sync_inventory_items.py',
238fb4d2258SAdriana Kobylak		'args'            : ['-t','MAIN_PLANAR','-n','motherboard','-p','"Custom Field 1"','-s','uuid'],
239fb4d2258SAdriana Kobylak	},
24040a360c2SBrad Bishop	'restore' : {
24140a360c2SBrad Bishop		'system_state'    : 'BMC_READY',
24240a360c2SBrad Bishop		'start_process'   : True,
24340a360c2SBrad Bishop		'monitor_process' : False,
24440a360c2SBrad Bishop		'process_name'    : 'discover_system_state.py',
24540a360c2SBrad Bishop	},
24640a360c2SBrad Bishop	'bmc_control' : {
24740a360c2SBrad Bishop		'system_state'    : 'BMC_STARTING',
24840a360c2SBrad Bishop		'start_process'   : True,
24940a360c2SBrad Bishop		'monitor_process' : True,
25040a360c2SBrad Bishop		'process_name'    : 'control_bmc.exe',
25140a360c2SBrad Bishop	},
25240a360c2SBrad Bishop}
25340a360c2SBrad Bishop
25440a360c2SBrad BishopCACHED_INTERFACES = {
25540a360c2SBrad Bishop		"org.openbmc.InventoryItem" : True,
25640a360c2SBrad Bishop		"org.openbmc.control.Chassis" : True,
25740a360c2SBrad Bishop	}
25840a360c2SBrad BishopINVENTORY_ROOT = '/org/openbmc/inventory'
25940a360c2SBrad Bishop
26040a360c2SBrad BishopFRU_INSTANCES = {
26140a360c2SBrad Bishop	'<inventory_root>/system' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
26240a360c2SBrad Bishop	'<inventory_root>/system/bios' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
26340a360c2SBrad Bishop	'<inventory_root>/system/misc' : { 'fru_type' : 'SYSTEM','is_fru' : False, },
26440a360c2SBrad Bishop
26540a360c2SBrad Bishop	'<inventory_root>/system/chassis' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
26640a360c2SBrad Bishop
26740a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard' : { 'fru_type' : 'MAIN_PLANAR','is_fru' : True, },
26840a360c2SBrad Bishop	'<inventory_root>/system/chassis/io_board' : { 'fru_type' : 'DAUGHTER_CARD','is_fru' : True, },
26940a360c2SBrad Bishop	'<inventory_root>/system/chassis/sas_expander' : { 'fru_type' : 'DAUGHTER_CARD','is_fru' : True, },
27040a360c2SBrad Bishop	'<inventory_root>/system/chassis/hdd_backplane' : { 'fru_type' : 'DAUGHTER_CARD','is_fru' : True, },
27140a360c2SBrad Bishop
27240a360c2SBrad Bishop	'<inventory_root>/system/systemevent'                  : { 'fru_type' : 'SYSTEM_EVENT', 'is_fru' : False, },
27340a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/refclock' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
27440a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/pcieclock': { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
27540a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/todclock' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
27640a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/apss'     : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
27740a360c2SBrad Bishop
27840a360c2SBrad Bishop	'<inventory_root>/system/chassis/fan0' : { 'fru_type' : 'FAN','is_fru' : True, },
27940a360c2SBrad Bishop	'<inventory_root>/system/chassis/fan1' : { 'fru_type' : 'FAN','is_fru' : True, },
28040a360c2SBrad Bishop	'<inventory_root>/system/chassis/fan2' : { 'fru_type' : 'FAN','is_fru' : True, },
28140a360c2SBrad Bishop	'<inventory_root>/system/chassis/fan3' : { 'fru_type' : 'FAN','is_fru' : True, },
28240a360c2SBrad Bishop	'<inventory_root>/system/chassis/fan4' : { 'fru_type' : 'FAN','is_fru' : True, },
28340a360c2SBrad Bishop	'<inventory_root>/system/chassis/fan5' : { 'fru_type' : 'FAN','is_fru' : True, },
28440a360c2SBrad Bishop
28540a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/bmc' : { 'fru_type' : 'BMC','is_fru' : False, 'manufacturer' : 'ASPEED' },
28640a360c2SBrad Bishop
28740a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu0' : { 'fru_type' : 'CPU', 'is_fru' : True, },
28840a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu1' : { 'fru_type' : 'CPU', 'is_fru' : True, },
28940a360c2SBrad Bishop
29040a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu0/core0' : { 'fru_type' : 'CORE', 'is_fru' : False, },
29140a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu0/core1' : { 'fru_type' : 'CORE', 'is_fru' : False, },
29240a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu0/core2' : { 'fru_type' : 'CORE', 'is_fru' : False, },
29340a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu0/core3' : { 'fru_type' : 'CORE', 'is_fru' : False, },
29440a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu0/core4' : { 'fru_type' : 'CORE', 'is_fru' : False, },
29540a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu0/core5' : { 'fru_type' : 'CORE', 'is_fru' : False, },
29640a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu0/core6' : { 'fru_type' : 'CORE', 'is_fru' : False, },
29740a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu0/core7' : { 'fru_type' : 'CORE', 'is_fru' : False, },
29840a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu0/core8' : { 'fru_type' : 'CORE', 'is_fru' : False, },
29940a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu0/core9' : { 'fru_type' : 'CORE', 'is_fru' : False, },
30040a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu0/core10': { 'fru_type' : 'CORE', 'is_fru' : False, },
30140a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu0/core11': { 'fru_type' : 'CORE', 'is_fru' : False, },
30240a360c2SBrad Bishop
30340a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu1/core0' : { 'fru_type' : 'CORE', 'is_fru' : False, },
30440a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu1/core1' : { 'fru_type' : 'CORE', 'is_fru' : False, },
30540a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu1/core2' : { 'fru_type' : 'CORE', 'is_fru' : False, },
30640a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu1/core3' : { 'fru_type' : 'CORE', 'is_fru' : False, },
30740a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu1/core4' : { 'fru_type' : 'CORE', 'is_fru' : False, },
30840a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu1/core5' : { 'fru_type' : 'CORE', 'is_fru' : False, },
30940a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu1/core6' : { 'fru_type' : 'CORE', 'is_fru' : False, },
31040a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu1/core7' : { 'fru_type' : 'CORE', 'is_fru' : False, },
31140a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu1/core8' : { 'fru_type' : 'CORE', 'is_fru' : False, },
31240a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu1/core9' : { 'fru_type' : 'CORE', 'is_fru' : False, },
31340a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu1/core10' : { 'fru_type' : 'CORE', 'is_fru' : False, },
31440a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/cpu1/core11' : { 'fru_type' : 'CORE', 'is_fru' : False, },
31540a360c2SBrad Bishop
31640a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/membuf0' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
31740a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/membuf1' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
31840a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/membuf2' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
31940a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/membuf3' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
32040a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/membuf4' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
32140a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/membuf5' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
32240a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/membuf6' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
32340a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/membuf7' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
32440a360c2SBrad Bishop
32540a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm0' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
32640a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm1' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
32740a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm2' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
32840a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm3' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
32940a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm4' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
33040a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm5' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
33140a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm6' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
33240a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm7' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
33340a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm8' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
33440a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm9' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
33540a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm10' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
33640a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm11' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
33740a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm12' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
33840a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm13' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
33940a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm14' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
34040a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm15' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
34140a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm16' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
34240a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm17' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
34340a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm18' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
34440a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm19' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
34540a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm20' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
34640a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm21' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
34740a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm22' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
34840a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm23' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
34940a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm24' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
35040a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm25' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
35140a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm26' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
35240a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm27' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
35340a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm28' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
35440a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm29' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
35540a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm30' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
35640a360c2SBrad Bishop	'<inventory_root>/system/chassis/motherboard/dimm31' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
35740a360c2SBrad Bishop
35840a360c2SBrad Bishop	'<inventory_root>/system/chassis/io_board/pcie_slot0_riser' : { 'fru_type' : 'PCIE_RISER', 'is_fru' : True,},
35940a360c2SBrad Bishop	'<inventory_root>/system/chassis/io_board/pcie_slot1_riser' : { 'fru_type' : 'PCIE_RISER', 'is_fru' : True,},
36040a360c2SBrad Bishop	'<inventory_root>/system/chassis/io_board/pcie_slot2_riser' : { 'fru_type' : 'PCIE_RISER', 'is_fru' : True,},
36140a360c2SBrad Bishop	'<inventory_root>/system/chassis/io_board/pcie_slot0' : { 'fru_type' : 'PCIE_CARD', 'is_fru' : True,},
36240a360c2SBrad Bishop	'<inventory_root>/system/chassis/io_board/pcie_slot1' :	{ 'fru_type' : 'PCIE_CARD', 'is_fru' : True,},
36340a360c2SBrad Bishop	'<inventory_root>/system/chassis/io_board/pcie_slot2' :	{ 'fru_type' : 'PCIE_CARD', 'is_fru' : True,},
36440a360c2SBrad Bishop	'<inventory_root>/system/chassis/io_board/pcie_mezz0' :	{ 'fru_type' : 'PCIE_CARD', 'is_fru' : True,},
36540a360c2SBrad Bishop	'<inventory_root>/system/chassis/io_board/pcie_mezz1' :	{ 'fru_type' : 'PCIE_CARD', 'is_fru' : True,},
36640a360c2SBrad Bishop}
36740a360c2SBrad Bishop
36840a360c2SBrad BishopID_LOOKUP = {
36940a360c2SBrad Bishop	'FRU' : {
37040a360c2SBrad Bishop		0x03 : '<inventory_root>/system/chassis/motherboard',
37140a360c2SBrad Bishop		0x40 : '<inventory_root>/system/chassis/io_board',
37240a360c2SBrad Bishop		0x01 : '<inventory_root>/system/chassis/motherboard/cpu0',
37340a360c2SBrad Bishop                0x02 : '<inventory_root>/system/chassis/motherboard/cpu1',
37440a360c2SBrad Bishop		0x04 : '<inventory_root>/system/chassis/motherboard/membuf0',
37540a360c2SBrad Bishop                0x05 : '<inventory_root>/system/chassis/motherboard/membuf1',
37640a360c2SBrad Bishop                0x06 : '<inventory_root>/system/chassis/motherboard/membuf2',
37740a360c2SBrad Bishop                0x07 : '<inventory_root>/system/chassis/motherboard/membuf3',
37840a360c2SBrad Bishop                0x08 : '<inventory_root>/system/chassis/motherboard/membuf4',
37940a360c2SBrad Bishop                0x09 : '<inventory_root>/system/chassis/motherboard/membuf5',
38040a360c2SBrad Bishop                0x0a : '<inventory_root>/system/chassis/motherboard/membuf6',
38140a360c2SBrad Bishop                0x0b : '<inventory_root>/system/chassis/motherboard/membuf7',
38240a360c2SBrad Bishop		0x0c : '<inventory_root>/system/chassis/motherboard/dimm0',
38340a360c2SBrad Bishop		0x0d : '<inventory_root>/system/chassis/motherboard/dimm1',
38440a360c2SBrad Bishop		0x0e : '<inventory_root>/system/chassis/motherboard/dimm2',
38540a360c2SBrad Bishop		0x0f : '<inventory_root>/system/chassis/motherboard/dimm3',
38640a360c2SBrad Bishop                0x10 : '<inventory_root>/system/chassis/motherboard/dimm4',
38740a360c2SBrad Bishop                0x11 : '<inventory_root>/system/chassis/motherboard/dimm5',
38840a360c2SBrad Bishop                0x12 : '<inventory_root>/system/chassis/motherboard/dimm6',
38940a360c2SBrad Bishop                0x13 : '<inventory_root>/system/chassis/motherboard/dimm7',
39040a360c2SBrad Bishop                0x14 : '<inventory_root>/system/chassis/motherboard/dimm8',
39140a360c2SBrad Bishop                0x15 : '<inventory_root>/system/chassis/motherboard/dimm9',
39240a360c2SBrad Bishop		0x16 : '<inventory_root>/system/chassis/motherboard/dimm10',
39340a360c2SBrad Bishop		0x17 : '<inventory_root>/system/chassis/motherboard/dimm11',
39440a360c2SBrad Bishop		0x18 : '<inventory_root>/system/chassis/motherboard/dimm12',
39540a360c2SBrad Bishop		0x19 : '<inventory_root>/system/chassis/motherboard/dimm13',
39640a360c2SBrad Bishop		0x1a : '<inventory_root>/system/chassis/motherboard/dimm14',
39740a360c2SBrad Bishop		0x1b : '<inventory_root>/system/chassis/motherboard/dimm15',
39840a360c2SBrad Bishop		0x1c : '<inventory_root>/system/chassis/motherboard/dimm16',
39940a360c2SBrad Bishop		0x1d : '<inventory_root>/system/chassis/motherboard/dimm17',
40040a360c2SBrad Bishop		0x1e : '<inventory_root>/system/chassis/motherboard/dimm18',
40140a360c2SBrad Bishop		0x1f : '<inventory_root>/system/chassis/motherboard/dimm19',
40240a360c2SBrad Bishop		0x20 : '<inventory_root>/system/chassis/motherboard/dimm20',
40340a360c2SBrad Bishop                0x21 : '<inventory_root>/system/chassis/motherboard/dimm21',
40440a360c2SBrad Bishop                0x22 : '<inventory_root>/system/chassis/motherboard/dimm22',
40540a360c2SBrad Bishop                0x23 : '<inventory_root>/system/chassis/motherboard/dimm23',
40640a360c2SBrad Bishop                0x24 : '<inventory_root>/system/chassis/motherboard/dimm24',
40740a360c2SBrad Bishop                0x25 : '<inventory_root>/system/chassis/motherboard/dimm25',
40840a360c2SBrad Bishop                0x26 : '<inventory_root>/system/chassis/motherboard/dimm26',
40940a360c2SBrad Bishop                0x27 : '<inventory_root>/system/chassis/motherboard/dimm27',
41040a360c2SBrad Bishop                0x28 : '<inventory_root>/system/chassis/motherboard/dimm28',
41140a360c2SBrad Bishop                0x29 : '<inventory_root>/system/chassis/motherboard/dimm29',
41240a360c2SBrad Bishop                0x2a : '<inventory_root>/system/chassis/motherboard/dimm30',
41340a360c2SBrad Bishop                0x2b : '<inventory_root>/system/chassis/motherboard/dimm31',
41440a360c2SBrad Bishop		0x33 : '<inventory_root>/system',
41540a360c2SBrad Bishop	},
41640a360c2SBrad Bishop	'FRU_STR' : {
41740a360c2SBrad Bishop		'PRODUCT_0'  : '<inventory_root>/system/bios',
41840a360c2SBrad Bishop		'BOARD_3'    : '<inventory_root>/system/misc',
41940a360c2SBrad Bishop		'PRODUCT_51' : '<inventory_root>/system/misc',
42040a360c2SBrad Bishop		'BOARD_100'  : '<inventory_root>/system/chassis/io_board',
42140a360c2SBrad Bishop		'BOARD_101'  : '<inventory_root>/system/chassis/sas_expander',
42240a360c2SBrad Bishop		'BOARD_102'  : '<inventory_root>/system/chassis/hdd_backplane',
42340a360c2SBrad Bishop		'CHASSIS_3'  : '<inventory_root>/system/chassis/motherboard',
42440a360c2SBrad Bishop		'BOARD_1'    : '<inventory_root>/system/chassis/motherboard/cpu0',
42540a360c2SBrad Bishop		'BOARD_2'    : '<inventory_root>/system/chassis/motherboard/cpu1',
42640a360c2SBrad Bishop		'BOARD_4'    : '<inventory_root>/system/chassis/motherboard/membuf0',
42740a360c2SBrad Bishop		'BOARD_5'    : '<inventory_root>/system/chassis/motherboard/membuf1',
42840a360c2SBrad Bishop		'BOARD_6'    : '<inventory_root>/system/chassis/motherboard/membuf2',
42940a360c2SBrad Bishop		'BOARD_7'    : '<inventory_root>/system/chassis/motherboard/membuf3',
43040a360c2SBrad Bishop		'BOARD_8'    : '<inventory_root>/system/chassis/motherboard/membuf4',
43140a360c2SBrad Bishop		'BOARD_9'    : '<inventory_root>/system/chassis/motherboard/membuf5',
43240a360c2SBrad Bishop		'BOARD_10'   : '<inventory_root>/system/chassis/motherboard/membuf6',
43340a360c2SBrad Bishop		'BOARD_11'   : '<inventory_root>/system/chassis/motherboard/membuf7',
43440a360c2SBrad Bishop		'PRODUCT_12'   : '<inventory_root>/system/chassis/motherboard/dimm0',
43540a360c2SBrad Bishop		'PRODUCT_13'   : '<inventory_root>/system/chassis/motherboard/dimm1',
43640a360c2SBrad Bishop		'PRODUCT_14'   : '<inventory_root>/system/chassis/motherboard/dimm2',
43740a360c2SBrad Bishop		'PRODUCT_15'   : '<inventory_root>/system/chassis/motherboard/dimm3',
43840a360c2SBrad Bishop		'PRODUCT_16'   : '<inventory_root>/system/chassis/motherboard/dimm4',
43940a360c2SBrad Bishop		'PRODUCT_17'   : '<inventory_root>/system/chassis/motherboard/dimm5',
44040a360c2SBrad Bishop		'PRODUCT_18'   : '<inventory_root>/system/chassis/motherboard/dimm6',
44140a360c2SBrad Bishop		'PRODUCT_19'   : '<inventory_root>/system/chassis/motherboard/dimm7',
44240a360c2SBrad Bishop		'PRODUCT_20'   : '<inventory_root>/system/chassis/motherboard/dimm8',
44340a360c2SBrad Bishop		'PRODUCT_21'   : '<inventory_root>/system/chassis/motherboard/dimm9',
44440a360c2SBrad Bishop		'PRODUCT_22'   : '<inventory_root>/system/chassis/motherboard/dimm10',
44540a360c2SBrad Bishop		'PRODUCT_23'   : '<inventory_root>/system/chassis/motherboard/dimm11',
44640a360c2SBrad Bishop		'PRODUCT_24'   : '<inventory_root>/system/chassis/motherboard/dimm12',
44740a360c2SBrad Bishop		'PRODUCT_25'   : '<inventory_root>/system/chassis/motherboard/dimm13',
44840a360c2SBrad Bishop		'PRODUCT_26'   : '<inventory_root>/system/chassis/motherboard/dimm14',
44940a360c2SBrad Bishop		'PRODUCT_27'   : '<inventory_root>/system/chassis/motherboard/dimm15',
45040a360c2SBrad Bishop		'PRODUCT_28'   : '<inventory_root>/system/chassis/motherboard/dimm16',
45140a360c2SBrad Bishop		'PRODUCT_29'   : '<inventory_root>/system/chassis/motherboard/dimm17',
45240a360c2SBrad Bishop		'PRODUCT_30'   : '<inventory_root>/system/chassis/motherboard/dimm18',
45340a360c2SBrad Bishop		'PRODUCT_31'   : '<inventory_root>/system/chassis/motherboard/dimm19',
45440a360c2SBrad Bishop		'PRODUCT_32'   : '<inventory_root>/system/chassis/motherboard/dimm20',
45540a360c2SBrad Bishop		'PRODUCT_33'   : '<inventory_root>/system/chassis/motherboard/dimm21',
45640a360c2SBrad Bishop		'PRODUCT_34'   : '<inventory_root>/system/chassis/motherboard/dimm22',
45740a360c2SBrad Bishop		'PRODUCT_35'   : '<inventory_root>/system/chassis/motherboard/dimm23',
45840a360c2SBrad Bishop		'PRODUCT_36'   : '<inventory_root>/system/chassis/motherboard/dimm24',
45940a360c2SBrad Bishop		'PRODUCT_37'   : '<inventory_root>/system/chassis/motherboard/dimm25',
46040a360c2SBrad Bishop		'PRODUCT_38'   : '<inventory_root>/system/chassis/motherboard/dimm26',
46140a360c2SBrad Bishop		'PRODUCT_39'   : '<inventory_root>/system/chassis/motherboard/dimm27',
46240a360c2SBrad Bishop		'PRODUCT_40'   : '<inventory_root>/system/chassis/motherboard/dimm28',
46340a360c2SBrad Bishop		'PRODUCT_41'   : '<inventory_root>/system/chassis/motherboard/dimm29',
46440a360c2SBrad Bishop		'PRODUCT_42'   : '<inventory_root>/system/chassis/motherboard/dimm30',
46540a360c2SBrad Bishop		'PRODUCT_43'   : '<inventory_root>/system/chassis/motherboard/dimm31',
46640a360c2SBrad Bishop	},
46740a360c2SBrad Bishop	'SENSOR' : {
46840a360c2SBrad Bishop		0x35 : '<inventory_root>/system/systemevent',
46940a360c2SBrad Bishop		0x36 : '<inventory_root>/system/powerlimit',
47040a360c2SBrad Bishop                0x34 : '<inventory_root>/system/chassis/motherboard',
47140a360c2SBrad Bishop		0x31 : '<inventory_root>/system/chassis/motherboard/pcielink',
47240a360c2SBrad Bishop		0x37 : '<inventory_root>/system/chassis/motherboard/refclock',
47340a360c2SBrad Bishop		0x38 : '<inventory_root>/system/chassis/motherboard/pcieclock',
47440a360c2SBrad Bishop		0x39 : '<inventory_root>/system/chassis/motherboard/todclock',
47540a360c2SBrad Bishop		0x3A : '<inventory_root>/system/chassis/motherboard/apss',
47640a360c2SBrad Bishop		0x0c : '<inventory_root>/system/chassis/motherboard/cpu0',
47740a360c2SBrad Bishop                0x0e : '<inventory_root>/system/chassis/motherboard/cpu1',
47840a360c2SBrad Bishop		0xc8 : '<inventory_root>/system/chassis/motherboard/cpu0/core0',
47940a360c2SBrad Bishop		0xc9 : '<inventory_root>/system/chassis/motherboard/cpu0/core1',
48040a360c2SBrad Bishop		0xca : '<inventory_root>/system/chassis/motherboard/cpu0/core2',
48140a360c2SBrad Bishop		0xcb : '<inventory_root>/system/chassis/motherboard/cpu0/core3',
48240a360c2SBrad Bishop		0xcc : '<inventory_root>/system/chassis/motherboard/cpu0/core4',
48340a360c2SBrad Bishop		0xcd : '<inventory_root>/system/chassis/motherboard/cpu0/core5',
48440a360c2SBrad Bishop		0xce : '<inventory_root>/system/chassis/motherboard/cpu0/core6',
48540a360c2SBrad Bishop		0xcf : '<inventory_root>/system/chassis/motherboard/cpu0/core7',
48640a360c2SBrad Bishop		0xd0 : '<inventory_root>/system/chassis/motherboard/cpu0/core8',
48740a360c2SBrad Bishop		0xd1 : '<inventory_root>/system/chassis/motherboard/cpu0/core9',
48840a360c2SBrad Bishop		0xd2 : '<inventory_root>/system/chassis/motherboard/cpu0/core10',
48940a360c2SBrad Bishop		0xd3 : '<inventory_root>/system/chassis/motherboard/cpu0/core11',
49040a360c2SBrad Bishop                0xd4 : '<inventory_root>/system/chassis/motherboard/cpu1/core0',
49140a360c2SBrad Bishop                0xd5 : '<inventory_root>/system/chassis/motherboard/cpu1/core1',
49240a360c2SBrad Bishop                0xd6 : '<inventory_root>/system/chassis/motherboard/cpu1/core2',
49340a360c2SBrad Bishop                0xd7 : '<inventory_root>/system/chassis/motherboard/cpu1/core3',
49440a360c2SBrad Bishop                0xd8 : '<inventory_root>/system/chassis/motherboard/cpu1/core4',
49540a360c2SBrad Bishop                0xd9 : '<inventory_root>/system/chassis/motherboard/cpu1/core5',
49640a360c2SBrad Bishop                0xda : '<inventory_root>/system/chassis/motherboard/cpu1/core6',
49740a360c2SBrad Bishop                0xdb : '<inventory_root>/system/chassis/motherboard/cpu1/core7',
49840a360c2SBrad Bishop                0xdc : '<inventory_root>/system/chassis/motherboard/cpu1/core8',
49940a360c2SBrad Bishop                0xdd : '<inventory_root>/system/chassis/motherboard/cpu1/core9',
50040a360c2SBrad Bishop                0xde : '<inventory_root>/system/chassis/motherboard/cpu1/core10',
50140a360c2SBrad Bishop                0xdf : '<inventory_root>/system/chassis/motherboard/cpu1/core11',
50240a360c2SBrad Bishop		0x40 : '<inventory_root>/system/chassis/motherboard/membuf0',
50340a360c2SBrad Bishop    	        0x41 : '<inventory_root>/system/chassis/motherboard/membuf1',
50440a360c2SBrad Bishop       		0x42 : '<inventory_root>/system/chassis/motherboard/membuf2',
50540a360c2SBrad Bishop       		0x43 : '<inventory_root>/system/chassis/motherboard/membuf3',
50640a360c2SBrad Bishop       		0x44 : '<inventory_root>/system/chassis/motherboard/membuf4',
50740a360c2SBrad Bishop                0x45 : '<inventory_root>/system/chassis/motherboard/membuf5',
50840a360c2SBrad Bishop                0x46 : '<inventory_root>/system/chassis/motherboard/membuf6',
50940a360c2SBrad Bishop                0x47 : '<inventory_root>/system/chassis/motherboard/membuf7',
51040a360c2SBrad Bishop		0x10 : '<inventory_root>/system/chassis/motherboard/dimm0',
51140a360c2SBrad Bishop		0x11 : '<inventory_root>/system/chassis/motherboard/dimm1',
51240a360c2SBrad Bishop		0x12 : '<inventory_root>/system/chassis/motherboard/dimm2',
51340a360c2SBrad Bishop		0x13 : '<inventory_root>/system/chassis/motherboard/dimm3',
51440a360c2SBrad Bishop                0x14 : '<inventory_root>/system/chassis/motherboard/dimm4',
51540a360c2SBrad Bishop                0x15 : '<inventory_root>/system/chassis/motherboard/dimm5',
51640a360c2SBrad Bishop                0x16 : '<inventory_root>/system/chassis/motherboard/dimm6',
51740a360c2SBrad Bishop                0x17 : '<inventory_root>/system/chassis/motherboard/dimm7',
51840a360c2SBrad Bishop                0x18 : '<inventory_root>/system/chassis/motherboard/dimm8',
51940a360c2SBrad Bishop                0x19 : '<inventory_root>/system/chassis/motherboard/dimm9',
52040a360c2SBrad Bishop                0x1a : '<inventory_root>/system/chassis/motherboard/dimm10',
52140a360c2SBrad Bishop                0x1b : '<inventory_root>/system/chassis/motherboard/dimm11',
52240a360c2SBrad Bishop                0x1c : '<inventory_root>/system/chassis/motherboard/dimm12',
52340a360c2SBrad Bishop                0x1d : '<inventory_root>/system/chassis/motherboard/dimm13',
52440a360c2SBrad Bishop                0x1e : '<inventory_root>/system/chassis/motherboard/dimm14',
52540a360c2SBrad Bishop                0x1f : '<inventory_root>/system/chassis/motherboard/dimm15',
52640a360c2SBrad Bishop                0x20 : '<inventory_root>/system/chassis/motherboard/dimm16',
52740a360c2SBrad Bishop                0x21 : '<inventory_root>/system/chassis/motherboard/dimm17',
52840a360c2SBrad Bishop                0x22 : '<inventory_root>/system/chassis/motherboard/dimm18',
52940a360c2SBrad Bishop                0x23 : '<inventory_root>/system/chassis/motherboard/dimm19',
53040a360c2SBrad Bishop                0x24 : '<inventory_root>/system/chassis/motherboard/dimm20',
53140a360c2SBrad Bishop                0x25 : '<inventory_root>/system/chassis/motherboard/dimm21',
53240a360c2SBrad Bishop                0x26 : '<inventory_root>/system/chassis/motherboard/dimm22',
53340a360c2SBrad Bishop                0x27 : '<inventory_root>/system/chassis/motherboard/dimm23',
53440a360c2SBrad Bishop                0x28 : '<inventory_root>/system/chassis/motherboard/dimm24',
53540a360c2SBrad Bishop                0x29 : '<inventory_root>/system/chassis/motherboard/dimm25',
53640a360c2SBrad Bishop                0x2a : '<inventory_root>/system/chassis/motherboard/dimm26',
53740a360c2SBrad Bishop                0x2b : '<inventory_root>/system/chassis/motherboard/dimm27',
53840a360c2SBrad Bishop                0x2c : '<inventory_root>/system/chassis/motherboard/dimm28',
53940a360c2SBrad Bishop                0x2d : '<inventory_root>/system/chassis/motherboard/dimm29',
54040a360c2SBrad Bishop                0x2e : '<inventory_root>/system/chassis/motherboard/dimm30',
54140a360c2SBrad Bishop                0x2f : '<inventory_root>/system/chassis/motherboard/dimm31',
54240a360c2SBrad Bishop		0x09 : '/org/openbmc/sensors/host/BootCount',
54340a360c2SBrad Bishop		0x05 : '/org/openbmc/sensors/host/BootProgress',
54440a360c2SBrad Bishop		0x04 : '/org/openbmc/sensors/host/HostStatus',
54540a360c2SBrad Bishop		0x08 : '/org/openbmc/sensors/host/cpu0/OccStatus',
54640a360c2SBrad Bishop		0x0A : '/org/openbmc/sensors/host/cpu1/OccStatus',
54740a360c2SBrad Bishop		0x32 : '/org/openbmc/sensors/host/OperatingSystemStatus',
54840a360c2SBrad Bishop		0x33 : '/org/openbmc/sensors/host/powercap',
54940a360c2SBrad Bishop	},
55040a360c2SBrad Bishop	'GPIO_PRESENT' : {
55140a360c2SBrad Bishop		'SLOT0_RISER_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_slot0_riser',
55240a360c2SBrad Bishop		'SLOT1_RISER_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_slot1_riser',
55340a360c2SBrad Bishop		'SLOT2_RISER_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_slot2_riser',
55440a360c2SBrad Bishop		'SLOT0_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_slot0',
55540a360c2SBrad Bishop		'SLOT1_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_slot1',
55640a360c2SBrad Bishop		'SLOT2_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_slot2',
55740a360c2SBrad Bishop		'MEZZ0_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_mezz0',
55840a360c2SBrad Bishop		'MEZZ1_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_mezz1',
55940a360c2SBrad Bishop	}
56040a360c2SBrad Bishop}
56140a360c2SBrad Bishop
56240a360c2SBrad BishopGPIO_CONFIG = {}
56340a360c2SBrad BishopGPIO_CONFIG['FSI_CLK']    =   { 'gpio_pin': 'A4', 'direction': 'out' }
56440a360c2SBrad BishopGPIO_CONFIG['FSI_DATA']   =   { 'gpio_pin': 'A5', 'direction': 'out' }
56540a360c2SBrad BishopGPIO_CONFIG['FSI_ENABLE'] =   { 'gpio_pin': 'D0', 'direction': 'out' }
56640a360c2SBrad BishopGPIO_CONFIG['POWER_PIN']  =   { 'gpio_pin': 'E1', 'direction': 'out'  }
56740a360c2SBrad BishopGPIO_CONFIG['CRONUS_SEL'] =   { 'gpio_pin': 'A6', 'direction': 'out'  }
56840a360c2SBrad BishopGPIO_CONFIG['PGOOD']      =   { 'gpio_pin': 'C7', 'direction': 'in'  }
56940a360c2SBrad BishopGPIO_CONFIG['POWER_BUTTON'] = { 'gpio_pin': 'E0', 'direction': 'both' }
57040a360c2SBrad BishopGPIO_CONFIG['PCIE_RESET']   = { 'gpio_pin': 'B5', 'direction': 'out' }
57140a360c2SBrad BishopGPIO_CONFIG['USB_RESET']    = { 'gpio_pin': 'B6', 'direction': 'out' }
57240a360c2SBrad Bishop
57340a360c2SBrad BishopGPIO_CONFIG['IDBTN']       = { 'gpio_pin': 'Q7', 'direction': 'out' }
57440a360c2SBrad BishopGPIO_CONFIG['BMC_THROTTLE']       = { 'gpio_pin': 'J3', 'direction': 'out' }
57540a360c2SBrad BishopGPIO_CONFIG['RESET_BUTTON']       = { 'gpio_pin': 'E2', 'direction': 'both' }
57640a360c2SBrad BishopGPIO_CONFIG['CPLD_TCK']    	  =   { 'gpio_pin': 'P0', 'direction': 'out' }
57740a360c2SBrad BishopGPIO_CONFIG['CPLD_TDO']    	  =   { 'gpio_pin': 'P1', 'direction': 'out' }
57840a360c2SBrad BishopGPIO_CONFIG['CPLD_TDI']    	  =   { 'gpio_pin': 'P2', 'direction': 'out' }
57940a360c2SBrad BishopGPIO_CONFIG['CPLD_TMS']    	  =   { 'gpio_pin': 'P3', 'direction': 'out' }
580341c8c24SAdriana KobylakGPIO_CONFIG['CHECKSTOP']   	  =   { 'gpio_pin': 'P5', 'direction': 'falling' }
58140a360c2SBrad Bishop
58240a360c2SBrad BishopGPIO_CONFIG['SLOT0_RISER_PRESENT'] =   { 'gpio_pin': 'N0', 'direction': 'in' }
58340a360c2SBrad BishopGPIO_CONFIG['SLOT1_RISER_PRESENT'] =   { 'gpio_pin': 'N1', 'direction': 'in' }
58440a360c2SBrad BishopGPIO_CONFIG['SLOT2_RISER_PRESENT'] =   { 'gpio_pin': 'N2', 'direction': 'in' }
58540a360c2SBrad BishopGPIO_CONFIG['SLOT0_PRESENT'] =         { 'gpio_pin': 'N3', 'direction': 'in' }
58640a360c2SBrad BishopGPIO_CONFIG['SLOT1_PRESENT'] =         { 'gpio_pin': 'N4', 'direction': 'in' }
58740a360c2SBrad BishopGPIO_CONFIG['SLOT2_PRESENT'] =         { 'gpio_pin': 'N5', 'direction': 'in' }
58840a360c2SBrad BishopGPIO_CONFIG['MEZZ0_PRESENT'] =         { 'gpio_pin': 'O0', 'direction': 'in' }
58940a360c2SBrad BishopGPIO_CONFIG['MEZZ1_PRESENT'] =         { 'gpio_pin': 'O1', 'direction': 'in' }
59040a360c2SBrad Bishop
59140a360c2SBrad Bishopdef convertGpio(name):
59240a360c2SBrad Bishop	name = name.upper()
59340a360c2SBrad Bishop	c = name[0:1]
59440a360c2SBrad Bishop	offset = int(name[1:])
59540a360c2SBrad Bishop	a = ord(c)-65
59640a360c2SBrad Bishop	base = a*8+GPIO_BASE
59740a360c2SBrad Bishop	return base+offset
59840a360c2SBrad Bishop
59940a360c2SBrad Bishop
60040a360c2SBrad BishopHWMON_CONFIG = {
60140a360c2SBrad Bishop	'0-004a' :  {
60240a360c2SBrad Bishop		'names' : {
603*c14f6fecSEdward A. James			'temp1_input' : { 'object_path' : 'temperature/ambient','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
60440a360c2SBrad Bishop		}
60540a360c2SBrad Bishop	},
60640a360c2SBrad Bishop	'6-002d' : {
60740a360c2SBrad Bishop		'names' : {
60840a360c2SBrad Bishop			'pwm1' : { 'object_path' : 'speed/fan0','poll_interval' : 10000,'scale' : 1,'units' : '' },
60940a360c2SBrad Bishop			'pwm2' : { 'object_path' : 'speed/fan1','poll_interval' : 10000,'scale' : 1,'units' : '' },
61040a360c2SBrad Bishop                        'pwm3' : { 'object_path' : 'speed/fan2','poll_interval' : 10000,'scale' : 1,'units' : '' },
61140a360c2SBrad Bishop                        'in1_input' : { 'object_path' : 'voltage/P1V35_CPU0_BUF4','poll_interval' : 10000,'scale' : 1,'units' : '' },
61240a360c2SBrad Bishop                        'in2_input' : { 'object_path' : 'voltage/P0V9_CPU0_BUF1','poll_interval' : 10000,'scale' : 1,'units' : '' },
61340a360c2SBrad Bishop                        'in3_input' : { 'object_path' : 'voltage/P0V9_CPU0_BUF2','poll_interval' : 10000,'scale' : 1,'units' : '' },
61440a360c2SBrad Bishop                        'in4_input' : { 'object_path' : 'voltage/P0V9_CPU0_BUF3','poll_interval' : 10000,'scale' : 1,'units' : '' },
61540a360c2SBrad Bishop                        'in5_input' : { 'object_path' : 'voltage/P0V9_CPU0_BUF4','poll_interval' : 10000,'scale' : 1,'units' : '' },
61640a360c2SBrad Bishop                        'in6_input' : { 'object_path' : 'voltage/P1V09_CPU0_BUF1','poll_interval' : 10000,'scale' : 1,'units' : '' },
61740a360c2SBrad Bishop                        'in7_input' : { 'object_path' : 'voltage/P1V09_CPU0_BUF2','poll_interval' : 10000,'scale' : 1,'units' : '' },
61840a360c2SBrad Bishop                        'in8_input' : { 'object_path' : 'voltage/P1V09_CPU0_BUF3','poll_interval' : 10000,'scale' : 1,'units' : '' },
61940a360c2SBrad Bishop                        'in9_input' : { 'object_path' : 'voltage/P1V09_CPU0_BUF4','poll_interval' : 10000,'scale' : 1,'units' : '' },
62040a360c2SBrad Bishop                        'in10_input' : { 'object_path' : 'voltage/P0V97_CPU0','poll_interval' : 10000,'scale' : 1,'units' : '' },
62140a360c2SBrad Bishop                        'in11_input' : { 'object_path' : 'voltage/P1V1_MEM0','poll_interval' : 10000,'scale' : 1,'units' : '' },
62240a360c2SBrad Bishop                        'in12_input' : { 'object_path' : 'voltage/P1V35_CPU0_BUF1','poll_interval' : 10000,'scale' : 1,'units' : '' },
62340a360c2SBrad Bishop                        'in13_input' : { 'object_path' : 'voltage/P1V35_CPU0_BUF2','poll_interval' : 10000,'scale' : 1,'units' : '' },
62440a360c2SBrad Bishop                        'in14_input' : { 'object_path' : 'voltage/P1V35_CPU0_BUF3','poll_interval' : 10000,'scale' : 1,'units' : '' },
62540a360c2SBrad Bishop		}
62640a360c2SBrad Bishop	},
62740a360c2SBrad Bishop	'6-002e' : {
62840a360c2SBrad Bishop		'names' : {
62940a360c2SBrad Bishop			'pwm1' : { 'object_path' : 'speed/fan3','poll_interval' : 10000,'scale' : 1,'units' : '' },
63040a360c2SBrad Bishop			'pwm2' : { 'object_path' : 'speed/fan4','poll_interval' : 10000,'scale' : 1,'units' : '' },
63140a360c2SBrad Bishop			'pwm3' : { 'object_path' : 'speed/fan5','poll_interval' : 10000,'scale' : 1,'units' : '' },
63240a360c2SBrad Bishop   			'in1_input' : { 'object_path' : 'voltage/P1V35_CPU1_BUF4','poll_interval' : 10000,'scale' : 1,'units' : '' },
63340a360c2SBrad Bishop                        'in2_input' : { 'object_path' : 'voltage/P0V9_CPU1_BUF1','poll_interval' : 10000,'scale' : 1,'units' : '' },
63440a360c2SBrad Bishop                        'in3_input' : { 'object_path' : 'voltage/P0V9_CPU1_BUF2','poll_interval' : 10000,'scale' : 1,'units' : '' },
63540a360c2SBrad Bishop                        'in4_input' : { 'object_path' : 'voltage/P0V9_CPU1_BUF3','poll_interval' : 10000,'scale' : 1,'units' : '' },
63640a360c2SBrad Bishop                        'in5_input' : { 'object_path' : 'voltage/P0V9_CPU1_BUF4','poll_interval' : 10000,'scale' : 1,'units' : '' },
63740a360c2SBrad Bishop                        'in6_input' : { 'object_path' : 'voltage/P1V09_CPU1_BUF1','poll_interval' : 10000,'scale' : 1,'units' : '' },
63840a360c2SBrad Bishop                        'in7_input' : { 'object_path' : 'voltage/P1V09_CPU1_BUF2','poll_interval' : 10000,'scale' : 1,'units' : '' },
63940a360c2SBrad Bishop                        'in8_input' : { 'object_path' : 'voltage/P1V09_CPU1_BUF3','poll_interval' : 10000,'scale' : 1,'units' : '' },
64040a360c2SBrad Bishop                        'in9_input' : { 'object_path' : 'voltage/P1V09_CPU1_BUF4','poll_interval' : 10000,'scale' : 1,'units' : '' },
64140a360c2SBrad Bishop                        'in10_input' : { 'object_path' : 'voltage/P0V97_CPU1','poll_interval' : 10000,'scale' : 1,'units' : '' },
64240a360c2SBrad Bishop                        'in11_input' : { 'object_path' : 'voltage/P1V1_MEM1','poll_interval' : 10000,'scale' : 1,'units' : '' },
64340a360c2SBrad Bishop                        'in12_input' : { 'object_path' : 'voltage/P1V35_CPU1_BUF1','poll_interval' : 10000,'scale' : 1,'units' : '' },
64440a360c2SBrad Bishop                        'in13_input' : { 'object_path' : 'voltage/P1V35_CPU1_BUF2','poll_interval' : 10000,'scale' : 1,'units' : '' },
64540a360c2SBrad Bishop                        'in14_input' : { 'object_path' : 'voltage/P1V35_CPU1_BUF3','poll_interval' : 10000,'scale' : 1,'units' : '' },
64640a360c2SBrad Bishop		}
64740a360c2SBrad Bishop         },
64840a360c2SBrad Bishop	'3-0050' : {
64940a360c2SBrad Bishop		'names' : {
65040a360c2SBrad Bishop			'caps_curr_powercap' : { 'object_path' : 'powercap/curr_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
65140a360c2SBrad Bishop			'caps_curr_powerreading' : { 'object_path' : 'powercap/system_power','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
65240a360c2SBrad Bishop			'caps_max_powercap' : { 'object_path' : 'powercap/max_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
65340a360c2SBrad Bishop			'caps_min_powercap' : { 'object_path' : 'powercap/min_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
65440a360c2SBrad Bishop			'caps_norm_powercap' : { 'object_path' : 'powercap/n_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
65540a360c2SBrad Bishop			'caps_user_powerlimit' : { 'object_path' : 'powercap/user_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
65640a360c2SBrad Bishop		},
65740a360c2SBrad Bishop		'labels' : {
658*c14f6fecSEdward A. James		'176' :  { 'object_path' : 'temperature/cpu0/core0','poll_interval' : 5000,'scale' : -3,'units' : 'C',
65940a360c2SBrad Bishop			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
660*c14f6fecSEdward A. James		'177' :  { 'object_path' : 'temperature/cpu0/core1','poll_interval' : 5000,'scale' : -3,'units' : 'C',
66140a360c2SBrad Bishop			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
662*c14f6fecSEdward A. James		'178' :  { 'object_path' : 'temperature/cpu0/core2','poll_interval' : 5000,'scale' : -3,'units' : 'C',
66340a360c2SBrad Bishop			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
664*c14f6fecSEdward A. James		'179' :  { 'object_path' : 'temperature/cpu0/core3','poll_interval' : 5000,'scale' : -3,'units' : 'C',
66540a360c2SBrad Bishop			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
666*c14f6fecSEdward A. James		'180' :  { 'object_path' : 'temperature/cpu0/core4','poll_interval' : 5000,'scale' : -3,'units' : 'C',
66740a360c2SBrad Bishop			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
668*c14f6fecSEdward A. James		'181' :  { 'object_path' : 'temperature/cpu0/core5','poll_interval' : 5000,'scale' : -3,'units' : 'C',
66940a360c2SBrad Bishop			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
670*c14f6fecSEdward A. James		'182' :  { 'object_path' : 'temperature/cpu0/core6','poll_interval' : 5000,'scale' : -3,'units' : 'C',
67140a360c2SBrad Bishop			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
672*c14f6fecSEdward A. James		'183' :  { 'object_path' : 'temperature/cpu0/core7','poll_interval' : 5000,'scale' : -3,'units' : 'C',
67340a360c2SBrad Bishop			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
674*c14f6fecSEdward A. James		'184' :  { 'object_path' : 'temperature/cpu0/core8','poll_interval' : 5000,'scale' : -3,'units' : 'C',
67540a360c2SBrad Bishop			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
676*c14f6fecSEdward A. James		'185' :  { 'object_path' : 'temperature/cpu0/core9','poll_interval' : 5000,'scale' : -3,'units' : 'C',
67740a360c2SBrad Bishop			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
678*c14f6fecSEdward A. James		'186' :  { 'object_path' : 'temperature/cpu0/core10','poll_interval' : 5000,'scale' : -3,'units' : 'C',
67940a360c2SBrad Bishop			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
680*c14f6fecSEdward A. James		'187' :  { 'object_path' : 'temperature/cpu0/core11','poll_interval' : 5000,'scale' : -3,'units' : 'C',
68140a360c2SBrad Bishop			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
682*c14f6fecSEdward A. James		'102' :  { 'object_path' : 'temperature/dimm0','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
683*c14f6fecSEdward A. James		'103' :  { 'object_path' : 'temperature/dimm1','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
684*c14f6fecSEdward A. James		'104' :  { 'object_path' : 'temperature/dimm2','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
685*c14f6fecSEdward A. James		'105' :  { 'object_path' : 'temperature/dimm3','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
686*c14f6fecSEdward A. James		'106' :  { 'object_path' : 'temperature/dimm4','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
687*c14f6fecSEdward A. James		'107' :  { 'object_path' : 'temperature/dimm5','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
688*c14f6fecSEdward A. James		'108' :  { 'object_path' : 'temperature/dimm6','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
689*c14f6fecSEdward A. James		'109' :  { 'object_path' : 'temperature/dimm7','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
690*c14f6fecSEdward A. James		'110' :  { 'object_path' : 'temperature/dimm8','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
691*c14f6fecSEdward A. James		'111' :  { 'object_path' : 'temperature/dimm9','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
692*c14f6fecSEdward A. James		'112' :  { 'object_path' : 'temperature/dimm10','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
693*c14f6fecSEdward A. James		'113' :  { 'object_path' : 'temperature/dimm11','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
694*c14f6fecSEdward A. James		'114' :  { 'object_path' : 'temperature/dimm12','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
695*c14f6fecSEdward A. James		'115' :  { 'object_path' : 'temperature/dimm13','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
696*c14f6fecSEdward A. James		'116' :  { 'object_path' : 'temperature/dimm14','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
697*c14f6fecSEdward A. James		'117' :  { 'object_path' : 'temperature/dimm15','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
698*c14f6fecSEdward A. James		'94' :  { 'object_path' : 'temperature/membuf0','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
699*c14f6fecSEdward A. James		'95' :  { 'object_path' : 'temperature/membuf1','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
700*c14f6fecSEdward A. James		'96' :  { 'object_path' : 'temperature/membuf2','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
701*c14f6fecSEdward A. James		'97' :  { 'object_path' : 'temperature/membuf3','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
70240a360c2SBrad Bishop		}
70340a360c2SBrad Bishop	},
70440a360c2SBrad Bishop	'3-0051' : {
70540a360c2SBrad Bishop		'labels' :  {
706*c14f6fecSEdward A. James		'188' :  { 'object_path' : 'temperature/cpu1/core0','poll_interval' : 5000,'scale' : -3,'units' : 'C',
70740a360c2SBrad Bishop			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
708*c14f6fecSEdward A. James		'189' :  { 'object_path' : 'temperature/cpu1/core1','poll_interval' : 5000,'scale' : -3,'units' : 'C',
70940a360c2SBrad Bishop			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
710*c14f6fecSEdward A. James		'190' :  { 'object_path' : 'temperature/cpu1/core2','poll_interval' : 5000,'scale' : -3,'units' : 'C',
71140a360c2SBrad Bishop			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
712*c14f6fecSEdward A. James		'191' :  { 'object_path' : 'temperature/cpu1/core3','poll_interval' : 5000,'scale' : -3,'units' : 'C',
71340a360c2SBrad Bishop			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
714*c14f6fecSEdward A. James		'192' :  { 'object_path' : 'temperature/cpu1/core4','poll_interval' : 5000,'scale' : -3,'units' : 'C',
71540a360c2SBrad Bishop			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
716*c14f6fecSEdward A. James		'193' :  { 'object_path' : 'temperature/cpu1/core5','poll_interval' : 5000,'scale' : -3,'units' : 'C',
71740a360c2SBrad Bishop			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
718*c14f6fecSEdward A. James		'194' :  { 'object_path' : 'temperature/cpu1/core6','poll_interval' : 5000,'scale' : -3,'units' : 'C',
71940a360c2SBrad Bishop			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
720*c14f6fecSEdward A. James		'195' :  { 'object_path' : 'temperature/cpu1/core7','poll_interval' : 5000,'scale' : -3,'units' : 'C',
72140a360c2SBrad Bishop			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
722*c14f6fecSEdward A. James		'196' :  { 'object_path' : 'temperature/cpu1/core8','poll_interval' : 5000,'scale' : -3,'units' : 'C',
72340a360c2SBrad Bishop			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
724*c14f6fecSEdward A. James		'197' :  { 'object_path' : 'temperature/cpu1/core9','poll_interval' : 5000,'scale' : -3,'units' : 'C',
72540a360c2SBrad Bishop			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
726*c14f6fecSEdward A. James		'198' :  { 'object_path' : 'temperature/cpu1/core10','poll_interval' : 5000,'scale' : -3,'units' : 'C',
72740a360c2SBrad Bishop			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
728*c14f6fecSEdward A. James		'199' :  { 'object_path' : 'temperature/cpu1/core11','poll_interval' : 5000,'scale' : -3,'units' : 'C',
72940a360c2SBrad Bishop			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
730*c14f6fecSEdward A. James		'118' :  { 'object_path' : 'temperature/dimm16','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
731*c14f6fecSEdward A. James		'119' :  { 'object_path' : 'temperature/dimm17','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
732*c14f6fecSEdward A. James		'120' :  { 'object_path' : 'temperature/dimm18','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
733*c14f6fecSEdward A. James		'121' :  { 'object_path' : 'temperature/dimm19','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
734*c14f6fecSEdward A. James		'122' :  { 'object_path' : 'temperature/dimm20','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
735*c14f6fecSEdward A. James		'123' :  { 'object_path' : 'temperature/dimm21','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
736*c14f6fecSEdward A. James		'124' :  { 'object_path' : 'temperature/dimm22','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
737*c14f6fecSEdward A. James		'125' :  { 'object_path' : 'temperature/dimm23','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
738*c14f6fecSEdward A. James		'126' :  { 'object_path' : 'temperature/dimm24','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
739*c14f6fecSEdward A. James		'127' :  { 'object_path' : 'temperature/dimm25','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
740*c14f6fecSEdward A. James		'128' :  { 'object_path' : 'temperature/dimm26','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
741*c14f6fecSEdward A. James		'129' :  { 'object_path' : 'temperature/dimm27','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
742*c14f6fecSEdward A. James		'130' :  { 'object_path' : 'temperature/dimm28','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
743*c14f6fecSEdward A. James		'131' :  { 'object_path' : 'temperature/dimm29','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
744*c14f6fecSEdward A. James		'132' :  { 'object_path' : 'temperature/dimm30','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
745*c14f6fecSEdward A. James		'133' :  { 'object_path' : 'temperature/dimm31','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
746*c14f6fecSEdward A. James		'98' :  { 'object_path' : 'temperature/membuf4','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
747*c14f6fecSEdward A. James		'99' :  { 'object_path' : 'temperature/membuf5','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
748*c14f6fecSEdward A. James		'100' :  { 'object_path' : 'temperature/membuf6','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
749*c14f6fecSEdward A. James		'101' :  { 'object_path' : 'temperature/membuf7','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
75040a360c2SBrad Bishop		}
75140a360c2SBrad Bishop	},
75240a360c2SBrad Bishop	'4-0010' :  {
75340a360c2SBrad Bishop		'names' : {
75440a360c2SBrad Bishop			# Barreleye uses 0.25 millioohms sense resistor for adm1278
75540a360c2SBrad Bishop			# To convert Iout register value Y to real-world value X, use an equation:
75640a360c2SBrad Bishop			# X= 1/m * (Y * 10^-R - b), here m = 800 * R_sense, and R_sense is expressed in milliohms.
757*c14f6fecSEdward A. James			# The adm1278 driver did the conversion.
758*c14f6fecSEdward A. James			# We need to convert to the base unit from mA/mV. Scale is an exponent (10^x)
759*c14f6fecSEdward A. James			'curr1_input' : { 'object_path' : 'HSCA/Iout','poll_interval' : 5000,'adjust' : 0.25,'scale' : -3,'units' : 'A' },
760*c14f6fecSEdward A. James			'in2_input' : { 'object_path' : 'HSCA/Vout','poll_interval' : 5000,'scale' : -3,'units' : 'V' },
76140a360c2SBrad Bishop		}
76240a360c2SBrad Bishop	},
76340a360c2SBrad Bishop	'5-0010' :  {
76440a360c2SBrad Bishop		'names' : {
765*c14f6fecSEdward A. James			'curr1_input' : { 'object_path' : 'HSCB/Iout','poll_interval' : 5000,'adjust' : 0.25,'scale' : -3,'units' : 'A' },
766*c14f6fecSEdward A. James			'in2_input' : { 'object_path' : 'HSCB/Vout','poll_interval' : 5000,'scale' : -3,'units' : 'V' },
76740a360c2SBrad Bishop		}
76840a360c2SBrad Bishop	},
76940a360c2SBrad Bishop	'6-0010' :  {
77040a360c2SBrad Bishop		'names' : {
771*c14f6fecSEdward A. James			'curr1_input' : { 'object_path' : 'HSCC/Iout','poll_interval' : 5000,'adjust' : 0.25,'scale' : -3,'units' : 'A' },
772*c14f6fecSEdward A. James			'in2_input' : { 'object_path' : 'HSCC/Vout','poll_interval' : 5000,'scale' : -3,'units' : 'V' },
77340a360c2SBrad Bishop		}
77440a360c2SBrad Bishop	},
77540a360c2SBrad Bishop}
77640a360c2SBrad Bishop
77740a360c2SBrad Bishop# Miscellaneous non-poll sensor with system specific properties.
77840a360c2SBrad Bishop# The sensor id is the same as those defined in ID_LOOKUP['SENSOR'].
77940a360c2SBrad BishopMISC_SENSORS = {
78040a360c2SBrad Bishop	0x09 : { 'class' : 'BootCountSensor' },
78140a360c2SBrad Bishop	0x05 : { 'class' : 'BootProgressSensor' },
78240a360c2SBrad Bishop	0x08 : { 'class' : 'OccStatusSensor',
78340a360c2SBrad Bishop		'os_path' : '/sys/class/i2c-adapter/i2c-3/3-0050/online' },
78440a360c2SBrad Bishop	0x0A : { 'class' : 'OccStatusSensor',
78540a360c2SBrad Bishop		'os_path' : '/sys/class/i2c-adapter/i2c-3/3-0051/online' },
78640a360c2SBrad Bishop	0x32 : { 'class' : 'OperatingSystemStatusSensor' },
78740a360c2SBrad Bishop	0x33 : { 'class' : 'PowerCap',
78840a360c2SBrad Bishop		'os_path' : '/sys/class/hwmon/hwmon3/user_powercap' },
78940a360c2SBrad Bishop}
790