1*3bd8cf2eSGeorge Keishing#! /usr/bin/python
2*3bd8cf2eSGeorge Keishing
3*3bd8cf2eSGeorge KeishingHOME_PATH = './'
4*3bd8cf2eSGeorge KeishingGPIO_BASE = 320
5*3bd8cf2eSGeorge KeishingSYSTEM_NAME = "Witherspoon"
6*3bd8cf2eSGeorge Keishing
7*3bd8cf2eSGeorge Keishing
8*3bd8cf2eSGeorge Keishing## System states
9*3bd8cf2eSGeorge Keishing##   state can change to next state in 2 ways:
10*3bd8cf2eSGeorge Keishing##   - a process emits a GotoSystemState signal with state name to goto
11*3bd8cf2eSGeorge Keishing##   - objects specified in EXIT_STATE_DEPEND have started
12*3bd8cf2eSGeorge KeishingSYSTEM_STATES = [
13*3bd8cf2eSGeorge Keishing    'BASE_APPS',
14*3bd8cf2eSGeorge Keishing    'BMC_STARTING',
15*3bd8cf2eSGeorge Keishing    'BMC_READY',
16*3bd8cf2eSGeorge Keishing    'HOST_POWERING_ON',
17*3bd8cf2eSGeorge Keishing    'HOST_POWERED_ON',
18*3bd8cf2eSGeorge Keishing    'HOST_BOOTING',
19*3bd8cf2eSGeorge Keishing    'HOST_BOOTED',
20*3bd8cf2eSGeorge Keishing    'HOST_POWERED_OFF',
21*3bd8cf2eSGeorge Keishing]
22*3bd8cf2eSGeorge Keishing
23*3bd8cf2eSGeorge KeishingEXIT_STATE_DEPEND = {
24*3bd8cf2eSGeorge Keishing    'BASE_APPS' : {
25*3bd8cf2eSGeorge Keishing        '/org/openbmc/sensors': 0,
26*3bd8cf2eSGeorge Keishing    },
27*3bd8cf2eSGeorge Keishing    'BMC_STARTING' : {
28*3bd8cf2eSGeorge Keishing        '/org/openbmc/control/chassis0': 0,
29*3bd8cf2eSGeorge Keishing        '/org/openbmc/control/power0' : 0,
30*3bd8cf2eSGeorge Keishing        '/org/openbmc/control/host0' : 0,
31*3bd8cf2eSGeorge Keishing        '/org/openbmc/control/flash/bios' : 0,
32*3bd8cf2eSGeorge Keishing    },
33*3bd8cf2eSGeorge Keishing}
34*3bd8cf2eSGeorge Keishing
35*3bd8cf2eSGeorge Keishing## method will be called when state is entered
36*3bd8cf2eSGeorge KeishingENTER_STATE_CALLBACK = {
37*3bd8cf2eSGeorge Keishing    'HOST_POWERED_ON' : {
38*3bd8cf2eSGeorge Keishing        'boot' : {
39*3bd8cf2eSGeorge Keishing            'bus_name'    : 'org.openbmc.control.Host',
40*3bd8cf2eSGeorge Keishing            'obj_name'    : '/org/openbmc/control/host0',
41*3bd8cf2eSGeorge Keishing            'interface_name' : 'org.openbmc.control.Host',
42*3bd8cf2eSGeorge Keishing        },
43*3bd8cf2eSGeorge Keishing    },
44*3bd8cf2eSGeorge Keishing    'HOST_POWERED_OFF' : {
45*3bd8cf2eSGeorge Keishing        'setOff' : {
46*3bd8cf2eSGeorge Keishing            'bus_name'   : 'org.openbmc.control.led',
47*3bd8cf2eSGeorge Keishing            'obj_name'   : '/org/openbmc/control/led/identify',
48*3bd8cf2eSGeorge Keishing            'interface_name' : 'org.openbmc.Led',
49*3bd8cf2eSGeorge Keishing        }
50*3bd8cf2eSGeorge Keishing    },
51*3bd8cf2eSGeorge Keishing    'BMC_READY' : {
52*3bd8cf2eSGeorge Keishing        'setOn' : {
53*3bd8cf2eSGeorge Keishing            'bus_name'   : 'org.openbmc.control.led',
54*3bd8cf2eSGeorge Keishing            'obj_name'   : '/org/openbmc/control/led/beep',
55*3bd8cf2eSGeorge Keishing            'interface_name' : 'org.openbmc.Led',
56*3bd8cf2eSGeorge Keishing        },
57*3bd8cf2eSGeorge Keishing        'init' : {
58*3bd8cf2eSGeorge Keishing            'bus_name'   : 'org.openbmc.control.Flash',
59*3bd8cf2eSGeorge Keishing            'obj_name'   : '/org/openbmc/control/flash/bios',
60*3bd8cf2eSGeorge Keishing            'interface_name' : 'org.openbmc.Flash',
61*3bd8cf2eSGeorge Keishing        }
62*3bd8cf2eSGeorge Keishing    }
63*3bd8cf2eSGeorge Keishing}
64*3bd8cf2eSGeorge Keishing
65*3bd8cf2eSGeorge KeishingAPPS = {
66*3bd8cf2eSGeorge Keishing    'startup_hacks' : {
67*3bd8cf2eSGeorge Keishing        'system_state'    : 'BASE_APPS',
68*3bd8cf2eSGeorge Keishing        'start_process'   : True,
69*3bd8cf2eSGeorge Keishing        'monitor_process' : False,
70*3bd8cf2eSGeorge Keishing        'process_name'    : 'startup_hacks.sh',
71*3bd8cf2eSGeorge Keishing    },
72*3bd8cf2eSGeorge Keishing    'inventory' : {
73*3bd8cf2eSGeorge Keishing        'system_state'    : 'BMC_STARTING',
74*3bd8cf2eSGeorge Keishing        'start_process'   : True,
75*3bd8cf2eSGeorge Keishing        'monitor_process' : True,
76*3bd8cf2eSGeorge Keishing        'process_name'    : 'inventory_items.py',
77*3bd8cf2eSGeorge Keishing        'args'            : [ SYSTEM_NAME ]
78*3bd8cf2eSGeorge Keishing    },
79*3bd8cf2eSGeorge Keishing    'hwmon' : {
80*3bd8cf2eSGeorge Keishing        'system_state'    : 'BMC_STARTING',
81*3bd8cf2eSGeorge Keishing        'start_process'   : True,
82*3bd8cf2eSGeorge Keishing        'monitor_process' : True,
83*3bd8cf2eSGeorge Keishing        'process_name'    : 'hwmon.py',
84*3bd8cf2eSGeorge Keishing        'args'            : [ SYSTEM_NAME ]
85*3bd8cf2eSGeorge Keishing    },
86*3bd8cf2eSGeorge Keishing    'sensor_manager' : {
87*3bd8cf2eSGeorge Keishing        'system_state'    : 'BASE_APPS',
88*3bd8cf2eSGeorge Keishing        'start_process'   : True,
89*3bd8cf2eSGeorge Keishing        'monitor_process' : True,
90*3bd8cf2eSGeorge Keishing        'process_name'    : 'sensor_manager2.py',
91*3bd8cf2eSGeorge Keishing        'args'            : [ SYSTEM_NAME ]
92*3bd8cf2eSGeorge Keishing    },
93*3bd8cf2eSGeorge Keishing    'host_watchdog' : {
94*3bd8cf2eSGeorge Keishing        'system_state'    : 'BMC_STARTING',
95*3bd8cf2eSGeorge Keishing        'start_process'   : True,
96*3bd8cf2eSGeorge Keishing        'monitor_process' : True,
97*3bd8cf2eSGeorge Keishing        'process_name'    : 'host_watchdog.exe',
98*3bd8cf2eSGeorge Keishing    },
99*3bd8cf2eSGeorge Keishing    'power_control' : {
100*3bd8cf2eSGeorge Keishing        'system_state'    : 'BMC_STARTING',
101*3bd8cf2eSGeorge Keishing        'start_process'   : True,
102*3bd8cf2eSGeorge Keishing        'monitor_process' : True,
103*3bd8cf2eSGeorge Keishing        'process_name' : 'power_control.exe',
104*3bd8cf2eSGeorge Keishing        'args' : [ '3000', '10' ]
105*3bd8cf2eSGeorge Keishing    },
106*3bd8cf2eSGeorge Keishing    'power_button' : {
107*3bd8cf2eSGeorge Keishing        'system_state'    : 'BMC_STARTING',
108*3bd8cf2eSGeorge Keishing        'start_process'   : True,
109*3bd8cf2eSGeorge Keishing        'monitor_process' : True,
110*3bd8cf2eSGeorge Keishing        'process_name'    : 'button_power.exe',
111*3bd8cf2eSGeorge Keishing    },
112*3bd8cf2eSGeorge Keishing    'reset_button' : {
113*3bd8cf2eSGeorge Keishing        'system_state'    : 'BMC_STARTING',
114*3bd8cf2eSGeorge Keishing        'start_process'   : True,
115*3bd8cf2eSGeorge Keishing        'monitor_process' : True,
116*3bd8cf2eSGeorge Keishing        'process_name'    : 'button_reset.exe',
117*3bd8cf2eSGeorge Keishing    },
118*3bd8cf2eSGeorge Keishing    'host_checkstop' : {
119*3bd8cf2eSGeorge Keishing        'system_state'    : 'BMC_STARTING',
120*3bd8cf2eSGeorge Keishing        'start_process'   : True,
121*3bd8cf2eSGeorge Keishing        'monitor_process' : True,
122*3bd8cf2eSGeorge Keishing        'process_name'    : 'host_checkstop.exe',
123*3bd8cf2eSGeorge Keishing    },
124*3bd8cf2eSGeorge Keishing    'led_control' : {
125*3bd8cf2eSGeorge Keishing        'system_state'    : 'BMC_STARTING',
126*3bd8cf2eSGeorge Keishing        'start_process'   : True,
127*3bd8cf2eSGeorge Keishing        'monitor_process' : True,
128*3bd8cf2eSGeorge Keishing        'process_name'    : 'led_controller.exe',
129*3bd8cf2eSGeorge Keishing    },
130*3bd8cf2eSGeorge Keishing    'flash_control' : {
131*3bd8cf2eSGeorge Keishing        'system_state'    : 'BMC_STARTING',
132*3bd8cf2eSGeorge Keishing        'start_process'   : True,
133*3bd8cf2eSGeorge Keishing        'monitor_process' : True,
134*3bd8cf2eSGeorge Keishing        'process_name'    : 'flash_bios.exe',
135*3bd8cf2eSGeorge Keishing    },
136*3bd8cf2eSGeorge Keishing    'bmc_flash_control' : {
137*3bd8cf2eSGeorge Keishing        'system_state'    : 'BMC_STARTING',
138*3bd8cf2eSGeorge Keishing        'start_process'   : True,
139*3bd8cf2eSGeorge Keishing        'monitor_process' : True,
140*3bd8cf2eSGeorge Keishing        'process_name'    : 'bmc_update.py',
141*3bd8cf2eSGeorge Keishing    },
142*3bd8cf2eSGeorge Keishing    'download_manager' : {
143*3bd8cf2eSGeorge Keishing        'system_state'    : 'BMC_STARTING',
144*3bd8cf2eSGeorge Keishing        'start_process'   : True,
145*3bd8cf2eSGeorge Keishing        'monitor_process' : True,
146*3bd8cf2eSGeorge Keishing        'process_name'    : 'download_manager.py',
147*3bd8cf2eSGeorge Keishing        'args'            : [ SYSTEM_NAME ]
148*3bd8cf2eSGeorge Keishing    },
149*3bd8cf2eSGeorge Keishing    'host_control' : {
150*3bd8cf2eSGeorge Keishing        'system_state'    : 'BMC_STARTING',
151*3bd8cf2eSGeorge Keishing        'start_process'   : True,
152*3bd8cf2eSGeorge Keishing        'monitor_process' : True,
153*3bd8cf2eSGeorge Keishing        'process_name'    : 'control_host.exe',
154*3bd8cf2eSGeorge Keishing    },
155*3bd8cf2eSGeorge Keishing    'chassis_control' : {
156*3bd8cf2eSGeorge Keishing        'system_state'    : 'BMC_STARTING',
157*3bd8cf2eSGeorge Keishing        'start_process'   : True,
158*3bd8cf2eSGeorge Keishing        'monitor_process' : True,
159*3bd8cf2eSGeorge Keishing        'process_name'    : 'chassis_control.py',
160*3bd8cf2eSGeorge Keishing    },
161*3bd8cf2eSGeorge Keishing    'restore' : {
162*3bd8cf2eSGeorge Keishing        'system_state'    : 'BMC_READY',
163*3bd8cf2eSGeorge Keishing        'start_process'   : True,
164*3bd8cf2eSGeorge Keishing        'monitor_process' : False,
165*3bd8cf2eSGeorge Keishing        'process_name'    : 'discover_system_state.py',
166*3bd8cf2eSGeorge Keishing    },
167*3bd8cf2eSGeorge Keishing    'bmc_control' : {
168*3bd8cf2eSGeorge Keishing        'system_state'    : 'BMC_STARTING',
169*3bd8cf2eSGeorge Keishing        'start_process'   : True,
170*3bd8cf2eSGeorge Keishing        'monitor_process' : True,
171*3bd8cf2eSGeorge Keishing        'process_name'    : 'control_bmc.exe',
172*3bd8cf2eSGeorge Keishing    },
173*3bd8cf2eSGeorge Keishing}
174*3bd8cf2eSGeorge Keishing
175*3bd8cf2eSGeorge KeishingCACHED_INTERFACES = {
176*3bd8cf2eSGeorge Keishing        "org.openbmc.InventoryItem" : True,
177*3bd8cf2eSGeorge Keishing        "org.openbmc.control.Chassis" : True,
178*3bd8cf2eSGeorge Keishing}
179*3bd8cf2eSGeorge Keishing
180*3bd8cf2eSGeorge KeishingINVENTORY_ROOT = '/org/openbmc/inventory'
181*3bd8cf2eSGeorge Keishing
182*3bd8cf2eSGeorge KeishingFRU_INSTANCES = {
183*3bd8cf2eSGeorge Keishing    '<inventory_root>/system' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
184*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/bios' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
185*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/misc' : { 'fru_type' : 'SYSTEM','is_fru' : False, },
186*3bd8cf2eSGeorge Keishing
187*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
188*3bd8cf2eSGeorge Keishing
189*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard' : { 'fru_type' : 'MAIN_PLANAR','is_fru' : True, },
190*3bd8cf2eSGeorge Keishing
191*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/systemevent'                  : { 'fru_type' : 'SYSTEM_EVENT', 'is_fru' : False, },
192*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/refclock' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
193*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/pcieclock': { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
194*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/todclock' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
195*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/apss'     : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
196*3bd8cf2eSGeorge Keishing
197*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/fan0' : { 'fru_type' : 'FAN','is_fru' : True, },
198*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/fan1' : { 'fru_type' : 'FAN','is_fru' : True, },
199*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/fan2' : { 'fru_type' : 'FAN','is_fru' : True, },
200*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/fan3' : { 'fru_type' : 'FAN','is_fru' : True, },
201*3bd8cf2eSGeorge Keishing
202*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/bmc' : { 'fru_type' : 'BMC','is_fru' : False, 'manufacturer' : 'ASPEED' },
203*3bd8cf2eSGeorge Keishing
204*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu0' : { 'fru_type' : 'CPU', 'is_fru' : True, },
205*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu1' : { 'fru_type' : 'CPU', 'is_fru' : True, },
206*3bd8cf2eSGeorge Keishing
207*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu0/core0' : { 'fru_type' : 'CORE', 'is_fru' : False, },
208*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu0/core1' : { 'fru_type' : 'CORE', 'is_fru' : False, },
209*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu0/core2' : { 'fru_type' : 'CORE', 'is_fru' : False, },
210*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu0/core3' : { 'fru_type' : 'CORE', 'is_fru' : False, },
211*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu0/core4' : { 'fru_type' : 'CORE', 'is_fru' : False, },
212*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu0/core5' : { 'fru_type' : 'CORE', 'is_fru' : False, },
213*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu0/core6' : { 'fru_type' : 'CORE', 'is_fru' : False, },
214*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu0/core7' : { 'fru_type' : 'CORE', 'is_fru' : False, },
215*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu0/core8' : { 'fru_type' : 'CORE', 'is_fru' : False, },
216*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu0/core9' : { 'fru_type' : 'CORE', 'is_fru' : False, },
217*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu0/core10': { 'fru_type' : 'CORE', 'is_fru' : False, },
218*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu0/core11': { 'fru_type' : 'CORE', 'is_fru' : False, },
219*3bd8cf2eSGeorge Keishing
220*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu1/core0' : { 'fru_type' : 'CORE', 'is_fru' : False, },
221*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu1/core1' : { 'fru_type' : 'CORE', 'is_fru' : False, },
222*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu1/core2' : { 'fru_type' : 'CORE', 'is_fru' : False, },
223*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu1/core3' : { 'fru_type' : 'CORE', 'is_fru' : False, },
224*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu1/core4' : { 'fru_type' : 'CORE', 'is_fru' : False, },
225*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu1/core5' : { 'fru_type' : 'CORE', 'is_fru' : False, },
226*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu1/core6' : { 'fru_type' : 'CORE', 'is_fru' : False, },
227*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu1/core7' : { 'fru_type' : 'CORE', 'is_fru' : False, },
228*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu1/core8' : { 'fru_type' : 'CORE', 'is_fru' : False, },
229*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu1/core9' : { 'fru_type' : 'CORE', 'is_fru' : False, },
230*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu1/core10' : { 'fru_type' : 'CORE', 'is_fru' : False, },
231*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/cpu1/core11' : { 'fru_type' : 'CORE', 'is_fru' : False, },
232*3bd8cf2eSGeorge Keishing
233*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/membuf0' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
234*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/membuf1' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
235*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/membuf2' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
236*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/membuf3' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
237*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/membuf4' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
238*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/membuf5' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
239*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/membuf6' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
240*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/membuf7' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
241*3bd8cf2eSGeorge Keishing
242*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm0' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
243*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm1' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
244*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm2' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
245*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm3' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
246*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm4' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
247*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm5' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
248*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm6' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
249*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm7' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
250*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm8' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
251*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm9' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
252*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm10' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
253*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm11' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
254*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm12' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
255*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm13' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
256*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm14' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
257*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm15' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
258*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm16' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
259*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm17' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
260*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm18' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
261*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm19' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
262*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm20' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
263*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm21' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
264*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm22' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
265*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm23' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
266*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm24' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
267*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm25' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
268*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm26' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
269*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm27' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
270*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm28' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
271*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm29' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
272*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm30' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
273*3bd8cf2eSGeorge Keishing    '<inventory_root>/system/chassis/motherboard/dimm31' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
274*3bd8cf2eSGeorge Keishing}
275*3bd8cf2eSGeorge Keishing
276*3bd8cf2eSGeorge KeishingID_LOOKUP = {
277*3bd8cf2eSGeorge Keishing    'FRU' : {
278*3bd8cf2eSGeorge Keishing        0x01 : '<inventory_root>/system/chassis/motherboard/cpu0',
279*3bd8cf2eSGeorge Keishing        0x02 : '<inventory_root>/system/chassis/motherboard/cpu1',
280*3bd8cf2eSGeorge Keishing        0x03 : '<inventory_root>/system/chassis/motherboard',
281*3bd8cf2eSGeorge Keishing        0x04 : '<inventory_root>/system/chassis/motherboard/membuf0',
282*3bd8cf2eSGeorge Keishing        0x05 : '<inventory_root>/system/chassis/motherboard/membuf1',
283*3bd8cf2eSGeorge Keishing        0x06 : '<inventory_root>/system/chassis/motherboard/membuf2',
284*3bd8cf2eSGeorge Keishing        0x07 : '<inventory_root>/system/chassis/motherboard/membuf3',
285*3bd8cf2eSGeorge Keishing        0x08 : '<inventory_root>/system/chassis/motherboard/membuf4',
286*3bd8cf2eSGeorge Keishing        0x09 : '<inventory_root>/system/chassis/motherboard/membuf5',
287*3bd8cf2eSGeorge Keishing        0x0c : '<inventory_root>/system/chassis/motherboard/dimm0',
288*3bd8cf2eSGeorge Keishing        0x0d : '<inventory_root>/system/chassis/motherboard/dimm1',
289*3bd8cf2eSGeorge Keishing        0x0e : '<inventory_root>/system/chassis/motherboard/dimm2',
290*3bd8cf2eSGeorge Keishing        0x0f : '<inventory_root>/system/chassis/motherboard/dimm3',
291*3bd8cf2eSGeorge Keishing        0x10 : '<inventory_root>/system/chassis/motherboard/dimm4',
292*3bd8cf2eSGeorge Keishing        0x11 : '<inventory_root>/system/chassis/motherboard/dimm5',
293*3bd8cf2eSGeorge Keishing        0x12 : '<inventory_root>/system/chassis/motherboard/dimm6',
294*3bd8cf2eSGeorge Keishing        0x13 : '<inventory_root>/system/chassis/motherboard/dimm7',
295*3bd8cf2eSGeorge Keishing        0x14 : '<inventory_root>/system/chassis/motherboard/dimm8',
296*3bd8cf2eSGeorge Keishing        0x15 : '<inventory_root>/system/chassis/motherboard/dimm9',
297*3bd8cf2eSGeorge Keishing        0x16 : '<inventory_root>/system/chassis/motherboard/dimm10',
298*3bd8cf2eSGeorge Keishing        0x17 : '<inventory_root>/system/chassis/motherboard/dimm11',
299*3bd8cf2eSGeorge Keishing        0x18 : '<inventory_root>/system/chassis/motherboard/dimm12',
300*3bd8cf2eSGeorge Keishing        0x19 : '<inventory_root>/system/chassis/motherboard/dimm13',
301*3bd8cf2eSGeorge Keishing        0x1a : '<inventory_root>/system/chassis/motherboard/dimm14',
302*3bd8cf2eSGeorge Keishing        0x1b : '<inventory_root>/system/chassis/motherboard/dimm15',
303*3bd8cf2eSGeorge Keishing        0x1c : '<inventory_root>/system/chassis/motherboard/dimm16',
304*3bd8cf2eSGeorge Keishing        0x1d : '<inventory_root>/system/chassis/motherboard/dimm17',
305*3bd8cf2eSGeorge Keishing        0x1e : '<inventory_root>/system/chassis/motherboard/dimm18',
306*3bd8cf2eSGeorge Keishing        0x1f : '<inventory_root>/system/chassis/motherboard/dimm19',
307*3bd8cf2eSGeorge Keishing        0x20 : '<inventory_root>/system/chassis/motherboard/dimm20',
308*3bd8cf2eSGeorge Keishing        0x21 : '<inventory_root>/system/chassis/motherboard/dimm21',
309*3bd8cf2eSGeorge Keishing        0x22 : '<inventory_root>/system/chassis/motherboard/dimm22',
310*3bd8cf2eSGeorge Keishing        0x23 : '<inventory_root>/system/chassis/motherboard/dimm23',
311*3bd8cf2eSGeorge Keishing        0x24 : '<inventory_root>/system/chassis/motherboard/dimm24',
312*3bd8cf2eSGeorge Keishing        0x25 : '<inventory_root>/system/chassis/motherboard/dimm25',
313*3bd8cf2eSGeorge Keishing        0x26 : '<inventory_root>/system/chassis/motherboard/dimm26',
314*3bd8cf2eSGeorge Keishing        0x27 : '<inventory_root>/system/chassis/motherboard/dimm27',
315*3bd8cf2eSGeorge Keishing        0x28 : '<inventory_root>/system/chassis/motherboard/dimm28',
316*3bd8cf2eSGeorge Keishing        0x29 : '<inventory_root>/system/chassis/motherboard/dimm29',
317*3bd8cf2eSGeorge Keishing        0x2a : '<inventory_root>/system/chassis/motherboard/dimm30',
318*3bd8cf2eSGeorge Keishing        0x2b : '<inventory_root>/system/chassis/motherboard/dimm31',
319*3bd8cf2eSGeorge Keishing    },
320*3bd8cf2eSGeorge Keishing    'FRU_STR' : {
321*3bd8cf2eSGeorge Keishing        'PRODUCT_0'  : '<inventory_root>/system/bios',
322*3bd8cf2eSGeorge Keishing        'BOARD_1'    : '<inventory_root>/system/chassis/motherboard/cpu0',
323*3bd8cf2eSGeorge Keishing        'BOARD_2'    : '<inventory_root>/system/chassis/motherboard/cpu1',
324*3bd8cf2eSGeorge Keishing        'CHASSIS_3'  : '<inventory_root>/system/chassis/motherboard',
325*3bd8cf2eSGeorge Keishing        'BOARD_3'    : '<inventory_root>/system/misc',
326*3bd8cf2eSGeorge Keishing        'BOARD_4'    : '<inventory_root>/system/chassis/motherboard/membuf0',
327*3bd8cf2eSGeorge Keishing        'BOARD_5'    : '<inventory_root>/system/chassis/motherboard/membuf1',
328*3bd8cf2eSGeorge Keishing        'BOARD_6'    : '<inventory_root>/system/chassis/motherboard/membuf2',
329*3bd8cf2eSGeorge Keishing        'BOARD_7'    : '<inventory_root>/system/chassis/motherboard/membuf3',
330*3bd8cf2eSGeorge Keishing        'BOARD_8'    : '<inventory_root>/system/chassis/motherboard/membuf4',
331*3bd8cf2eSGeorge Keishing        'BOARD_9'    : '<inventory_root>/system/chassis/motherboard/membuf5',
332*3bd8cf2eSGeorge Keishing        'BOARD_10'   : '<inventory_root>/system/chassis/motherboard/membuf6',
333*3bd8cf2eSGeorge Keishing        'BOARD_11'   : '<inventory_root>/system/chassis/motherboard/membuf7',
334*3bd8cf2eSGeorge Keishing        'PRODUCT_12'   : '<inventory_root>/system/chassis/motherboard/dimm0',
335*3bd8cf2eSGeorge Keishing        'PRODUCT_13'   : '<inventory_root>/system/chassis/motherboard/dimm1',
336*3bd8cf2eSGeorge Keishing        'PRODUCT_14'   : '<inventory_root>/system/chassis/motherboard/dimm2',
337*3bd8cf2eSGeorge Keishing        'PRODUCT_15'   : '<inventory_root>/system/chassis/motherboard/dimm3',
338*3bd8cf2eSGeorge Keishing        'PRODUCT_16'   : '<inventory_root>/system/chassis/motherboard/dimm4',
339*3bd8cf2eSGeorge Keishing        'PRODUCT_17'   : '<inventory_root>/system/chassis/motherboard/dimm5',
340*3bd8cf2eSGeorge Keishing        'PRODUCT_18'   : '<inventory_root>/system/chassis/motherboard/dimm6',
341*3bd8cf2eSGeorge Keishing        'PRODUCT_19'   : '<inventory_root>/system/chassis/motherboard/dimm7',
342*3bd8cf2eSGeorge Keishing        'PRODUCT_20'   : '<inventory_root>/system/chassis/motherboard/dimm8',
343*3bd8cf2eSGeorge Keishing        'PRODUCT_21'   : '<inventory_root>/system/chassis/motherboard/dimm9',
344*3bd8cf2eSGeorge Keishing        'PRODUCT_22'   : '<inventory_root>/system/chassis/motherboard/dimm10',
345*3bd8cf2eSGeorge Keishing        'PRODUCT_23'   : '<inventory_root>/system/chassis/motherboard/dimm11',
346*3bd8cf2eSGeorge Keishing        'PRODUCT_24'   : '<inventory_root>/system/chassis/motherboard/dimm12',
347*3bd8cf2eSGeorge Keishing        'PRODUCT_25'   : '<inventory_root>/system/chassis/motherboard/dimm13',
348*3bd8cf2eSGeorge Keishing        'PRODUCT_26'   : '<inventory_root>/system/chassis/motherboard/dimm14',
349*3bd8cf2eSGeorge Keishing        'PRODUCT_27'   : '<inventory_root>/system/chassis/motherboard/dimm15',
350*3bd8cf2eSGeorge Keishing        'PRODUCT_28'   : '<inventory_root>/system/chassis/motherboard/dimm16',
351*3bd8cf2eSGeorge Keishing        'PRODUCT_29'   : '<inventory_root>/system/chassis/motherboard/dimm17',
352*3bd8cf2eSGeorge Keishing        'PRODUCT_30'   : '<inventory_root>/system/chassis/motherboard/dimm18',
353*3bd8cf2eSGeorge Keishing        'PRODUCT_31'   : '<inventory_root>/system/chassis/motherboard/dimm19',
354*3bd8cf2eSGeorge Keishing        'PRODUCT_32'   : '<inventory_root>/system/chassis/motherboard/dimm20',
355*3bd8cf2eSGeorge Keishing        'PRODUCT_33'   : '<inventory_root>/system/chassis/motherboard/dimm21',
356*3bd8cf2eSGeorge Keishing        'PRODUCT_34'   : '<inventory_root>/system/chassis/motherboard/dimm22',
357*3bd8cf2eSGeorge Keishing        'PRODUCT_35'   : '<inventory_root>/system/chassis/motherboard/dimm23',
358*3bd8cf2eSGeorge Keishing        'PRODUCT_36'   : '<inventory_root>/system/chassis/motherboard/dimm24',
359*3bd8cf2eSGeorge Keishing        'PRODUCT_37'   : '<inventory_root>/system/chassis/motherboard/dimm25',
360*3bd8cf2eSGeorge Keishing        'PRODUCT_38'   : '<inventory_root>/system/chassis/motherboard/dimm26',
361*3bd8cf2eSGeorge Keishing        'PRODUCT_39'   : '<inventory_root>/system/chassis/motherboard/dimm27',
362*3bd8cf2eSGeorge Keishing        'PRODUCT_40'   : '<inventory_root>/system/chassis/motherboard/dimm28',
363*3bd8cf2eSGeorge Keishing        'PRODUCT_41'   : '<inventory_root>/system/chassis/motherboard/dimm29',
364*3bd8cf2eSGeorge Keishing        'PRODUCT_42'   : '<inventory_root>/system/chassis/motherboard/dimm30',
365*3bd8cf2eSGeorge Keishing        'PRODUCT_43'   : '<inventory_root>/system/chassis/motherboard/dimm31',
366*3bd8cf2eSGeorge Keishing        'PRODUCT_47'   : '<inventory_root>/system/misc',
367*3bd8cf2eSGeorge Keishing    },
368*3bd8cf2eSGeorge Keishing    'SENSOR' : {
369*3bd8cf2eSGeorge Keishing        0x04 : '/org/openbmc/sensors/host/HostStatus',
370*3bd8cf2eSGeorge Keishing        0x05 : '/org/openbmc/sensors/host/BootProgress',
371*3bd8cf2eSGeorge Keishing        0x08 : '/org/openbmc/sensors/host/cpu0/OccStatus',
372*3bd8cf2eSGeorge Keishing        0x09 : '/org/openbmc/sensors/host/cpu1/OccStatus',
373*3bd8cf2eSGeorge Keishing        0x0c : '<inventory_root>/system/chassis/motherboard/cpu0',
374*3bd8cf2eSGeorge Keishing        0x0e : '<inventory_root>/system/chassis/motherboard/cpu1',
375*3bd8cf2eSGeorge Keishing        0x1e : '<inventory_root>/system/chassis/motherboard/dimm3',
376*3bd8cf2eSGeorge Keishing        0x1f : '<inventory_root>/system/chassis/motherboard/dimm2',
377*3bd8cf2eSGeorge Keishing        0x20 : '<inventory_root>/system/chassis/motherboard/dimm1',
378*3bd8cf2eSGeorge Keishing        0x21 : '<inventory_root>/system/chassis/motherboard/dimm0',
379*3bd8cf2eSGeorge Keishing        0x22 : '<inventory_root>/system/chassis/motherboard/dimm7',
380*3bd8cf2eSGeorge Keishing        0x23 : '<inventory_root>/system/chassis/motherboard/dimm6',
381*3bd8cf2eSGeorge Keishing        0x24 : '<inventory_root>/system/chassis/motherboard/dimm5',
382*3bd8cf2eSGeorge Keishing        0x25 : '<inventory_root>/system/chassis/motherboard/dimm4',
383*3bd8cf2eSGeorge Keishing        0x26 : '<inventory_root>/system/chassis/motherboard/dimm11',
384*3bd8cf2eSGeorge Keishing        0x27 : '<inventory_root>/system/chassis/motherboard/dimm10',
385*3bd8cf2eSGeorge Keishing        0x28 : '<inventory_root>/system/chassis/motherboard/dimm9',
386*3bd8cf2eSGeorge Keishing        0x29 : '<inventory_root>/system/chassis/motherboard/dimm8',
387*3bd8cf2eSGeorge Keishing        0x2a : '<inventory_root>/system/chassis/motherboard/dimm15',
388*3bd8cf2eSGeorge Keishing        0x2b : '<inventory_root>/system/chassis/motherboard/dimm14',
389*3bd8cf2eSGeorge Keishing        0x2c : '<inventory_root>/system/chassis/motherboard/dimm13',
390*3bd8cf2eSGeorge Keishing        0x2d : '<inventory_root>/system/chassis/motherboard/dimm12',
391*3bd8cf2eSGeorge Keishing        0x2e : '<inventory_root>/system/chassis/motherboard/dimm19',
392*3bd8cf2eSGeorge Keishing        0x2f : '<inventory_root>/system/chassis/motherboard/dimm18',
393*3bd8cf2eSGeorge Keishing        0x30 : '<inventory_root>/system/chassis/motherboard/dimm17',
394*3bd8cf2eSGeorge Keishing        0x31 : '<inventory_root>/system/chassis/motherboard/dimm16',
395*3bd8cf2eSGeorge Keishing        0x32 : '<inventory_root>/system/chassis/motherboard/dimm23',
396*3bd8cf2eSGeorge Keishing        0x33 : '<inventory_root>/system/chassis/motherboard/dimm22',
397*3bd8cf2eSGeorge Keishing        0x34 : '<inventory_root>/system/chassis/motherboard/dimm21',
398*3bd8cf2eSGeorge Keishing        0x35 : '<inventory_root>/system/chassis/motherboard/dimm20',
399*3bd8cf2eSGeorge Keishing        0x36 : '<inventory_root>/system/chassis/motherboard/dimm27',
400*3bd8cf2eSGeorge Keishing        0x37 : '<inventory_root>/system/chassis/motherboard/dimm26',
401*3bd8cf2eSGeorge Keishing        0x38 : '<inventory_root>/system/chassis/motherboard/dimm25',
402*3bd8cf2eSGeorge Keishing        0x39 : '<inventory_root>/system/chassis/motherboard/dimm24',
403*3bd8cf2eSGeorge Keishing        0x3a : '<inventory_root>/system/chassis/motherboard/dimm31',
404*3bd8cf2eSGeorge Keishing        0x3b : '<inventory_root>/system/chassis/motherboard/dimm30',
405*3bd8cf2eSGeorge Keishing        0x3c : '<inventory_root>/system/chassis/motherboard/dimm29',
406*3bd8cf2eSGeorge Keishing        0x3d : '<inventory_root>/system/chassis/motherboard/dimm28',
407*3bd8cf2eSGeorge Keishing        0x3e : '<inventory_root>/system/chassis/motherboard/cpu0/core0',
408*3bd8cf2eSGeorge Keishing        0x3f : '<inventory_root>/system/chassis/motherboard/cpu0/core1',
409*3bd8cf2eSGeorge Keishing        0x40 : '<inventory_root>/system/chassis/motherboard/cpu0/core2',
410*3bd8cf2eSGeorge Keishing        0x41 : '<inventory_root>/system/chassis/motherboard/cpu0/core3',
411*3bd8cf2eSGeorge Keishing        0x42 : '<inventory_root>/system/chassis/motherboard/cpu0/core4',
412*3bd8cf2eSGeorge Keishing        0x43 : '<inventory_root>/system/chassis/motherboard/cpu0/core5',
413*3bd8cf2eSGeorge Keishing        0x44 : '<inventory_root>/system/chassis/motherboard/cpu0/core6',
414*3bd8cf2eSGeorge Keishing        0x45 : '<inventory_root>/system/chassis/motherboard/cpu0/core7',
415*3bd8cf2eSGeorge Keishing        0x46 : '<inventory_root>/system/chassis/motherboard/cpu0/core8',
416*3bd8cf2eSGeorge Keishing        0x47 : '<inventory_root>/system/chassis/motherboard/cpu0/core9',
417*3bd8cf2eSGeorge Keishing        0x48 : '<inventory_root>/system/chassis/motherboard/cpu0/core10',
418*3bd8cf2eSGeorge Keishing        0x49 : '<inventory_root>/system/chassis/motherboard/cpu0/core11',
419*3bd8cf2eSGeorge Keishing        0x4a : '<inventory_root>/system/chassis/motherboard/cpu1/core0',
420*3bd8cf2eSGeorge Keishing        0x4b : '<inventory_root>/system/chassis/motherboard/cpu1/core1',
421*3bd8cf2eSGeorge Keishing        0x4c : '<inventory_root>/system/chassis/motherboard/cpu1/core2',
422*3bd8cf2eSGeorge Keishing        0x4d : '<inventory_root>/system/chassis/motherboard/cpu1/core3',
423*3bd8cf2eSGeorge Keishing        0x4e : '<inventory_root>/system/chassis/motherboard/cpu1/core4',
424*3bd8cf2eSGeorge Keishing        0x4f : '<inventory_root>/system/chassis/motherboard/cpu1/core5',
425*3bd8cf2eSGeorge Keishing        0x50 : '<inventory_root>/system/chassis/motherboard/cpu1/core6',
426*3bd8cf2eSGeorge Keishing        0x51 : '<inventory_root>/system/chassis/motherboard/cpu1/core7',
427*3bd8cf2eSGeorge Keishing        0x52 : '<inventory_root>/system/chassis/motherboard/cpu1/core8',
428*3bd8cf2eSGeorge Keishing        0x53 : '<inventory_root>/system/chassis/motherboard/cpu1/core9',
429*3bd8cf2eSGeorge Keishing        0x54 : '<inventory_root>/system/chassis/motherboard/cpu1/core10',
430*3bd8cf2eSGeorge Keishing        0x55 : '<inventory_root>/system/chassis/motherboard/cpu1/core11',
431*3bd8cf2eSGeorge Keishing        0x56 : '<inventory_root>/system/chassis/motherboard/membuf0',
432*3bd8cf2eSGeorge Keishing        0x57 : '<inventory_root>/system/chassis/motherboard/membuf1',
433*3bd8cf2eSGeorge Keishing        0x58 : '<inventory_root>/system/chassis/motherboard/membuf2',
434*3bd8cf2eSGeorge Keishing        0x59 : '<inventory_root>/system/chassis/motherboard/membuf3',
435*3bd8cf2eSGeorge Keishing        0x5a : '<inventory_root>/system/chassis/motherboard/membuf4',
436*3bd8cf2eSGeorge Keishing        0x5b : '<inventory_root>/system/chassis/motherboard/membuf5',
437*3bd8cf2eSGeorge Keishing        0x5c : '<inventory_root>/system/chassis/motherboard/membuf6',
438*3bd8cf2eSGeorge Keishing        0x5d : '<inventory_root>/system/chassis/motherboard/membuf7',
439*3bd8cf2eSGeorge Keishing        0x5f : '/org/openbmc/sensors/host/BootCount',
440*3bd8cf2eSGeorge Keishing        0x60 : '<inventory_root>/system/chassis/motherboard',
441*3bd8cf2eSGeorge Keishing        0x61 : '<inventory_root>/system/systemevent',
442*3bd8cf2eSGeorge Keishing        0x62 : '<inventory_root>/system/powerlimit',
443*3bd8cf2eSGeorge Keishing        0x63 : '<inventory_root>/system/chassis/motherboard/refclock',
444*3bd8cf2eSGeorge Keishing        0x64 : '<inventory_root>/system/chassis/motherboard/pcieclock',
445*3bd8cf2eSGeorge Keishing        0xb1 : '<inventory_root>/system/chassis/motherboard/todclock',
446*3bd8cf2eSGeorge Keishing        0xb2 : '<inventory_root>/system/chassis/motherboard/apss',
447*3bd8cf2eSGeorge Keishing        0xb3 : '/org/openbmc/sensors/host/powercap',
448*3bd8cf2eSGeorge Keishing        0xb5 : '/org/openbmc/sensors/host/OperatingSystemStatus',
449*3bd8cf2eSGeorge Keishing        0xb6 : '<inventory_root>/system/chassis/motherboard/pcielink',
450*3bd8cf2eSGeorge Keishing    },
451*3bd8cf2eSGeorge Keishing    'GPIO_PRESENT' : {}
452*3bd8cf2eSGeorge Keishing}
453*3bd8cf2eSGeorge Keishing
454*3bd8cf2eSGeorge KeishingGPIO_CONFIG = {}
455*3bd8cf2eSGeorge KeishingGPIO_CONFIG['BMC_POWER_UP'] = \
456*3bd8cf2eSGeorge Keishing        {'gpio_pin': 'D1', 'direction': 'out'}
457*3bd8cf2eSGeorge KeishingGPIO_CONFIG['SYS_PWROK_BUFF'] = \
458*3bd8cf2eSGeorge Keishing        {'gpio_pin': 'D2', 'direction': 'in'}
459*3bd8cf2eSGeorge KeishingGPIO_CONFIG['BMC_WD_CLEAR_PULSE_N'] = \
460*3bd8cf2eSGeorge Keishing        {'gpio_pin': 'N5', 'direction': 'out'}
461*3bd8cf2eSGeorge KeishingGPIO_CONFIG['CHECKSTOP'] = \
462*3bd8cf2eSGeorge Keishing        {'gpio_pin': 'J2', 'direction': 'falling'}
463*3bd8cf2eSGeorge Keishing
464*3bd8cf2eSGeorge Keishing# witherspoon: not connect
465*3bd8cf2eSGeorge Keishing#GPIO_CONFIG['CM1_OE_R_N'] = \
466*3bd8cf2eSGeorge Keishing#        {'gpio_pin': 'A2', 'direction': 'out'}
467*3bd8cf2eSGeorge Keishing
468*3bd8cf2eSGeorge KeishingGPIO_CONFIG['BMC_CP0_RESET_N'] = \
469*3bd8cf2eSGeorge Keishing        {'gpio_pin': 'A1', 'direction': 'out'}
470*3bd8cf2eSGeorge Keishing
471*3bd8cf2eSGeorge Keishing# witherspoon: No centaur
472*3bd8cf2eSGeorge Keishing#GPIO_CONFIG['BMC_CFAM_RESET_N_R'] = \
473*3bd8cf2eSGeorge Keishing#        {'gpio_pin': 'J2', 'direction': 'out'}
474*3bd8cf2eSGeorge Keishing
475*3bd8cf2eSGeorge Keishing
476*3bd8cf2eSGeorge Keishing# FIXME: reset pcie switch, looks like BMC_VS1_PERST_N , see workbook fig.46
477*3bd8cf2eSGeorge Keishing#GPIO_CONFIG['PEX8718_DEVICES_RESET_N'] = \
478*3bd8cf2eSGeorge Keishing#        {'gpio_pin': 'B7', 'direction': 'out'}
479*3bd8cf2eSGeorge KeishingGPIO_CONFIG['BMC_VS1_PERST_N'] = \
480*3bd8cf2eSGeorge Keishing        {'gpio_pin': 'B7', 'direction': 'out'}
481*3bd8cf2eSGeorge Keishing
482*3bd8cf2eSGeorge Keishing# FIXME: reset pcie slots, looks like BMC_CP0_PERST_ENABLE_R, see workbook fig.46
483*3bd8cf2eSGeorge Keishing# firestone: gpiog1, gpiog2
484*3bd8cf2eSGeorge Keishing#GPIO_CONFIG['CP0_DEVICES_RESET_N'] = \
485*3bd8cf2eSGeorge Keishing#        {'gpio_pin': 'B1', 'direction': 'out'}
486*3bd8cf2eSGeorge Keishing# FIXME: G2 for Firestone.. Witherspoon: no
487*3bd8cf2eSGeorge Keishing#GPIO_CONFIG['CP1_DEVICES_RESET_N'] = \
488*3bd8cf2eSGeorge Keishing#        {'gpio_pin': 'A1', 'direction': 'out'}
489*3bd8cf2eSGeorge KeishingGPIO_CONFIG['BMC_CP0_PERST_ENABLE_R'] = \
490*3bd8cf2eSGeorge Keishing        {'gpio_pin': 'A3', 'direction': 'out'}
491*3bd8cf2eSGeorge Keishing
492*3bd8cf2eSGeorge Keishing#FIXME: witherspoon: SOFT_FSI_CLK: AA0, SOFT_FSI_DAT: E0, see workbook fig.44
493*3bd8cf2eSGeorge KeishingGPIO_CONFIG['FSI_DATA'] = \
494*3bd8cf2eSGeorge Keishing        {'gpio_pin': 'E0', 'direction': 'out'}
495*3bd8cf2eSGeorge KeishingGPIO_CONFIG['FSI_CLK'] = \
496*3bd8cf2eSGeorge Keishing        {'gpio_pin': 'AA0', 'direction': 'out'}
497*3bd8cf2eSGeorge KeishingGPIO_CONFIG['FSI_ENABLE'] = \
498*3bd8cf2eSGeorge Keishing        {'gpio_pin': 'D0', 'direction': 'out'}
499*3bd8cf2eSGeorge Keishing
500*3bd8cf2eSGeorge Keishing# FIXME: both witherspoon and garrison, gpioa6 is FSI_JMFG0_PRSNT_N
501*3bd8cf2eSGeorge KeishingGPIO_CONFIG['CRONUS_SEL'] = \
502*3bd8cf2eSGeorge Keishing        {'gpio_pin': 'A6', 'direction': 'out'}
503*3bd8cf2eSGeorge Keishing
504*3bd8cf2eSGeorge Keishing# FIXME: ?? firestone gpioj3 is NC
505*3bd8cf2eSGeorge Keishing#GPIO_CONFIG['BMC_THROTTLE'] = \
506*3bd8cf2eSGeorge Keishing#        {'gpio_pin': 'J3', 'direction': 'out'}
507*3bd8cf2eSGeorge Keishing
508*3bd8cf2eSGeorge Keishing#FIXME: ?? witherspoon: FP_ID_BTN_N_R, firestone: PD_BMC_IDBTN_IN_OUT_N - it is not connected
509*3bd8cf2eSGeorge KeishingGPIO_CONFIG['IDBTN']       = \
510*3bd8cf2eSGeorge Keishing    { 'gpio_pin': 'Q7', 'direction': 'out' }
511*3bd8cf2eSGeorge Keishing
512*3bd8cf2eSGeorge Keishing#FIXME: witherspoon: FP_PWR_BTN_N, firstone: NC_BMC_PWBTN_IN_N gpioe0 - not connected
513*3bd8cf2eSGeorge KeishingGPIO_CONFIG['POWER_BUTTON'] = \
514*3bd8cf2eSGeorge Keishing        {'gpio_pin': 'I3', 'direction': 'both'}
515*3bd8cf2eSGeorge Keishing# witherspoon: BMC_NMIBTN_IN_N, firestone: BMC_NMIBTN_IN_N
516*3bd8cf2eSGeorge KeishingGPIO_CONFIG['RESET_BUTTON'] = \
517*3bd8cf2eSGeorge Keishing        {'gpio_pin': 'J1', 'direction': 'both'}
518*3bd8cf2eSGeorge Keishing
519*3bd8cf2eSGeorge KeishingGPIO_CONFIG['PS0_PRES_N'] = \
520*3bd8cf2eSGeorge Keishing        {'gpio_pin': 'P7', 'direction': 'in'}
521*3bd8cf2eSGeorge KeishingGPIO_CONFIG['PS1_PRES_N'] = \
522*3bd8cf2eSGeorge Keishing        {'gpio_pin': 'N0', 'direction': 'in'}
523*3bd8cf2eSGeorge Keishing# witherspoon: CARD_PRES_N
524*3bd8cf2eSGeorge KeishingGPIO_CONFIG['CARD_PRES_N'] = \
525*3bd8cf2eSGeorge Keishing        {'gpio_pin': 'I0', 'direction': 'in'}
526*3bd8cf2eSGeorge Keishing
527*3bd8cf2eSGeorge Keishingdef convertGpio(name):
528*3bd8cf2eSGeorge Keishing    name = name.upper()
529*3bd8cf2eSGeorge Keishing    c = name[0:1]
530*3bd8cf2eSGeorge Keishing    offset = int(name[1:])
531*3bd8cf2eSGeorge Keishing    a = ord(c)-65
532*3bd8cf2eSGeorge Keishing    base = a*8+GPIO_BASE
533*3bd8cf2eSGeorge Keishing    return base+offset
534*3bd8cf2eSGeorge Keishing
535*3bd8cf2eSGeorge Keishing
536*3bd8cf2eSGeorge KeishingHWMON_CONFIG = {
537*3bd8cf2eSGeorge Keishing    '4-0050' : {
538*3bd8cf2eSGeorge Keishing        'names' : {
539*3bd8cf2eSGeorge Keishing            'caps_curr_powercap' : { 'object_path' : 'powercap/curr_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
540*3bd8cf2eSGeorge Keishing            'caps_curr_powerreading' : { 'object_path' : 'powercap/system_power','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
541*3bd8cf2eSGeorge Keishing            'caps_max_powercap' : { 'object_path' : 'powercap/max_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
542*3bd8cf2eSGeorge Keishing            'caps_min_powercap' : { 'object_path' : 'powercap/min_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
543*3bd8cf2eSGeorge Keishing            'caps_norm_powercap' : { 'object_path' : 'powercap/n_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
544*3bd8cf2eSGeorge Keishing            'caps_user_powerlimit' : { 'object_path' : 'powercap/user_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
545*3bd8cf2eSGeorge Keishing        },
546*3bd8cf2eSGeorge Keishing        'labels' : {
547*3bd8cf2eSGeorge Keishing        '176' :  { 'object_path' : 'temperature/cpu0/core0','poll_interval' : 5000,'scale' : -3,'units' : 'C',
548*3bd8cf2eSGeorge Keishing            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
549*3bd8cf2eSGeorge Keishing        '177' :  { 'object_path' : 'temperature/cpu0/core1','poll_interval' : 5000,'scale' : -3,'units' : 'C',
550*3bd8cf2eSGeorge Keishing            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
551*3bd8cf2eSGeorge Keishing        '178' :  { 'object_path' : 'temperature/cpu0/core2','poll_interval' : 5000,'scale' : -3,'units' : 'C',
552*3bd8cf2eSGeorge Keishing            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
553*3bd8cf2eSGeorge Keishing        '179' :  { 'object_path' : 'temperature/cpu0/core3','poll_interval' : 5000,'scale' : -3,'units' : 'C',
554*3bd8cf2eSGeorge Keishing            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
555*3bd8cf2eSGeorge Keishing        '180' :  { 'object_path' : 'temperature/cpu0/core4','poll_interval' : 5000,'scale' : -3,'units' : 'C',
556*3bd8cf2eSGeorge Keishing            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
557*3bd8cf2eSGeorge Keishing        '181' :  { 'object_path' : 'temperature/cpu0/core5','poll_interval' : 5000,'scale' : -3,'units' : 'C',
558*3bd8cf2eSGeorge Keishing            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
559*3bd8cf2eSGeorge Keishing        '182' :  { 'object_path' : 'temperature/cpu0/core6','poll_interval' : 5000,'scale' : -3,'units' : 'C',
560*3bd8cf2eSGeorge Keishing            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
561*3bd8cf2eSGeorge Keishing        '183' :  { 'object_path' : 'temperature/cpu0/core7','poll_interval' : 5000,'scale' : -3,'units' : 'C',
562*3bd8cf2eSGeorge Keishing            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
563*3bd8cf2eSGeorge Keishing        '184' :  { 'object_path' : 'temperature/cpu0/core8','poll_interval' : 5000,'scale' : -3,'units' : 'C',
564*3bd8cf2eSGeorge Keishing            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
565*3bd8cf2eSGeorge Keishing        '185' :  { 'object_path' : 'temperature/cpu0/core9','poll_interval' : 5000,'scale' : -3,'units' : 'C',
566*3bd8cf2eSGeorge Keishing            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
567*3bd8cf2eSGeorge Keishing        '186' :  { 'object_path' : 'temperature/cpu0/core10','poll_interval' : 5000,'scale' : -3,'units' : 'C',
568*3bd8cf2eSGeorge Keishing            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
569*3bd8cf2eSGeorge Keishing        '187' :  { 'object_path' : 'temperature/cpu0/core11','poll_interval' : 5000,'scale' : -3,'units' : 'C',
570*3bd8cf2eSGeorge Keishing            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
571*3bd8cf2eSGeorge Keishing        '102' :  { 'object_path' : 'temperature/dimm0','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
572*3bd8cf2eSGeorge Keishing        '103' :  { 'object_path' : 'temperature/dimm1','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
573*3bd8cf2eSGeorge Keishing        '104' :  { 'object_path' : 'temperature/dimm2','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
574*3bd8cf2eSGeorge Keishing        '105' :  { 'object_path' : 'temperature/dimm3','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
575*3bd8cf2eSGeorge Keishing        '106' :  { 'object_path' : 'temperature/dimm4','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
576*3bd8cf2eSGeorge Keishing        '107' :  { 'object_path' : 'temperature/dimm5','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
577*3bd8cf2eSGeorge Keishing        '108' :  { 'object_path' : 'temperature/dimm6','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
578*3bd8cf2eSGeorge Keishing        '109' :  { 'object_path' : 'temperature/dimm7','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
579*3bd8cf2eSGeorge Keishing        '110' :  { 'object_path' : 'temperature/dimm8','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
580*3bd8cf2eSGeorge Keishing        '111' :  { 'object_path' : 'temperature/dimm9','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
581*3bd8cf2eSGeorge Keishing        '112' :  { 'object_path' : 'temperature/dimm10','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
582*3bd8cf2eSGeorge Keishing        '113' :  { 'object_path' : 'temperature/dimm11','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
583*3bd8cf2eSGeorge Keishing        '114' :  { 'object_path' : 'temperature/dimm12','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
584*3bd8cf2eSGeorge Keishing        '115' :  { 'object_path' : 'temperature/dimm13','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
585*3bd8cf2eSGeorge Keishing        '116' :  { 'object_path' : 'temperature/dimm14','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
586*3bd8cf2eSGeorge Keishing        '117' :  { 'object_path' : 'temperature/dimm15','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
587*3bd8cf2eSGeorge Keishing        '94' :  { 'object_path' : 'temperature/membuf0','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
588*3bd8cf2eSGeorge Keishing        '95' :  { 'object_path' : 'temperature/membuf1','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
589*3bd8cf2eSGeorge Keishing        '96' :  { 'object_path' : 'temperature/membuf2','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
590*3bd8cf2eSGeorge Keishing        '97' :  { 'object_path' : 'temperature/membuf3','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
591*3bd8cf2eSGeorge Keishing        }
592*3bd8cf2eSGeorge Keishing    },
593*3bd8cf2eSGeorge Keishing    '5-0050' : {
594*3bd8cf2eSGeorge Keishing        'labels' :  {
595*3bd8cf2eSGeorge Keishing        '188' :  { 'object_path' : 'temperature/cpu1/core0','poll_interval' : 5000,'scale' : -3,'units' : 'C',
596*3bd8cf2eSGeorge Keishing            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
597*3bd8cf2eSGeorge Keishing        '189' :  { 'object_path' : 'temperature/cpu1/core1','poll_interval' : 5000,'scale' : -3,'units' : 'C',
598*3bd8cf2eSGeorge Keishing            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
599*3bd8cf2eSGeorge Keishing        '190' :  { 'object_path' : 'temperature/cpu1/core2','poll_interval' : 5000,'scale' : -3,'units' : 'C',
600*3bd8cf2eSGeorge Keishing            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
601*3bd8cf2eSGeorge Keishing        '191' :  { 'object_path' : 'temperature/cpu1/core3','poll_interval' : 5000,'scale' : -3,'units' : 'C',
602*3bd8cf2eSGeorge Keishing            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
603*3bd8cf2eSGeorge Keishing        '192' :  { 'object_path' : 'temperature/cpu1/core4','poll_interval' : 5000,'scale' : -3,'units' : 'C',
604*3bd8cf2eSGeorge Keishing            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
605*3bd8cf2eSGeorge Keishing        '193' :  { 'object_path' : 'temperature/cpu1/core5','poll_interval' : 5000,'scale' : -3,'units' : 'C',
606*3bd8cf2eSGeorge Keishing            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
607*3bd8cf2eSGeorge Keishing        '194' :  { 'object_path' : 'temperature/cpu1/core6','poll_interval' : 5000,'scale' : -3,'units' : 'C',
608*3bd8cf2eSGeorge Keishing            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
609*3bd8cf2eSGeorge Keishing        '195' :  { 'object_path' : 'temperature/cpu1/core7','poll_interval' : 5000,'scale' : -3,'units' : 'C',
610*3bd8cf2eSGeorge Keishing            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
611*3bd8cf2eSGeorge Keishing        '196' :  { 'object_path' : 'temperature/cpu1/core8','poll_interval' : 5000,'scale' : -3,'units' : 'C',
612*3bd8cf2eSGeorge Keishing            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
613*3bd8cf2eSGeorge Keishing        '197' :  { 'object_path' : 'temperature/cpu1/core9','poll_interval' : 5000,'scale' : -3,'units' : 'C',
614*3bd8cf2eSGeorge Keishing            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
615*3bd8cf2eSGeorge Keishing        '198' :  { 'object_path' : 'temperature/cpu1/core10','poll_interval' : 5000,'scale' : -3,'units' : 'C',
616*3bd8cf2eSGeorge Keishing            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
617*3bd8cf2eSGeorge Keishing        '199' :  { 'object_path' : 'temperature/cpu1/core11','poll_interval' : 5000,'scale' : -3,'units' : 'C',
618*3bd8cf2eSGeorge Keishing            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
619*3bd8cf2eSGeorge Keishing        '118' :  { 'object_path' : 'temperature/dimm16','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
620*3bd8cf2eSGeorge Keishing        '119' :  { 'object_path' : 'temperature/dimm17','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
621*3bd8cf2eSGeorge Keishing        '120' :  { 'object_path' : 'temperature/dimm18','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
622*3bd8cf2eSGeorge Keishing        '121' :  { 'object_path' : 'temperature/dimm19','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
623*3bd8cf2eSGeorge Keishing        '122' :  { 'object_path' : 'temperature/dimm20','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
624*3bd8cf2eSGeorge Keishing        '123' :  { 'object_path' : 'temperature/dimm21','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
625*3bd8cf2eSGeorge Keishing        '124' :  { 'object_path' : 'temperature/dimm22','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
626*3bd8cf2eSGeorge Keishing        '125' :  { 'object_path' : 'temperature/dimm23','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
627*3bd8cf2eSGeorge Keishing        '126' :  { 'object_path' : 'temperature/dimm24','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
628*3bd8cf2eSGeorge Keishing        '127' :  { 'object_path' : 'temperature/dimm25','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
629*3bd8cf2eSGeorge Keishing        '128' :  { 'object_path' : 'temperature/dimm26','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
630*3bd8cf2eSGeorge Keishing        '129' :  { 'object_path' : 'temperature/dimm27','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
631*3bd8cf2eSGeorge Keishing        '130' :  { 'object_path' : 'temperature/dimm28','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
632*3bd8cf2eSGeorge Keishing        '131' :  { 'object_path' : 'temperature/dimm29','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
633*3bd8cf2eSGeorge Keishing        '132' :  { 'object_path' : 'temperature/dimm30','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
634*3bd8cf2eSGeorge Keishing        '133' :  { 'object_path' : 'temperature/dimm31','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
635*3bd8cf2eSGeorge Keishing        '98' :  { 'object_path' : 'temperature/membuf4','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
636*3bd8cf2eSGeorge Keishing        '99' :  { 'object_path' : 'temperature/membuf5','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
637*3bd8cf2eSGeorge Keishing        '100' :  { 'object_path' : 'temperature/membuf6','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
638*3bd8cf2eSGeorge Keishing        '101' :  { 'object_path' : 'temperature/membuf7','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
639*3bd8cf2eSGeorge Keishing        }
640*3bd8cf2eSGeorge Keishing    },
641*3bd8cf2eSGeorge Keishing}
642*3bd8cf2eSGeorge Keishing
643*3bd8cf2eSGeorge Keishing# Miscellaneous non-poll sensor with system specific properties.
644*3bd8cf2eSGeorge Keishing# The sensor id is the same as those defined in ID_LOOKUP['SENSOR'].
645*3bd8cf2eSGeorge KeishingMISC_SENSORS = {
646*3bd8cf2eSGeorge Keishing    0x5f : { 'class' : 'BootCountSensor' },
647*3bd8cf2eSGeorge Keishing    0x05 : { 'class' : 'BootProgressSensor' },
648*3bd8cf2eSGeorge Keishing    0x08 : { 'class' : 'OccStatusSensor',
649*3bd8cf2eSGeorge Keishing        'os_path' : '/sys/class/i2c-adapter/i2c-3/3-0050/online' },
650*3bd8cf2eSGeorge Keishing    0x09 : { 'class' : 'OccStatusSensor',
651*3bd8cf2eSGeorge Keishing        'os_path' : '/sys/class/i2c-adapter/i2c-3/3-0051/online' },
652*3bd8cf2eSGeorge Keishing    0xb5 : { 'class' : 'OperatingSystemStatusSensor' },
653*3bd8cf2eSGeorge Keishing    0xb3 : { 'class' : 'PowerCap',
654*3bd8cf2eSGeorge Keishing        'os_path' : '/sys/class/hwmon/hwmon3/user_powercap' },
655*3bd8cf2eSGeorge Keishing}
656