1# 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, 23 "/org/openbmc/control/host0": 0, 24 "/org/openbmc/control/flash/bios": 0, 25 }, 26} 27 28FRU_INSTANCES = { 29 "<inventory_root>/system": { 30 "fru_type": "SYSTEM", 31 "is_fru": True, 32 "present": "True", 33 }, 34 "<inventory_root>/system/bios": { 35 "fru_type": "SYSTEM", 36 "is_fru": True, 37 "present": "True", 38 }, 39 "<inventory_root>/system/misc": { 40 "fru_type": "SYSTEM", 41 "is_fru": False, 42 }, 43 "<inventory_root>/system/chassis": { 44 "fru_type": "SYSTEM", 45 "is_fru": True, 46 "present": "True", 47 }, 48 "<inventory_root>/system/chassis/motherboard": { 49 "fru_type": "MAIN_PLANAR", 50 "is_fru": True, 51 }, 52 "<inventory_root>/system/systemevent": { 53 "fru_type": "SYSTEM_EVENT", 54 "is_fru": False, 55 }, 56 "<inventory_root>/system/chassis/motherboard/refclock": { 57 "fru_type": "MAIN_PLANAR", 58 "is_fru": False, 59 }, 60 "<inventory_root>/system/chassis/motherboard/pcieclock": { 61 "fru_type": "MAIN_PLANAR", 62 "is_fru": False, 63 }, 64 "<inventory_root>/system/chassis/motherboard/todclock": { 65 "fru_type": "MAIN_PLANAR", 66 "is_fru": False, 67 }, 68 "<inventory_root>/system/chassis/motherboard/apss": { 69 "fru_type": "MAIN_PLANAR", 70 "is_fru": False, 71 }, 72 "<inventory_root>/system/chassis/fan0": { 73 "fru_type": "FAN", 74 "is_fru": True, 75 }, 76 "<inventory_root>/system/chassis/fan1": { 77 "fru_type": "FAN", 78 "is_fru": True, 79 }, 80 "<inventory_root>/system/chassis/fan2": { 81 "fru_type": "FAN", 82 "is_fru": True, 83 }, 84 "<inventory_root>/system/chassis/fan3": { 85 "fru_type": "FAN", 86 "is_fru": True, 87 }, 88 "<inventory_root>/system/chassis/motherboard/bmc": { 89 "fru_type": "BMC", 90 "is_fru": False, 91 "manufacturer": "ASPEED", 92 }, 93 "<inventory_root>/system/chassis/motherboard/cpu0": { 94 "fru_type": "CPU", 95 "is_fru": True, 96 }, 97 "<inventory_root>/system/chassis/motherboard/cpu1": { 98 "fru_type": "CPU", 99 "is_fru": True, 100 }, 101 "<inventory_root>/system/chassis/motherboard/cpu0/core0": { 102 "fru_type": "CORE", 103 "is_fru": False, 104 }, 105 "<inventory_root>/system/chassis/motherboard/cpu0/core1": { 106 "fru_type": "CORE", 107 "is_fru": False, 108 }, 109 "<inventory_root>/system/chassis/motherboard/cpu0/core2": { 110 "fru_type": "CORE", 111 "is_fru": False, 112 }, 113 "<inventory_root>/system/chassis/motherboard/cpu0/core3": { 114 "fru_type": "CORE", 115 "is_fru": False, 116 }, 117 "<inventory_root>/system/chassis/motherboard/cpu0/core4": { 118 "fru_type": "CORE", 119 "is_fru": False, 120 }, 121 "<inventory_root>/system/chassis/motherboard/cpu0/core5": { 122 "fru_type": "CORE", 123 "is_fru": False, 124 }, 125 "<inventory_root>/system/chassis/motherboard/cpu0/core6": { 126 "fru_type": "CORE", 127 "is_fru": False, 128 }, 129 "<inventory_root>/system/chassis/motherboard/cpu0/core7": { 130 "fru_type": "CORE", 131 "is_fru": False, 132 }, 133 "<inventory_root>/system/chassis/motherboard/cpu0/core8": { 134 "fru_type": "CORE", 135 "is_fru": False, 136 }, 137 "<inventory_root>/system/chassis/motherboard/cpu0/core9": { 138 "fru_type": "CORE", 139 "is_fru": False, 140 }, 141 "<inventory_root>/system/chassis/motherboard/cpu0/core10": { 142 "fru_type": "CORE", 143 "is_fru": False, 144 }, 145 "<inventory_root>/system/chassis/motherboard/cpu0/core11": { 146 "fru_type": "CORE", 147 "is_fru": False, 148 }, 149 "<inventory_root>/system/chassis/motherboard/cpu1/core0": { 150 "fru_type": "CORE", 151 "is_fru": False, 152 }, 153 "<inventory_root>/system/chassis/motherboard/cpu1/core1": { 154 "fru_type": "CORE", 155 "is_fru": False, 156 }, 157 "<inventory_root>/system/chassis/motherboard/cpu1/core2": { 158 "fru_type": "CORE", 159 "is_fru": False, 160 }, 161 "<inventory_root>/system/chassis/motherboard/cpu1/core3": { 162 "fru_type": "CORE", 163 "is_fru": False, 164 }, 165 "<inventory_root>/system/chassis/motherboard/cpu1/core4": { 166 "fru_type": "CORE", 167 "is_fru": False, 168 }, 169 "<inventory_root>/system/chassis/motherboard/cpu1/core5": { 170 "fru_type": "CORE", 171 "is_fru": False, 172 }, 173 "<inventory_root>/system/chassis/motherboard/cpu1/core6": { 174 "fru_type": "CORE", 175 "is_fru": False, 176 }, 177 "<inventory_root>/system/chassis/motherboard/cpu1/core7": { 178 "fru_type": "CORE", 179 "is_fru": False, 180 }, 181 "<inventory_root>/system/chassis/motherboard/cpu1/core8": { 182 "fru_type": "CORE", 183 "is_fru": False, 184 }, 185 "<inventory_root>/system/chassis/motherboard/cpu1/core9": { 186 "fru_type": "CORE", 187 "is_fru": False, 188 }, 189 "<inventory_root>/system/chassis/motherboard/cpu1/core10": { 190 "fru_type": "CORE", 191 "is_fru": False, 192 }, 193 "<inventory_root>/system/chassis/motherboard/cpu1/core11": { 194 "fru_type": "CORE", 195 "is_fru": False, 196 }, 197 "<inventory_root>/system/chassis/motherboard/membuf0": { 198 "fru_type": "MEMORY_BUFFER", 199 "is_fru": False, 200 }, 201 "<inventory_root>/system/chassis/motherboard/membuf1": { 202 "fru_type": "MEMORY_BUFFER", 203 "is_fru": False, 204 }, 205 "<inventory_root>/system/chassis/motherboard/membuf2": { 206 "fru_type": "MEMORY_BUFFER", 207 "is_fru": False, 208 }, 209 "<inventory_root>/system/chassis/motherboard/membuf3": { 210 "fru_type": "MEMORY_BUFFER", 211 "is_fru": False, 212 }, 213 "<inventory_root>/system/chassis/motherboard/membuf4": { 214 "fru_type": "MEMORY_BUFFER", 215 "is_fru": False, 216 }, 217 "<inventory_root>/system/chassis/motherboard/membuf5": { 218 "fru_type": "MEMORY_BUFFER", 219 "is_fru": False, 220 }, 221 "<inventory_root>/system/chassis/motherboard/membuf6": { 222 "fru_type": "MEMORY_BUFFER", 223 "is_fru": False, 224 }, 225 "<inventory_root>/system/chassis/motherboard/membuf7": { 226 "fru_type": "MEMORY_BUFFER", 227 "is_fru": False, 228 }, 229 "<inventory_root>/system/chassis/motherboard/dimm0": { 230 "fru_type": "DIMM", 231 "is_fru": True, 232 }, 233 "<inventory_root>/system/chassis/motherboard/dimm1": { 234 "fru_type": "DIMM", 235 "is_fru": True, 236 }, 237 "<inventory_root>/system/chassis/motherboard/dimm2": { 238 "fru_type": "DIMM", 239 "is_fru": True, 240 }, 241 "<inventory_root>/system/chassis/motherboard/dimm3": { 242 "fru_type": "DIMM", 243 "is_fru": True, 244 }, 245 "<inventory_root>/system/chassis/motherboard/dimm4": { 246 "fru_type": "DIMM", 247 "is_fru": True, 248 }, 249 "<inventory_root>/system/chassis/motherboard/dimm5": { 250 "fru_type": "DIMM", 251 "is_fru": True, 252 }, 253 "<inventory_root>/system/chassis/motherboard/dimm6": { 254 "fru_type": "DIMM", 255 "is_fru": True, 256 }, 257 "<inventory_root>/system/chassis/motherboard/dimm7": { 258 "fru_type": "DIMM", 259 "is_fru": True, 260 }, 261 "<inventory_root>/system/chassis/motherboard/dimm8": { 262 "fru_type": "DIMM", 263 "is_fru": True, 264 }, 265 "<inventory_root>/system/chassis/motherboard/dimm9": { 266 "fru_type": "DIMM", 267 "is_fru": True, 268 }, 269 "<inventory_root>/system/chassis/motherboard/dimm10": { 270 "fru_type": "DIMM", 271 "is_fru": True, 272 }, 273 "<inventory_root>/system/chassis/motherboard/dimm11": { 274 "fru_type": "DIMM", 275 "is_fru": True, 276 }, 277 "<inventory_root>/system/chassis/motherboard/dimm12": { 278 "fru_type": "DIMM", 279 "is_fru": True, 280 }, 281 "<inventory_root>/system/chassis/motherboard/dimm13": { 282 "fru_type": "DIMM", 283 "is_fru": True, 284 }, 285 "<inventory_root>/system/chassis/motherboard/dimm14": { 286 "fru_type": "DIMM", 287 "is_fru": True, 288 }, 289 "<inventory_root>/system/chassis/motherboard/dimm15": { 290 "fru_type": "DIMM", 291 "is_fru": True, 292 }, 293 "<inventory_root>/system/chassis/motherboard/dimm16": { 294 "fru_type": "DIMM", 295 "is_fru": True, 296 }, 297 "<inventory_root>/system/chassis/motherboard/dimm17": { 298 "fru_type": "DIMM", 299 "is_fru": True, 300 }, 301 "<inventory_root>/system/chassis/motherboard/dimm18": { 302 "fru_type": "DIMM", 303 "is_fru": True, 304 }, 305 "<inventory_root>/system/chassis/motherboard/dimm19": { 306 "fru_type": "DIMM", 307 "is_fru": True, 308 }, 309 "<inventory_root>/system/chassis/motherboard/dimm20": { 310 "fru_type": "DIMM", 311 "is_fru": True, 312 }, 313 "<inventory_root>/system/chassis/motherboard/dimm21": { 314 "fru_type": "DIMM", 315 "is_fru": True, 316 }, 317 "<inventory_root>/system/chassis/motherboard/dimm22": { 318 "fru_type": "DIMM", 319 "is_fru": True, 320 }, 321 "<inventory_root>/system/chassis/motherboard/dimm23": { 322 "fru_type": "DIMM", 323 "is_fru": True, 324 }, 325 "<inventory_root>/system/chassis/motherboard/dimm24": { 326 "fru_type": "DIMM", 327 "is_fru": True, 328 }, 329 "<inventory_root>/system/chassis/motherboard/dimm25": { 330 "fru_type": "DIMM", 331 "is_fru": True, 332 }, 333 "<inventory_root>/system/chassis/motherboard/dimm26": { 334 "fru_type": "DIMM", 335 "is_fru": True, 336 }, 337 "<inventory_root>/system/chassis/motherboard/dimm27": { 338 "fru_type": "DIMM", 339 "is_fru": True, 340 }, 341 "<inventory_root>/system/chassis/motherboard/dimm28": { 342 "fru_type": "DIMM", 343 "is_fru": True, 344 }, 345 "<inventory_root>/system/chassis/motherboard/dimm29": { 346 "fru_type": "DIMM", 347 "is_fru": True, 348 }, 349 "<inventory_root>/system/chassis/motherboard/dimm30": { 350 "fru_type": "DIMM", 351 "is_fru": True, 352 }, 353 "<inventory_root>/system/chassis/motherboard/dimm31": { 354 "fru_type": "DIMM", 355 "is_fru": True, 356 }, 357} 358 359ID_LOOKUP = { 360 "FRU": { 361 0x01: "<inventory_root>/system/chassis/motherboard/cpu0", 362 0x02: "<inventory_root>/system/chassis/motherboard/cpu1", 363 0x03: "<inventory_root>/system/chassis/motherboard", 364 0x04: "<inventory_root>/system/chassis/motherboard/membuf0", 365 0x05: "<inventory_root>/system/chassis/motherboard/membuf1", 366 0x06: "<inventory_root>/system/chassis/motherboard/membuf2", 367 0x07: "<inventory_root>/system/chassis/motherboard/membuf3", 368 0x08: "<inventory_root>/system/chassis/motherboard/membuf4", 369 0x09: "<inventory_root>/system/chassis/motherboard/membuf5", 370 0x0C: "<inventory_root>/system/chassis/motherboard/dimm0", 371 0x0D: "<inventory_root>/system/chassis/motherboard/dimm1", 372 0x0E: "<inventory_root>/system/chassis/motherboard/dimm2", 373 0x0F: "<inventory_root>/system/chassis/motherboard/dimm3", 374 0x10: "<inventory_root>/system/chassis/motherboard/dimm4", 375 0x11: "<inventory_root>/system/chassis/motherboard/dimm5", 376 0x12: "<inventory_root>/system/chassis/motherboard/dimm6", 377 0x13: "<inventory_root>/system/chassis/motherboard/dimm7", 378 0x14: "<inventory_root>/system/chassis/motherboard/dimm8", 379 0x15: "<inventory_root>/system/chassis/motherboard/dimm9", 380 0x16: "<inventory_root>/system/chassis/motherboard/dimm10", 381 0x17: "<inventory_root>/system/chassis/motherboard/dimm11", 382 0x18: "<inventory_root>/system/chassis/motherboard/dimm12", 383 0x19: "<inventory_root>/system/chassis/motherboard/dimm13", 384 0x1A: "<inventory_root>/system/chassis/motherboard/dimm14", 385 0x1B: "<inventory_root>/system/chassis/motherboard/dimm15", 386 0x1C: "<inventory_root>/system/chassis/motherboard/dimm16", 387 0x1D: "<inventory_root>/system/chassis/motherboard/dimm17", 388 0x1E: "<inventory_root>/system/chassis/motherboard/dimm18", 389 0x1F: "<inventory_root>/system/chassis/motherboard/dimm19", 390 0x20: "<inventory_root>/system/chassis/motherboard/dimm20", 391 0x21: "<inventory_root>/system/chassis/motherboard/dimm21", 392 0x22: "<inventory_root>/system/chassis/motherboard/dimm22", 393 0x23: "<inventory_root>/system/chassis/motherboard/dimm23", 394 0x24: "<inventory_root>/system/chassis/motherboard/dimm24", 395 0x25: "<inventory_root>/system/chassis/motherboard/dimm25", 396 0x26: "<inventory_root>/system/chassis/motherboard/dimm26", 397 0x27: "<inventory_root>/system/chassis/motherboard/dimm27", 398 0x28: "<inventory_root>/system/chassis/motherboard/dimm28", 399 0x29: "<inventory_root>/system/chassis/motherboard/dimm29", 400 0x2A: "<inventory_root>/system/chassis/motherboard/dimm30", 401 0x2B: "<inventory_root>/system/chassis/motherboard/dimm31", 402 }, 403 "FRU_STR": { 404 "PRODUCT_0": "<inventory_root>/system/bios", 405 "BOARD_1": "<inventory_root>/system/chassis/motherboard/cpu0", 406 "BOARD_2": "<inventory_root>/system/chassis/motherboard/cpu1", 407 "CHASSIS_3": "<inventory_root>/system/chassis/motherboard", 408 "BOARD_3": "<inventory_root>/system/misc", 409 "BOARD_4": "<inventory_root>/system/chassis/motherboard/membuf0", 410 "BOARD_5": "<inventory_root>/system/chassis/motherboard/membuf1", 411 "BOARD_6": "<inventory_root>/system/chassis/motherboard/membuf2", 412 "BOARD_7": "<inventory_root>/system/chassis/motherboard/membuf3", 413 "BOARD_8": "<inventory_root>/system/chassis/motherboard/membuf4", 414 "BOARD_9": "<inventory_root>/system/chassis/motherboard/membuf5", 415 "BOARD_10": "<inventory_root>/system/chassis/motherboard/membuf6", 416 "BOARD_11": "<inventory_root>/system/chassis/motherboard/membuf7", 417 "PRODUCT_12": "<inventory_root>/system/chassis/motherboard/dimm0", 418 "PRODUCT_13": "<inventory_root>/system/chassis/motherboard/dimm1", 419 "PRODUCT_14": "<inventory_root>/system/chassis/motherboard/dimm2", 420 "PRODUCT_15": "<inventory_root>/system/chassis/motherboard/dimm3", 421 "PRODUCT_16": "<inventory_root>/system/chassis/motherboard/dimm4", 422 "PRODUCT_17": "<inventory_root>/system/chassis/motherboard/dimm5", 423 "PRODUCT_18": "<inventory_root>/system/chassis/motherboard/dimm6", 424 "PRODUCT_19": "<inventory_root>/system/chassis/motherboard/dimm7", 425 "PRODUCT_20": "<inventory_root>/system/chassis/motherboard/dimm8", 426 "PRODUCT_21": "<inventory_root>/system/chassis/motherboard/dimm9", 427 "PRODUCT_22": "<inventory_root>/system/chassis/motherboard/dimm10", 428 "PRODUCT_23": "<inventory_root>/system/chassis/motherboard/dimm11", 429 "PRODUCT_24": "<inventory_root>/system/chassis/motherboard/dimm12", 430 "PRODUCT_25": "<inventory_root>/system/chassis/motherboard/dimm13", 431 "PRODUCT_26": "<inventory_root>/system/chassis/motherboard/dimm14", 432 "PRODUCT_27": "<inventory_root>/system/chassis/motherboard/dimm15", 433 "PRODUCT_28": "<inventory_root>/system/chassis/motherboard/dimm16", 434 "PRODUCT_29": "<inventory_root>/system/chassis/motherboard/dimm17", 435 "PRODUCT_30": "<inventory_root>/system/chassis/motherboard/dimm18", 436 "PRODUCT_31": "<inventory_root>/system/chassis/motherboard/dimm19", 437 "PRODUCT_32": "<inventory_root>/system/chassis/motherboard/dimm20", 438 "PRODUCT_33": "<inventory_root>/system/chassis/motherboard/dimm21", 439 "PRODUCT_34": "<inventory_root>/system/chassis/motherboard/dimm22", 440 "PRODUCT_35": "<inventory_root>/system/chassis/motherboard/dimm23", 441 "PRODUCT_36": "<inventory_root>/system/chassis/motherboard/dimm24", 442 "PRODUCT_37": "<inventory_root>/system/chassis/motherboard/dimm25", 443 "PRODUCT_38": "<inventory_root>/system/chassis/motherboard/dimm26", 444 "PRODUCT_39": "<inventory_root>/system/chassis/motherboard/dimm27", 445 "PRODUCT_40": "<inventory_root>/system/chassis/motherboard/dimm28", 446 "PRODUCT_41": "<inventory_root>/system/chassis/motherboard/dimm29", 447 "PRODUCT_42": "<inventory_root>/system/chassis/motherboard/dimm30", 448 "PRODUCT_43": "<inventory_root>/system/chassis/motherboard/dimm31", 449 "PRODUCT_47": "<inventory_root>/system/misc", 450 }, 451 "SENSOR": { 452 0x04: "/org/openbmc/sensors/host/HostStatus", 453 0x05: "/org/openbmc/sensors/host/BootProgress", 454 0x0C: "<inventory_root>/system/chassis/motherboard/cpu0", 455 0x0E: "<inventory_root>/system/chassis/motherboard/cpu1", 456 0x1E: "<inventory_root>/system/chassis/motherboard/dimm3", 457 0x1F: "<inventory_root>/system/chassis/motherboard/dimm2", 458 0x20: "<inventory_root>/system/chassis/motherboard/dimm1", 459 0x21: "<inventory_root>/system/chassis/motherboard/dimm0", 460 0x22: "<inventory_root>/system/chassis/motherboard/dimm7", 461 0x23: "<inventory_root>/system/chassis/motherboard/dimm6", 462 0x24: "<inventory_root>/system/chassis/motherboard/dimm5", 463 0x25: "<inventory_root>/system/chassis/motherboard/dimm4", 464 0x26: "<inventory_root>/system/chassis/motherboard/dimm11", 465 0x27: "<inventory_root>/system/chassis/motherboard/dimm10", 466 0x28: "<inventory_root>/system/chassis/motherboard/dimm9", 467 0x29: "<inventory_root>/system/chassis/motherboard/dimm8", 468 0x2A: "<inventory_root>/system/chassis/motherboard/dimm15", 469 0x2B: "<inventory_root>/system/chassis/motherboard/dimm14", 470 0x2C: "<inventory_root>/system/chassis/motherboard/dimm13", 471 0x2D: "<inventory_root>/system/chassis/motherboard/dimm12", 472 0x2E: "<inventory_root>/system/chassis/motherboard/dimm19", 473 0x2F: "<inventory_root>/system/chassis/motherboard/dimm18", 474 0x30: "<inventory_root>/system/chassis/motherboard/dimm17", 475 0x31: "<inventory_root>/system/chassis/motherboard/dimm16", 476 0x32: "<inventory_root>/system/chassis/motherboard/dimm23", 477 0x33: "<inventory_root>/system/chassis/motherboard/dimm22", 478 0x34: "<inventory_root>/system/chassis/motherboard/dimm21", 479 0x35: "<inventory_root>/system/chassis/motherboard/dimm20", 480 0x36: "<inventory_root>/system/chassis/motherboard/dimm27", 481 0x37: "<inventory_root>/system/chassis/motherboard/dimm26", 482 0x38: "<inventory_root>/system/chassis/motherboard/dimm25", 483 0x39: "<inventory_root>/system/chassis/motherboard/dimm24", 484 0x3A: "<inventory_root>/system/chassis/motherboard/dimm31", 485 0x3B: "<inventory_root>/system/chassis/motherboard/dimm30", 486 0x3C: "<inventory_root>/system/chassis/motherboard/dimm29", 487 0x3D: "<inventory_root>/system/chassis/motherboard/dimm28", 488 0x3E: "<inventory_root>/system/chassis/motherboard/cpu0/core0", 489 0x3F: "<inventory_root>/system/chassis/motherboard/cpu0/core1", 490 0x40: "<inventory_root>/system/chassis/motherboard/cpu0/core2", 491 0x41: "<inventory_root>/system/chassis/motherboard/cpu0/core3", 492 0x42: "<inventory_root>/system/chassis/motherboard/cpu0/core4", 493 0x43: "<inventory_root>/system/chassis/motherboard/cpu0/core5", 494 0x44: "<inventory_root>/system/chassis/motherboard/cpu0/core6", 495 0x45: "<inventory_root>/system/chassis/motherboard/cpu0/core7", 496 0x46: "<inventory_root>/system/chassis/motherboard/cpu0/core8", 497 0x47: "<inventory_root>/system/chassis/motherboard/cpu0/core9", 498 0x48: "<inventory_root>/system/chassis/motherboard/cpu0/core10", 499 0x49: "<inventory_root>/system/chassis/motherboard/cpu0/core11", 500 0x4A: "<inventory_root>/system/chassis/motherboard/cpu1/core0", 501 0x4B: "<inventory_root>/system/chassis/motherboard/cpu1/core1", 502 0x4C: "<inventory_root>/system/chassis/motherboard/cpu1/core2", 503 0x4D: "<inventory_root>/system/chassis/motherboard/cpu1/core3", 504 0x4E: "<inventory_root>/system/chassis/motherboard/cpu1/core4", 505 0x4F: "<inventory_root>/system/chassis/motherboard/cpu1/core5", 506 0x50: "<inventory_root>/system/chassis/motherboard/cpu1/core6", 507 0x51: "<inventory_root>/system/chassis/motherboard/cpu1/core7", 508 0x52: "<inventory_root>/system/chassis/motherboard/cpu1/core8", 509 0x53: "<inventory_root>/system/chassis/motherboard/cpu1/core9", 510 0x54: "<inventory_root>/system/chassis/motherboard/cpu1/core10", 511 0x55: "<inventory_root>/system/chassis/motherboard/cpu1/core11", 512 0x56: "<inventory_root>/system/chassis/motherboard/membuf0", 513 0x57: "<inventory_root>/system/chassis/motherboard/membuf1", 514 0x58: "<inventory_root>/system/chassis/motherboard/membuf2", 515 0x59: "<inventory_root>/system/chassis/motherboard/membuf3", 516 0x5A: "<inventory_root>/system/chassis/motherboard/membuf4", 517 0x5B: "<inventory_root>/system/chassis/motherboard/membuf5", 518 0x5C: "<inventory_root>/system/chassis/motherboard/membuf6", 519 0x5D: "<inventory_root>/system/chassis/motherboard/membuf7", 520 0x5F: "/org/openbmc/sensors/host/BootCount", 521 0x60: "<inventory_root>/system/chassis/motherboard", 522 0x61: "<inventory_root>/system/systemevent", 523 0x62: "<inventory_root>/system/powerlimit", 524 0x63: "<inventory_root>/system/chassis/motherboard/refclock", 525 0x64: "<inventory_root>/system/chassis/motherboard/pcieclock", 526 0xB1: "<inventory_root>/system/chassis/motherboard/todclock", 527 0xB2: "<inventory_root>/system/chassis/motherboard/apss", 528 0xB5: "/org/openbmc/sensors/host/OperatingSystemStatus", 529 0xB6: "<inventory_root>/system/chassis/motherboard/pcielink", 530 }, 531 "GPIO_PRESENT": {}, 532} 533 534GPIO_CONFIG = {} 535GPIO_CONFIG["BMC_POWER_UP"] = {"gpio_pin": "D1", "direction": "out"} 536GPIO_CONFIG["SYS_PWROK_BUFF"] = {"gpio_pin": "D2", "direction": "in"} 537GPIO_CONFIG["BMC_WD_CLEAR_PULSE_N"] = {"gpio_pin": "N4", "direction": "out"} 538GPIO_CONFIG["CM1_OE_R_N"] = {"gpio_pin": "Q6", "direction": "out"} 539GPIO_CONFIG["BMC_CP0_RESET_N"] = {"gpio_pin": "O2", "direction": "out"} 540GPIO_CONFIG["BMC_CFAM_RESET_N_R"] = {"gpio_pin": "J2", "direction": "out"} 541GPIO_CONFIG["PEX8718_DEVICES_RESET_N"] = {"gpio_pin": "B6", "direction": "out"} 542GPIO_CONFIG["CP0_DEVICES_RESET_N"] = {"gpio_pin": "N3", "direction": "out"} 543GPIO_CONFIG["CP1_DEVICES_RESET_N"] = {"gpio_pin": "N5", "direction": "out"} 544GPIO_CONFIG["IDBTN"] = {"gpio_pin": "Q7", "direction": "out"} 545GPIO_CONFIG["FSI_DATA"] = {"gpio_pin": "A5", "direction": "out"} 546GPIO_CONFIG["FSI_CLK"] = {"gpio_pin": "A4", "direction": "out"} 547GPIO_CONFIG["FSI_ENABLE"] = {"gpio_pin": "D0", "direction": "out"} 548GPIO_CONFIG["CRONUS_SEL"] = {"gpio_pin": "A6", "direction": "out"} 549GPIO_CONFIG["BMC_THROTTLE"] = {"gpio_pin": "J3", "direction": "out"} 550 551GPIO_CONFIG["POWER_BUTTON"] = {"gpio_pin": "E0", "direction": "both"} 552GPIO_CONFIG["RESET_BUTTON"] = {"gpio_pin": "E4", "direction": "both"} 553GPIO_CONFIG["CHECKSTOP"] = {"gpio_pin": "H0", "direction": "falling"} 554 555GPIO_CONFIG["PS0_PRES_N"] = {"gpio_pin": "P7", "direction": "in"} 556GPIO_CONFIG["PS1_PRES_N"] = {"gpio_pin": "N0", "direction": "in"} 557GPIO_CONFIG["CARD_PRES_N"] = {"gpio_pin": "J0", "direction": "in"} 558 559GPIO_CONFIGS = { 560 "power_config": { 561 "power_good_in": "SYS_PWROK_BUFF", 562 "power_up_outs": [ 563 ("BMC_POWER_UP", True), 564 ], 565 "reset_outs": [ 566 ("CM1_OE_R_N", True), 567 ("BMC_CP0_RESET_N", False), 568 ("BMC_CFAM_RESET_N_R", False), 569 ], 570 "pci_reset_outs": [ 571 # net name, polarity, reset hold 572 # if 'reset hold' set to 'True', BMC will hold pci reset until 573 # host CPU ready to drive PCI 574 ("PEX8718_DEVICES_RESET_N", False, True), 575 ("CP0_DEVICES_RESET_N", False, True), 576 ("CP1_DEVICES_RESET_N", False, True), 577 ], 578 }, 579 "hostctl_config": { 580 "fsi_data": "FSI_DATA", 581 "fsi_clk": "FSI_CLK", 582 "fsi_enable": "FSI_ENABLE", 583 "cronus_sel": "CRONUS_SEL", 584 "optionals": [ 585 ("BMC_THROTTLE", True), 586 ("IDBTN", False), 587 ], 588 }, 589} 590 591 592# Miscellaneous non-poll sensor with system specific properties. 593# The sensor id is the same as those defined in ID_LOOKUP['SENSOR']. 594MISC_SENSORS = {} 595 596# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 597