1efb92cd1SRahul Maheshwari# Romulus.py 2efb92cd1SRahul Maheshwari# 3efb92cd1SRahul Maheshwari 4efb92cd1SRahul MaheshwariSYSTEM_STATES = [ 5*20f38712SPatrick Williams "BASE_APPS", 6*20f38712SPatrick Williams "BMC_STARTING", 7*20f38712SPatrick Williams "BMC_READY", 8*20f38712SPatrick Williams "HOST_POWERING_ON", 9*20f38712SPatrick Williams "HOST_POWERED_ON", 10*20f38712SPatrick Williams "HOST_BOOTING", 11*20f38712SPatrick Williams "HOST_BOOTED", 12*20f38712SPatrick Williams "HOST_POWERED_OFF", 13efb92cd1SRahul Maheshwari] 14efb92cd1SRahul Maheshwari 15efb92cd1SRahul MaheshwariEXIT_STATE_DEPEND = { 16*20f38712SPatrick Williams "BASE_APPS": { 17*20f38712SPatrick Williams "/org/openbmc/sensors": 0, 18efb92cd1SRahul Maheshwari }, 19*20f38712SPatrick Williams "BMC_STARTING": { 20*20f38712SPatrick Williams "/org/openbmc/control/chassis0": 0, 21*20f38712SPatrick Williams "/org/openbmc/control/power0": 0, 22*20f38712SPatrick Williams "/org/openbmc/control/flash/bios": 0, 23efb92cd1SRahul Maheshwari }, 24efb92cd1SRahul Maheshwari} 25efb92cd1SRahul Maheshwari 26*20f38712SPatrick WilliamsINVENTORY_ROOT = "/org/openbmc/inventory" 27efb92cd1SRahul Maheshwari 28efb92cd1SRahul MaheshwariFRU_INSTANCES = { 29*20f38712SPatrick Williams "<inventory_root>/system": { 30*20f38712SPatrick Williams "fru_type": "SYSTEM", 31*20f38712SPatrick Williams "is_fru": True, 32*20f38712SPatrick Williams "present": "True", 33*20f38712SPatrick Williams }, 34*20f38712SPatrick Williams "<inventory_root>/system/bios": { 35*20f38712SPatrick Williams "fru_type": "SYSTEM", 36*20f38712SPatrick Williams "is_fru": True, 37*20f38712SPatrick Williams "present": "True", 38*20f38712SPatrick Williams }, 39*20f38712SPatrick Williams "<inventory_root>/system/misc": { 40*20f38712SPatrick Williams "fru_type": "SYSTEM", 41*20f38712SPatrick Williams "is_fru": False, 42*20f38712SPatrick Williams }, 43*20f38712SPatrick Williams "<inventory_root>/system/chassis": { 44*20f38712SPatrick Williams "fru_type": "SYSTEM", 45*20f38712SPatrick Williams "is_fru": True, 46*20f38712SPatrick Williams "present": "True", 47*20f38712SPatrick Williams }, 48*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard": { 49*20f38712SPatrick Williams "fru_type": "MAIN_PLANAR", 50*20f38712SPatrick Williams "is_fru": True, 51*20f38712SPatrick Williams }, 52*20f38712SPatrick Williams "<inventory_root>/system/systemevent": { 53*20f38712SPatrick Williams "fru_type": "SYSTEM_EVENT", 54*20f38712SPatrick Williams "is_fru": False, 55*20f38712SPatrick Williams }, 56*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/refclock": { 57*20f38712SPatrick Williams "fru_type": "MAIN_PLANAR", 58*20f38712SPatrick Williams "is_fru": False, 59*20f38712SPatrick Williams }, 60*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/pcieclock": { 61*20f38712SPatrick Williams "fru_type": "MAIN_PLANAR", 62*20f38712SPatrick Williams "is_fru": False, 63*20f38712SPatrick Williams }, 64*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/todclock": { 65*20f38712SPatrick Williams "fru_type": "MAIN_PLANAR", 66*20f38712SPatrick Williams "is_fru": False, 67*20f38712SPatrick Williams }, 68*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/apss": { 69*20f38712SPatrick Williams "fru_type": "MAIN_PLANAR", 70*20f38712SPatrick Williams "is_fru": False, 71*20f38712SPatrick Williams }, 72*20f38712SPatrick Williams "<inventory_root>/system/chassis/fan0": { 73*20f38712SPatrick Williams "fru_type": "FAN", 74*20f38712SPatrick Williams "is_fru": True, 75*20f38712SPatrick Williams }, 76*20f38712SPatrick Williams "<inventory_root>/system/chassis/fan1": { 77*20f38712SPatrick Williams "fru_type": "FAN", 78*20f38712SPatrick Williams "is_fru": True, 79*20f38712SPatrick Williams }, 80*20f38712SPatrick Williams "<inventory_root>/system/chassis/fan2": { 81*20f38712SPatrick Williams "fru_type": "FAN", 82*20f38712SPatrick Williams "is_fru": True, 83*20f38712SPatrick Williams }, 84*20f38712SPatrick Williams "<inventory_root>/system/chassis/fan3": { 85*20f38712SPatrick Williams "fru_type": "FAN", 86*20f38712SPatrick Williams "is_fru": True, 87*20f38712SPatrick Williams }, 88*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/bmc": { 89*20f38712SPatrick Williams "fru_type": "BMC", 90*20f38712SPatrick Williams "is_fru": False, 91*20f38712SPatrick Williams "manufacturer": "ASPEED", 92*20f38712SPatrick Williams }, 93*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0": { 94*20f38712SPatrick Williams "fru_type": "CPU", 95*20f38712SPatrick Williams "is_fru": True, 96*20f38712SPatrick Williams }, 97*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1": { 98*20f38712SPatrick Williams "fru_type": "CPU", 99*20f38712SPatrick Williams "is_fru": True, 100*20f38712SPatrick Williams }, 101*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0/core0": { 102*20f38712SPatrick Williams "fru_type": "CORE", 103*20f38712SPatrick Williams "is_fru": False, 104*20f38712SPatrick Williams }, 105*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0/core1": { 106*20f38712SPatrick Williams "fru_type": "CORE", 107*20f38712SPatrick Williams "is_fru": False, 108*20f38712SPatrick Williams }, 109*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0/core2": { 110*20f38712SPatrick Williams "fru_type": "CORE", 111*20f38712SPatrick Williams "is_fru": False, 112*20f38712SPatrick Williams }, 113*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0/core3": { 114*20f38712SPatrick Williams "fru_type": "CORE", 115*20f38712SPatrick Williams "is_fru": False, 116*20f38712SPatrick Williams }, 117*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0/core4": { 118*20f38712SPatrick Williams "fru_type": "CORE", 119*20f38712SPatrick Williams "is_fru": False, 120*20f38712SPatrick Williams }, 121*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0/core5": { 122*20f38712SPatrick Williams "fru_type": "CORE", 123*20f38712SPatrick Williams "is_fru": False, 124*20f38712SPatrick Williams }, 125*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0/core6": { 126*20f38712SPatrick Williams "fru_type": "CORE", 127*20f38712SPatrick Williams "is_fru": False, 128*20f38712SPatrick Williams }, 129*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0/core7": { 130*20f38712SPatrick Williams "fru_type": "CORE", 131*20f38712SPatrick Williams "is_fru": False, 132*20f38712SPatrick Williams }, 133*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0/core8": { 134*20f38712SPatrick Williams "fru_type": "CORE", 135*20f38712SPatrick Williams "is_fru": False, 136*20f38712SPatrick Williams }, 137*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0/core9": { 138*20f38712SPatrick Williams "fru_type": "CORE", 139*20f38712SPatrick Williams "is_fru": False, 140*20f38712SPatrick Williams }, 141*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0/core10": { 142*20f38712SPatrick Williams "fru_type": "CORE", 143*20f38712SPatrick Williams "is_fru": False, 144*20f38712SPatrick Williams }, 145*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0/core11": { 146*20f38712SPatrick Williams "fru_type": "CORE", 147*20f38712SPatrick Williams "is_fru": False, 148*20f38712SPatrick Williams }, 149*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0/core12": { 150*20f38712SPatrick Williams "fru_type": "CORE", 151*20f38712SPatrick Williams "is_fru": False, 152*20f38712SPatrick Williams }, 153*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0/core13": { 154*20f38712SPatrick Williams "fru_type": "CORE", 155*20f38712SPatrick Williams "is_fru": False, 156*20f38712SPatrick Williams }, 157*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0/core14": { 158*20f38712SPatrick Williams "fru_type": "CORE", 159*20f38712SPatrick Williams "is_fru": False, 160*20f38712SPatrick Williams }, 161*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0/core15": { 162*20f38712SPatrick Williams "fru_type": "CORE", 163*20f38712SPatrick Williams "is_fru": False, 164*20f38712SPatrick Williams }, 165*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0/core16": { 166*20f38712SPatrick Williams "fru_type": "CORE", 167*20f38712SPatrick Williams "is_fru": False, 168*20f38712SPatrick Williams }, 169*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0/core17": { 170*20f38712SPatrick Williams "fru_type": "CORE", 171*20f38712SPatrick Williams "is_fru": False, 172*20f38712SPatrick Williams }, 173*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0/core18": { 174*20f38712SPatrick Williams "fru_type": "CORE", 175*20f38712SPatrick Williams "is_fru": False, 176*20f38712SPatrick Williams }, 177*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0/core19": { 178*20f38712SPatrick Williams "fru_type": "CORE", 179*20f38712SPatrick Williams "is_fru": False, 180*20f38712SPatrick Williams }, 181*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0/core20": { 182*20f38712SPatrick Williams "fru_type": "CORE", 183*20f38712SPatrick Williams "is_fru": False, 184*20f38712SPatrick Williams }, 185*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0/core21": { 186*20f38712SPatrick Williams "fru_type": "CORE", 187*20f38712SPatrick Williams "is_fru": False, 188*20f38712SPatrick Williams }, 189*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0/core22": { 190*20f38712SPatrick Williams "fru_type": "CORE", 191*20f38712SPatrick Williams "is_fru": False, 192*20f38712SPatrick Williams }, 193*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu0/core23": { 194*20f38712SPatrick Williams "fru_type": "CORE", 195*20f38712SPatrick Williams "is_fru": False, 196*20f38712SPatrick Williams }, 197*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1/core0": { 198*20f38712SPatrick Williams "fru_type": "CORE", 199*20f38712SPatrick Williams "is_fru": False, 200*20f38712SPatrick Williams }, 201*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1/core1": { 202*20f38712SPatrick Williams "fru_type": "CORE", 203*20f38712SPatrick Williams "is_fru": False, 204*20f38712SPatrick Williams }, 205*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1/core2": { 206*20f38712SPatrick Williams "fru_type": "CORE", 207*20f38712SPatrick Williams "is_fru": False, 208*20f38712SPatrick Williams }, 209*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1/core3": { 210*20f38712SPatrick Williams "fru_type": "CORE", 211*20f38712SPatrick Williams "is_fru": False, 212*20f38712SPatrick Williams }, 213*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1/core4": { 214*20f38712SPatrick Williams "fru_type": "CORE", 215*20f38712SPatrick Williams "is_fru": False, 216*20f38712SPatrick Williams }, 217*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1/core5": { 218*20f38712SPatrick Williams "fru_type": "CORE", 219*20f38712SPatrick Williams "is_fru": False, 220*20f38712SPatrick Williams }, 221*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1/core6": { 222*20f38712SPatrick Williams "fru_type": "CORE", 223*20f38712SPatrick Williams "is_fru": False, 224*20f38712SPatrick Williams }, 225*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1/core7": { 226*20f38712SPatrick Williams "fru_type": "CORE", 227*20f38712SPatrick Williams "is_fru": False, 228*20f38712SPatrick Williams }, 229*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1/core8": { 230*20f38712SPatrick Williams "fru_type": "CORE", 231*20f38712SPatrick Williams "is_fru": False, 232*20f38712SPatrick Williams }, 233*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1/core9": { 234*20f38712SPatrick Williams "fru_type": "CORE", 235*20f38712SPatrick Williams "is_fru": False, 236*20f38712SPatrick Williams }, 237*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1/core10": { 238*20f38712SPatrick Williams "fru_type": "CORE", 239*20f38712SPatrick Williams "is_fru": False, 240*20f38712SPatrick Williams }, 241*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1/core11": { 242*20f38712SPatrick Williams "fru_type": "CORE", 243*20f38712SPatrick Williams "is_fru": False, 244*20f38712SPatrick Williams }, 245*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1/core12": { 246*20f38712SPatrick Williams "fru_type": "CORE", 247*20f38712SPatrick Williams "is_fru": False, 248*20f38712SPatrick Williams }, 249*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1/core13": { 250*20f38712SPatrick Williams "fru_type": "CORE", 251*20f38712SPatrick Williams "is_fru": False, 252*20f38712SPatrick Williams }, 253*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1/core14": { 254*20f38712SPatrick Williams "fru_type": "CORE", 255*20f38712SPatrick Williams "is_fru": False, 256*20f38712SPatrick Williams }, 257*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1/core15": { 258*20f38712SPatrick Williams "fru_type": "CORE", 259*20f38712SPatrick Williams "is_fru": False, 260*20f38712SPatrick Williams }, 261*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1/core16": { 262*20f38712SPatrick Williams "fru_type": "CORE", 263*20f38712SPatrick Williams "is_fru": False, 264*20f38712SPatrick Williams }, 265*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1/core17": { 266*20f38712SPatrick Williams "fru_type": "CORE", 267*20f38712SPatrick Williams "is_fru": False, 268*20f38712SPatrick Williams }, 269*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1/core18": { 270*20f38712SPatrick Williams "fru_type": "CORE", 271*20f38712SPatrick Williams "is_fru": False, 272*20f38712SPatrick Williams }, 273*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1/core19": { 274*20f38712SPatrick Williams "fru_type": "CORE", 275*20f38712SPatrick Williams "is_fru": False, 276*20f38712SPatrick Williams }, 277*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1/core20": { 278*20f38712SPatrick Williams "fru_type": "CORE", 279*20f38712SPatrick Williams "is_fru": False, 280*20f38712SPatrick Williams }, 281*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1/core21": { 282*20f38712SPatrick Williams "fru_type": "CORE", 283*20f38712SPatrick Williams "is_fru": False, 284*20f38712SPatrick Williams }, 285*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1/core22": { 286*20f38712SPatrick Williams "fru_type": "CORE", 287*20f38712SPatrick Williams "is_fru": False, 288*20f38712SPatrick Williams }, 289*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/cpu1/core23": { 290*20f38712SPatrick Williams "fru_type": "CORE", 291*20f38712SPatrick Williams "is_fru": False, 292*20f38712SPatrick Williams }, 293*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/dimm0": { 294*20f38712SPatrick Williams "fru_type": "DIMM", 295*20f38712SPatrick Williams "is_fru": True, 296*20f38712SPatrick Williams }, 297*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/dimm1": { 298*20f38712SPatrick Williams "fru_type": "DIMM", 299*20f38712SPatrick Williams "is_fru": True, 300*20f38712SPatrick Williams }, 301*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/dimm2": { 302*20f38712SPatrick Williams "fru_type": "DIMM", 303*20f38712SPatrick Williams "is_fru": True, 304*20f38712SPatrick Williams }, 305*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/dimm3": { 306*20f38712SPatrick Williams "fru_type": "DIMM", 307*20f38712SPatrick Williams "is_fru": True, 308*20f38712SPatrick Williams }, 309*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/dimm4": { 310*20f38712SPatrick Williams "fru_type": "DIMM", 311*20f38712SPatrick Williams "is_fru": True, 312*20f38712SPatrick Williams }, 313*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/dimm5": { 314*20f38712SPatrick Williams "fru_type": "DIMM", 315*20f38712SPatrick Williams "is_fru": True, 316*20f38712SPatrick Williams }, 317*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/dimm6": { 318*20f38712SPatrick Williams "fru_type": "DIMM", 319*20f38712SPatrick Williams "is_fru": True, 320*20f38712SPatrick Williams }, 321*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/dimm7": { 322*20f38712SPatrick Williams "fru_type": "DIMM", 323*20f38712SPatrick Williams "is_fru": True, 324*20f38712SPatrick Williams }, 325*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/dimm8": { 326*20f38712SPatrick Williams "fru_type": "DIMM", 327*20f38712SPatrick Williams "is_fru": True, 328*20f38712SPatrick Williams }, 329*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/dimm9": { 330*20f38712SPatrick Williams "fru_type": "DIMM", 331*20f38712SPatrick Williams "is_fru": True, 332*20f38712SPatrick Williams }, 333*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/dimm10": { 334*20f38712SPatrick Williams "fru_type": "DIMM", 335*20f38712SPatrick Williams "is_fru": True, 336*20f38712SPatrick Williams }, 337*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/dimm11": { 338*20f38712SPatrick Williams "fru_type": "DIMM", 339*20f38712SPatrick Williams "is_fru": True, 340*20f38712SPatrick Williams }, 341*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/dimm12": { 342*20f38712SPatrick Williams "fru_type": "DIMM", 343*20f38712SPatrick Williams "is_fru": True, 344*20f38712SPatrick Williams }, 345*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/dimm13": { 346*20f38712SPatrick Williams "fru_type": "DIMM", 347*20f38712SPatrick Williams "is_fru": True, 348*20f38712SPatrick Williams }, 349*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/dimm14": { 350*20f38712SPatrick Williams "fru_type": "DIMM", 351*20f38712SPatrick Williams "is_fru": True, 352*20f38712SPatrick Williams }, 353*20f38712SPatrick Williams "<inventory_root>/system/chassis/motherboard/dimm15": { 354*20f38712SPatrick Williams "fru_type": "DIMM", 355*20f38712SPatrick Williams "is_fru": True, 356*20f38712SPatrick Williams }, 357efb92cd1SRahul Maheshwari} 358efb92cd1SRahul Maheshwari 359efb92cd1SRahul MaheshwariID_LOOKUP = { 360*20f38712SPatrick Williams "FRU": { 361*20f38712SPatrick Williams 0x01: "<inventory_root>/system/chassis/motherboard/cpu0", 362*20f38712SPatrick Williams 0x02: "<inventory_root>/system/chassis/motherboard/cpu1", 363*20f38712SPatrick Williams 0x03: "<inventory_root>/system/chassis/motherboard", 364*20f38712SPatrick Williams 0x04: "<inventory_root>/system/chassis/motherboard/dimm0", 365*20f38712SPatrick Williams 0x05: "<inventory_root>/system/chassis/motherboard/dimm1", 366*20f38712SPatrick Williams 0x06: "<inventory_root>/system/chassis/motherboard/dimm2", 367*20f38712SPatrick Williams 0x07: "<inventory_root>/system/chassis/motherboard/dimm3", 368*20f38712SPatrick Williams 0x08: "<inventory_root>/system/chassis/motherboard/dimm4", 369*20f38712SPatrick Williams 0x09: "<inventory_root>/system/chassis/motherboard/dimm5", 370*20f38712SPatrick Williams 0x0A: "<inventory_root>/system/chassis/motherboard/dimm6", 371*20f38712SPatrick Williams 0x0B: "<inventory_root>/system/chassis/motherboard/dimm7", 372*20f38712SPatrick Williams 0x0C: "<inventory_root>/system/chassis/motherboard/dimm8", 373*20f38712SPatrick Williams 0x0D: "<inventory_root>/system/chassis/motherboard/dimm9", 374*20f38712SPatrick Williams 0x0E: "<inventory_root>/system/chassis/motherboard/dimm10", 375*20f38712SPatrick Williams 0x0F: "<inventory_root>/system/chassis/motherboard/dimm11", 376*20f38712SPatrick Williams 0x10: "<inventory_root>/system/chassis/motherboard/dimm12", 377*20f38712SPatrick Williams 0x11: "<inventory_root>/system/chassis/motherboard/dimm13", 378*20f38712SPatrick Williams 0x12: "<inventory_root>/system/chassis/motherboard/dimm14", 379*20f38712SPatrick Williams 0x13: "<inventory_root>/system/chassis/motherboard/dimm15", 380efb92cd1SRahul Maheshwari }, 381*20f38712SPatrick Williams "FRU_STR": { 382*20f38712SPatrick Williams "PRODUCT_0": "<inventory_root>/system/bios", 383*20f38712SPatrick Williams "BOARD_1": "<inventory_root>/system/chassis/motherboard/cpu0", 384*20f38712SPatrick Williams "BOARD_2": "<inventory_root>/system/chassis/motherboard/cpu1", 385*20f38712SPatrick Williams "CHASSIS_3": "<inventory_root>/system/chassis/motherboard", 386*20f38712SPatrick Williams "BOARD_3": "<inventory_root>/system/misc", 387*20f38712SPatrick Williams "PRODUCT_12": "<inventory_root>/system/chassis/motherboard/dimm0", 388*20f38712SPatrick Williams "PRODUCT_13": "<inventory_root>/system/chassis/motherboard/dimm1", 389*20f38712SPatrick Williams "PRODUCT_14": "<inventory_root>/system/chassis/motherboard/dimm2", 390*20f38712SPatrick Williams "PRODUCT_15": "<inventory_root>/system/chassis/motherboard/dimm3", 391*20f38712SPatrick Williams "PRODUCT_16": "<inventory_root>/system/chassis/motherboard/dimm4", 392*20f38712SPatrick Williams "PRODUCT_17": "<inventory_root>/system/chassis/motherboard/dimm5", 393*20f38712SPatrick Williams "PRODUCT_18": "<inventory_root>/system/chassis/motherboard/dimm6", 394*20f38712SPatrick Williams "PRODUCT_19": "<inventory_root>/system/chassis/motherboard/dimm7", 395*20f38712SPatrick Williams "PRODUCT_20": "<inventory_root>/system/chassis/motherboard/dimm8", 396*20f38712SPatrick Williams "PRODUCT_21": "<inventory_root>/system/chassis/motherboard/dimm9", 397*20f38712SPatrick Williams "PRODUCT_22": "<inventory_root>/system/chassis/motherboard/dimm10", 398*20f38712SPatrick Williams "PRODUCT_23": "<inventory_root>/system/chassis/motherboard/dimm11", 399*20f38712SPatrick Williams "PRODUCT_24": "<inventory_root>/system/chassis/motherboard/dimm12", 400*20f38712SPatrick Williams "PRODUCT_25": "<inventory_root>/system/chassis/motherboard/dimm13", 401*20f38712SPatrick Williams "PRODUCT_26": "<inventory_root>/system/chassis/motherboard/dimm14", 402*20f38712SPatrick Williams "PRODUCT_27": "<inventory_root>/system/chassis/motherboard/dimm15", 403*20f38712SPatrick Williams "PRODUCT_47": "<inventory_root>/system/misc", 404efb92cd1SRahul Maheshwari }, 405*20f38712SPatrick Williams "SENSOR": { 406*20f38712SPatrick Williams 0x01: "/org/openbmc/sensors/host/HostStatus", 407*20f38712SPatrick Williams 0x02: "/org/openbmc/sensors/host/BootProgress", 408*20f38712SPatrick Williams 0x03: "/org/openbmc/sensors/host/cpu0/OccStatus", 409*20f38712SPatrick Williams 0x04: "/org/openbmc/sensors/host/cpu1/OccStatus", 410*20f38712SPatrick Williams 0x08: "<inventory_root>/system/chassis/motherboard/cpu0", 411*20f38712SPatrick Williams 0x09: "<inventory_root>/system/chassis/motherboard/cpu1", 412*20f38712SPatrick Williams 0x0B: "<inventory_root>/system/chassis/motherboard/dimm0", 413*20f38712SPatrick Williams 0x0C: "<inventory_root>/system/chassis/motherboard/dimm1", 414*20f38712SPatrick Williams 0x0D: "<inventory_root>/system/chassis/motherboard/dimm2", 415*20f38712SPatrick Williams 0x0E: "<inventory_root>/system/chassis/motherboard/dimm3", 416*20f38712SPatrick Williams 0x0F: "<inventory_root>/system/chassis/motherboard/dimm4", 417*20f38712SPatrick Williams 0x10: "<inventory_root>/system/chassis/motherboard/dimm5", 418*20f38712SPatrick Williams 0x11: "<inventory_root>/system/chassis/motherboard/dimm6", 419*20f38712SPatrick Williams 0x12: "<inventory_root>/system/chassis/motherboard/dimm7", 420*20f38712SPatrick Williams 0x13: "<inventory_root>/system/chassis/motherboard/dimm8", 421*20f38712SPatrick Williams 0x14: "<inventory_root>/system/chassis/motherboard/dimm9", 422*20f38712SPatrick Williams 0x15: "<inventory_root>/system/chassis/motherboard/dimm10", 423*20f38712SPatrick Williams 0x16: "<inventory_root>/system/chassis/motherboard/dimm11", 424*20f38712SPatrick Williams 0x17: "<inventory_root>/system/chassis/motherboard/dimm12", 425*20f38712SPatrick Williams 0x18: "<inventory_root>/system/chassis/motherboard/dimm13", 426*20f38712SPatrick Williams 0x19: "<inventory_root>/system/chassis/motherboard/dimm14", 427*20f38712SPatrick Williams 0x1A: "<inventory_root>/system/chassis/motherboard/dimm15", 428*20f38712SPatrick Williams 0x2B: "<inventory_root>/system/chassis/motherboard/cpu0/core0", 429*20f38712SPatrick Williams 0x2C: "<inventory_root>/system/chassis/motherboard/cpu0/core1", 430*20f38712SPatrick Williams 0x2D: "<inventory_root>/system/chassis/motherboard/cpu0/core2", 431*20f38712SPatrick Williams 0x2E: "<inventory_root>/system/chassis/motherboard/cpu0/core3", 432*20f38712SPatrick Williams 0x2F: "<inventory_root>/system/chassis/motherboard/cpu0/core4", 433*20f38712SPatrick Williams 0x30: "<inventory_root>/system/chassis/motherboard/cpu0/core5", 434*20f38712SPatrick Williams 0x31: "<inventory_root>/system/chassis/motherboard/cpu0/core6", 435*20f38712SPatrick Williams 0x32: "<inventory_root>/system/chassis/motherboard/cpu0/core7", 436*20f38712SPatrick Williams 0x33: "<inventory_root>/system/chassis/motherboard/cpu0/core8", 437*20f38712SPatrick Williams 0x34: "<inventory_root>/system/chassis/motherboard/cpu0/core9", 438*20f38712SPatrick Williams 0x35: "<inventory_root>/system/chassis/motherboard/cpu0/core10", 439*20f38712SPatrick Williams 0x36: "<inventory_root>/system/chassis/motherboard/cpu0/core11", 440*20f38712SPatrick Williams 0x37: "<inventory_root>/system/chassis/motherboard/cpu0/core12", 441*20f38712SPatrick Williams 0x38: "<inventory_root>/system/chassis/motherboard/cpu0/core13", 442*20f38712SPatrick Williams 0x39: "<inventory_root>/system/chassis/motherboard/cpu0/core14", 443*20f38712SPatrick Williams 0x3A: "<inventory_root>/system/chassis/motherboard/cpu0/core15", 444*20f38712SPatrick Williams 0x3B: "<inventory_root>/system/chassis/motherboard/cpu0/core16", 445*20f38712SPatrick Williams 0x3C: "<inventory_root>/system/chassis/motherboard/cpu0/core17", 446*20f38712SPatrick Williams 0x3D: "<inventory_root>/system/chassis/motherboard/cpu0/core18", 447*20f38712SPatrick Williams 0x3E: "<inventory_root>/system/chassis/motherboard/cpu0/core19", 448*20f38712SPatrick Williams 0x3F: "<inventory_root>/system/chassis/motherboard/cpu0/core20", 449*20f38712SPatrick Williams 0x40: "<inventory_root>/system/chassis/motherboard/cpu0/core21", 450*20f38712SPatrick Williams 0x41: "<inventory_root>/system/chassis/motherboard/cpu0/core22", 451*20f38712SPatrick Williams 0x42: "<inventory_root>/system/chassis/motherboard/cpu0/core23", 452*20f38712SPatrick Williams 0x43: "<inventory_root>/system/chassis/motherboard/cpu1/core0", 453*20f38712SPatrick Williams 0x44: "<inventory_root>/system/chassis/motherboard/cpu1/core1", 454*20f38712SPatrick Williams 0x45: "<inventory_root>/system/chassis/motherboard/cpu1/core2", 455*20f38712SPatrick Williams 0x46: "<inventory_root>/system/chassis/motherboard/cpu1/core3", 456*20f38712SPatrick Williams 0x47: "<inventory_root>/system/chassis/motherboard/cpu1/core4", 457*20f38712SPatrick Williams 0x48: "<inventory_root>/system/chassis/motherboard/cpu1/core5", 458*20f38712SPatrick Williams 0x49: "<inventory_root>/system/chassis/motherboard/cpu1/core6", 459*20f38712SPatrick Williams 0x4A: "<inventory_root>/system/chassis/motherboard/cpu1/core7", 460*20f38712SPatrick Williams 0x4B: "<inventory_root>/system/chassis/motherboard/cpu1/core8", 461*20f38712SPatrick Williams 0x4C: "<inventory_root>/system/chassis/motherboard/cpu1/core9", 462*20f38712SPatrick Williams 0x4D: "<inventory_root>/system/chassis/motherboard/cpu1/core10", 463*20f38712SPatrick Williams 0x4E: "<inventory_root>/system/chassis/motherboard/cpu1/core11", 464*20f38712SPatrick Williams 0x4F: "<inventory_root>/system/chassis/motherboard/cpu1/core12", 465*20f38712SPatrick Williams 0x50: "<inventory_root>/system/chassis/motherboard/cpu1/core13", 466*20f38712SPatrick Williams 0x51: "<inventory_root>/system/chassis/motherboard/cpu1/core14", 467*20f38712SPatrick Williams 0x52: "<inventory_root>/system/chassis/motherboard/cpu1/core15", 468*20f38712SPatrick Williams 0x53: "<inventory_root>/system/chassis/motherboard/cpu1/core16", 469*20f38712SPatrick Williams 0x54: "<inventory_root>/system/chassis/motherboard/cpu1/core17", 470*20f38712SPatrick Williams 0x55: "<inventory_root>/system/chassis/motherboard/cpu1/core18", 471*20f38712SPatrick Williams 0x56: "<inventory_root>/system/chassis/motherboard/cpu1/core19", 472*20f38712SPatrick Williams 0x57: "<inventory_root>/system/chassis/motherboard/cpu1/core20", 473*20f38712SPatrick Williams 0x58: "<inventory_root>/system/chassis/motherboard/cpu1/core21", 474*20f38712SPatrick Williams 0x59: "<inventory_root>/system/chassis/motherboard/cpu1/core22", 475*20f38712SPatrick Williams 0x5A: "<inventory_root>/system/chassis/motherboard/cpu1/core23", 476*20f38712SPatrick Williams 0x8B: "/org/openbmc/sensors/host/BootCount", 477*20f38712SPatrick Williams 0x8C: "<inventory_root>/system/chassis/motherboard", 478*20f38712SPatrick Williams 0x8D: "<inventory_root>/system/chassis/motherboard/refclock", 479*20f38712SPatrick Williams 0x8E: "<inventory_root>/system/chassis/motherboard/pcieclock", 480*20f38712SPatrick Williams 0x8F: "<inventory_root>/system/chassis/motherboard/todclock", 481*20f38712SPatrick Williams 0x90: "<inventory_root>/system/systemevent", 482*20f38712SPatrick Williams 0x91: "/org/openbmc/sensors/host/OperatingSystemStatus", 483*20f38712SPatrick Williams 0x92: "<inventory_root>/system/chassis/motherboard/pcielink", 484efb92cd1SRahul Maheshwari # 0x08 : '<inventory_root>/system/powerlimit', 485efb92cd1SRahul Maheshwari # 0x10 : '<inventory_root>/system/chassis/motherboard/apss', 486efb92cd1SRahul Maheshwari # 0x06 : '/org/openbmc/sensors/host/powercap', 487efb92cd1SRahul Maheshwari }, 488*20f38712SPatrick Williams "GPIO_PRESENT": {}, 489efb92cd1SRahul Maheshwari} 490efb92cd1SRahul Maheshwari 491efb92cd1SRahul MaheshwariGPIO_CONFIG = {} 492*20f38712SPatrick WilliamsGPIO_CONFIG["SOFTWARE_PGOOD"] = {"gpio_pin": "R1", "direction": "out"} 493*20f38712SPatrick WilliamsGPIO_CONFIG["BMC_POWER_UP"] = {"gpio_pin": "D1", "direction": "out"} 494*20f38712SPatrick WilliamsGPIO_CONFIG["SYS_PWROK_BUFF"] = {"gpio_pin": "D2", "direction": "in"} 495*20f38712SPatrick WilliamsGPIO_CONFIG["BMC_WD_CLEAR_PULSE_N"] = {"gpio_pin": "N5", "direction": "out"} 496*20f38712SPatrick WilliamsGPIO_CONFIG["CHECKSTOP"] = {"gpio_pin": "J2", "direction": "falling"} 497*20f38712SPatrick WilliamsGPIO_CONFIG["BMC_CP0_RESET_N"] = {"gpio_pin": "A1", "direction": "out"} 498*20f38712SPatrick WilliamsGPIO_CONFIG["BMC_CP0_PERST_ENABLE_R"] = {"gpio_pin": "A3", "direction": "out"} 499*20f38712SPatrick WilliamsGPIO_CONFIG["FSI_DATA"] = {"gpio_pin": "AA2", "direction": "out"} 500*20f38712SPatrick WilliamsGPIO_CONFIG["FSI_CLK"] = {"gpio_pin": "AA0", "direction": "out"} 501*20f38712SPatrick WilliamsGPIO_CONFIG["FSI_ENABLE"] = {"gpio_pin": "D0", "direction": "out"} 502efb92cd1SRahul Maheshwari 503efb92cd1SRahul Maheshwari# DBG_CP0_MUX_SEL 504*20f38712SPatrick WilliamsGPIO_CONFIG["CRONUS_SEL"] = {"gpio_pin": "A6", "direction": "out"} 505*20f38712SPatrick WilliamsGPIO_CONFIG["BMC_THROTTLE"] = {"gpio_pin": "J3", "direction": "out"} 506*20f38712SPatrick WilliamsGPIO_CONFIG["IDBTN"] = {"gpio_pin": "Q7", "direction": "out"} 507efb92cd1SRahul Maheshwari 508efb92cd1SRahul Maheshwari# PM_FP_PWRBTN_IN_L 509*20f38712SPatrick WilliamsGPIO_CONFIG["POWER_BUTTON"] = {"gpio_pin": "I3", "direction": "both"} 510efb92cd1SRahul Maheshwari 511efb92cd1SRahul Maheshwari# PM_NMIBTN_IN_L 512*20f38712SPatrick WilliamsGPIO_CONFIG["RESET_BUTTON"] = {"gpio_pin": "J1", "direction": "both"} 513efb92cd1SRahul Maheshwari 514efb92cd1SRahul MaheshwariHWMON_CONFIG = { 515*20f38712SPatrick Williams "4-0050": { 516*20f38712SPatrick Williams "names": { 517*20f38712SPatrick Williams "caps_curr_powercap": { 518*20f38712SPatrick Williams "object_path": "powercap/curr_cap", 519*20f38712SPatrick Williams "poll_interval": 10000, 520*20f38712SPatrick Williams "scale": 1, 521*20f38712SPatrick Williams "units": "W", 522efb92cd1SRahul Maheshwari }, 523*20f38712SPatrick Williams "caps_curr_powerreading": { 524*20f38712SPatrick Williams "object_path": "powercap/system_power", 525*20f38712SPatrick Williams "poll_interval": 10000, 526*20f38712SPatrick Williams "scale": 1, 527*20f38712SPatrick Williams "units": "W", 528efb92cd1SRahul Maheshwari }, 529*20f38712SPatrick Williams "caps_max_powercap": { 530*20f38712SPatrick Williams "object_path": "powercap/max_cap", 531*20f38712SPatrick Williams "poll_interval": 10000, 532*20f38712SPatrick Williams "scale": 1, 533*20f38712SPatrick Williams "units": "W", 534*20f38712SPatrick Williams }, 535*20f38712SPatrick Williams "caps_min_powercap": { 536*20f38712SPatrick Williams "object_path": "powercap/min_cap", 537*20f38712SPatrick Williams "poll_interval": 10000, 538*20f38712SPatrick Williams "scale": 1, 539*20f38712SPatrick Williams "units": "W", 540*20f38712SPatrick Williams }, 541*20f38712SPatrick Williams "caps_norm_powercap": { 542*20f38712SPatrick Williams "object_path": "powercap/n_cap", 543*20f38712SPatrick Williams "poll_interval": 10000, 544*20f38712SPatrick Williams "scale": 1, 545*20f38712SPatrick Williams "units": "W", 546*20f38712SPatrick Williams }, 547*20f38712SPatrick Williams "caps_user_powerlimit": { 548*20f38712SPatrick Williams "object_path": "powercap/user_cap", 549*20f38712SPatrick Williams "poll_interval": 10000, 550*20f38712SPatrick Williams "scale": 1, 551*20f38712SPatrick Williams "units": "W", 552*20f38712SPatrick Williams }, 553*20f38712SPatrick Williams }, 554*20f38712SPatrick Williams "labels": { 555*20f38712SPatrick Williams "176": { 556*20f38712SPatrick Williams "object_path": "temperature/cpu0/core0", 557*20f38712SPatrick Williams "poll_interval": 5000, 558*20f38712SPatrick Williams "scale": -3, 559*20f38712SPatrick Williams "units": "C", 560*20f38712SPatrick Williams "critical_upper": 100, 561*20f38712SPatrick Williams "critical_lower": -100, 562*20f38712SPatrick Williams "warning_upper": 90, 563*20f38712SPatrick Williams "warning_lower": -99, 564*20f38712SPatrick Williams "emergency_enabled": True, 565*20f38712SPatrick Williams }, 566*20f38712SPatrick Williams "177": { 567*20f38712SPatrick Williams "object_path": "temperature/cpu0/core1", 568*20f38712SPatrick Williams "poll_interval": 5000, 569*20f38712SPatrick Williams "scale": -3, 570*20f38712SPatrick Williams "units": "C", 571*20f38712SPatrick Williams "critical_upper": 100, 572*20f38712SPatrick Williams "critical_lower": -100, 573*20f38712SPatrick Williams "warning_upper": 90, 574*20f38712SPatrick Williams "warning_lower": -99, 575*20f38712SPatrick Williams "emergency_enabled": True, 576*20f38712SPatrick Williams }, 577*20f38712SPatrick Williams "178": { 578*20f38712SPatrick Williams "object_path": "temperature/cpu0/core2", 579*20f38712SPatrick Williams "poll_interval": 5000, 580*20f38712SPatrick Williams "scale": -3, 581*20f38712SPatrick Williams "units": "C", 582*20f38712SPatrick Williams "critical_upper": 100, 583*20f38712SPatrick Williams "critical_lower": -100, 584*20f38712SPatrick Williams "warning_upper": 90, 585*20f38712SPatrick Williams "warning_lower": -99, 586*20f38712SPatrick Williams "emergency_enabled": True, 587*20f38712SPatrick Williams }, 588*20f38712SPatrick Williams "179": { 589*20f38712SPatrick Williams "object_path": "temperature/cpu0/core3", 590*20f38712SPatrick Williams "poll_interval": 5000, 591*20f38712SPatrick Williams "scale": -3, 592*20f38712SPatrick Williams "units": "C", 593*20f38712SPatrick Williams "critical_upper": 100, 594*20f38712SPatrick Williams "critical_lower": -100, 595*20f38712SPatrick Williams "warning_upper": 90, 596*20f38712SPatrick Williams "warning_lower": -99, 597*20f38712SPatrick Williams "emergency_enabled": True, 598*20f38712SPatrick Williams }, 599*20f38712SPatrick Williams "180": { 600*20f38712SPatrick Williams "object_path": "temperature/cpu0/core4", 601*20f38712SPatrick Williams "poll_interval": 5000, 602*20f38712SPatrick Williams "scale": -3, 603*20f38712SPatrick Williams "units": "C", 604*20f38712SPatrick Williams "critical_upper": 100, 605*20f38712SPatrick Williams "critical_lower": -100, 606*20f38712SPatrick Williams "warning_upper": 90, 607*20f38712SPatrick Williams "warning_lower": -99, 608*20f38712SPatrick Williams "emergency_enabled": True, 609*20f38712SPatrick Williams }, 610*20f38712SPatrick Williams "181": { 611*20f38712SPatrick Williams "object_path": "temperature/cpu0/core5", 612*20f38712SPatrick Williams "poll_interval": 5000, 613*20f38712SPatrick Williams "scale": -3, 614*20f38712SPatrick Williams "units": "C", 615*20f38712SPatrick Williams "critical_upper": 100, 616*20f38712SPatrick Williams "critical_lower": -100, 617*20f38712SPatrick Williams "warning_upper": 90, 618*20f38712SPatrick Williams "warning_lower": -99, 619*20f38712SPatrick Williams "emergency_enabled": True, 620*20f38712SPatrick Williams }, 621*20f38712SPatrick Williams "182": { 622*20f38712SPatrick Williams "object_path": "temperature/cpu0/core6", 623*20f38712SPatrick Williams "poll_interval": 5000, 624*20f38712SPatrick Williams "scale": -3, 625*20f38712SPatrick Williams "units": "C", 626*20f38712SPatrick Williams "critical_upper": 100, 627*20f38712SPatrick Williams "critical_lower": -100, 628*20f38712SPatrick Williams "warning_upper": 90, 629*20f38712SPatrick Williams "warning_lower": -99, 630*20f38712SPatrick Williams "emergency_enabled": True, 631*20f38712SPatrick Williams }, 632*20f38712SPatrick Williams "183": { 633*20f38712SPatrick Williams "object_path": "temperature/cpu0/core7", 634*20f38712SPatrick Williams "poll_interval": 5000, 635*20f38712SPatrick Williams "scale": -3, 636*20f38712SPatrick Williams "units": "C", 637*20f38712SPatrick Williams "critical_upper": 100, 638*20f38712SPatrick Williams "critical_lower": -100, 639*20f38712SPatrick Williams "warning_upper": 90, 640*20f38712SPatrick Williams "warning_lower": -99, 641*20f38712SPatrick Williams "emergency_enabled": True, 642*20f38712SPatrick Williams }, 643*20f38712SPatrick Williams "184": { 644*20f38712SPatrick Williams "object_path": "temperature/cpu0/core8", 645*20f38712SPatrick Williams "poll_interval": 5000, 646*20f38712SPatrick Williams "scale": -3, 647*20f38712SPatrick Williams "units": "C", 648*20f38712SPatrick Williams "critical_upper": 100, 649*20f38712SPatrick Williams "critical_lower": -100, 650*20f38712SPatrick Williams "warning_upper": 90, 651*20f38712SPatrick Williams "warning_lower": -99, 652*20f38712SPatrick Williams "emergency_enabled": True, 653*20f38712SPatrick Williams }, 654*20f38712SPatrick Williams "185": { 655*20f38712SPatrick Williams "object_path": "temperature/cpu0/core9", 656*20f38712SPatrick Williams "poll_interval": 5000, 657*20f38712SPatrick Williams "scale": -3, 658*20f38712SPatrick Williams "units": "C", 659*20f38712SPatrick Williams "critical_upper": 100, 660*20f38712SPatrick Williams "critical_lower": -100, 661*20f38712SPatrick Williams "warning_upper": 90, 662*20f38712SPatrick Williams "warning_lower": -99, 663*20f38712SPatrick Williams "emergency_enabled": True, 664*20f38712SPatrick Williams }, 665*20f38712SPatrick Williams "186": { 666*20f38712SPatrick Williams "object_path": "temperature/cpu0/core10", 667*20f38712SPatrick Williams "poll_interval": 5000, 668*20f38712SPatrick Williams "scale": -3, 669*20f38712SPatrick Williams "units": "C", 670*20f38712SPatrick Williams "critical_upper": 100, 671*20f38712SPatrick Williams "critical_lower": -100, 672*20f38712SPatrick Williams "warning_upper": 90, 673*20f38712SPatrick Williams "warning_lower": -99, 674*20f38712SPatrick Williams "emergency_enabled": True, 675*20f38712SPatrick Williams }, 676*20f38712SPatrick Williams "187": { 677*20f38712SPatrick Williams "object_path": "temperature/cpu0/core11", 678*20f38712SPatrick Williams "poll_interval": 5000, 679*20f38712SPatrick Williams "scale": -3, 680*20f38712SPatrick Williams "units": "C", 681*20f38712SPatrick Williams "critical_upper": 100, 682*20f38712SPatrick Williams "critical_lower": -100, 683*20f38712SPatrick Williams "warning_upper": 90, 684*20f38712SPatrick Williams "warning_lower": -99, 685*20f38712SPatrick Williams "emergency_enabled": True, 686*20f38712SPatrick Williams }, 687*20f38712SPatrick Williams "102": { 688*20f38712SPatrick Williams "object_path": "temperature/dimm0", 689*20f38712SPatrick Williams "poll_interval": 5000, 690*20f38712SPatrick Williams "scale": -3, 691*20f38712SPatrick Williams "units": "C", 692*20f38712SPatrick Williams }, 693*20f38712SPatrick Williams "103": { 694*20f38712SPatrick Williams "object_path": "temperature/dimm1", 695*20f38712SPatrick Williams "poll_interval": 5000, 696*20f38712SPatrick Williams "scale": -3, 697*20f38712SPatrick Williams "units": "C", 698*20f38712SPatrick Williams }, 699*20f38712SPatrick Williams "104": { 700*20f38712SPatrick Williams "object_path": "temperature/dimm2", 701*20f38712SPatrick Williams "poll_interval": 5000, 702*20f38712SPatrick Williams "scale": -3, 703*20f38712SPatrick Williams "units": "C", 704*20f38712SPatrick Williams }, 705*20f38712SPatrick Williams "105": { 706*20f38712SPatrick Williams "object_path": "temperature/dimm3", 707*20f38712SPatrick Williams "poll_interval": 5000, 708*20f38712SPatrick Williams "scale": -3, 709*20f38712SPatrick Williams "units": "C", 710*20f38712SPatrick Williams }, 711*20f38712SPatrick Williams "106": { 712*20f38712SPatrick Williams "object_path": "temperature/dimm4", 713*20f38712SPatrick Williams "poll_interval": 5000, 714*20f38712SPatrick Williams "scale": -3, 715*20f38712SPatrick Williams "units": "C", 716*20f38712SPatrick Williams }, 717*20f38712SPatrick Williams "107": { 718*20f38712SPatrick Williams "object_path": "temperature/dimm5", 719*20f38712SPatrick Williams "poll_interval": 5000, 720*20f38712SPatrick Williams "scale": -3, 721*20f38712SPatrick Williams "units": "C", 722*20f38712SPatrick Williams }, 723*20f38712SPatrick Williams "108": { 724*20f38712SPatrick Williams "object_path": "temperature/dimm6", 725*20f38712SPatrick Williams "poll_interval": 5000, 726*20f38712SPatrick Williams "scale": -3, 727*20f38712SPatrick Williams "units": "C", 728*20f38712SPatrick Williams }, 729*20f38712SPatrick Williams "109": { 730*20f38712SPatrick Williams "object_path": "temperature/dimm7", 731*20f38712SPatrick Williams "poll_interval": 5000, 732*20f38712SPatrick Williams "scale": -3, 733*20f38712SPatrick Williams "units": "C", 734*20f38712SPatrick Williams }, 735*20f38712SPatrick Williams }, 736*20f38712SPatrick Williams }, 737*20f38712SPatrick Williams "5-0050": { 738*20f38712SPatrick Williams "labels": { 739*20f38712SPatrick Williams "188": { 740*20f38712SPatrick Williams "object_path": "temperature/cpu1/core0", 741*20f38712SPatrick Williams "poll_interval": 5000, 742*20f38712SPatrick Williams "scale": -3, 743*20f38712SPatrick Williams "units": "C", 744*20f38712SPatrick Williams "critical_upper": 100, 745*20f38712SPatrick Williams "critical_lower": -100, 746*20f38712SPatrick Williams "warning_upper": 90, 747*20f38712SPatrick Williams "warning_lower": -99, 748*20f38712SPatrick Williams "emergency_enabled": True, 749*20f38712SPatrick Williams }, 750*20f38712SPatrick Williams "189": { 751*20f38712SPatrick Williams "object_path": "temperature/cpu1/core1", 752*20f38712SPatrick Williams "poll_interval": 5000, 753*20f38712SPatrick Williams "scale": -3, 754*20f38712SPatrick Williams "units": "C", 755*20f38712SPatrick Williams "critical_upper": 100, 756*20f38712SPatrick Williams "critical_lower": -100, 757*20f38712SPatrick Williams "warning_upper": 90, 758*20f38712SPatrick Williams "warning_lower": -99, 759*20f38712SPatrick Williams "emergency_enabled": True, 760*20f38712SPatrick Williams }, 761*20f38712SPatrick Williams "190": { 762*20f38712SPatrick Williams "object_path": "temperature/cpu1/core2", 763*20f38712SPatrick Williams "poll_interval": 5000, 764*20f38712SPatrick Williams "scale": -3, 765*20f38712SPatrick Williams "units": "C", 766*20f38712SPatrick Williams "critical_upper": 100, 767*20f38712SPatrick Williams "critical_lower": -100, 768*20f38712SPatrick Williams "warning_upper": 90, 769*20f38712SPatrick Williams "warning_lower": -99, 770*20f38712SPatrick Williams "emergency_enabled": True, 771*20f38712SPatrick Williams }, 772*20f38712SPatrick Williams "191": { 773*20f38712SPatrick Williams "object_path": "temperature/cpu1/core3", 774*20f38712SPatrick Williams "poll_interval": 5000, 775*20f38712SPatrick Williams "scale": -3, 776*20f38712SPatrick Williams "units": "C", 777*20f38712SPatrick Williams "critical_upper": 100, 778*20f38712SPatrick Williams "critical_lower": -100, 779*20f38712SPatrick Williams "warning_upper": 90, 780*20f38712SPatrick Williams "warning_lower": -99, 781*20f38712SPatrick Williams "emergency_enabled": True, 782*20f38712SPatrick Williams }, 783*20f38712SPatrick Williams "192": { 784*20f38712SPatrick Williams "object_path": "temperature/cpu1/core4", 785*20f38712SPatrick Williams "poll_interval": 5000, 786*20f38712SPatrick Williams "scale": -3, 787*20f38712SPatrick Williams "units": "C", 788*20f38712SPatrick Williams "critical_upper": 100, 789*20f38712SPatrick Williams "critical_lower": -100, 790*20f38712SPatrick Williams "warning_upper": 90, 791*20f38712SPatrick Williams "warning_lower": -99, 792*20f38712SPatrick Williams "emergency_enabled": True, 793*20f38712SPatrick Williams }, 794*20f38712SPatrick Williams "193": { 795*20f38712SPatrick Williams "object_path": "temperature/cpu1/core5", 796*20f38712SPatrick Williams "poll_interval": 5000, 797*20f38712SPatrick Williams "scale": -3, 798*20f38712SPatrick Williams "units": "C", 799*20f38712SPatrick Williams "critical_upper": 100, 800*20f38712SPatrick Williams "critical_lower": -100, 801*20f38712SPatrick Williams "warning_upper": 90, 802*20f38712SPatrick Williams "warning_lower": -99, 803*20f38712SPatrick Williams "emergency_enabled": True, 804*20f38712SPatrick Williams }, 805*20f38712SPatrick Williams "194": { 806*20f38712SPatrick Williams "object_path": "temperature/cpu1/core6", 807*20f38712SPatrick Williams "poll_interval": 5000, 808*20f38712SPatrick Williams "scale": -3, 809*20f38712SPatrick Williams "units": "C", 810*20f38712SPatrick Williams "critical_upper": 100, 811*20f38712SPatrick Williams "critical_lower": -100, 812*20f38712SPatrick Williams "warning_upper": 90, 813*20f38712SPatrick Williams "warning_lower": -99, 814*20f38712SPatrick Williams "emergency_enabled": True, 815*20f38712SPatrick Williams }, 816*20f38712SPatrick Williams "195": { 817*20f38712SPatrick Williams "object_path": "temperature/cpu1/core7", 818*20f38712SPatrick Williams "poll_interval": 5000, 819*20f38712SPatrick Williams "scale": -3, 820*20f38712SPatrick Williams "units": "C", 821*20f38712SPatrick Williams "critical_upper": 100, 822*20f38712SPatrick Williams "critical_lower": -100, 823*20f38712SPatrick Williams "warning_upper": 90, 824*20f38712SPatrick Williams "warning_lower": -99, 825*20f38712SPatrick Williams "emergency_enabled": True, 826*20f38712SPatrick Williams }, 827*20f38712SPatrick Williams "196": { 828*20f38712SPatrick Williams "object_path": "temperature/cpu1/core8", 829*20f38712SPatrick Williams "poll_interval": 5000, 830*20f38712SPatrick Williams "scale": -3, 831*20f38712SPatrick Williams "units": "C", 832*20f38712SPatrick Williams "critical_upper": 100, 833*20f38712SPatrick Williams "critical_lower": -100, 834*20f38712SPatrick Williams "warning_upper": 90, 835*20f38712SPatrick Williams "warning_lower": -99, 836*20f38712SPatrick Williams "emergency_enabled": True, 837*20f38712SPatrick Williams }, 838*20f38712SPatrick Williams "197": { 839*20f38712SPatrick Williams "object_path": "temperature/cpu1/core9", 840*20f38712SPatrick Williams "poll_interval": 5000, 841*20f38712SPatrick Williams "scale": -3, 842*20f38712SPatrick Williams "units": "C", 843*20f38712SPatrick Williams "critical_upper": 100, 844*20f38712SPatrick Williams "critical_lower": -100, 845*20f38712SPatrick Williams "warning_upper": 90, 846*20f38712SPatrick Williams "warning_lower": -99, 847*20f38712SPatrick Williams "emergency_enabled": True, 848*20f38712SPatrick Williams }, 849*20f38712SPatrick Williams "198": { 850*20f38712SPatrick Williams "object_path": "temperature/cpu1/core10", 851*20f38712SPatrick Williams "poll_interval": 5000, 852*20f38712SPatrick Williams "scale": -3, 853*20f38712SPatrick Williams "units": "C", 854*20f38712SPatrick Williams "critical_upper": 100, 855*20f38712SPatrick Williams "critical_lower": -100, 856*20f38712SPatrick Williams "warning_upper": 90, 857*20f38712SPatrick Williams "warning_lower": -99, 858*20f38712SPatrick Williams "emergency_enabled": True, 859*20f38712SPatrick Williams }, 860*20f38712SPatrick Williams "199": { 861*20f38712SPatrick Williams "object_path": "temperature/cpu1/core11", 862*20f38712SPatrick Williams "poll_interval": 5000, 863*20f38712SPatrick Williams "scale": -3, 864*20f38712SPatrick Williams "units": "C", 865*20f38712SPatrick Williams "critical_upper": 100, 866*20f38712SPatrick Williams "critical_lower": -100, 867*20f38712SPatrick Williams "warning_upper": 90, 868*20f38712SPatrick Williams "warning_lower": -99, 869*20f38712SPatrick Williams "emergency_enabled": True, 870*20f38712SPatrick Williams }, 871*20f38712SPatrick Williams "110": { 872*20f38712SPatrick Williams "object_path": "temperature/dimm8", 873*20f38712SPatrick Williams "poll_interval": 5000, 874*20f38712SPatrick Williams "scale": -3, 875*20f38712SPatrick Williams "units": "C", 876*20f38712SPatrick Williams }, 877*20f38712SPatrick Williams "111": { 878*20f38712SPatrick Williams "object_path": "temperature/dimm9", 879*20f38712SPatrick Williams "poll_interval": 5000, 880*20f38712SPatrick Williams "scale": -3, 881*20f38712SPatrick Williams "units": "C", 882*20f38712SPatrick Williams }, 883*20f38712SPatrick Williams "112": { 884*20f38712SPatrick Williams "object_path": "temperature/dimm10", 885*20f38712SPatrick Williams "poll_interval": 5000, 886*20f38712SPatrick Williams "scale": -3, 887*20f38712SPatrick Williams "units": "C", 888*20f38712SPatrick Williams }, 889*20f38712SPatrick Williams "113": { 890*20f38712SPatrick Williams "object_path": "temperature/dimm11", 891*20f38712SPatrick Williams "poll_interval": 5000, 892*20f38712SPatrick Williams "scale": -3, 893*20f38712SPatrick Williams "units": "C", 894*20f38712SPatrick Williams }, 895*20f38712SPatrick Williams "114": { 896*20f38712SPatrick Williams "object_path": "temperature/dimm12", 897*20f38712SPatrick Williams "poll_interval": 5000, 898*20f38712SPatrick Williams "scale": -3, 899*20f38712SPatrick Williams "units": "C", 900*20f38712SPatrick Williams }, 901*20f38712SPatrick Williams "115": { 902*20f38712SPatrick Williams "object_path": "temperature/dimm13", 903*20f38712SPatrick Williams "poll_interval": 5000, 904*20f38712SPatrick Williams "scale": -3, 905*20f38712SPatrick Williams "units": "C", 906*20f38712SPatrick Williams }, 907*20f38712SPatrick Williams "116": { 908*20f38712SPatrick Williams "object_path": "temperature/dimm14", 909*20f38712SPatrick Williams "poll_interval": 5000, 910*20f38712SPatrick Williams "scale": -3, 911*20f38712SPatrick Williams "units": "C", 912*20f38712SPatrick Williams }, 913*20f38712SPatrick Williams "117": { 914*20f38712SPatrick Williams "object_path": "temperature/dimm15", 915*20f38712SPatrick Williams "poll_interval": 5000, 916*20f38712SPatrick Williams "scale": -3, 917*20f38712SPatrick Williams "units": "C", 918*20f38712SPatrick Williams }, 919efb92cd1SRahul Maheshwari } 920efb92cd1SRahul Maheshwari }, 921efb92cd1SRahul Maheshwari} 922efb92cd1SRahul Maheshwari 923efb92cd1SRahul Maheshwari 924efb92cd1SRahul MaheshwariGPIO_CONFIGS = { 925*20f38712SPatrick Williams "power_config": { 926*20f38712SPatrick Williams "power_good_in": "SYS_PWROK_BUFF", 927*20f38712SPatrick Williams "power_up_outs": [ 928*20f38712SPatrick Williams ("SOFTWARE_PGOOD", True), 929*20f38712SPatrick Williams ("BMC_POWER_UP", True), 930efb92cd1SRahul Maheshwari ], 931*20f38712SPatrick Williams "reset_outs": [ 932*20f38712SPatrick Williams ("BMC_CP0_RESET_N", False), 933*20f38712SPatrick Williams ("BMC_CP0_PERST_ENABLE_R", False), 934efb92cd1SRahul Maheshwari ], 935efb92cd1SRahul Maheshwari }, 936*20f38712SPatrick Williams "hostctl_config": { 937*20f38712SPatrick Williams "fsi_data": "FSI_DATA", 938*20f38712SPatrick Williams "fsi_clk": "FSI_CLK", 939*20f38712SPatrick Williams "fsi_enable": "FSI_ENABLE", 940*20f38712SPatrick Williams "cronus_sel": "CRONUS_SEL", 941*20f38712SPatrick Williams "optionals": [], 942efb92cd1SRahul Maheshwari }, 943efb92cd1SRahul Maheshwari} 944efb92cd1SRahul Maheshwari 945efb92cd1SRahul Maheshwari 946efb92cd1SRahul Maheshwari# Miscellaneous non-poll sensor with system specific properties. 947efb92cd1SRahul Maheshwari# The sensor id is the same as those defined in ID_LOOKUP['SENSOR']. 948efb92cd1SRahul MaheshwariMISC_SENSORS = { 949*20f38712SPatrick Williams 0x8B: {"class": "BootCountSensor"}, 950*20f38712SPatrick Williams 0x02: {"class": "BootProgressSensor"}, 951efb92cd1SRahul Maheshwari # OCC active sensors aren't in the P9 XML yet. These are wrong. 952*20f38712SPatrick Williams 0x03: { 953*20f38712SPatrick Williams "class": "OccStatusSensor", 954*20f38712SPatrick Williams "os_path": "/sys/bus/i2c/devices/3-0050/online", 955*20f38712SPatrick Williams }, 956*20f38712SPatrick Williams 0x04: { 957*20f38712SPatrick Williams "class": "OccStatusSensor", 958*20f38712SPatrick Williams "os_path": "/sys/bus/i2c/devices/3-0051/online", 959*20f38712SPatrick Williams }, 960*20f38712SPatrick Williams 0x91: {"class": "OperatingSystemStatusSensor"}, 961efb92cd1SRahul Maheshwari # 0x06 : { 'class' : 'PowerCap', 962efb92cd1SRahul Maheshwari # 'os_path' : '/sys/class/hwmon/hwmon3/user_powercap' }, 963efb92cd1SRahul Maheshwari} 964