blob: 8a306d60ba88a3b41ffc1386ec90f21d2cecf525 [file] [log] [blame]
Yi Lie5fe5222016-06-16 13:02:52 -04001## System states
2## state can change to next state in 2 ways:
3## - a process emits a GotoSystemState signal with state name to goto
4## - objects specified in EXIT_STATE_DEPEND have started
5SYSTEM_STATES = [
6 'BASE_APPS',
7 'BMC_STARTING',
8 'BMC_READY',
9 'HOST_POWERING_ON',
10 'HOST_POWERED_ON',
11 'HOST_BOOTING',
12 'HOST_BOOTED',
13 'HOST_POWERED_OFF',
14]
15
16EXIT_STATE_DEPEND = {
17 'BASE_APPS' : {
18 '/org/openbmc/sensors': 0,
19 },
20 'BMC_STARTING' : {
21 '/org/openbmc/control/chassis0': 0,
22 '/org/openbmc/control/power0' : 0,
Yi Lie5fe5222016-06-16 13:02:52 -040023 '/org/openbmc/control/flash/bios' : 0,
24 },
25}
26
Yi Lie5fe5222016-06-16 13:02:52 -040027FRU_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/membuf0' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
79 '<inventory_root>/system/chassis/motherboard/membuf1' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
80 '<inventory_root>/system/chassis/motherboard/membuf2' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
81 '<inventory_root>/system/chassis/motherboard/membuf3' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
82 '<inventory_root>/system/chassis/motherboard/membuf4' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
83 '<inventory_root>/system/chassis/motherboard/membuf5' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
84 '<inventory_root>/system/chassis/motherboard/membuf6' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
85 '<inventory_root>/system/chassis/motherboard/membuf7' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
86
87 '<inventory_root>/system/chassis/motherboard/dimm0' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
88 '<inventory_root>/system/chassis/motherboard/dimm1' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
89 '<inventory_root>/system/chassis/motherboard/dimm2' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
90 '<inventory_root>/system/chassis/motherboard/dimm3' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
91 '<inventory_root>/system/chassis/motherboard/dimm4' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
92 '<inventory_root>/system/chassis/motherboard/dimm5' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
93 '<inventory_root>/system/chassis/motherboard/dimm6' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
94 '<inventory_root>/system/chassis/motherboard/dimm7' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
95 '<inventory_root>/system/chassis/motherboard/dimm8' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
96 '<inventory_root>/system/chassis/motherboard/dimm9' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
97 '<inventory_root>/system/chassis/motherboard/dimm10' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
98 '<inventory_root>/system/chassis/motherboard/dimm11' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
99 '<inventory_root>/system/chassis/motherboard/dimm12' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
100 '<inventory_root>/system/chassis/motherboard/dimm13' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
101 '<inventory_root>/system/chassis/motherboard/dimm14' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
102 '<inventory_root>/system/chassis/motherboard/dimm15' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
103 '<inventory_root>/system/chassis/motherboard/dimm16' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
104 '<inventory_root>/system/chassis/motherboard/dimm17' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
105 '<inventory_root>/system/chassis/motherboard/dimm18' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
106 '<inventory_root>/system/chassis/motherboard/dimm19' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
107 '<inventory_root>/system/chassis/motherboard/dimm20' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
108 '<inventory_root>/system/chassis/motherboard/dimm21' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
109 '<inventory_root>/system/chassis/motherboard/dimm22' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
110 '<inventory_root>/system/chassis/motherboard/dimm23' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
111 '<inventory_root>/system/chassis/motherboard/dimm24' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
112 '<inventory_root>/system/chassis/motherboard/dimm25' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
113 '<inventory_root>/system/chassis/motherboard/dimm26' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
114 '<inventory_root>/system/chassis/motherboard/dimm27' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
115 '<inventory_root>/system/chassis/motherboard/dimm28' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
116 '<inventory_root>/system/chassis/motherboard/dimm29' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
117 '<inventory_root>/system/chassis/motherboard/dimm30' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
118 '<inventory_root>/system/chassis/motherboard/dimm31' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
119}
120
121ID_LOOKUP = {
122 'FRU' : {
123 0x01 : '<inventory_root>/system/chassis/motherboard/cpu0',
124 0x02 : '<inventory_root>/system/chassis/motherboard/cpu1',
125 0x03 : '<inventory_root>/system/chassis/motherboard',
126 0x04 : '<inventory_root>/system/chassis/motherboard/membuf0',
127 0x05 : '<inventory_root>/system/chassis/motherboard/membuf1',
128 0x06 : '<inventory_root>/system/chassis/motherboard/membuf2',
129 0x07 : '<inventory_root>/system/chassis/motherboard/membuf3',
130 0x08 : '<inventory_root>/system/chassis/motherboard/membuf4',
131 0x09 : '<inventory_root>/system/chassis/motherboard/membuf5',
132 0x0c : '<inventory_root>/system/chassis/motherboard/dimm0',
133 0x0d : '<inventory_root>/system/chassis/motherboard/dimm1',
134 0x0e : '<inventory_root>/system/chassis/motherboard/dimm2',
135 0x0f : '<inventory_root>/system/chassis/motherboard/dimm3',
136 0x10 : '<inventory_root>/system/chassis/motherboard/dimm4',
137 0x11 : '<inventory_root>/system/chassis/motherboard/dimm5',
138 0x12 : '<inventory_root>/system/chassis/motherboard/dimm6',
139 0x13 : '<inventory_root>/system/chassis/motherboard/dimm7',
140 0x14 : '<inventory_root>/system/chassis/motherboard/dimm8',
141 0x15 : '<inventory_root>/system/chassis/motherboard/dimm9',
142 0x16 : '<inventory_root>/system/chassis/motherboard/dimm10',
143 0x17 : '<inventory_root>/system/chassis/motherboard/dimm11',
144 0x18 : '<inventory_root>/system/chassis/motherboard/dimm12',
145 0x19 : '<inventory_root>/system/chassis/motherboard/dimm13',
146 0x1a : '<inventory_root>/system/chassis/motherboard/dimm14',
147 0x1b : '<inventory_root>/system/chassis/motherboard/dimm15',
148 0x1c : '<inventory_root>/system/chassis/motherboard/dimm16',
149 0x1d : '<inventory_root>/system/chassis/motherboard/dimm17',
150 0x1e : '<inventory_root>/system/chassis/motherboard/dimm18',
151 0x1f : '<inventory_root>/system/chassis/motherboard/dimm19',
152 0x20 : '<inventory_root>/system/chassis/motherboard/dimm20',
153 0x21 : '<inventory_root>/system/chassis/motherboard/dimm21',
154 0x22 : '<inventory_root>/system/chassis/motherboard/dimm22',
155 0x23 : '<inventory_root>/system/chassis/motherboard/dimm23',
156 0x24 : '<inventory_root>/system/chassis/motherboard/dimm24',
157 0x25 : '<inventory_root>/system/chassis/motherboard/dimm25',
158 0x26 : '<inventory_root>/system/chassis/motherboard/dimm26',
159 0x27 : '<inventory_root>/system/chassis/motherboard/dimm27',
160 0x28 : '<inventory_root>/system/chassis/motherboard/dimm28',
161 0x29 : '<inventory_root>/system/chassis/motherboard/dimm29',
162 0x2a : '<inventory_root>/system/chassis/motherboard/dimm30',
163 0x2b : '<inventory_root>/system/chassis/motherboard/dimm31',
164 },
165 'FRU_STR' : {
166 'PRODUCT_0' : '<inventory_root>/system/bios',
167 'BOARD_1' : '<inventory_root>/system/chassis/motherboard/cpu0',
168 'BOARD_2' : '<inventory_root>/system/chassis/motherboard/cpu1',
169 'CHASSIS_3' : '<inventory_root>/system/chassis/motherboard',
170 'BOARD_3' : '<inventory_root>/system/misc',
171 'BOARD_4' : '<inventory_root>/system/chassis/motherboard/membuf0',
172 'BOARD_5' : '<inventory_root>/system/chassis/motherboard/membuf1',
173 'BOARD_6' : '<inventory_root>/system/chassis/motherboard/membuf2',
174 'BOARD_7' : '<inventory_root>/system/chassis/motherboard/membuf3',
175 'BOARD_8' : '<inventory_root>/system/chassis/motherboard/membuf4',
176 'BOARD_9' : '<inventory_root>/system/chassis/motherboard/membuf5',
177 'BOARD_10' : '<inventory_root>/system/chassis/motherboard/membuf6',
178 'BOARD_11' : '<inventory_root>/system/chassis/motherboard/membuf7',
179 'PRODUCT_12' : '<inventory_root>/system/chassis/motherboard/dimm0',
180 'PRODUCT_13' : '<inventory_root>/system/chassis/motherboard/dimm1',
181 'PRODUCT_14' : '<inventory_root>/system/chassis/motherboard/dimm2',
182 'PRODUCT_15' : '<inventory_root>/system/chassis/motherboard/dimm3',
183 'PRODUCT_16' : '<inventory_root>/system/chassis/motherboard/dimm4',
184 'PRODUCT_17' : '<inventory_root>/system/chassis/motherboard/dimm5',
185 'PRODUCT_18' : '<inventory_root>/system/chassis/motherboard/dimm6',
186 'PRODUCT_19' : '<inventory_root>/system/chassis/motherboard/dimm7',
187 'PRODUCT_20' : '<inventory_root>/system/chassis/motherboard/dimm8',
188 'PRODUCT_21' : '<inventory_root>/system/chassis/motherboard/dimm9',
189 'PRODUCT_22' : '<inventory_root>/system/chassis/motherboard/dimm10',
190 'PRODUCT_23' : '<inventory_root>/system/chassis/motherboard/dimm11',
191 'PRODUCT_24' : '<inventory_root>/system/chassis/motherboard/dimm12',
192 'PRODUCT_25' : '<inventory_root>/system/chassis/motherboard/dimm13',
193 'PRODUCT_26' : '<inventory_root>/system/chassis/motherboard/dimm14',
194 'PRODUCT_27' : '<inventory_root>/system/chassis/motherboard/dimm15',
195 'PRODUCT_28' : '<inventory_root>/system/chassis/motherboard/dimm16',
196 'PRODUCT_29' : '<inventory_root>/system/chassis/motherboard/dimm17',
197 'PRODUCT_30' : '<inventory_root>/system/chassis/motherboard/dimm18',
198 'PRODUCT_31' : '<inventory_root>/system/chassis/motherboard/dimm19',
199 'PRODUCT_32' : '<inventory_root>/system/chassis/motherboard/dimm20',
200 'PRODUCT_33' : '<inventory_root>/system/chassis/motherboard/dimm21',
201 'PRODUCT_34' : '<inventory_root>/system/chassis/motherboard/dimm22',
202 'PRODUCT_35' : '<inventory_root>/system/chassis/motherboard/dimm23',
203 'PRODUCT_36' : '<inventory_root>/system/chassis/motherboard/dimm24',
204 'PRODUCT_37' : '<inventory_root>/system/chassis/motherboard/dimm25',
205 'PRODUCT_38' : '<inventory_root>/system/chassis/motherboard/dimm26',
206 'PRODUCT_39' : '<inventory_root>/system/chassis/motherboard/dimm27',
207 'PRODUCT_40' : '<inventory_root>/system/chassis/motherboard/dimm28',
208 'PRODUCT_41' : '<inventory_root>/system/chassis/motherboard/dimm29',
209 'PRODUCT_42' : '<inventory_root>/system/chassis/motherboard/dimm30',
210 'PRODUCT_43' : '<inventory_root>/system/chassis/motherboard/dimm31',
211 'PRODUCT_47' : '<inventory_root>/system/misc',
212 },
213 'SENSOR' : {
Matt Spinler43352402017-02-20 13:08:40 -0600214 0x02 : '/org/openbmc/sensors/host/HostStatus',
215 0x03 : '/org/openbmc/sensors/host/BootProgress',
216 0xfc : '/org/openbmc/sensors/host/cpu0/OccStatus',
217 0xfd : '/org/openbmc/sensors/host/cpu1/OccStatus',
218 0x5a : '<inventory_root>/system/chassis/motherboard/cpu0',
219 0xa4 : '<inventory_root>/system/chassis/motherboard/cpu1',
Yi Lie5fe5222016-06-16 13:02:52 -0400220 0x1e : '<inventory_root>/system/chassis/motherboard/dimm3',
221 0x1f : '<inventory_root>/system/chassis/motherboard/dimm2',
222 0x20 : '<inventory_root>/system/chassis/motherboard/dimm1',
223 0x21 : '<inventory_root>/system/chassis/motherboard/dimm0',
224 0x22 : '<inventory_root>/system/chassis/motherboard/dimm7',
225 0x23 : '<inventory_root>/system/chassis/motherboard/dimm6',
226 0x24 : '<inventory_root>/system/chassis/motherboard/dimm5',
227 0x25 : '<inventory_root>/system/chassis/motherboard/dimm4',
228 0x26 : '<inventory_root>/system/chassis/motherboard/dimm11',
229 0x27 : '<inventory_root>/system/chassis/motherboard/dimm10',
230 0x28 : '<inventory_root>/system/chassis/motherboard/dimm9',
231 0x29 : '<inventory_root>/system/chassis/motherboard/dimm8',
232 0x2a : '<inventory_root>/system/chassis/motherboard/dimm15',
233 0x2b : '<inventory_root>/system/chassis/motherboard/dimm14',
234 0x2c : '<inventory_root>/system/chassis/motherboard/dimm13',
235 0x2d : '<inventory_root>/system/chassis/motherboard/dimm12',
236 0x2e : '<inventory_root>/system/chassis/motherboard/dimm19',
237 0x2f : '<inventory_root>/system/chassis/motherboard/dimm18',
238 0x30 : '<inventory_root>/system/chassis/motherboard/dimm17',
239 0x31 : '<inventory_root>/system/chassis/motherboard/dimm16',
240 0x32 : '<inventory_root>/system/chassis/motherboard/dimm23',
241 0x33 : '<inventory_root>/system/chassis/motherboard/dimm22',
242 0x34 : '<inventory_root>/system/chassis/motherboard/dimm21',
243 0x35 : '<inventory_root>/system/chassis/motherboard/dimm20',
244 0x36 : '<inventory_root>/system/chassis/motherboard/dimm27',
245 0x37 : '<inventory_root>/system/chassis/motherboard/dimm26',
246 0x38 : '<inventory_root>/system/chassis/motherboard/dimm25',
247 0x39 : '<inventory_root>/system/chassis/motherboard/dimm24',
248 0x3a : '<inventory_root>/system/chassis/motherboard/dimm31',
249 0x3b : '<inventory_root>/system/chassis/motherboard/dimm30',
250 0x3c : '<inventory_root>/system/chassis/motherboard/dimm29',
251 0x3d : '<inventory_root>/system/chassis/motherboard/dimm28',
252 0x3e : '<inventory_root>/system/chassis/motherboard/cpu0/core0',
253 0x3f : '<inventory_root>/system/chassis/motherboard/cpu0/core1',
254 0x40 : '<inventory_root>/system/chassis/motherboard/cpu0/core2',
255 0x41 : '<inventory_root>/system/chassis/motherboard/cpu0/core3',
256 0x42 : '<inventory_root>/system/chassis/motherboard/cpu0/core4',
257 0x43 : '<inventory_root>/system/chassis/motherboard/cpu0/core5',
258 0x44 : '<inventory_root>/system/chassis/motherboard/cpu0/core6',
259 0x45 : '<inventory_root>/system/chassis/motherboard/cpu0/core7',
260 0x46 : '<inventory_root>/system/chassis/motherboard/cpu0/core8',
261 0x47 : '<inventory_root>/system/chassis/motherboard/cpu0/core9',
262 0x48 : '<inventory_root>/system/chassis/motherboard/cpu0/core10',
263 0x49 : '<inventory_root>/system/chassis/motherboard/cpu0/core11',
264 0x4a : '<inventory_root>/system/chassis/motherboard/cpu1/core0',
265 0x4b : '<inventory_root>/system/chassis/motherboard/cpu1/core1',
266 0x4c : '<inventory_root>/system/chassis/motherboard/cpu1/core2',
267 0x4d : '<inventory_root>/system/chassis/motherboard/cpu1/core3',
268 0x4e : '<inventory_root>/system/chassis/motherboard/cpu1/core4',
269 0x4f : '<inventory_root>/system/chassis/motherboard/cpu1/core5',
270 0x50 : '<inventory_root>/system/chassis/motherboard/cpu1/core6',
271 0x51 : '<inventory_root>/system/chassis/motherboard/cpu1/core7',
272 0x52 : '<inventory_root>/system/chassis/motherboard/cpu1/core8',
273 0x53 : '<inventory_root>/system/chassis/motherboard/cpu1/core9',
274 0x54 : '<inventory_root>/system/chassis/motherboard/cpu1/core10',
275 0x55 : '<inventory_root>/system/chassis/motherboard/cpu1/core11',
276 0x56 : '<inventory_root>/system/chassis/motherboard/membuf0',
277 0x57 : '<inventory_root>/system/chassis/motherboard/membuf1',
278 0x58 : '<inventory_root>/system/chassis/motherboard/membuf2',
279 0x59 : '<inventory_root>/system/chassis/motherboard/membuf3',
280 0x5a : '<inventory_root>/system/chassis/motherboard/membuf4',
281 0x5b : '<inventory_root>/system/chassis/motherboard/membuf5',
282 0x5c : '<inventory_root>/system/chassis/motherboard/membuf6',
283 0x5d : '<inventory_root>/system/chassis/motherboard/membuf7',
Matt Spinler43352402017-02-20 13:08:40 -0600284 0x07 : '/org/openbmc/sensors/host/BootCount',
285 0x0c : '<inventory_root>/system/chassis/motherboard',
286 0x01 : '<inventory_root>/system/systemevent',
287 0x08 : '<inventory_root>/system/powerlimit',
288 0x0d : '<inventory_root>/system/chassis/motherboard/refclock',
289 0x0e : '<inventory_root>/system/chassis/motherboard/pcieclock',
290 0x0f : '<inventory_root>/system/chassis/motherboard/todclock',
291 0x10 : '<inventory_root>/system/chassis/motherboard/apss',
292 0x06 : '/org/openbmc/sensors/host/powercap',
293 0x02 : '/org/openbmc/sensors/host/OperatingSystemStatus',
294 0x04 : '<inventory_root>/system/chassis/motherboard/pcielink',
Dhruvaraj Sc2ef4fc2017-03-21 02:08:56 -0500295 0xD8 : '/org/openbmc/sensors/host/PowerSupplyRedundancy',
Jayanth Othayoth3a3ac922017-03-22 05:46:44 -0500296 0xda : '/org/openbmc/sensors/host/TurboAllowed',
Jayanth Othayothe688d942017-03-27 08:31:22 -0500297 0xb4 : '/org/openbmc/sensors/host/PowerSupplyDerating',
Yi Lie5fe5222016-06-16 13:02:52 -0400298 },
299 'GPIO_PRESENT' : {}
300}
301
302GPIO_CONFIG = {}
303GPIO_CONFIG['BMC_POWER_UP'] = \
304 {'gpio_pin': 'D1', 'direction': 'out'}
Yi Li12a26d22016-11-03 17:34:50 +0800305GPIO_CONFIG['SOFTWARE_PGOOD'] = \
306 {'gpio_pin': 'R1', 'direction': 'out'}
Yi Lie5fe5222016-06-16 13:02:52 -0400307GPIO_CONFIG['SYS_PWROK_BUFF'] = \
308 {'gpio_pin': 'D2', 'direction': 'in'}
Yi Li12a26d22016-11-03 17:34:50 +0800309
310# PV_CP_MD_JTAG_ATTENTION_N
Adriana Kobylakb4140b82016-07-05 12:57:00 -0500311GPIO_CONFIG['CHECKSTOP'] = \
312 {'gpio_pin': 'J2', 'direction': 'falling'}
Yi Lie5fe5222016-06-16 13:02:52 -0400313
Yi Lie5fe5222016-06-16 13:02:52 -0400314GPIO_CONFIG['BMC_CP0_RESET_N'] = \
315 {'gpio_pin': 'A1', 'direction': 'out'}
Yi Li12a26d22016-11-03 17:34:50 +0800316# pcie switch reset
Yi Lie5fe5222016-06-16 13:02:52 -0400317GPIO_CONFIG['BMC_VS1_PERST_N'] = \
318 {'gpio_pin': 'B7', 'direction': 'out'}
Yi Li12a26d22016-11-03 17:34:50 +0800319# pcie slots reset - not connected?
Yi Lie5fe5222016-06-16 13:02:52 -0400320GPIO_CONFIG['BMC_CP0_PERST_ENABLE_R'] = \
321 {'gpio_pin': 'A3', 'direction': 'out'}
322
Yi Li12a26d22016-11-03 17:34:50 +0800323# SOFT_FSI_DAT
Yi Lie5fe5222016-06-16 13:02:52 -0400324GPIO_CONFIG['FSI_DATA'] = \
325 {'gpio_pin': 'E0', 'direction': 'out'}
Yi Li12a26d22016-11-03 17:34:50 +0800326# SOFT_FSI_CLK
Yi Lie5fe5222016-06-16 13:02:52 -0400327GPIO_CONFIG['FSI_CLK'] = \
328 {'gpio_pin': 'AA0', 'direction': 'out'}
Yi Li12a26d22016-11-03 17:34:50 +0800329# BMC_FSI_IN_ENA
Yi Lie5fe5222016-06-16 13:02:52 -0400330GPIO_CONFIG['FSI_ENABLE'] = \
331 {'gpio_pin': 'D0', 'direction': 'out'}
Yi Li12a26d22016-11-03 17:34:50 +0800332# FSI_JMFG0_PRSNT_N
Yi Lie5fe5222016-06-16 13:02:52 -0400333GPIO_CONFIG['CRONUS_SEL'] = \
334 {'gpio_pin': 'A6', 'direction': 'out'}
335
Yi Li12a26d22016-11-03 17:34:50 +0800336# FP_PWR_BTN_N
Yi Lie5fe5222016-06-16 13:02:52 -0400337GPIO_CONFIG['POWER_BUTTON'] = \
338 {'gpio_pin': 'I3', 'direction': 'both'}
Yi Li12a26d22016-11-03 17:34:50 +0800339# BMC_NMIBTN_IN_N
Yi Lie5fe5222016-06-16 13:02:52 -0400340GPIO_CONFIG['RESET_BUTTON'] = \
341 {'gpio_pin': 'J1', 'direction': 'both'}
342
Yi Li12a26d22016-11-03 17:34:50 +0800343# FIXME: needed for Witherspoon?
344# Tracked by openbmc/openbmc#814
345# FP_ID_BTN_N
346GPIO_CONFIG['IDBTN'] = \
347 {'gpio_pin': 'Q7', 'direction': 'out'}
Yi Lie5fe5222016-06-16 13:02:52 -0400348
Yi Lie5fe5222016-06-16 13:02:52 -0400349HWMON_CONFIG = {
350 '4-0050' : {
351 'names' : {
352 'caps_curr_powercap' : { 'object_path' : 'powercap/curr_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
353 'caps_curr_powerreading' : { 'object_path' : 'powercap/system_power','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
354 'caps_max_powercap' : { 'object_path' : 'powercap/max_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
355 'caps_min_powercap' : { 'object_path' : 'powercap/min_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
356 'caps_norm_powercap' : { 'object_path' : 'powercap/n_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
357 'caps_user_powerlimit' : { 'object_path' : 'powercap/user_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
358 },
359 'labels' : {
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500360 '176' : { 'object_path' : 'temperature/cpu0/core0','poll_interval' : 5000,'scale' : -3,'units' : 'C',
Yi Lie5fe5222016-06-16 13:02:52 -0400361 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500362 '177' : { 'object_path' : 'temperature/cpu0/core1','poll_interval' : 5000,'scale' : -3,'units' : 'C',
Yi Lie5fe5222016-06-16 13:02:52 -0400363 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500364 '178' : { 'object_path' : 'temperature/cpu0/core2','poll_interval' : 5000,'scale' : -3,'units' : 'C',
Yi Lie5fe5222016-06-16 13:02:52 -0400365 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500366 '179' : { 'object_path' : 'temperature/cpu0/core3','poll_interval' : 5000,'scale' : -3,'units' : 'C',
Yi Lie5fe5222016-06-16 13:02:52 -0400367 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500368 '180' : { 'object_path' : 'temperature/cpu0/core4','poll_interval' : 5000,'scale' : -3,'units' : 'C',
Yi Lie5fe5222016-06-16 13:02:52 -0400369 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500370 '181' : { 'object_path' : 'temperature/cpu0/core5','poll_interval' : 5000,'scale' : -3,'units' : 'C',
Yi Lie5fe5222016-06-16 13:02:52 -0400371 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500372 '182' : { 'object_path' : 'temperature/cpu0/core6','poll_interval' : 5000,'scale' : -3,'units' : 'C',
Yi Lie5fe5222016-06-16 13:02:52 -0400373 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500374 '183' : { 'object_path' : 'temperature/cpu0/core7','poll_interval' : 5000,'scale' : -3,'units' : 'C',
Yi Lie5fe5222016-06-16 13:02:52 -0400375 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500376 '184' : { 'object_path' : 'temperature/cpu0/core8','poll_interval' : 5000,'scale' : -3,'units' : 'C',
Yi Lie5fe5222016-06-16 13:02:52 -0400377 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500378 '185' : { 'object_path' : 'temperature/cpu0/core9','poll_interval' : 5000,'scale' : -3,'units' : 'C',
Yi Lie5fe5222016-06-16 13:02:52 -0400379 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500380 '186' : { 'object_path' : 'temperature/cpu0/core10','poll_interval' : 5000,'scale' : -3,'units' : 'C',
Yi Lie5fe5222016-06-16 13:02:52 -0400381 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500382 '187' : { 'object_path' : 'temperature/cpu0/core11','poll_interval' : 5000,'scale' : -3,'units' : 'C',
Yi Lie5fe5222016-06-16 13:02:52 -0400383 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500384 '102' : { 'object_path' : 'temperature/dimm0','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
385 '103' : { 'object_path' : 'temperature/dimm1','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
386 '104' : { 'object_path' : 'temperature/dimm2','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
387 '105' : { 'object_path' : 'temperature/dimm3','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
388 '106' : { 'object_path' : 'temperature/dimm4','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
389 '107' : { 'object_path' : 'temperature/dimm5','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
390 '108' : { 'object_path' : 'temperature/dimm6','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
391 '109' : { 'object_path' : 'temperature/dimm7','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
392 '110' : { 'object_path' : 'temperature/dimm8','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
393 '111' : { 'object_path' : 'temperature/dimm9','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
394 '112' : { 'object_path' : 'temperature/dimm10','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
395 '113' : { 'object_path' : 'temperature/dimm11','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
396 '114' : { 'object_path' : 'temperature/dimm12','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
397 '115' : { 'object_path' : 'temperature/dimm13','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
398 '116' : { 'object_path' : 'temperature/dimm14','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
399 '117' : { 'object_path' : 'temperature/dimm15','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
400 '94' : { 'object_path' : 'temperature/membuf0','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
401 '95' : { 'object_path' : 'temperature/membuf1','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
402 '96' : { 'object_path' : 'temperature/membuf2','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
403 '97' : { 'object_path' : 'temperature/membuf3','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
Yi Lie5fe5222016-06-16 13:02:52 -0400404 }
405 },
406 '5-0050' : {
407 'labels' : {
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500408 '188' : { 'object_path' : 'temperature/cpu1/core0','poll_interval' : 5000,'scale' : -3,'units' : 'C',
Yi Lie5fe5222016-06-16 13:02:52 -0400409 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500410 '189' : { 'object_path' : 'temperature/cpu1/core1','poll_interval' : 5000,'scale' : -3,'units' : 'C',
Yi Lie5fe5222016-06-16 13:02:52 -0400411 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500412 '190' : { 'object_path' : 'temperature/cpu1/core2','poll_interval' : 5000,'scale' : -3,'units' : 'C',
Yi Lie5fe5222016-06-16 13:02:52 -0400413 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500414 '191' : { 'object_path' : 'temperature/cpu1/core3','poll_interval' : 5000,'scale' : -3,'units' : 'C',
Yi Lie5fe5222016-06-16 13:02:52 -0400415 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500416 '192' : { 'object_path' : 'temperature/cpu1/core4','poll_interval' : 5000,'scale' : -3,'units' : 'C',
Yi Lie5fe5222016-06-16 13:02:52 -0400417 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500418 '193' : { 'object_path' : 'temperature/cpu1/core5','poll_interval' : 5000,'scale' : -3,'units' : 'C',
Yi Lie5fe5222016-06-16 13:02:52 -0400419 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500420 '194' : { 'object_path' : 'temperature/cpu1/core6','poll_interval' : 5000,'scale' : -3,'units' : 'C',
Yi Lie5fe5222016-06-16 13:02:52 -0400421 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500422 '195' : { 'object_path' : 'temperature/cpu1/core7','poll_interval' : 5000,'scale' : -3,'units' : 'C',
Yi Lie5fe5222016-06-16 13:02:52 -0400423 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500424 '196' : { 'object_path' : 'temperature/cpu1/core8','poll_interval' : 5000,'scale' : -3,'units' : 'C',
Yi Lie5fe5222016-06-16 13:02:52 -0400425 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500426 '197' : { 'object_path' : 'temperature/cpu1/core9','poll_interval' : 5000,'scale' : -3,'units' : 'C',
Yi Lie5fe5222016-06-16 13:02:52 -0400427 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500428 '198' : { 'object_path' : 'temperature/cpu1/core10','poll_interval' : 5000,'scale' : -3,'units' : 'C',
Yi Lie5fe5222016-06-16 13:02:52 -0400429 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500430 '199' : { 'object_path' : 'temperature/cpu1/core11','poll_interval' : 5000,'scale' : -3,'units' : 'C',
Yi Lie5fe5222016-06-16 13:02:52 -0400431 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
Edward A. Jamesc14f6fe2016-08-11 11:02:15 -0500432 '118' : { 'object_path' : 'temperature/dimm16','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
433 '119' : { 'object_path' : 'temperature/dimm17','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
434 '120' : { 'object_path' : 'temperature/dimm18','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
435 '121' : { 'object_path' : 'temperature/dimm19','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
436 '122' : { 'object_path' : 'temperature/dimm20','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
437 '123' : { 'object_path' : 'temperature/dimm21','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
438 '124' : { 'object_path' : 'temperature/dimm22','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
439 '125' : { 'object_path' : 'temperature/dimm23','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
440 '126' : { 'object_path' : 'temperature/dimm24','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
441 '127' : { 'object_path' : 'temperature/dimm25','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
442 '128' : { 'object_path' : 'temperature/dimm26','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
443 '129' : { 'object_path' : 'temperature/dimm27','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
444 '130' : { 'object_path' : 'temperature/dimm28','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
445 '131' : { 'object_path' : 'temperature/dimm29','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
446 '132' : { 'object_path' : 'temperature/dimm30','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
447 '133' : { 'object_path' : 'temperature/dimm31','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
448 '98' : { 'object_path' : 'temperature/membuf4','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
449 '99' : { 'object_path' : 'temperature/membuf5','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
450 '100' : { 'object_path' : 'temperature/membuf6','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
451 '101' : { 'object_path' : 'temperature/membuf7','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
Yi Lie5fe5222016-06-16 13:02:52 -0400452 }
453 },
454}
455
Xo Wang4088ec32016-09-22 13:00:58 -0700456
Lei YU75a18a22016-11-22 01:47:47 +0800457GPIO_CONFIGS = {
458 'power_config' : {
459 'power_good_in' : 'SYS_PWROK_BUFF',
460 'power_up_outs' : [
461 ('SOFTWARE_PGOOD', True),
462 ('BMC_POWER_UP', True),
463 ],
464 'reset_outs' : [
465 ('BMC_CP0_RESET_N', False),
466 ],
467 'pci_reset_outs': [
468 # net name, polarity, reset hold
469 ('BMC_VS1_PERST_N', False, False),
470 ('BMC_CP0_PERST_ENABLE_R', False, False),
471 ],
472 },
473 'hostctl_config' : {
474 'fsi_data' : 'FSI_DATA',
475 'fsi_clk' : 'FSI_CLK',
476 'fsi_enable' : 'FSI_ENABLE',
477 'cronus_sel' : 'CRONUS_SEL',
478 'optionals' : [
479 ],
480 },
Xo Wang4088ec32016-09-22 13:00:58 -0700481}
482
483
Yi Lie5fe5222016-06-16 13:02:52 -0400484# Miscellaneous non-poll sensor with system specific properties.
485# The sensor id is the same as those defined in ID_LOOKUP['SENSOR'].
486MISC_SENSORS = {
Matt Spinler43352402017-02-20 13:08:40 -0600487 0x07 : { 'class' : 'BootCountSensor' },
488 0x03 : { 'class' : 'BootProgressSensor' },
489 #OCC active sensors aren't in the P9 XML yet. These are wrong.
490 0xfc : { 'class' : 'OccStatusSensor',
Joel Stanleyd4bca7b2017-03-06 14:42:10 +1030491 'os_path' : '/sys/bus/i2c/devices/3-0050/online' },
Matt Spinler43352402017-02-20 13:08:40 -0600492 0xfd : { 'class' : 'OccStatusSensor',
Joel Stanleyd4bca7b2017-03-06 14:42:10 +1030493 'os_path' : '/sys/bus/i2c/devices/3-0051/online' },
Matt Spinler43352402017-02-20 13:08:40 -0600494 0x02 : { 'class' : 'OperatingSystemStatusSensor' },
495 0x06 : { 'class' : 'PowerCap',
Yi Lie5fe5222016-06-16 13:02:52 -0400496 'os_path' : '/sys/class/hwmon/hwmon3/user_powercap' },
Jayanth Othayothe688d942017-03-27 08:31:22 -0500497 # Garrison value is used, Not in P9 XML yet.
Dhruvaraj Sc2ef4fc2017-03-21 02:08:56 -0500498 0xD8 : { 'class' : 'PowerSupplyRedundancySensor'},
Jayanth Othayoth3a3ac922017-03-22 05:46:44 -0500499 0xda : { 'class' : 'TurboAllowedSensor' },
Jayanth Othayothe688d942017-03-27 08:31:22 -0500500 0xb4 : { 'class' : 'PowerSupplyDeratingSensor' },
Yi Lie5fe5222016-06-16 13:02:52 -0400501}
Brad Bishop53066752016-09-21 08:48:04 -0400502
503# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4