blob: 46de4abb0091eb189168e003f16e0b8aae290f36 [file] [log] [blame]
Joel Stanleyda7aad02016-10-24 17:23:15 +10301# Romulus.py
2#
Joel Stanleyda7aad02016-10-24 17:23:15 +10303
4SYSTEM_STATES = [
5 'BASE_APPS',
6 'BMC_STARTING',
7 'BMC_READY',
8 'HOST_POWERING_ON',
9 'HOST_POWERED_ON',
10 'HOST_BOOTING',
11 'HOST_BOOTED',
12 'HOST_POWERED_OFF',
13]
14
15EXIT_STATE_DEPEND = {
16 'BASE_APPS' : {
17 '/org/openbmc/sensors': 0,
18 },
19 'BMC_STARTING' : {
20 '/org/openbmc/control/chassis0': 0,
21 '/org/openbmc/control/power0' : 0,
22 '/org/openbmc/control/host0' : 0,
23 '/org/openbmc/control/flash/bios' : 0,
24 },
25}
26
27FRU_INSTANCES = {
28 '<inventory_root>/system' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
29 '<inventory_root>/system/bios' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
30 '<inventory_root>/system/misc' : { 'fru_type' : 'SYSTEM','is_fru' : False, },
31
32 '<inventory_root>/system/chassis' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
33
34 '<inventory_root>/system/chassis/motherboard' : { 'fru_type' : 'MAIN_PLANAR','is_fru' : True, },
35
36 '<inventory_root>/system/systemevent' : { 'fru_type' : 'SYSTEM_EVENT', 'is_fru' : False, },
37 '<inventory_root>/system/chassis/motherboard/refclock' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
38 '<inventory_root>/system/chassis/motherboard/pcieclock': { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
39 '<inventory_root>/system/chassis/motherboard/todclock' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
40 '<inventory_root>/system/chassis/motherboard/apss' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
41
42 '<inventory_root>/system/chassis/fan0' : { 'fru_type' : 'FAN','is_fru' : True, },
43 '<inventory_root>/system/chassis/fan1' : { 'fru_type' : 'FAN','is_fru' : True, },
44 '<inventory_root>/system/chassis/fan2' : { 'fru_type' : 'FAN','is_fru' : True, },
45 '<inventory_root>/system/chassis/fan3' : { 'fru_type' : 'FAN','is_fru' : True, },
46
47 '<inventory_root>/system/chassis/motherboard/bmc' : { 'fru_type' : 'BMC','is_fru' : False, 'manufacturer' : 'ASPEED' },
48
49 '<inventory_root>/system/chassis/motherboard/cpu0' : { 'fru_type' : 'CPU', 'is_fru' : True, },
50 '<inventory_root>/system/chassis/motherboard/cpu1' : { 'fru_type' : 'CPU', 'is_fru' : True, },
51
52 '<inventory_root>/system/chassis/motherboard/cpu0/core0' : { 'fru_type' : 'CORE', 'is_fru' : False, },
53 '<inventory_root>/system/chassis/motherboard/cpu0/core1' : { 'fru_type' : 'CORE', 'is_fru' : False, },
54 '<inventory_root>/system/chassis/motherboard/cpu0/core2' : { 'fru_type' : 'CORE', 'is_fru' : False, },
55 '<inventory_root>/system/chassis/motherboard/cpu0/core3' : { 'fru_type' : 'CORE', 'is_fru' : False, },
56 '<inventory_root>/system/chassis/motherboard/cpu0/core4' : { 'fru_type' : 'CORE', 'is_fru' : False, },
57 '<inventory_root>/system/chassis/motherboard/cpu0/core5' : { 'fru_type' : 'CORE', 'is_fru' : False, },
58 '<inventory_root>/system/chassis/motherboard/cpu0/core6' : { 'fru_type' : 'CORE', 'is_fru' : False, },
59 '<inventory_root>/system/chassis/motherboard/cpu0/core7' : { 'fru_type' : 'CORE', 'is_fru' : False, },
60 '<inventory_root>/system/chassis/motherboard/cpu0/core8' : { 'fru_type' : 'CORE', 'is_fru' : False, },
61 '<inventory_root>/system/chassis/motherboard/cpu0/core9' : { 'fru_type' : 'CORE', 'is_fru' : False, },
62 '<inventory_root>/system/chassis/motherboard/cpu0/core10': { 'fru_type' : 'CORE', 'is_fru' : False, },
63 '<inventory_root>/system/chassis/motherboard/cpu0/core11': { 'fru_type' : 'CORE', 'is_fru' : False, },
64
65 '<inventory_root>/system/chassis/motherboard/cpu1/core0' : { 'fru_type' : 'CORE', 'is_fru' : False, },
66 '<inventory_root>/system/chassis/motherboard/cpu1/core1' : { 'fru_type' : 'CORE', 'is_fru' : False, },
67 '<inventory_root>/system/chassis/motherboard/cpu1/core2' : { 'fru_type' : 'CORE', 'is_fru' : False, },
68 '<inventory_root>/system/chassis/motherboard/cpu1/core3' : { 'fru_type' : 'CORE', 'is_fru' : False, },
69 '<inventory_root>/system/chassis/motherboard/cpu1/core4' : { 'fru_type' : 'CORE', 'is_fru' : False, },
70 '<inventory_root>/system/chassis/motherboard/cpu1/core5' : { 'fru_type' : 'CORE', 'is_fru' : False, },
71 '<inventory_root>/system/chassis/motherboard/cpu1/core6' : { 'fru_type' : 'CORE', 'is_fru' : False, },
72 '<inventory_root>/system/chassis/motherboard/cpu1/core7' : { 'fru_type' : 'CORE', 'is_fru' : False, },
73 '<inventory_root>/system/chassis/motherboard/cpu1/core8' : { 'fru_type' : 'CORE', 'is_fru' : False, },
74 '<inventory_root>/system/chassis/motherboard/cpu1/core9' : { 'fru_type' : 'CORE', 'is_fru' : False, },
75 '<inventory_root>/system/chassis/motherboard/cpu1/core10' : { 'fru_type' : 'CORE', 'is_fru' : False, },
76 '<inventory_root>/system/chassis/motherboard/cpu1/core11' : { 'fru_type' : 'CORE', 'is_fru' : False, },
77
78 '<inventory_root>/system/chassis/motherboard/dimm0' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
79 '<inventory_root>/system/chassis/motherboard/dimm1' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
80 '<inventory_root>/system/chassis/motherboard/dimm2' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
81 '<inventory_root>/system/chassis/motherboard/dimm3' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
82 '<inventory_root>/system/chassis/motherboard/dimm4' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
83 '<inventory_root>/system/chassis/motherboard/dimm5' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
84 '<inventory_root>/system/chassis/motherboard/dimm6' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
85 '<inventory_root>/system/chassis/motherboard/dimm7' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
86 '<inventory_root>/system/chassis/motherboard/dimm8' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
87 '<inventory_root>/system/chassis/motherboard/dimm9' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
88 '<inventory_root>/system/chassis/motherboard/dimm10' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
89 '<inventory_root>/system/chassis/motherboard/dimm11' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
90 '<inventory_root>/system/chassis/motherboard/dimm12' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
91 '<inventory_root>/system/chassis/motherboard/dimm13' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
92 '<inventory_root>/system/chassis/motherboard/dimm14' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
93 '<inventory_root>/system/chassis/motherboard/dimm15' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
94}
95
96ID_LOOKUP = {
97 'FRU' : {
98 0x01 : '<inventory_root>/system/chassis/motherboard/cpu0',
99 0x02 : '<inventory_root>/system/chassis/motherboard/cpu1',
100 0x03 : '<inventory_root>/system/chassis/motherboard',
101 0x0c : '<inventory_root>/system/chassis/motherboard/dimm0',
102 0x0d : '<inventory_root>/system/chassis/motherboard/dimm1',
103 0x0e : '<inventory_root>/system/chassis/motherboard/dimm2',
104 0x0f : '<inventory_root>/system/chassis/motherboard/dimm3',
105 0x10 : '<inventory_root>/system/chassis/motherboard/dimm4',
106 0x11 : '<inventory_root>/system/chassis/motherboard/dimm5',
107 0x12 : '<inventory_root>/system/chassis/motherboard/dimm6',
108 0x13 : '<inventory_root>/system/chassis/motherboard/dimm7',
109 0x14 : '<inventory_root>/system/chassis/motherboard/dimm8',
110 0x15 : '<inventory_root>/system/chassis/motherboard/dimm9',
111 0x16 : '<inventory_root>/system/chassis/motherboard/dimm10',
112 0x17 : '<inventory_root>/system/chassis/motherboard/dimm11',
113 0x18 : '<inventory_root>/system/chassis/motherboard/dimm12',
114 0x19 : '<inventory_root>/system/chassis/motherboard/dimm13',
115 0x1a : '<inventory_root>/system/chassis/motherboard/dimm14',
116 0x1b : '<inventory_root>/system/chassis/motherboard/dimm15',
117 },
118 'FRU_STR' : {
119 'PRODUCT_0' : '<inventory_root>/system/bios',
120 'BOARD_1' : '<inventory_root>/system/chassis/motherboard/cpu0',
121 'BOARD_2' : '<inventory_root>/system/chassis/motherboard/cpu1',
122 'CHASSIS_3' : '<inventory_root>/system/chassis/motherboard',
123 'BOARD_3' : '<inventory_root>/system/misc',
124 'PRODUCT_12' : '<inventory_root>/system/chassis/motherboard/dimm0',
125 'PRODUCT_13' : '<inventory_root>/system/chassis/motherboard/dimm1',
126 'PRODUCT_14' : '<inventory_root>/system/chassis/motherboard/dimm2',
127 'PRODUCT_15' : '<inventory_root>/system/chassis/motherboard/dimm3',
128 'PRODUCT_16' : '<inventory_root>/system/chassis/motherboard/dimm4',
129 'PRODUCT_17' : '<inventory_root>/system/chassis/motherboard/dimm5',
130 'PRODUCT_18' : '<inventory_root>/system/chassis/motherboard/dimm6',
131 'PRODUCT_19' : '<inventory_root>/system/chassis/motherboard/dimm7',
132 'PRODUCT_20' : '<inventory_root>/system/chassis/motherboard/dimm8',
133 'PRODUCT_21' : '<inventory_root>/system/chassis/motherboard/dimm9',
134 'PRODUCT_22' : '<inventory_root>/system/chassis/motherboard/dimm10',
135 'PRODUCT_23' : '<inventory_root>/system/chassis/motherboard/dimm11',
136 'PRODUCT_24' : '<inventory_root>/system/chassis/motherboard/dimm12',
137 'PRODUCT_25' : '<inventory_root>/system/chassis/motherboard/dimm13',
138 'PRODUCT_26' : '<inventory_root>/system/chassis/motherboard/dimm14',
139 'PRODUCT_27' : '<inventory_root>/system/chassis/motherboard/dimm15',
140 'PRODUCT_47' : '<inventory_root>/system/misc',
141 },
142 'SENSOR' : {
143 0x04 : '/org/openbmc/sensors/host/HostStatus',
144 0x05 : '/org/openbmc/sensors/host/BootProgress',
145 0x08 : '/org/openbmc/sensors/host/cpu0/OccStatus',
146 0x09 : '/org/openbmc/sensors/host/cpu1/OccStatus',
147 0x0c : '<inventory_root>/system/chassis/motherboard/cpu0',
148 0x0e : '<inventory_root>/system/chassis/motherboard/cpu1',
149 0x1e : '<inventory_root>/system/chassis/motherboard/dimm3',
150 0x1f : '<inventory_root>/system/chassis/motherboard/dimm2',
151 0x20 : '<inventory_root>/system/chassis/motherboard/dimm1',
152 0x21 : '<inventory_root>/system/chassis/motherboard/dimm0',
153 0x22 : '<inventory_root>/system/chassis/motherboard/dimm7',
154 0x23 : '<inventory_root>/system/chassis/motherboard/dimm6',
155 0x24 : '<inventory_root>/system/chassis/motherboard/dimm5',
156 0x25 : '<inventory_root>/system/chassis/motherboard/dimm4',
157 0x26 : '<inventory_root>/system/chassis/motherboard/dimm11',
158 0x27 : '<inventory_root>/system/chassis/motherboard/dimm10',
159 0x28 : '<inventory_root>/system/chassis/motherboard/dimm9',
160 0x29 : '<inventory_root>/system/chassis/motherboard/dimm8',
161 0x2a : '<inventory_root>/system/chassis/motherboard/dimm15',
162 0x2b : '<inventory_root>/system/chassis/motherboard/dimm14',
163 0x2c : '<inventory_root>/system/chassis/motherboard/dimm13',
164 0x2d : '<inventory_root>/system/chassis/motherboard/dimm12',
165 0x3e : '<inventory_root>/system/chassis/motherboard/cpu0/core0',
166 0x3f : '<inventory_root>/system/chassis/motherboard/cpu0/core1',
167 0x40 : '<inventory_root>/system/chassis/motherboard/cpu0/core2',
168 0x41 : '<inventory_root>/system/chassis/motherboard/cpu0/core3',
169 0x42 : '<inventory_root>/system/chassis/motherboard/cpu0/core4',
170 0x43 : '<inventory_root>/system/chassis/motherboard/cpu0/core5',
171 0x44 : '<inventory_root>/system/chassis/motherboard/cpu0/core6',
172 0x45 : '<inventory_root>/system/chassis/motherboard/cpu0/core7',
173 0x46 : '<inventory_root>/system/chassis/motherboard/cpu0/core8',
174 0x47 : '<inventory_root>/system/chassis/motherboard/cpu0/core9',
175 0x48 : '<inventory_root>/system/chassis/motherboard/cpu0/core10',
176 0x49 : '<inventory_root>/system/chassis/motherboard/cpu0/core11',
177 0x4a : '<inventory_root>/system/chassis/motherboard/cpu1/core0',
178 0x4b : '<inventory_root>/system/chassis/motherboard/cpu1/core1',
179 0x4c : '<inventory_root>/system/chassis/motherboard/cpu1/core2',
180 0x4d : '<inventory_root>/system/chassis/motherboard/cpu1/core3',
181 0x4e : '<inventory_root>/system/chassis/motherboard/cpu1/core4',
182 0x4f : '<inventory_root>/system/chassis/motherboard/cpu1/core5',
183 0x50 : '<inventory_root>/system/chassis/motherboard/cpu1/core6',
184 0x51 : '<inventory_root>/system/chassis/motherboard/cpu1/core7',
185 0x52 : '<inventory_root>/system/chassis/motherboard/cpu1/core8',
186 0x53 : '<inventory_root>/system/chassis/motherboard/cpu1/core9',
187 0x54 : '<inventory_root>/system/chassis/motherboard/cpu1/core10',
188 0x55 : '<inventory_root>/system/chassis/motherboard/cpu1/core11',
189 0x5f : '/org/openbmc/sensors/host/BootCount',
190 0x60 : '<inventory_root>/system/chassis/motherboard',
191 0x61 : '<inventory_root>/system/systemevent',
192 0x62 : '<inventory_root>/system/powerlimit',
193 0x63 : '<inventory_root>/system/chassis/motherboard/refclock',
194 0x64 : '<inventory_root>/system/chassis/motherboard/pcieclock',
195 0xb1 : '<inventory_root>/system/chassis/motherboard/todclock',
196 0xb2 : '<inventory_root>/system/chassis/motherboard/apss',
197 0xb3 : '/org/openbmc/sensors/host/powercap',
198 0xb5 : '/org/openbmc/sensors/host/OperatingSystemStatus',
199 0xb6 : '<inventory_root>/system/chassis/motherboard/pcielink',
200 },
201 'GPIO_PRESENT' : {}
202}
203
204GPIO_CONFIG = {}
205GPIO_CONFIG['SOFTWARE_PGOOD'] = \
206 {'gpio_pin': 'R1', 'direction': 'out'}
207GPIO_CONFIG['BMC_POWER_UP'] = \
208 {'gpio_pin': 'D1', 'direction': 'out'}
209GPIO_CONFIG['SYS_PWROK_BUFF'] = \
210 {'gpio_pin': 'D2', 'direction': 'in'}
211GPIO_CONFIG['BMC_WD_CLEAR_PULSE_N'] = \
212 {'gpio_pin': 'N5', 'direction': 'out'}
213GPIO_CONFIG['CHECKSTOP'] = \
214 {'gpio_pin': 'J2', 'direction': 'falling'}
Joel Stanleyda7aad02016-10-24 17:23:15 +1030215GPIO_CONFIG['BMC_CP0_RESET_N'] = \
216 {'gpio_pin': 'A1', 'direction': 'out'}
Joel Stanleyda7aad02016-10-24 17:23:15 +1030217GPIO_CONFIG['BMC_CP0_PERST_ENABLE_R'] = \
218 {'gpio_pin': 'A3', 'direction': 'out'}
Joel Stanleyda7aad02016-10-24 17:23:15 +1030219GPIO_CONFIG['FSI_DATA'] = \
220 {'gpio_pin': 'AA2', 'direction': 'out'}
221GPIO_CONFIG['FSI_CLK'] = \
222 {'gpio_pin': 'AA0', 'direction': 'out'}
223GPIO_CONFIG['FSI_ENABLE'] = \
224 {'gpio_pin': 'D0', 'direction': 'out'}
225
Lei YUaab61992016-11-03 22:52:36 +0800226# DBG_CP0_MUX_SEL
Joel Stanleyda7aad02016-10-24 17:23:15 +1030227GPIO_CONFIG['CRONUS_SEL'] = \
228 {'gpio_pin': 'A6', 'direction': 'out'}
Lei YUaab61992016-11-03 22:52:36 +0800229GPIO_CONFIG['BMC_THROTTLE'] = \
230 {'gpio_pin': 'J3', 'direction': 'out'}
231GPIO_CONFIG['IDBTN'] = \
232 {'gpio_pin': 'Q7', 'direction': 'out'}
Joel Stanleyda7aad02016-10-24 17:23:15 +1030233
Lei YUaab61992016-11-03 22:52:36 +0800234# PM_FP_PWRBTN_IN_L
Joel Stanleyda7aad02016-10-24 17:23:15 +1030235GPIO_CONFIG['POWER_BUTTON'] = \
236 {'gpio_pin': 'I3', 'direction': 'in'}
Lei YUaab61992016-11-03 22:52:36 +0800237
238# PM_NMIBTN_IN_L
Joel Stanleyda7aad02016-10-24 17:23:15 +1030239GPIO_CONFIG['RESET_BUTTON'] = \
240 {'gpio_pin': 'J1', 'direction': 'in'}
241
Joel Stanleyda7aad02016-10-24 17:23:15 +1030242HWMON_CONFIG = {
243 '4-0050' : {
244 'names' : {
245 'caps_curr_powercap' : { 'object_path' : 'powercap/curr_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
246 'caps_curr_powerreading' : { 'object_path' : 'powercap/system_power','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
247 'caps_max_powercap' : { 'object_path' : 'powercap/max_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
248 'caps_min_powercap' : { 'object_path' : 'powercap/min_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
249 'caps_norm_powercap' : { 'object_path' : 'powercap/n_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
250 'caps_user_powerlimit' : { 'object_path' : 'powercap/user_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
251 },
252 'labels' : {
253 '176' : { 'object_path' : 'temperature/cpu0/core0','poll_interval' : 5000,'scale' : -3,'units' : 'C',
254 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
255 '177' : { 'object_path' : 'temperature/cpu0/core1','poll_interval' : 5000,'scale' : -3,'units' : 'C',
256 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
257 '178' : { 'object_path' : 'temperature/cpu0/core2','poll_interval' : 5000,'scale' : -3,'units' : 'C',
258 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
259 '179' : { 'object_path' : 'temperature/cpu0/core3','poll_interval' : 5000,'scale' : -3,'units' : 'C',
260 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
261 '180' : { 'object_path' : 'temperature/cpu0/core4','poll_interval' : 5000,'scale' : -3,'units' : 'C',
262 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
263 '181' : { 'object_path' : 'temperature/cpu0/core5','poll_interval' : 5000,'scale' : -3,'units' : 'C',
264 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
265 '182' : { 'object_path' : 'temperature/cpu0/core6','poll_interval' : 5000,'scale' : -3,'units' : 'C',
266 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
267 '183' : { 'object_path' : 'temperature/cpu0/core7','poll_interval' : 5000,'scale' : -3,'units' : 'C',
268 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
269 '184' : { 'object_path' : 'temperature/cpu0/core8','poll_interval' : 5000,'scale' : -3,'units' : 'C',
270 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
271 '185' : { 'object_path' : 'temperature/cpu0/core9','poll_interval' : 5000,'scale' : -3,'units' : 'C',
272 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
273 '186' : { 'object_path' : 'temperature/cpu0/core10','poll_interval' : 5000,'scale' : -3,'units' : 'C',
274 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
275 '187' : { 'object_path' : 'temperature/cpu0/core11','poll_interval' : 5000,'scale' : -3,'units' : 'C',
276 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
277 '102' : { 'object_path' : 'temperature/dimm0','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
278 '103' : { 'object_path' : 'temperature/dimm1','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
279 '104' : { 'object_path' : 'temperature/dimm2','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
280 '105' : { 'object_path' : 'temperature/dimm3','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
281 '106' : { 'object_path' : 'temperature/dimm4','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
282 '107' : { 'object_path' : 'temperature/dimm5','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
283 '108' : { 'object_path' : 'temperature/dimm6','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
284 '109' : { 'object_path' : 'temperature/dimm7','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
285 }
286 },
287 '5-0050' : {
288 'labels' : {
289 '188' : { 'object_path' : 'temperature/cpu1/core0','poll_interval' : 5000,'scale' : -3,'units' : 'C',
290 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
291 '189' : { 'object_path' : 'temperature/cpu1/core1','poll_interval' : 5000,'scale' : -3,'units' : 'C',
292 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
293 '190' : { 'object_path' : 'temperature/cpu1/core2','poll_interval' : 5000,'scale' : -3,'units' : 'C',
294 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
295 '191' : { 'object_path' : 'temperature/cpu1/core3','poll_interval' : 5000,'scale' : -3,'units' : 'C',
296 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
297 '192' : { 'object_path' : 'temperature/cpu1/core4','poll_interval' : 5000,'scale' : -3,'units' : 'C',
298 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
299 '193' : { 'object_path' : 'temperature/cpu1/core5','poll_interval' : 5000,'scale' : -3,'units' : 'C',
300 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
301 '194' : { 'object_path' : 'temperature/cpu1/core6','poll_interval' : 5000,'scale' : -3,'units' : 'C',
302 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
303 '195' : { 'object_path' : 'temperature/cpu1/core7','poll_interval' : 5000,'scale' : -3,'units' : 'C',
304 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
305 '196' : { 'object_path' : 'temperature/cpu1/core8','poll_interval' : 5000,'scale' : -3,'units' : 'C',
306 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
307 '197' : { 'object_path' : 'temperature/cpu1/core9','poll_interval' : 5000,'scale' : -3,'units' : 'C',
308 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
309 '198' : { 'object_path' : 'temperature/cpu1/core10','poll_interval' : 5000,'scale' : -3,'units' : 'C',
310 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
311 '199' : { 'object_path' : 'temperature/cpu1/core11','poll_interval' : 5000,'scale' : -3,'units' : 'C',
312 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
313 '110' : { 'object_path' : 'temperature/dimm8','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
314 '111' : { 'object_path' : 'temperature/dimm9','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
315 '112' : { 'object_path' : 'temperature/dimm10','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
316 '113' : { 'object_path' : 'temperature/dimm11','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
317 '114' : { 'object_path' : 'temperature/dimm12','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
318 '115' : { 'object_path' : 'temperature/dimm13','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
319 '116' : { 'object_path' : 'temperature/dimm14','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
320 '117' : { 'object_path' : 'temperature/dimm15','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
321 }
322 },
323}
324
325POWER_CONFIG = {
Joel Stanleyda7aad02016-10-24 17:23:15 +1030326 'power_good_in' : 'SYS_PWROK_BUFF',
327 'power_up_outs' : [
328 ('SOFTWARE_PGOOD', True),
329 ('BMC_POWER_UP', True),
330 ],
331 'reset_outs' : [
Lei YUaab61992016-11-03 22:52:36 +0800332 ('BMC_CP0_RESET_N', False),
333 ('BMC_CP0_PERST_ENABLE_R', False),
Joel Stanleyda7aad02016-10-24 17:23:15 +1030334 ],
335}
336
337# Miscellaneous non-poll sensor with system specific properties.
338# The sensor id is the same as those defined in ID_LOOKUP['SENSOR'].
339MISC_SENSORS = {
340 0x5f : { 'class' : 'BootCountSensor' },
341 0x05 : { 'class' : 'BootProgressSensor' },
342 0x08 : { 'class' : 'OccStatusSensor',
343 'os_path' : '/sys/class/i2c-adapter/i2c-3/3-0050/online' },
344 0x09 : { 'class' : 'OccStatusSensor',
345 'os_path' : '/sys/class/i2c-adapter/i2c-3/3-0051/online' },
346 0xb5 : { 'class' : 'OperatingSystemStatusSensor' },
347 0xb3 : { 'class' : 'PowerCap',
348 'os_path' : '/sys/class/hwmon/hwmon3/user_powercap' },
349}
350
351# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4