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