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