1*efb92cd1SRahul Maheshwari# Romulus.py 2*efb92cd1SRahul Maheshwari# 3*efb92cd1SRahul Maheshwari 4*efb92cd1SRahul MaheshwariSYSTEM_STATES = [ 5*efb92cd1SRahul Maheshwari 'BASE_APPS', 6*efb92cd1SRahul Maheshwari 'BMC_STARTING', 7*efb92cd1SRahul Maheshwari 'BMC_READY', 8*efb92cd1SRahul Maheshwari 'HOST_POWERING_ON', 9*efb92cd1SRahul Maheshwari 'HOST_POWERED_ON', 10*efb92cd1SRahul Maheshwari 'HOST_BOOTING', 11*efb92cd1SRahul Maheshwari 'HOST_BOOTED', 12*efb92cd1SRahul Maheshwari 'HOST_POWERED_OFF', 13*efb92cd1SRahul Maheshwari] 14*efb92cd1SRahul Maheshwari 15*efb92cd1SRahul MaheshwariEXIT_STATE_DEPEND = { 16*efb92cd1SRahul Maheshwari 'BASE_APPS' : { 17*efb92cd1SRahul Maheshwari '/org/openbmc/sensors': 0, 18*efb92cd1SRahul Maheshwari }, 19*efb92cd1SRahul Maheshwari 'BMC_STARTING' : { 20*efb92cd1SRahul Maheshwari '/org/openbmc/control/chassis0': 0, 21*efb92cd1SRahul Maheshwari '/org/openbmc/control/power0' : 0, 22*efb92cd1SRahul Maheshwari '/org/openbmc/control/flash/bios' : 0, 23*efb92cd1SRahul Maheshwari }, 24*efb92cd1SRahul Maheshwari} 25*efb92cd1SRahul Maheshwari 26*efb92cd1SRahul MaheshwariINVENTORY_ROOT = '/org/openbmc/inventory' 27*efb92cd1SRahul Maheshwari 28*efb92cd1SRahul MaheshwariFRU_INSTANCES = { 29*efb92cd1SRahul Maheshwari '<inventory_root>/system' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" }, 30*efb92cd1SRahul Maheshwari '<inventory_root>/system/bios' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" }, 31*efb92cd1SRahul Maheshwari '<inventory_root>/system/misc' : { 'fru_type' : 'SYSTEM','is_fru' : False, }, 32*efb92cd1SRahul Maheshwari 33*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" }, 34*efb92cd1SRahul Maheshwari 35*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard' : { 'fru_type' : 'MAIN_PLANAR','is_fru' : True, }, 36*efb92cd1SRahul Maheshwari 37*efb92cd1SRahul Maheshwari '<inventory_root>/system/systemevent' : { 'fru_type' : 'SYSTEM_EVENT', 'is_fru' : False, }, 38*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/refclock' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, }, 39*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/pcieclock': { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, }, 40*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/todclock' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, }, 41*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/apss' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, }, 42*efb92cd1SRahul Maheshwari 43*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/fan0' : { 'fru_type' : 'FAN','is_fru' : True, }, 44*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/fan1' : { 'fru_type' : 'FAN','is_fru' : True, }, 45*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/fan2' : { 'fru_type' : 'FAN','is_fru' : True, }, 46*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/fan3' : { 'fru_type' : 'FAN','is_fru' : True, }, 47*efb92cd1SRahul Maheshwari 48*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/bmc' : { 'fru_type' : 'BMC','is_fru' : False, 'manufacturer' : 'ASPEED' }, 49*efb92cd1SRahul Maheshwari 50*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0' : { 'fru_type' : 'CPU', 'is_fru' : True, }, 51*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1' : { 'fru_type' : 'CPU', 'is_fru' : True, }, 52*efb92cd1SRahul Maheshwari 53*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0/core0' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 54*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0/core1' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 55*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0/core2' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 56*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0/core3' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 57*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0/core4' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 58*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0/core5' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 59*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0/core6' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 60*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0/core7' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 61*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0/core8' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 62*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0/core9' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 63*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0/core10' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 64*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0/core11' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 65*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0/core12' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 66*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0/core13' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 67*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0/core14' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 68*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0/core15' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 69*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0/core16' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 70*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0/core17' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 71*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0/core18' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 72*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0/core19' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 73*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0/core20' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 74*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0/core21' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 75*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0/core22' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 76*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu0/core23' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 77*efb92cd1SRahul Maheshwari 78*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1/core0' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 79*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1/core1' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 80*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1/core2' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 81*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1/core3' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 82*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1/core4' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 83*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1/core5' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 84*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1/core6' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 85*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1/core7' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 86*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1/core8' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 87*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1/core9' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 88*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1/core10' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 89*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1/core11' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 90*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1/core12' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 91*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1/core13' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 92*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1/core14' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 93*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1/core15' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 94*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1/core16' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 95*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1/core17' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 96*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1/core18' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 97*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1/core19' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 98*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1/core20' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 99*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1/core21' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 100*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1/core22' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 101*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/cpu1/core23' : { 'fru_type' : 'CORE', 'is_fru' : False, }, 102*efb92cd1SRahul Maheshwari 103*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/dimm0' : { 'fru_type' : 'DIMM', 'is_fru' : True,}, 104*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/dimm1' : { 'fru_type' : 'DIMM', 'is_fru' : True,}, 105*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/dimm2' : { 'fru_type' : 'DIMM', 'is_fru' : True,}, 106*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/dimm3' : { 'fru_type' : 'DIMM', 'is_fru' : True,}, 107*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/dimm4' : { 'fru_type' : 'DIMM', 'is_fru' : True,}, 108*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/dimm5' : { 'fru_type' : 'DIMM', 'is_fru' : True,}, 109*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/dimm6' : { 'fru_type' : 'DIMM', 'is_fru' : True,}, 110*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/dimm7' : { 'fru_type' : 'DIMM', 'is_fru' : True,}, 111*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/dimm8' : { 'fru_type' : 'DIMM', 'is_fru' : True,}, 112*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/dimm9' : { 'fru_type' : 'DIMM', 'is_fru' : True,}, 113*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/dimm10' : { 'fru_type' : 'DIMM', 'is_fru' : True,}, 114*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/dimm11' : { 'fru_type' : 'DIMM', 'is_fru' : True,}, 115*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/dimm12' : { 'fru_type' : 'DIMM', 'is_fru' : True,}, 116*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/dimm13' : { 'fru_type' : 'DIMM', 'is_fru' : True,}, 117*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/dimm14' : { 'fru_type' : 'DIMM', 'is_fru' : True,}, 118*efb92cd1SRahul Maheshwari '<inventory_root>/system/chassis/motherboard/dimm15' : { 'fru_type' : 'DIMM', 'is_fru' : True,}, 119*efb92cd1SRahul Maheshwari} 120*efb92cd1SRahul Maheshwari 121*efb92cd1SRahul MaheshwariID_LOOKUP = { 122*efb92cd1SRahul Maheshwari 'FRU' : { 123*efb92cd1SRahul Maheshwari 0x01 : '<inventory_root>/system/chassis/motherboard/cpu0', 124*efb92cd1SRahul Maheshwari 0x02 : '<inventory_root>/system/chassis/motherboard/cpu1', 125*efb92cd1SRahul Maheshwari 0x03 : '<inventory_root>/system/chassis/motherboard', 126*efb92cd1SRahul Maheshwari 0x04 : '<inventory_root>/system/chassis/motherboard/dimm0', 127*efb92cd1SRahul Maheshwari 0x05 : '<inventory_root>/system/chassis/motherboard/dimm1', 128*efb92cd1SRahul Maheshwari 0x06 : '<inventory_root>/system/chassis/motherboard/dimm2', 129*efb92cd1SRahul Maheshwari 0x07 : '<inventory_root>/system/chassis/motherboard/dimm3', 130*efb92cd1SRahul Maheshwari 0x08 : '<inventory_root>/system/chassis/motherboard/dimm4', 131*efb92cd1SRahul Maheshwari 0x09 : '<inventory_root>/system/chassis/motherboard/dimm5', 132*efb92cd1SRahul Maheshwari 0x0a : '<inventory_root>/system/chassis/motherboard/dimm6', 133*efb92cd1SRahul Maheshwari 0x0b : '<inventory_root>/system/chassis/motherboard/dimm7', 134*efb92cd1SRahul Maheshwari 0x0c : '<inventory_root>/system/chassis/motherboard/dimm8', 135*efb92cd1SRahul Maheshwari 0x0d : '<inventory_root>/system/chassis/motherboard/dimm9', 136*efb92cd1SRahul Maheshwari 0x0e : '<inventory_root>/system/chassis/motherboard/dimm10', 137*efb92cd1SRahul Maheshwari 0x0f : '<inventory_root>/system/chassis/motherboard/dimm11', 138*efb92cd1SRahul Maheshwari 0x10 : '<inventory_root>/system/chassis/motherboard/dimm12', 139*efb92cd1SRahul Maheshwari 0x11 : '<inventory_root>/system/chassis/motherboard/dimm13', 140*efb92cd1SRahul Maheshwari 0x12 : '<inventory_root>/system/chassis/motherboard/dimm14', 141*efb92cd1SRahul Maheshwari 0x13 : '<inventory_root>/system/chassis/motherboard/dimm15', 142*efb92cd1SRahul Maheshwari }, 143*efb92cd1SRahul Maheshwari 'FRU_STR' : { 144*efb92cd1SRahul Maheshwari 'PRODUCT_0' : '<inventory_root>/system/bios', 145*efb92cd1SRahul Maheshwari 'BOARD_1' : '<inventory_root>/system/chassis/motherboard/cpu0', 146*efb92cd1SRahul Maheshwari 'BOARD_2' : '<inventory_root>/system/chassis/motherboard/cpu1', 147*efb92cd1SRahul Maheshwari 'CHASSIS_3' : '<inventory_root>/system/chassis/motherboard', 148*efb92cd1SRahul Maheshwari 'BOARD_3' : '<inventory_root>/system/misc', 149*efb92cd1SRahul Maheshwari 'PRODUCT_12' : '<inventory_root>/system/chassis/motherboard/dimm0', 150*efb92cd1SRahul Maheshwari 'PRODUCT_13' : '<inventory_root>/system/chassis/motherboard/dimm1', 151*efb92cd1SRahul Maheshwari 'PRODUCT_14' : '<inventory_root>/system/chassis/motherboard/dimm2', 152*efb92cd1SRahul Maheshwari 'PRODUCT_15' : '<inventory_root>/system/chassis/motherboard/dimm3', 153*efb92cd1SRahul Maheshwari 'PRODUCT_16' : '<inventory_root>/system/chassis/motherboard/dimm4', 154*efb92cd1SRahul Maheshwari 'PRODUCT_17' : '<inventory_root>/system/chassis/motherboard/dimm5', 155*efb92cd1SRahul Maheshwari 'PRODUCT_18' : '<inventory_root>/system/chassis/motherboard/dimm6', 156*efb92cd1SRahul Maheshwari 'PRODUCT_19' : '<inventory_root>/system/chassis/motherboard/dimm7', 157*efb92cd1SRahul Maheshwari 'PRODUCT_20' : '<inventory_root>/system/chassis/motherboard/dimm8', 158*efb92cd1SRahul Maheshwari 'PRODUCT_21' : '<inventory_root>/system/chassis/motherboard/dimm9', 159*efb92cd1SRahul Maheshwari 'PRODUCT_22' : '<inventory_root>/system/chassis/motherboard/dimm10', 160*efb92cd1SRahul Maheshwari 'PRODUCT_23' : '<inventory_root>/system/chassis/motherboard/dimm11', 161*efb92cd1SRahul Maheshwari 'PRODUCT_24' : '<inventory_root>/system/chassis/motherboard/dimm12', 162*efb92cd1SRahul Maheshwari 'PRODUCT_25' : '<inventory_root>/system/chassis/motherboard/dimm13', 163*efb92cd1SRahul Maheshwari 'PRODUCT_26' : '<inventory_root>/system/chassis/motherboard/dimm14', 164*efb92cd1SRahul Maheshwari 'PRODUCT_27' : '<inventory_root>/system/chassis/motherboard/dimm15', 165*efb92cd1SRahul Maheshwari 'PRODUCT_47' : '<inventory_root>/system/misc', 166*efb92cd1SRahul Maheshwari }, 167*efb92cd1SRahul Maheshwari 'SENSOR' : { 168*efb92cd1SRahul Maheshwari 0x01 : '/org/openbmc/sensors/host/HostStatus', 169*efb92cd1SRahul Maheshwari 0x02 : '/org/openbmc/sensors/host/BootProgress', 170*efb92cd1SRahul Maheshwari 0x03 : '/org/openbmc/sensors/host/cpu0/OccStatus', 171*efb92cd1SRahul Maheshwari 0x04 : '/org/openbmc/sensors/host/cpu1/OccStatus', 172*efb92cd1SRahul Maheshwari 0x08 : '<inventory_root>/system/chassis/motherboard/cpu0', 173*efb92cd1SRahul Maheshwari 0x09 : '<inventory_root>/system/chassis/motherboard/cpu1', 174*efb92cd1SRahul Maheshwari 0x0b : '<inventory_root>/system/chassis/motherboard/dimm0', 175*efb92cd1SRahul Maheshwari 0x0c : '<inventory_root>/system/chassis/motherboard/dimm1', 176*efb92cd1SRahul Maheshwari 0x0d : '<inventory_root>/system/chassis/motherboard/dimm2', 177*efb92cd1SRahul Maheshwari 0x0e : '<inventory_root>/system/chassis/motherboard/dimm3', 178*efb92cd1SRahul Maheshwari 0x0f : '<inventory_root>/system/chassis/motherboard/dimm4', 179*efb92cd1SRahul Maheshwari 0x10 : '<inventory_root>/system/chassis/motherboard/dimm5', 180*efb92cd1SRahul Maheshwari 0x11 : '<inventory_root>/system/chassis/motherboard/dimm6', 181*efb92cd1SRahul Maheshwari 0x12 : '<inventory_root>/system/chassis/motherboard/dimm7', 182*efb92cd1SRahul Maheshwari 0x13 : '<inventory_root>/system/chassis/motherboard/dimm8', 183*efb92cd1SRahul Maheshwari 0x14 : '<inventory_root>/system/chassis/motherboard/dimm9', 184*efb92cd1SRahul Maheshwari 0x15 : '<inventory_root>/system/chassis/motherboard/dimm10', 185*efb92cd1SRahul Maheshwari 0x16 : '<inventory_root>/system/chassis/motherboard/dimm11', 186*efb92cd1SRahul Maheshwari 0x17 : '<inventory_root>/system/chassis/motherboard/dimm12', 187*efb92cd1SRahul Maheshwari 0x18 : '<inventory_root>/system/chassis/motherboard/dimm13', 188*efb92cd1SRahul Maheshwari 0x19 : '<inventory_root>/system/chassis/motherboard/dimm14', 189*efb92cd1SRahul Maheshwari 0x1a : '<inventory_root>/system/chassis/motherboard/dimm15', 190*efb92cd1SRahul Maheshwari 0x2b : '<inventory_root>/system/chassis/motherboard/cpu0/core0', 191*efb92cd1SRahul Maheshwari 0x2c : '<inventory_root>/system/chassis/motherboard/cpu0/core1', 192*efb92cd1SRahul Maheshwari 0x2d : '<inventory_root>/system/chassis/motherboard/cpu0/core2', 193*efb92cd1SRahul Maheshwari 0x2e : '<inventory_root>/system/chassis/motherboard/cpu0/core3', 194*efb92cd1SRahul Maheshwari 0x2f : '<inventory_root>/system/chassis/motherboard/cpu0/core4', 195*efb92cd1SRahul Maheshwari 0x30 : '<inventory_root>/system/chassis/motherboard/cpu0/core5', 196*efb92cd1SRahul Maheshwari 0x31 : '<inventory_root>/system/chassis/motherboard/cpu0/core6', 197*efb92cd1SRahul Maheshwari 0x32 : '<inventory_root>/system/chassis/motherboard/cpu0/core7', 198*efb92cd1SRahul Maheshwari 0x33 : '<inventory_root>/system/chassis/motherboard/cpu0/core8', 199*efb92cd1SRahul Maheshwari 0x34 : '<inventory_root>/system/chassis/motherboard/cpu0/core9', 200*efb92cd1SRahul Maheshwari 0x35 : '<inventory_root>/system/chassis/motherboard/cpu0/core10', 201*efb92cd1SRahul Maheshwari 0x36 : '<inventory_root>/system/chassis/motherboard/cpu0/core11', 202*efb92cd1SRahul Maheshwari 0x37 : '<inventory_root>/system/chassis/motherboard/cpu0/core12', 203*efb92cd1SRahul Maheshwari 0x38 : '<inventory_root>/system/chassis/motherboard/cpu0/core13', 204*efb92cd1SRahul Maheshwari 0x39 : '<inventory_root>/system/chassis/motherboard/cpu0/core14', 205*efb92cd1SRahul Maheshwari 0x3a : '<inventory_root>/system/chassis/motherboard/cpu0/core15', 206*efb92cd1SRahul Maheshwari 0x3b : '<inventory_root>/system/chassis/motherboard/cpu0/core16', 207*efb92cd1SRahul Maheshwari 0x3c : '<inventory_root>/system/chassis/motherboard/cpu0/core17', 208*efb92cd1SRahul Maheshwari 0x3d : '<inventory_root>/system/chassis/motherboard/cpu0/core18', 209*efb92cd1SRahul Maheshwari 0x3e : '<inventory_root>/system/chassis/motherboard/cpu0/core19', 210*efb92cd1SRahul Maheshwari 0x3f : '<inventory_root>/system/chassis/motherboard/cpu0/core20', 211*efb92cd1SRahul Maheshwari 0x40 : '<inventory_root>/system/chassis/motherboard/cpu0/core21', 212*efb92cd1SRahul Maheshwari 0x41 : '<inventory_root>/system/chassis/motherboard/cpu0/core22', 213*efb92cd1SRahul Maheshwari 0x42 : '<inventory_root>/system/chassis/motherboard/cpu0/core23', 214*efb92cd1SRahul Maheshwari 0x43 : '<inventory_root>/system/chassis/motherboard/cpu1/core0', 215*efb92cd1SRahul Maheshwari 0x44 : '<inventory_root>/system/chassis/motherboard/cpu1/core1', 216*efb92cd1SRahul Maheshwari 0x45 : '<inventory_root>/system/chassis/motherboard/cpu1/core2', 217*efb92cd1SRahul Maheshwari 0x46 : '<inventory_root>/system/chassis/motherboard/cpu1/core3', 218*efb92cd1SRahul Maheshwari 0x47 : '<inventory_root>/system/chassis/motherboard/cpu1/core4', 219*efb92cd1SRahul Maheshwari 0x48 : '<inventory_root>/system/chassis/motherboard/cpu1/core5', 220*efb92cd1SRahul Maheshwari 0x49 : '<inventory_root>/system/chassis/motherboard/cpu1/core6', 221*efb92cd1SRahul Maheshwari 0x4a : '<inventory_root>/system/chassis/motherboard/cpu1/core7', 222*efb92cd1SRahul Maheshwari 0x4b : '<inventory_root>/system/chassis/motherboard/cpu1/core8', 223*efb92cd1SRahul Maheshwari 0x4c : '<inventory_root>/system/chassis/motherboard/cpu1/core9', 224*efb92cd1SRahul Maheshwari 0x4d : '<inventory_root>/system/chassis/motherboard/cpu1/core10', 225*efb92cd1SRahul Maheshwari 0x4e : '<inventory_root>/system/chassis/motherboard/cpu1/core11', 226*efb92cd1SRahul Maheshwari 0x4f : '<inventory_root>/system/chassis/motherboard/cpu1/core12', 227*efb92cd1SRahul Maheshwari 0x50 : '<inventory_root>/system/chassis/motherboard/cpu1/core13', 228*efb92cd1SRahul Maheshwari 0x51 : '<inventory_root>/system/chassis/motherboard/cpu1/core14', 229*efb92cd1SRahul Maheshwari 0x52 : '<inventory_root>/system/chassis/motherboard/cpu1/core15', 230*efb92cd1SRahul Maheshwari 0x53 : '<inventory_root>/system/chassis/motherboard/cpu1/core16', 231*efb92cd1SRahul Maheshwari 0x54 : '<inventory_root>/system/chassis/motherboard/cpu1/core17', 232*efb92cd1SRahul Maheshwari 0x55 : '<inventory_root>/system/chassis/motherboard/cpu1/core18', 233*efb92cd1SRahul Maheshwari 0x56 : '<inventory_root>/system/chassis/motherboard/cpu1/core19', 234*efb92cd1SRahul Maheshwari 0x57 : '<inventory_root>/system/chassis/motherboard/cpu1/core20', 235*efb92cd1SRahul Maheshwari 0x58 : '<inventory_root>/system/chassis/motherboard/cpu1/core21', 236*efb92cd1SRahul Maheshwari 0x59 : '<inventory_root>/system/chassis/motherboard/cpu1/core22', 237*efb92cd1SRahul Maheshwari 0x5a : '<inventory_root>/system/chassis/motherboard/cpu1/core23', 238*efb92cd1SRahul Maheshwari 0x8b : '/org/openbmc/sensors/host/BootCount', 239*efb92cd1SRahul Maheshwari 0x8c : '<inventory_root>/system/chassis/motherboard', 240*efb92cd1SRahul Maheshwari 0x8d : '<inventory_root>/system/chassis/motherboard/refclock', 241*efb92cd1SRahul Maheshwari 0x8e : '<inventory_root>/system/chassis/motherboard/pcieclock', 242*efb92cd1SRahul Maheshwari 0x8f : '<inventory_root>/system/chassis/motherboard/todclock', 243*efb92cd1SRahul Maheshwari 0x90 : '<inventory_root>/system/systemevent', 244*efb92cd1SRahul Maheshwari 0x91 : '/org/openbmc/sensors/host/OperatingSystemStatus', 245*efb92cd1SRahul Maheshwari 0x92 : '<inventory_root>/system/chassis/motherboard/pcielink', 246*efb92cd1SRahul Maheshwari# 0x08 : '<inventory_root>/system/powerlimit', 247*efb92cd1SRahul Maheshwari# 0x10 : '<inventory_root>/system/chassis/motherboard/apss', 248*efb92cd1SRahul Maheshwari# 0x06 : '/org/openbmc/sensors/host/powercap', 249*efb92cd1SRahul Maheshwari }, 250*efb92cd1SRahul Maheshwari 'GPIO_PRESENT' : {} 251*efb92cd1SRahul Maheshwari} 252*efb92cd1SRahul Maheshwari 253*efb92cd1SRahul MaheshwariGPIO_CONFIG = {} 254*efb92cd1SRahul MaheshwariGPIO_CONFIG['SOFTWARE_PGOOD'] = \ 255*efb92cd1SRahul Maheshwari {'gpio_pin': 'R1', 'direction': 'out'} 256*efb92cd1SRahul MaheshwariGPIO_CONFIG['BMC_POWER_UP'] = \ 257*efb92cd1SRahul Maheshwari {'gpio_pin': 'D1', 'direction': 'out'} 258*efb92cd1SRahul MaheshwariGPIO_CONFIG['SYS_PWROK_BUFF'] = \ 259*efb92cd1SRahul Maheshwari {'gpio_pin': 'D2', 'direction': 'in'} 260*efb92cd1SRahul MaheshwariGPIO_CONFIG['BMC_WD_CLEAR_PULSE_N'] = \ 261*efb92cd1SRahul Maheshwari {'gpio_pin': 'N5', 'direction': 'out'} 262*efb92cd1SRahul MaheshwariGPIO_CONFIG['CHECKSTOP'] = \ 263*efb92cd1SRahul Maheshwari {'gpio_pin': 'J2', 'direction': 'falling'} 264*efb92cd1SRahul MaheshwariGPIO_CONFIG['BMC_CP0_RESET_N'] = \ 265*efb92cd1SRahul Maheshwari {'gpio_pin': 'A1', 'direction': 'out'} 266*efb92cd1SRahul MaheshwariGPIO_CONFIG['BMC_CP0_PERST_ENABLE_R'] = \ 267*efb92cd1SRahul Maheshwari {'gpio_pin': 'A3', 'direction': 'out'} 268*efb92cd1SRahul MaheshwariGPIO_CONFIG['FSI_DATA'] = \ 269*efb92cd1SRahul Maheshwari {'gpio_pin': 'AA2', 'direction': 'out'} 270*efb92cd1SRahul MaheshwariGPIO_CONFIG['FSI_CLK'] = \ 271*efb92cd1SRahul Maheshwari {'gpio_pin': 'AA0', 'direction': 'out'} 272*efb92cd1SRahul MaheshwariGPIO_CONFIG['FSI_ENABLE'] = \ 273*efb92cd1SRahul Maheshwari {'gpio_pin': 'D0', 'direction': 'out'} 274*efb92cd1SRahul Maheshwari 275*efb92cd1SRahul Maheshwari# DBG_CP0_MUX_SEL 276*efb92cd1SRahul MaheshwariGPIO_CONFIG['CRONUS_SEL'] = \ 277*efb92cd1SRahul Maheshwari {'gpio_pin': 'A6', 'direction': 'out'} 278*efb92cd1SRahul MaheshwariGPIO_CONFIG['BMC_THROTTLE'] = \ 279*efb92cd1SRahul Maheshwari {'gpio_pin': 'J3', 'direction': 'out'} 280*efb92cd1SRahul MaheshwariGPIO_CONFIG['IDBTN'] = \ 281*efb92cd1SRahul Maheshwari {'gpio_pin': 'Q7', 'direction': 'out'} 282*efb92cd1SRahul Maheshwari 283*efb92cd1SRahul Maheshwari# PM_FP_PWRBTN_IN_L 284*efb92cd1SRahul MaheshwariGPIO_CONFIG['POWER_BUTTON'] = \ 285*efb92cd1SRahul Maheshwari {'gpio_pin': 'I3', 'direction': 'both'} 286*efb92cd1SRahul Maheshwari 287*efb92cd1SRahul Maheshwari# PM_NMIBTN_IN_L 288*efb92cd1SRahul MaheshwariGPIO_CONFIG['RESET_BUTTON'] = \ 289*efb92cd1SRahul Maheshwari {'gpio_pin': 'J1', 'direction': 'both'} 290*efb92cd1SRahul Maheshwari 291*efb92cd1SRahul MaheshwariHWMON_CONFIG = { 292*efb92cd1SRahul Maheshwari '4-0050' : { 293*efb92cd1SRahul Maheshwari 'names' : { 294*efb92cd1SRahul Maheshwari 'caps_curr_powercap' : { 'object_path' : 'powercap/curr_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' }, 295*efb92cd1SRahul Maheshwari 'caps_curr_powerreading' : { 'object_path' : 'powercap/system_power','poll_interval' : 10000,'scale' : 1,'units' : 'W' }, 296*efb92cd1SRahul Maheshwari 'caps_max_powercap' : { 'object_path' : 'powercap/max_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' }, 297*efb92cd1SRahul Maheshwari 'caps_min_powercap' : { 'object_path' : 'powercap/min_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' }, 298*efb92cd1SRahul Maheshwari 'caps_norm_powercap' : { 'object_path' : 'powercap/n_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' }, 299*efb92cd1SRahul Maheshwari 'caps_user_powerlimit' : { 'object_path' : 'powercap/user_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' }, 300*efb92cd1SRahul Maheshwari }, 301*efb92cd1SRahul Maheshwari 'labels' : { 302*efb92cd1SRahul Maheshwari '176' : { 'object_path' : 'temperature/cpu0/core0','poll_interval' : 5000,'scale' : -3,'units' : 'C', 303*efb92cd1SRahul Maheshwari 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True }, 304*efb92cd1SRahul Maheshwari '177' : { 'object_path' : 'temperature/cpu0/core1','poll_interval' : 5000,'scale' : -3,'units' : 'C', 305*efb92cd1SRahul Maheshwari 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True }, 306*efb92cd1SRahul Maheshwari '178' : { 'object_path' : 'temperature/cpu0/core2','poll_interval' : 5000,'scale' : -3,'units' : 'C', 307*efb92cd1SRahul Maheshwari 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True }, 308*efb92cd1SRahul Maheshwari '179' : { 'object_path' : 'temperature/cpu0/core3','poll_interval' : 5000,'scale' : -3,'units' : 'C', 309*efb92cd1SRahul Maheshwari 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True }, 310*efb92cd1SRahul Maheshwari '180' : { 'object_path' : 'temperature/cpu0/core4','poll_interval' : 5000,'scale' : -3,'units' : 'C', 311*efb92cd1SRahul Maheshwari 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True }, 312*efb92cd1SRahul Maheshwari '181' : { 'object_path' : 'temperature/cpu0/core5','poll_interval' : 5000,'scale' : -3,'units' : 'C', 313*efb92cd1SRahul Maheshwari 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True }, 314*efb92cd1SRahul Maheshwari '182' : { 'object_path' : 'temperature/cpu0/core6','poll_interval' : 5000,'scale' : -3,'units' : 'C', 315*efb92cd1SRahul Maheshwari 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True }, 316*efb92cd1SRahul Maheshwari '183' : { 'object_path' : 'temperature/cpu0/core7','poll_interval' : 5000,'scale' : -3,'units' : 'C', 317*efb92cd1SRahul Maheshwari 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True }, 318*efb92cd1SRahul Maheshwari '184' : { 'object_path' : 'temperature/cpu0/core8','poll_interval' : 5000,'scale' : -3,'units' : 'C', 319*efb92cd1SRahul Maheshwari 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True }, 320*efb92cd1SRahul Maheshwari '185' : { 'object_path' : 'temperature/cpu0/core9','poll_interval' : 5000,'scale' : -3,'units' : 'C', 321*efb92cd1SRahul Maheshwari 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True }, 322*efb92cd1SRahul Maheshwari '186' : { 'object_path' : 'temperature/cpu0/core10','poll_interval' : 5000,'scale' : -3,'units' : 'C', 323*efb92cd1SRahul Maheshwari 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True }, 324*efb92cd1SRahul Maheshwari '187' : { 'object_path' : 'temperature/cpu0/core11','poll_interval' : 5000,'scale' : -3,'units' : 'C', 325*efb92cd1SRahul Maheshwari 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True }, 326*efb92cd1SRahul Maheshwari '102' : { 'object_path' : 'temperature/dimm0','poll_interval' : 5000,'scale' : -3,'units' : 'C' }, 327*efb92cd1SRahul Maheshwari '103' : { 'object_path' : 'temperature/dimm1','poll_interval' : 5000,'scale' : -3,'units' : 'C' }, 328*efb92cd1SRahul Maheshwari '104' : { 'object_path' : 'temperature/dimm2','poll_interval' : 5000,'scale' : -3,'units' : 'C' }, 329*efb92cd1SRahul Maheshwari '105' : { 'object_path' : 'temperature/dimm3','poll_interval' : 5000,'scale' : -3,'units' : 'C' }, 330*efb92cd1SRahul Maheshwari '106' : { 'object_path' : 'temperature/dimm4','poll_interval' : 5000,'scale' : -3,'units' : 'C' }, 331*efb92cd1SRahul Maheshwari '107' : { 'object_path' : 'temperature/dimm5','poll_interval' : 5000,'scale' : -3,'units' : 'C' }, 332*efb92cd1SRahul Maheshwari '108' : { 'object_path' : 'temperature/dimm6','poll_interval' : 5000,'scale' : -3,'units' : 'C' }, 333*efb92cd1SRahul Maheshwari '109' : { 'object_path' : 'temperature/dimm7','poll_interval' : 5000,'scale' : -3,'units' : 'C' }, 334*efb92cd1SRahul Maheshwari } 335*efb92cd1SRahul Maheshwari }, 336*efb92cd1SRahul Maheshwari '5-0050' : { 337*efb92cd1SRahul Maheshwari 'labels' : { 338*efb92cd1SRahul Maheshwari '188' : { 'object_path' : 'temperature/cpu1/core0','poll_interval' : 5000,'scale' : -3,'units' : 'C', 339*efb92cd1SRahul Maheshwari 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True }, 340*efb92cd1SRahul Maheshwari '189' : { 'object_path' : 'temperature/cpu1/core1','poll_interval' : 5000,'scale' : -3,'units' : 'C', 341*efb92cd1SRahul Maheshwari 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True }, 342*efb92cd1SRahul Maheshwari '190' : { 'object_path' : 'temperature/cpu1/core2','poll_interval' : 5000,'scale' : -3,'units' : 'C', 343*efb92cd1SRahul Maheshwari 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True }, 344*efb92cd1SRahul Maheshwari '191' : { 'object_path' : 'temperature/cpu1/core3','poll_interval' : 5000,'scale' : -3,'units' : 'C', 345*efb92cd1SRahul Maheshwari 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True }, 346*efb92cd1SRahul Maheshwari '192' : { 'object_path' : 'temperature/cpu1/core4','poll_interval' : 5000,'scale' : -3,'units' : 'C', 347*efb92cd1SRahul Maheshwari 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True }, 348*efb92cd1SRahul Maheshwari '193' : { 'object_path' : 'temperature/cpu1/core5','poll_interval' : 5000,'scale' : -3,'units' : 'C', 349*efb92cd1SRahul Maheshwari 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True }, 350*efb92cd1SRahul Maheshwari '194' : { 'object_path' : 'temperature/cpu1/core6','poll_interval' : 5000,'scale' : -3,'units' : 'C', 351*efb92cd1SRahul Maheshwari 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True }, 352*efb92cd1SRahul Maheshwari '195' : { 'object_path' : 'temperature/cpu1/core7','poll_interval' : 5000,'scale' : -3,'units' : 'C', 353*efb92cd1SRahul Maheshwari 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True }, 354*efb92cd1SRahul Maheshwari '196' : { 'object_path' : 'temperature/cpu1/core8','poll_interval' : 5000,'scale' : -3,'units' : 'C', 355*efb92cd1SRahul Maheshwari 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True }, 356*efb92cd1SRahul Maheshwari '197' : { 'object_path' : 'temperature/cpu1/core9','poll_interval' : 5000,'scale' : -3,'units' : 'C', 357*efb92cd1SRahul Maheshwari 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True }, 358*efb92cd1SRahul Maheshwari '198' : { 'object_path' : 'temperature/cpu1/core10','poll_interval' : 5000,'scale' : -3,'units' : 'C', 359*efb92cd1SRahul Maheshwari 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True }, 360*efb92cd1SRahul Maheshwari '199' : { 'object_path' : 'temperature/cpu1/core11','poll_interval' : 5000,'scale' : -3,'units' : 'C', 361*efb92cd1SRahul Maheshwari 'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True }, 362*efb92cd1SRahul Maheshwari '110' : { 'object_path' : 'temperature/dimm8','poll_interval' : 5000,'scale' : -3,'units' : 'C' }, 363*efb92cd1SRahul Maheshwari '111' : { 'object_path' : 'temperature/dimm9','poll_interval' : 5000,'scale' : -3,'units' : 'C' }, 364*efb92cd1SRahul Maheshwari '112' : { 'object_path' : 'temperature/dimm10','poll_interval' : 5000,'scale' : -3,'units' : 'C' }, 365*efb92cd1SRahul Maheshwari '113' : { 'object_path' : 'temperature/dimm11','poll_interval' : 5000,'scale' : -3,'units' : 'C' }, 366*efb92cd1SRahul Maheshwari '114' : { 'object_path' : 'temperature/dimm12','poll_interval' : 5000,'scale' : -3,'units' : 'C' }, 367*efb92cd1SRahul Maheshwari '115' : { 'object_path' : 'temperature/dimm13','poll_interval' : 5000,'scale' : -3,'units' : 'C' }, 368*efb92cd1SRahul Maheshwari '116' : { 'object_path' : 'temperature/dimm14','poll_interval' : 5000,'scale' : -3,'units' : 'C' }, 369*efb92cd1SRahul Maheshwari '117' : { 'object_path' : 'temperature/dimm15','poll_interval' : 5000,'scale' : -3,'units' : 'C' }, 370*efb92cd1SRahul Maheshwari } 371*efb92cd1SRahul Maheshwari }, 372*efb92cd1SRahul Maheshwari} 373*efb92cd1SRahul Maheshwari 374*efb92cd1SRahul Maheshwari 375*efb92cd1SRahul MaheshwariGPIO_CONFIGS = { 376*efb92cd1SRahul Maheshwari 'power_config' : { 377*efb92cd1SRahul Maheshwari 'power_good_in' : 'SYS_PWROK_BUFF', 378*efb92cd1SRahul Maheshwari 'power_up_outs' : [ 379*efb92cd1SRahul Maheshwari ('SOFTWARE_PGOOD', True), 380*efb92cd1SRahul Maheshwari ('BMC_POWER_UP', True), 381*efb92cd1SRahul Maheshwari ], 382*efb92cd1SRahul Maheshwari 'reset_outs' : [ 383*efb92cd1SRahul Maheshwari ('BMC_CP0_RESET_N', False), 384*efb92cd1SRahul Maheshwari ('BMC_CP0_PERST_ENABLE_R', False), 385*efb92cd1SRahul Maheshwari ], 386*efb92cd1SRahul Maheshwari }, 387*efb92cd1SRahul Maheshwari 'hostctl_config' : { 388*efb92cd1SRahul Maheshwari 'fsi_data' : 'FSI_DATA', 389*efb92cd1SRahul Maheshwari 'fsi_clk' : 'FSI_CLK', 390*efb92cd1SRahul Maheshwari 'fsi_enable' : 'FSI_ENABLE', 391*efb92cd1SRahul Maheshwari 'cronus_sel' : 'CRONUS_SEL', 392*efb92cd1SRahul Maheshwari 'optionals' : [ 393*efb92cd1SRahul Maheshwari ], 394*efb92cd1SRahul Maheshwari }, 395*efb92cd1SRahul Maheshwari} 396*efb92cd1SRahul Maheshwari 397*efb92cd1SRahul Maheshwari 398*efb92cd1SRahul Maheshwari# Miscellaneous non-poll sensor with system specific properties. 399*efb92cd1SRahul Maheshwari# The sensor id is the same as those defined in ID_LOOKUP['SENSOR']. 400*efb92cd1SRahul MaheshwariMISC_SENSORS = { 401*efb92cd1SRahul Maheshwari 0x8b : { 'class' : 'BootCountSensor' }, 402*efb92cd1SRahul Maheshwari 0x02 : { 'class' : 'BootProgressSensor' }, 403*efb92cd1SRahul Maheshwari #OCC active sensors aren't in the P9 XML yet. These are wrong. 404*efb92cd1SRahul Maheshwari 0x03 : { 'class' : 'OccStatusSensor', 405*efb92cd1SRahul Maheshwari 'os_path' : '/sys/bus/i2c/devices/3-0050/online' }, 406*efb92cd1SRahul Maheshwari 0x04 : { 'class' : 'OccStatusSensor', 407*efb92cd1SRahul Maheshwari 'os_path' : '/sys/bus/i2c/devices/3-0051/online' }, 408*efb92cd1SRahul Maheshwari 0x91 : { 'class' : 'OperatingSystemStatusSensor' }, 409*efb92cd1SRahul Maheshwari #0x06 : { 'class' : 'PowerCap', 410*efb92cd1SRahul Maheshwari # 'os_path' : '/sys/class/hwmon/hwmon3/user_powercap' }, 411*efb92cd1SRahul Maheshwari} 412*efb92cd1SRahul Maheshwari 413*efb92cd1SRahul Maheshwari# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 414