xref: /openbmc/skeleton/configs/Barreleye.py (revision f5110e11)
1#! /usr/bin/python
2
3HOME_PATH = './'
4GPIO_BASE = 320
5SYSTEM_NAME = "Barreleye"
6
7
8## System states
9##   state can change to next state in 2 ways:
10##   - a process emits a GotoSystemState signal with state name to goto
11##   - objects specified in EXIT_STATE_DEPEND have started
12SYSTEM_STATES = [
13	'BASE_APPS',
14	'BMC_STARTING',
15	'BMC_STARTING2',
16	'BMC_READY',
17	'HOST_POWERING_ON',
18	'HOST_POWERED_ON',
19	'INVENTORY_UPLOADED',
20	'HOST_BOOTING',
21	'HOST_BOOTED',
22	'HOST_POWERED_OFF',
23]
24
25EXIT_STATE_DEPEND = {
26	'BASE_APPS' : {
27		'/org/openbmc/sensors': 0,
28	},
29	'BMC_STARTING' : {
30		'/org/openbmc/control/power0' : 0,
31		'/org/openbmc/control/host0' : 0,
32		'/org/openbmc/control/flash/bios' : 0,
33		'/org/openbmc/sensors/speed/fan5': 0,
34		'/org/openbmc/inventory/system/chassis/io_board' : 0,
35	},
36	'BMC_STARTING2' : {
37		'/org/openbmc/control/fans' : 0,
38		'/org/openbmc/control/chassis0': 0,
39	},
40}
41
42CACHED_INTERFACES = {
43		"org.openbmc.InventoryItem" : True,
44		"org.openbmc.control.Chassis" : True,
45	}
46INVENTORY_ROOT = '/org/openbmc/inventory'
47
48FRU_INSTANCES = {
49	'<inventory_root>/system' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
50	'<inventory_root>/system/bios' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
51	'<inventory_root>/system/misc' : { 'fru_type' : 'SYSTEM','is_fru' : False, },
52
53	'<inventory_root>/system/chassis' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
54
55	'<inventory_root>/system/chassis/motherboard' : { 'fru_type' : 'MAIN_PLANAR','is_fru' : True, },
56	'<inventory_root>/system/chassis/io_board' : { 'fru_type' : 'DAUGHTER_CARD','is_fru' : True, },
57	'<inventory_root>/system/chassis/sas_expander' : { 'fru_type' : 'DAUGHTER_CARD','is_fru' : True, },
58	'<inventory_root>/system/chassis/hdd_backplane' : { 'fru_type' : 'DAUGHTER_CARD','is_fru' : True, },
59
60	'<inventory_root>/system/systemevent'                  : { 'fru_type' : 'SYSTEM_EVENT', 'is_fru' : False, },
61	'<inventory_root>/system/chassis/motherboard/refclock' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
62	'<inventory_root>/system/chassis/motherboard/pcieclock': { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
63	'<inventory_root>/system/chassis/motherboard/todclock' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
64	'<inventory_root>/system/chassis/motherboard/apss'     : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
65
66	'<inventory_root>/system/chassis/fan0' : { 'fru_type' : 'FAN','is_fru' : True, },
67	'<inventory_root>/system/chassis/fan1' : { 'fru_type' : 'FAN','is_fru' : True, },
68	'<inventory_root>/system/chassis/fan2' : { 'fru_type' : 'FAN','is_fru' : True, },
69	'<inventory_root>/system/chassis/fan3' : { 'fru_type' : 'FAN','is_fru' : True, },
70	'<inventory_root>/system/chassis/fan4' : { 'fru_type' : 'FAN','is_fru' : True, },
71	'<inventory_root>/system/chassis/fan5' : { 'fru_type' : 'FAN','is_fru' : True, },
72
73	'<inventory_root>/system/chassis/motherboard/bmc' : { 'fru_type' : 'BMC','is_fru' : False, 'manufacturer' : 'ASPEED' },
74
75	'<inventory_root>/system/chassis/motherboard/cpu0' : { 'fru_type' : 'CPU', 'is_fru' : True, },
76	'<inventory_root>/system/chassis/motherboard/cpu1' : { 'fru_type' : 'CPU', 'is_fru' : True, },
77
78	'<inventory_root>/system/chassis/motherboard/cpu0/core0' : { 'fru_type' : 'CORE', 'is_fru' : False, },
79	'<inventory_root>/system/chassis/motherboard/cpu0/core1' : { 'fru_type' : 'CORE', 'is_fru' : False, },
80	'<inventory_root>/system/chassis/motherboard/cpu0/core2' : { 'fru_type' : 'CORE', 'is_fru' : False, },
81	'<inventory_root>/system/chassis/motherboard/cpu0/core3' : { 'fru_type' : 'CORE', 'is_fru' : False, },
82	'<inventory_root>/system/chassis/motherboard/cpu0/core4' : { 'fru_type' : 'CORE', 'is_fru' : False, },
83	'<inventory_root>/system/chassis/motherboard/cpu0/core5' : { 'fru_type' : 'CORE', 'is_fru' : False, },
84	'<inventory_root>/system/chassis/motherboard/cpu0/core6' : { 'fru_type' : 'CORE', 'is_fru' : False, },
85	'<inventory_root>/system/chassis/motherboard/cpu0/core7' : { 'fru_type' : 'CORE', 'is_fru' : False, },
86	'<inventory_root>/system/chassis/motherboard/cpu0/core8' : { 'fru_type' : 'CORE', 'is_fru' : False, },
87	'<inventory_root>/system/chassis/motherboard/cpu0/core9' : { 'fru_type' : 'CORE', 'is_fru' : False, },
88	'<inventory_root>/system/chassis/motherboard/cpu0/core10': { 'fru_type' : 'CORE', 'is_fru' : False, },
89	'<inventory_root>/system/chassis/motherboard/cpu0/core11': { 'fru_type' : 'CORE', 'is_fru' : False, },
90
91	'<inventory_root>/system/chassis/motherboard/cpu1/core0' : { 'fru_type' : 'CORE', 'is_fru' : False, },
92	'<inventory_root>/system/chassis/motherboard/cpu1/core1' : { 'fru_type' : 'CORE', 'is_fru' : False, },
93	'<inventory_root>/system/chassis/motherboard/cpu1/core2' : { 'fru_type' : 'CORE', 'is_fru' : False, },
94	'<inventory_root>/system/chassis/motherboard/cpu1/core3' : { 'fru_type' : 'CORE', 'is_fru' : False, },
95	'<inventory_root>/system/chassis/motherboard/cpu1/core4' : { 'fru_type' : 'CORE', 'is_fru' : False, },
96	'<inventory_root>/system/chassis/motherboard/cpu1/core5' : { 'fru_type' : 'CORE', 'is_fru' : False, },
97	'<inventory_root>/system/chassis/motherboard/cpu1/core6' : { 'fru_type' : 'CORE', 'is_fru' : False, },
98	'<inventory_root>/system/chassis/motherboard/cpu1/core7' : { 'fru_type' : 'CORE', 'is_fru' : False, },
99	'<inventory_root>/system/chassis/motherboard/cpu1/core8' : { 'fru_type' : 'CORE', 'is_fru' : False, },
100	'<inventory_root>/system/chassis/motherboard/cpu1/core9' : { 'fru_type' : 'CORE', 'is_fru' : False, },
101	'<inventory_root>/system/chassis/motherboard/cpu1/core10' : { 'fru_type' : 'CORE', 'is_fru' : False, },
102	'<inventory_root>/system/chassis/motherboard/cpu1/core11' : { 'fru_type' : 'CORE', 'is_fru' : False, },
103
104	'<inventory_root>/system/chassis/motherboard/membuf0' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
105	'<inventory_root>/system/chassis/motherboard/membuf1' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
106	'<inventory_root>/system/chassis/motherboard/membuf2' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
107	'<inventory_root>/system/chassis/motherboard/membuf3' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
108	'<inventory_root>/system/chassis/motherboard/membuf4' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
109	'<inventory_root>/system/chassis/motherboard/membuf5' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
110	'<inventory_root>/system/chassis/motherboard/membuf6' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
111	'<inventory_root>/system/chassis/motherboard/membuf7' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
112
113	'<inventory_root>/system/chassis/motherboard/dimm0' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
114	'<inventory_root>/system/chassis/motherboard/dimm1' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
115	'<inventory_root>/system/chassis/motherboard/dimm2' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
116	'<inventory_root>/system/chassis/motherboard/dimm3' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
117	'<inventory_root>/system/chassis/motherboard/dimm4' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
118	'<inventory_root>/system/chassis/motherboard/dimm5' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
119	'<inventory_root>/system/chassis/motherboard/dimm6' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
120	'<inventory_root>/system/chassis/motherboard/dimm7' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
121	'<inventory_root>/system/chassis/motherboard/dimm8' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
122	'<inventory_root>/system/chassis/motherboard/dimm9' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
123	'<inventory_root>/system/chassis/motherboard/dimm10' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
124	'<inventory_root>/system/chassis/motherboard/dimm11' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
125	'<inventory_root>/system/chassis/motherboard/dimm12' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
126	'<inventory_root>/system/chassis/motherboard/dimm13' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
127	'<inventory_root>/system/chassis/motherboard/dimm14' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
128	'<inventory_root>/system/chassis/motherboard/dimm15' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
129	'<inventory_root>/system/chassis/motherboard/dimm16' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
130	'<inventory_root>/system/chassis/motherboard/dimm17' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
131	'<inventory_root>/system/chassis/motherboard/dimm18' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
132	'<inventory_root>/system/chassis/motherboard/dimm19' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
133	'<inventory_root>/system/chassis/motherboard/dimm20' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
134	'<inventory_root>/system/chassis/motherboard/dimm21' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
135	'<inventory_root>/system/chassis/motherboard/dimm22' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
136	'<inventory_root>/system/chassis/motherboard/dimm23' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
137	'<inventory_root>/system/chassis/motherboard/dimm24' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
138	'<inventory_root>/system/chassis/motherboard/dimm25' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
139	'<inventory_root>/system/chassis/motherboard/dimm26' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
140	'<inventory_root>/system/chassis/motherboard/dimm27' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
141	'<inventory_root>/system/chassis/motherboard/dimm28' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
142	'<inventory_root>/system/chassis/motherboard/dimm29' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
143	'<inventory_root>/system/chassis/motherboard/dimm30' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
144	'<inventory_root>/system/chassis/motherboard/dimm31' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
145
146	'<inventory_root>/system/chassis/io_board/pcie_slot0_riser' : { 'fru_type' : 'PCIE_RISER', 'is_fru' : True,},
147	'<inventory_root>/system/chassis/io_board/pcie_slot1_riser' : { 'fru_type' : 'PCIE_RISER', 'is_fru' : True,},
148	'<inventory_root>/system/chassis/io_board/pcie_slot2_riser' : { 'fru_type' : 'PCIE_RISER', 'is_fru' : True,},
149	'<inventory_root>/system/chassis/io_board/pcie_slot0' : { 'fru_type' : 'PCIE_CARD', 'is_fru' : True,},
150	'<inventory_root>/system/chassis/io_board/pcie_slot1' :	{ 'fru_type' : 'PCIE_CARD', 'is_fru' : True,},
151	'<inventory_root>/system/chassis/io_board/pcie_slot2' :	{ 'fru_type' : 'PCIE_CARD', 'is_fru' : True,},
152	'<inventory_root>/system/chassis/io_board/pcie_mezz0' :	{ 'fru_type' : 'PCIE_CARD', 'is_fru' : True,},
153	'<inventory_root>/system/chassis/io_board/pcie_mezz1' :	{ 'fru_type' : 'PCIE_CARD', 'is_fru' : True,},
154}
155
156ID_LOOKUP = {
157	'FRU' : {
158		0x03 : '<inventory_root>/system/chassis/motherboard',
159		0x40 : '<inventory_root>/system/chassis/io_board',
160		0x01 : '<inventory_root>/system/chassis/motherboard/cpu0',
161                0x02 : '<inventory_root>/system/chassis/motherboard/cpu1',
162		0x04 : '<inventory_root>/system/chassis/motherboard/membuf0',
163                0x05 : '<inventory_root>/system/chassis/motherboard/membuf1',
164                0x06 : '<inventory_root>/system/chassis/motherboard/membuf2',
165                0x07 : '<inventory_root>/system/chassis/motherboard/membuf3',
166                0x08 : '<inventory_root>/system/chassis/motherboard/membuf4',
167                0x09 : '<inventory_root>/system/chassis/motherboard/membuf5',
168                0x0a : '<inventory_root>/system/chassis/motherboard/membuf6',
169                0x0b : '<inventory_root>/system/chassis/motherboard/membuf7',
170		0x0c : '<inventory_root>/system/chassis/motherboard/dimm0',
171		0x0d : '<inventory_root>/system/chassis/motherboard/dimm1',
172		0x0e : '<inventory_root>/system/chassis/motherboard/dimm2',
173		0x0f : '<inventory_root>/system/chassis/motherboard/dimm3',
174                0x10 : '<inventory_root>/system/chassis/motherboard/dimm4',
175                0x11 : '<inventory_root>/system/chassis/motherboard/dimm5',
176                0x12 : '<inventory_root>/system/chassis/motherboard/dimm6',
177                0x13 : '<inventory_root>/system/chassis/motherboard/dimm7',
178                0x14 : '<inventory_root>/system/chassis/motherboard/dimm8',
179                0x15 : '<inventory_root>/system/chassis/motherboard/dimm9',
180		0x16 : '<inventory_root>/system/chassis/motherboard/dimm10',
181		0x17 : '<inventory_root>/system/chassis/motherboard/dimm11',
182		0x18 : '<inventory_root>/system/chassis/motherboard/dimm12',
183		0x19 : '<inventory_root>/system/chassis/motherboard/dimm13',
184		0x1a : '<inventory_root>/system/chassis/motherboard/dimm14',
185		0x1b : '<inventory_root>/system/chassis/motherboard/dimm15',
186		0x1c : '<inventory_root>/system/chassis/motherboard/dimm16',
187		0x1d : '<inventory_root>/system/chassis/motherboard/dimm17',
188		0x1e : '<inventory_root>/system/chassis/motherboard/dimm18',
189		0x1f : '<inventory_root>/system/chassis/motherboard/dimm19',
190		0x20 : '<inventory_root>/system/chassis/motherboard/dimm20',
191                0x21 : '<inventory_root>/system/chassis/motherboard/dimm21',
192                0x22 : '<inventory_root>/system/chassis/motherboard/dimm22',
193                0x23 : '<inventory_root>/system/chassis/motherboard/dimm23',
194                0x24 : '<inventory_root>/system/chassis/motherboard/dimm24',
195                0x25 : '<inventory_root>/system/chassis/motherboard/dimm25',
196                0x26 : '<inventory_root>/system/chassis/motherboard/dimm26',
197                0x27 : '<inventory_root>/system/chassis/motherboard/dimm27',
198                0x28 : '<inventory_root>/system/chassis/motherboard/dimm28',
199                0x29 : '<inventory_root>/system/chassis/motherboard/dimm29',
200                0x2a : '<inventory_root>/system/chassis/motherboard/dimm30',
201                0x2b : '<inventory_root>/system/chassis/motherboard/dimm31',
202		0x33 : '<inventory_root>/system',
203	},
204	'FRU_STR' : {
205		'PRODUCT_0'  : '<inventory_root>/system/bios',
206		'BOARD_3'    : '<inventory_root>/system/misc',
207		'PRODUCT_51' : '<inventory_root>/system/misc',
208		'BOARD_100'  : '<inventory_root>/system/chassis/io_board',
209		'BOARD_101'  : '<inventory_root>/system/chassis/sas_expander',
210		'BOARD_102'  : '<inventory_root>/system/chassis/hdd_backplane',
211		'CHASSIS_3'  : '<inventory_root>/system/chassis/motherboard',
212		'BOARD_1'    : '<inventory_root>/system/chassis/motherboard/cpu0',
213		'BOARD_2'    : '<inventory_root>/system/chassis/motherboard/cpu1',
214		'BOARD_4'    : '<inventory_root>/system/chassis/motherboard/membuf0',
215		'BOARD_5'    : '<inventory_root>/system/chassis/motherboard/membuf1',
216		'BOARD_6'    : '<inventory_root>/system/chassis/motherboard/membuf2',
217		'BOARD_7'    : '<inventory_root>/system/chassis/motherboard/membuf3',
218		'BOARD_8'    : '<inventory_root>/system/chassis/motherboard/membuf4',
219		'BOARD_9'    : '<inventory_root>/system/chassis/motherboard/membuf5',
220		'BOARD_10'   : '<inventory_root>/system/chassis/motherboard/membuf6',
221		'BOARD_11'   : '<inventory_root>/system/chassis/motherboard/membuf7',
222		'PRODUCT_12'   : '<inventory_root>/system/chassis/motherboard/dimm0',
223		'PRODUCT_13'   : '<inventory_root>/system/chassis/motherboard/dimm1',
224		'PRODUCT_14'   : '<inventory_root>/system/chassis/motherboard/dimm2',
225		'PRODUCT_15'   : '<inventory_root>/system/chassis/motherboard/dimm3',
226		'PRODUCT_16'   : '<inventory_root>/system/chassis/motherboard/dimm4',
227		'PRODUCT_17'   : '<inventory_root>/system/chassis/motherboard/dimm5',
228		'PRODUCT_18'   : '<inventory_root>/system/chassis/motherboard/dimm6',
229		'PRODUCT_19'   : '<inventory_root>/system/chassis/motherboard/dimm7',
230		'PRODUCT_20'   : '<inventory_root>/system/chassis/motherboard/dimm8',
231		'PRODUCT_21'   : '<inventory_root>/system/chassis/motherboard/dimm9',
232		'PRODUCT_22'   : '<inventory_root>/system/chassis/motherboard/dimm10',
233		'PRODUCT_23'   : '<inventory_root>/system/chassis/motherboard/dimm11',
234		'PRODUCT_24'   : '<inventory_root>/system/chassis/motherboard/dimm12',
235		'PRODUCT_25'   : '<inventory_root>/system/chassis/motherboard/dimm13',
236		'PRODUCT_26'   : '<inventory_root>/system/chassis/motherboard/dimm14',
237		'PRODUCT_27'   : '<inventory_root>/system/chassis/motherboard/dimm15',
238		'PRODUCT_28'   : '<inventory_root>/system/chassis/motherboard/dimm16',
239		'PRODUCT_29'   : '<inventory_root>/system/chassis/motherboard/dimm17',
240		'PRODUCT_30'   : '<inventory_root>/system/chassis/motherboard/dimm18',
241		'PRODUCT_31'   : '<inventory_root>/system/chassis/motherboard/dimm19',
242		'PRODUCT_32'   : '<inventory_root>/system/chassis/motherboard/dimm20',
243		'PRODUCT_33'   : '<inventory_root>/system/chassis/motherboard/dimm21',
244		'PRODUCT_34'   : '<inventory_root>/system/chassis/motherboard/dimm22',
245		'PRODUCT_35'   : '<inventory_root>/system/chassis/motherboard/dimm23',
246		'PRODUCT_36'   : '<inventory_root>/system/chassis/motherboard/dimm24',
247		'PRODUCT_37'   : '<inventory_root>/system/chassis/motherboard/dimm25',
248		'PRODUCT_38'   : '<inventory_root>/system/chassis/motherboard/dimm26',
249		'PRODUCT_39'   : '<inventory_root>/system/chassis/motherboard/dimm27',
250		'PRODUCT_40'   : '<inventory_root>/system/chassis/motherboard/dimm28',
251		'PRODUCT_41'   : '<inventory_root>/system/chassis/motherboard/dimm29',
252		'PRODUCT_42'   : '<inventory_root>/system/chassis/motherboard/dimm30',
253		'PRODUCT_43'   : '<inventory_root>/system/chassis/motherboard/dimm31',
254	},
255	'SENSOR' : {
256		0x35 : '<inventory_root>/system/systemevent',
257		0x36 : '<inventory_root>/system/powerlimit',
258                0x34 : '<inventory_root>/system/chassis/motherboard',
259		0x31 : '<inventory_root>/system/chassis/motherboard/pcielink',
260		0x37 : '<inventory_root>/system/chassis/motherboard/refclock',
261		0x38 : '<inventory_root>/system/chassis/motherboard/pcieclock',
262		0x39 : '<inventory_root>/system/chassis/motherboard/todclock',
263		0x3A : '<inventory_root>/system/chassis/motherboard/apss',
264		0x0c : '<inventory_root>/system/chassis/motherboard/cpu0',
265                0x0e : '<inventory_root>/system/chassis/motherboard/cpu1',
266		0xc8 : '<inventory_root>/system/chassis/motherboard/cpu0/core0',
267		0xc9 : '<inventory_root>/system/chassis/motherboard/cpu0/core1',
268		0xca : '<inventory_root>/system/chassis/motherboard/cpu0/core2',
269		0xcb : '<inventory_root>/system/chassis/motherboard/cpu0/core3',
270		0xcc : '<inventory_root>/system/chassis/motherboard/cpu0/core4',
271		0xcd : '<inventory_root>/system/chassis/motherboard/cpu0/core5',
272		0xce : '<inventory_root>/system/chassis/motherboard/cpu0/core6',
273		0xcf : '<inventory_root>/system/chassis/motherboard/cpu0/core7',
274		0xd0 : '<inventory_root>/system/chassis/motherboard/cpu0/core8',
275		0xd1 : '<inventory_root>/system/chassis/motherboard/cpu0/core9',
276		0xd2 : '<inventory_root>/system/chassis/motherboard/cpu0/core10',
277		0xd3 : '<inventory_root>/system/chassis/motherboard/cpu0/core11',
278                0xd4 : '<inventory_root>/system/chassis/motherboard/cpu1/core0',
279                0xd5 : '<inventory_root>/system/chassis/motherboard/cpu1/core1',
280                0xd6 : '<inventory_root>/system/chassis/motherboard/cpu1/core2',
281                0xd7 : '<inventory_root>/system/chassis/motherboard/cpu1/core3',
282                0xd8 : '<inventory_root>/system/chassis/motherboard/cpu1/core4',
283                0xd9 : '<inventory_root>/system/chassis/motherboard/cpu1/core5',
284                0xda : '<inventory_root>/system/chassis/motherboard/cpu1/core6',
285                0xdb : '<inventory_root>/system/chassis/motherboard/cpu1/core7',
286                0xdc : '<inventory_root>/system/chassis/motherboard/cpu1/core8',
287                0xdd : '<inventory_root>/system/chassis/motherboard/cpu1/core9',
288                0xde : '<inventory_root>/system/chassis/motherboard/cpu1/core10',
289                0xdf : '<inventory_root>/system/chassis/motherboard/cpu1/core11',
290		0x40 : '<inventory_root>/system/chassis/motherboard/membuf0',
291    	        0x41 : '<inventory_root>/system/chassis/motherboard/membuf1',
292       		0x42 : '<inventory_root>/system/chassis/motherboard/membuf2',
293       		0x43 : '<inventory_root>/system/chassis/motherboard/membuf3',
294       		0x44 : '<inventory_root>/system/chassis/motherboard/membuf4',
295                0x45 : '<inventory_root>/system/chassis/motherboard/membuf5',
296                0x46 : '<inventory_root>/system/chassis/motherboard/membuf6',
297                0x47 : '<inventory_root>/system/chassis/motherboard/membuf7',
298		0x10 : '<inventory_root>/system/chassis/motherboard/dimm0',
299		0x11 : '<inventory_root>/system/chassis/motherboard/dimm1',
300		0x12 : '<inventory_root>/system/chassis/motherboard/dimm2',
301		0x13 : '<inventory_root>/system/chassis/motherboard/dimm3',
302                0x14 : '<inventory_root>/system/chassis/motherboard/dimm4',
303                0x15 : '<inventory_root>/system/chassis/motherboard/dimm5',
304                0x16 : '<inventory_root>/system/chassis/motherboard/dimm6',
305                0x17 : '<inventory_root>/system/chassis/motherboard/dimm7',
306                0x18 : '<inventory_root>/system/chassis/motherboard/dimm8',
307                0x19 : '<inventory_root>/system/chassis/motherboard/dimm9',
308                0x1a : '<inventory_root>/system/chassis/motherboard/dimm10',
309                0x1b : '<inventory_root>/system/chassis/motherboard/dimm11',
310                0x1c : '<inventory_root>/system/chassis/motherboard/dimm12',
311                0x1d : '<inventory_root>/system/chassis/motherboard/dimm13',
312                0x1e : '<inventory_root>/system/chassis/motherboard/dimm14',
313                0x1f : '<inventory_root>/system/chassis/motherboard/dimm15',
314                0x20 : '<inventory_root>/system/chassis/motherboard/dimm16',
315                0x21 : '<inventory_root>/system/chassis/motherboard/dimm17',
316                0x22 : '<inventory_root>/system/chassis/motherboard/dimm18',
317                0x23 : '<inventory_root>/system/chassis/motherboard/dimm19',
318                0x24 : '<inventory_root>/system/chassis/motherboard/dimm20',
319                0x25 : '<inventory_root>/system/chassis/motherboard/dimm21',
320                0x26 : '<inventory_root>/system/chassis/motherboard/dimm22',
321                0x27 : '<inventory_root>/system/chassis/motherboard/dimm23',
322                0x28 : '<inventory_root>/system/chassis/motherboard/dimm24',
323                0x29 : '<inventory_root>/system/chassis/motherboard/dimm25',
324                0x2a : '<inventory_root>/system/chassis/motherboard/dimm26',
325                0x2b : '<inventory_root>/system/chassis/motherboard/dimm27',
326                0x2c : '<inventory_root>/system/chassis/motherboard/dimm28',
327                0x2d : '<inventory_root>/system/chassis/motherboard/dimm29',
328                0x2e : '<inventory_root>/system/chassis/motherboard/dimm30',
329                0x2f : '<inventory_root>/system/chassis/motherboard/dimm31',
330		0x09 : '/org/openbmc/sensors/host/BootCount',
331		0x05 : '/org/openbmc/sensors/host/BootProgress',
332		0x04 : '/org/openbmc/sensors/host/HostStatus',
333		0x08 : '/org/openbmc/sensors/host/cpu0/OccStatus',
334		0x0A : '/org/openbmc/sensors/host/cpu1/OccStatus',
335		0x32 : '/org/openbmc/sensors/host/OperatingSystemStatus',
336		0x33 : '/org/openbmc/sensors/host/powercap',
337	},
338	'GPIO_PRESENT' : {
339		'SLOT0_RISER_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_slot0_riser',
340		'SLOT1_RISER_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_slot1_riser',
341		'SLOT2_RISER_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_slot2_riser',
342		'SLOT0_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_slot0',
343		'SLOT1_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_slot1',
344		'SLOT2_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_slot2',
345		'MEZZ0_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_mezz0',
346		'MEZZ1_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_mezz1',
347	}
348}
349
350GPIO_CONFIG = {}
351GPIO_CONFIG['FSI_CLK']    =   { 'gpio_pin': 'A4', 'direction': 'out' }
352GPIO_CONFIG['FSI_DATA']   =   { 'gpio_pin': 'A5', 'direction': 'out' }
353GPIO_CONFIG['FSI_ENABLE'] =   { 'gpio_pin': 'D0', 'direction': 'out' }
354GPIO_CONFIG['POWER_PIN']  =   { 'gpio_pin': 'E1', 'direction': 'out'  }
355GPIO_CONFIG['CRONUS_SEL'] =   { 'gpio_pin': 'A6', 'direction': 'out'  }
356GPIO_CONFIG['PGOOD']      =   { 'gpio_pin': 'C7', 'direction': 'in'  }
357GPIO_CONFIG['POWER_BUTTON'] = { 'gpio_pin': 'E0', 'direction': 'both' }
358GPIO_CONFIG['PCIE_RESET']   = { 'gpio_pin': 'B5', 'direction': 'out' }
359GPIO_CONFIG['USB_RESET']    = { 'gpio_pin': 'B6', 'direction': 'out' }
360
361GPIO_CONFIG['IDBTN']       = { 'gpio_pin': 'Q7', 'direction': 'out' }
362GPIO_CONFIG['BMC_THROTTLE']       = { 'gpio_pin': 'J3', 'direction': 'out' }
363GPIO_CONFIG['RESET_BUTTON']       = { 'gpio_pin': 'E2', 'direction': 'both' }
364GPIO_CONFIG['CPLD_TCK']    	  =   { 'gpio_pin': 'P0', 'direction': 'out' }
365GPIO_CONFIG['CPLD_TDO']    	  =   { 'gpio_pin': 'P1', 'direction': 'out' }
366GPIO_CONFIG['CPLD_TDI']    	  =   { 'gpio_pin': 'P2', 'direction': 'out' }
367GPIO_CONFIG['CPLD_TMS']    	  =   { 'gpio_pin': 'P3', 'direction': 'out' }
368GPIO_CONFIG['CHECKSTOP']   	  =   { 'gpio_pin': 'P5', 'direction': 'falling' }
369
370GPIO_CONFIG['SLOT0_RISER_PRESENT'] =   { 'gpio_pin': 'N0', 'direction': 'in' }
371GPIO_CONFIG['SLOT1_RISER_PRESENT'] =   { 'gpio_pin': 'N1', 'direction': 'in' }
372GPIO_CONFIG['SLOT2_RISER_PRESENT'] =   { 'gpio_pin': 'N2', 'direction': 'in' }
373GPIO_CONFIG['SLOT0_PRESENT'] =         { 'gpio_pin': 'N3', 'direction': 'in' }
374GPIO_CONFIG['SLOT1_PRESENT'] =         { 'gpio_pin': 'N4', 'direction': 'in' }
375GPIO_CONFIG['SLOT2_PRESENT'] =         { 'gpio_pin': 'N5', 'direction': 'in' }
376GPIO_CONFIG['MEZZ0_PRESENT'] =         { 'gpio_pin': 'O0', 'direction': 'in' }
377GPIO_CONFIG['MEZZ1_PRESENT'] =         { 'gpio_pin': 'O1', 'direction': 'in' }
378
379def convertGpio(name):
380	name = name.upper()
381	c = name[0:1]
382	offset = int(name[1:])
383	a = ord(c)-65
384	base = a*8+GPIO_BASE
385	return base+offset
386
387
388HWMON_CONFIG = {
389	'0-004a' :  {
390		'names' : {
391			'temp1_input' : { 'object_path' : 'temperature/ambient','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
392		}
393	},
394	'6-002d' : {
395		'names' : {
396			'pwm1' : { 'object_path' : 'speed/fan0','poll_interval' : 10000,'scale' : 1,'units' : '' },
397			'pwm2' : { 'object_path' : 'speed/fan1','poll_interval' : 10000,'scale' : 1,'units' : '' },
398                        'pwm3' : { 'object_path' : 'speed/fan2','poll_interval' : 10000,'scale' : 1,'units' : '' },
399                        'in1_input' : { 'object_path' : 'voltage/P1V35_CPU0_BUF4','poll_interval' : 10000,'scale' : 1,'units' : '' },
400                        'in2_input' : { 'object_path' : 'voltage/P0V9_CPU0_BUF1','poll_interval' : 10000,'scale' : 1,'units' : '' },
401                        'in3_input' : { 'object_path' : 'voltage/P0V9_CPU0_BUF2','poll_interval' : 10000,'scale' : 1,'units' : '' },
402                        'in4_input' : { 'object_path' : 'voltage/P0V9_CPU0_BUF3','poll_interval' : 10000,'scale' : 1,'units' : '' },
403                        'in5_input' : { 'object_path' : 'voltage/P0V9_CPU0_BUF4','poll_interval' : 10000,'scale' : 1,'units' : '' },
404                        'in6_input' : { 'object_path' : 'voltage/P1V09_CPU0_BUF1','poll_interval' : 10000,'scale' : 1,'units' : '' },
405                        'in7_input' : { 'object_path' : 'voltage/P1V09_CPU0_BUF2','poll_interval' : 10000,'scale' : 1,'units' : '' },
406                        'in8_input' : { 'object_path' : 'voltage/P1V09_CPU0_BUF3','poll_interval' : 10000,'scale' : 1,'units' : '' },
407                        'in9_input' : { 'object_path' : 'voltage/P1V09_CPU0_BUF4','poll_interval' : 10000,'scale' : 1,'units' : '' },
408                        'in10_input' : { 'object_path' : 'voltage/P0V97_CPU0','poll_interval' : 10000,'scale' : 1,'units' : '' },
409                        'in11_input' : { 'object_path' : 'voltage/P1V1_MEM0','poll_interval' : 10000,'scale' : 1,'units' : '' },
410                        'in12_input' : { 'object_path' : 'voltage/P1V35_CPU0_BUF1','poll_interval' : 10000,'scale' : 1,'units' : '' },
411                        'in13_input' : { 'object_path' : 'voltage/P1V35_CPU0_BUF2','poll_interval' : 10000,'scale' : 1,'units' : '' },
412                        'in14_input' : { 'object_path' : 'voltage/P1V35_CPU0_BUF3','poll_interval' : 10000,'scale' : 1,'units' : '' },
413		}
414	},
415	'6-002e' : {
416		'names' : {
417			'pwm1' : { 'object_path' : 'speed/fan3','poll_interval' : 10000,'scale' : 1,'units' : '' },
418			'pwm2' : { 'object_path' : 'speed/fan4','poll_interval' : 10000,'scale' : 1,'units' : '' },
419			'pwm3' : { 'object_path' : 'speed/fan5','poll_interval' : 10000,'scale' : 1,'units' : '' },
420   			'in1_input' : { 'object_path' : 'voltage/P1V35_CPU1_BUF4','poll_interval' : 10000,'scale' : 1,'units' : '' },
421                        'in2_input' : { 'object_path' : 'voltage/P0V9_CPU1_BUF1','poll_interval' : 10000,'scale' : 1,'units' : '' },
422                        'in3_input' : { 'object_path' : 'voltage/P0V9_CPU1_BUF2','poll_interval' : 10000,'scale' : 1,'units' : '' },
423                        'in4_input' : { 'object_path' : 'voltage/P0V9_CPU1_BUF3','poll_interval' : 10000,'scale' : 1,'units' : '' },
424                        'in5_input' : { 'object_path' : 'voltage/P0V9_CPU1_BUF4','poll_interval' : 10000,'scale' : 1,'units' : '' },
425                        'in6_input' : { 'object_path' : 'voltage/P1V09_CPU1_BUF1','poll_interval' : 10000,'scale' : 1,'units' : '' },
426                        'in7_input' : { 'object_path' : 'voltage/P1V09_CPU1_BUF2','poll_interval' : 10000,'scale' : 1,'units' : '' },
427                        'in8_input' : { 'object_path' : 'voltage/P1V09_CPU1_BUF3','poll_interval' : 10000,'scale' : 1,'units' : '' },
428                        'in9_input' : { 'object_path' : 'voltage/P1V09_CPU1_BUF4','poll_interval' : 10000,'scale' : 1,'units' : '' },
429                        'in10_input' : { 'object_path' : 'voltage/P0V97_CPU1','poll_interval' : 10000,'scale' : 1,'units' : '' },
430                        'in11_input' : { 'object_path' : 'voltage/P1V1_MEM1','poll_interval' : 10000,'scale' : 1,'units' : '' },
431                        'in12_input' : { 'object_path' : 'voltage/P1V35_CPU1_BUF1','poll_interval' : 10000,'scale' : 1,'units' : '' },
432                        'in13_input' : { 'object_path' : 'voltage/P1V35_CPU1_BUF2','poll_interval' : 10000,'scale' : 1,'units' : '' },
433                        'in14_input' : { 'object_path' : 'voltage/P1V35_CPU1_BUF3','poll_interval' : 10000,'scale' : 1,'units' : '' },
434		}
435         },
436	'3-0050' : {
437		'names' : {
438			'caps_curr_powercap' : { 'object_path' : 'powercap/curr_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
439			'caps_curr_powerreading' : { 'object_path' : 'powercap/system_power','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
440			'caps_max_powercap' : { 'object_path' : 'powercap/max_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
441			'caps_min_powercap' : { 'object_path' : 'powercap/min_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
442			'caps_norm_powercap' : { 'object_path' : 'powercap/n_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
443			'caps_user_powerlimit' : { 'object_path' : 'powercap/user_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
444		},
445		'labels' : {
446		'176' :  { 'object_path' : 'temperature/cpu0/core0','poll_interval' : 5000,'scale' : -3,'units' : 'C',
447			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
448		'177' :  { 'object_path' : 'temperature/cpu0/core1','poll_interval' : 5000,'scale' : -3,'units' : 'C',
449			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
450		'178' :  { 'object_path' : 'temperature/cpu0/core2','poll_interval' : 5000,'scale' : -3,'units' : 'C',
451			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
452		'179' :  { 'object_path' : 'temperature/cpu0/core3','poll_interval' : 5000,'scale' : -3,'units' : 'C',
453			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
454		'180' :  { 'object_path' : 'temperature/cpu0/core4','poll_interval' : 5000,'scale' : -3,'units' : 'C',
455			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
456		'181' :  { 'object_path' : 'temperature/cpu0/core5','poll_interval' : 5000,'scale' : -3,'units' : 'C',
457			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
458		'182' :  { 'object_path' : 'temperature/cpu0/core6','poll_interval' : 5000,'scale' : -3,'units' : 'C',
459			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
460		'183' :  { 'object_path' : 'temperature/cpu0/core7','poll_interval' : 5000,'scale' : -3,'units' : 'C',
461			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
462		'184' :  { 'object_path' : 'temperature/cpu0/core8','poll_interval' : 5000,'scale' : -3,'units' : 'C',
463			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
464		'185' :  { 'object_path' : 'temperature/cpu0/core9','poll_interval' : 5000,'scale' : -3,'units' : 'C',
465			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
466		'186' :  { 'object_path' : 'temperature/cpu0/core10','poll_interval' : 5000,'scale' : -3,'units' : 'C',
467			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
468		'187' :  { 'object_path' : 'temperature/cpu0/core11','poll_interval' : 5000,'scale' : -3,'units' : 'C',
469			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
470		'102' :  { 'object_path' : 'temperature/dimm0','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
471		'103' :  { 'object_path' : 'temperature/dimm1','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
472		'104' :  { 'object_path' : 'temperature/dimm2','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
473		'105' :  { 'object_path' : 'temperature/dimm3','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
474		'106' :  { 'object_path' : 'temperature/dimm4','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
475		'107' :  { 'object_path' : 'temperature/dimm5','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
476		'108' :  { 'object_path' : 'temperature/dimm6','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
477		'109' :  { 'object_path' : 'temperature/dimm7','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
478		'110' :  { 'object_path' : 'temperature/dimm8','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
479		'111' :  { 'object_path' : 'temperature/dimm9','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
480		'112' :  { 'object_path' : 'temperature/dimm10','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
481		'113' :  { 'object_path' : 'temperature/dimm11','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
482		'114' :  { 'object_path' : 'temperature/dimm12','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
483		'115' :  { 'object_path' : 'temperature/dimm13','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
484		'116' :  { 'object_path' : 'temperature/dimm14','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
485		'117' :  { 'object_path' : 'temperature/dimm15','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
486		'94' :  { 'object_path' : 'temperature/membuf0','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
487		'95' :  { 'object_path' : 'temperature/membuf1','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
488		'96' :  { 'object_path' : 'temperature/membuf2','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
489		'97' :  { 'object_path' : 'temperature/membuf3','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
490		}
491	},
492	'3-0051' : {
493		'labels' :  {
494		'188' :  { 'object_path' : 'temperature/cpu1/core0','poll_interval' : 5000,'scale' : -3,'units' : 'C',
495			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
496		'189' :  { 'object_path' : 'temperature/cpu1/core1','poll_interval' : 5000,'scale' : -3,'units' : 'C',
497			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
498		'190' :  { 'object_path' : 'temperature/cpu1/core2','poll_interval' : 5000,'scale' : -3,'units' : 'C',
499			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
500		'191' :  { 'object_path' : 'temperature/cpu1/core3','poll_interval' : 5000,'scale' : -3,'units' : 'C',
501			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
502		'192' :  { 'object_path' : 'temperature/cpu1/core4','poll_interval' : 5000,'scale' : -3,'units' : 'C',
503			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
504		'193' :  { 'object_path' : 'temperature/cpu1/core5','poll_interval' : 5000,'scale' : -3,'units' : 'C',
505			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
506		'194' :  { 'object_path' : 'temperature/cpu1/core6','poll_interval' : 5000,'scale' : -3,'units' : 'C',
507			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
508		'195' :  { 'object_path' : 'temperature/cpu1/core7','poll_interval' : 5000,'scale' : -3,'units' : 'C',
509			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
510		'196' :  { 'object_path' : 'temperature/cpu1/core8','poll_interval' : 5000,'scale' : -3,'units' : 'C',
511			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
512		'197' :  { 'object_path' : 'temperature/cpu1/core9','poll_interval' : 5000,'scale' : -3,'units' : 'C',
513			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
514		'198' :  { 'object_path' : 'temperature/cpu1/core10','poll_interval' : 5000,'scale' : -3,'units' : 'C',
515			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
516		'199' :  { 'object_path' : 'temperature/cpu1/core11','poll_interval' : 5000,'scale' : -3,'units' : 'C',
517			'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
518		'118' :  { 'object_path' : 'temperature/dimm16','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
519		'119' :  { 'object_path' : 'temperature/dimm17','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
520		'120' :  { 'object_path' : 'temperature/dimm18','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
521		'121' :  { 'object_path' : 'temperature/dimm19','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
522		'122' :  { 'object_path' : 'temperature/dimm20','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
523		'123' :  { 'object_path' : 'temperature/dimm21','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
524		'124' :  { 'object_path' : 'temperature/dimm22','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
525		'125' :  { 'object_path' : 'temperature/dimm23','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
526		'126' :  { 'object_path' : 'temperature/dimm24','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
527		'127' :  { 'object_path' : 'temperature/dimm25','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
528		'128' :  { 'object_path' : 'temperature/dimm26','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
529		'129' :  { 'object_path' : 'temperature/dimm27','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
530		'130' :  { 'object_path' : 'temperature/dimm28','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
531		'131' :  { 'object_path' : 'temperature/dimm29','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
532		'132' :  { 'object_path' : 'temperature/dimm30','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
533		'133' :  { 'object_path' : 'temperature/dimm31','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
534		'98' :  { 'object_path' : 'temperature/membuf4','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
535		'99' :  { 'object_path' : 'temperature/membuf5','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
536		'100' :  { 'object_path' : 'temperature/membuf6','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
537		'101' :  { 'object_path' : 'temperature/membuf7','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
538		}
539	},
540	'4-0010' :  {
541		'names' : {
542			# Barreleye uses 0.25 millioohms sense resistor for adm1278
543			# To convert Iout register value Y to real-world value X, use an equation:
544			# X= 1/m * (Y * 10^-R - b), here m = 800 * R_sense, and R_sense is expressed in milliohms.
545			# The adm1278 driver did the conversion.
546			# We need to convert to the base unit from mA/mV. Scale is an exponent (10^x)
547			'curr1_input' : { 'object_path' : 'HSCA/Iout','poll_interval' : 5000,'adjust' : 0.25,'scale' : -3,'units' : 'A' },
548			'in2_input' : { 'object_path' : 'HSCA/Vout','poll_interval' : 5000,'scale' : -3,'units' : 'V' },
549		}
550	},
551	'5-0010' :  {
552		'names' : {
553			'curr1_input' : { 'object_path' : 'HSCB/Iout','poll_interval' : 5000,'adjust' : 0.25,'scale' : -3,'units' : 'A' },
554			'in2_input' : { 'object_path' : 'HSCB/Vout','poll_interval' : 5000,'scale' : -3,'units' : 'V' },
555		}
556	},
557	'6-0010' :  {
558		'names' : {
559			'curr1_input' : { 'object_path' : 'HSCC/Iout','poll_interval' : 5000,'adjust' : 0.25,'scale' : -3,'units' : 'A' },
560			'in2_input' : { 'object_path' : 'HSCC/Vout','poll_interval' : 5000,'scale' : -3,'units' : 'V' },
561		}
562	},
563}
564
565# Miscellaneous non-poll sensor with system specific properties.
566# The sensor id is the same as those defined in ID_LOOKUP['SENSOR'].
567MISC_SENSORS = {
568	0x09 : { 'class' : 'BootCountSensor' },
569	0x05 : { 'class' : 'BootProgressSensor' },
570	0x08 : { 'class' : 'OccStatusSensor',
571		'os_path' : '/sys/class/i2c-adapter/i2c-3/3-0050/online' },
572	0x0A : { 'class' : 'OccStatusSensor',
573		'os_path' : '/sys/class/i2c-adapter/i2c-3/3-0051/online' },
574	0x32 : { 'class' : 'OperatingSystemStatusSensor' },
575	0x33 : { 'class' : 'PowerCap',
576		'os_path' : '/sys/class/hwmon/hwmon3/user_powercap' },
577}
578