From ab90fb2e302412cd539fedc81a2521da5355b52b Mon Sep 17 00:00:00 2001 From: Raptor Engineering Development Team Date: Tue, 30 Apr 2019 20:29:06 +0000 Subject: Add Blackbird support --- configs/Blackbird.py | 144 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 configs/Blackbird.py diff --git a/configs/Blackbird.py b/configs/Blackbird.py new file mode 100644 index 0000000..af22799 --- /dev/null +++ b/configs/Blackbird.py @@ -0,0 +1,144 @@ +# Remus.py +# + +SYSTEM_STATES = [ + 'BASE_APPS', + 'BMC_STARTING', + 'BMC_READY', + 'HOST_POWERING_ON', + 'HOST_POWERED_ON', + 'HOST_BOOTING', + 'HOST_BOOTED', + 'HOST_POWERED_OFF', +] + +EXIT_STATE_DEPEND = { + 'BASE_APPS' : { + '/org/openbmc/sensors': 0, + }, + 'BMC_STARTING' : { + '/org/openbmc/control/chassis0': 0, + '/org/openbmc/control/power0' : 0, + '/org/openbmc/control/flash/bios' : 0, + }, +} + +FRU_INSTANCES = { + '/system' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" }, + '/system/bios' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" }, + '/system/misc' : { 'fru_type' : 'SYSTEM','is_fru' : False, }, + + '/system/chassis' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" }, + + '/system/chassis/motherboard' : { 'fru_type' : 'MAIN_PLANAR','is_fru' : True, }, + + '/system/systemevent' : { 'fru_type' : 'SYSTEM_EVENT', 'is_fru' : False, }, + '/system/chassis/motherboard/refclock' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, }, + '/system/chassis/motherboard/pcieclock': { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, }, + '/system/chassis/motherboard/todclock' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, }, + '/system/chassis/motherboard/apss' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, }, + + '/system/chassis/fan0' : { 'fru_type' : 'FAN','is_fru' : True, }, + '/system/chassis/fan1' : { 'fru_type' : 'FAN','is_fru' : True, }, + '/system/chassis/fan2' : { 'fru_type' : 'FAN','is_fru' : True, }, + + '/system/chassis/motherboard/bmc' : { 'fru_type' : 'BMC','is_fru' : False, 'manufacturer' : 'ASPEED' }, + + '/system/chassis/motherboard/cpu0' : { 'fru_type' : 'CPU', 'is_fru' : True, }, + '/system/chassis/motherboard/cpu1' : { 'fru_type' : 'CPU', 'is_fru' : True, }, + + '/system/chassis/motherboard/cpu0/core0' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core1' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core2' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core3' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core4' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core5' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core6' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core7' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core8' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core9' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core10' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core11' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core12' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core13' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core14' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core15' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core16' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core17' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core18' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core19' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core20' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core21' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core22' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + '/system/chassis/motherboard/cpu0/core23' : { 'fru_type' : 'CORE', 'is_fru' : False, }, + + '/system/chassis/motherboard/dimm0' : { 'fru_type' : 'DIMM', 'is_fru' : True,}, + '/system/chassis/motherboard/dimm1' : { 'fru_type' : 'DIMM', 'is_fru' : True,}, +} + +ID_LOOKUP = { + 'FRU' : { + 0x01 : '/system/chassis/motherboard/cpu0', + 0x03 : '/system/chassis/motherboard', + 0x04 : '/system/chassis/motherboard/dimm0', + 0x05 : '/system/chassis/motherboard/dimm1', + }, + 'FRU_STR' : { + 'PRODUCT_0' : '/system/bios', + 'BOARD_1' : '/system/chassis/motherboard/cpu0', + 'CHASSIS_3' : '/system/chassis/motherboard', + 'BOARD_3' : '/system/misc', + 'PRODUCT_12' : '/system/chassis/motherboard/dimm0', + 'PRODUCT_13' : '/system/chassis/motherboard/dimm1', + 'PRODUCT_47' : '/system/misc', + }, + 'SENSOR' : { + 0x01 : '/org/openbmc/sensors/host/HostStatus', + 0x02 : '/org/openbmc/sensors/host/BootProgress', + 0x08 : '/system/chassis/motherboard/cpu0', + 0x0b : '/system/chassis/motherboard/dimm0', + 0x0c : '/system/chassis/motherboard/dimm1', + 0x2b : '/system/chassis/motherboard/cpu0/core0', + 0x2c : '/system/chassis/motherboard/cpu0/core1', + 0x2d : '/system/chassis/motherboard/cpu0/core2', + 0x2e : '/system/chassis/motherboard/cpu0/core3', + 0x2f : '/system/chassis/motherboard/cpu0/core4', + 0x30 : '/system/chassis/motherboard/cpu0/core5', + 0x31 : '/system/chassis/motherboard/cpu0/core6', + 0x32 : '/system/chassis/motherboard/cpu0/core7', + 0x33 : '/system/chassis/motherboard/cpu0/core8', + 0x34 : '/system/chassis/motherboard/cpu0/core9', + 0x35 : '/system/chassis/motherboard/cpu0/core10', + 0x36 : '/system/chassis/motherboard/cpu0/core11', + 0x37 : '/system/chassis/motherboard/cpu0/core12', + 0x38 : '/system/chassis/motherboard/cpu0/core13', + 0x39 : '/system/chassis/motherboard/cpu0/core14', + 0x3a : '/system/chassis/motherboard/cpu0/core15', + 0x3b : '/system/chassis/motherboard/cpu0/core16', + 0x3c : '/system/chassis/motherboard/cpu0/core17', + 0x3d : '/system/chassis/motherboard/cpu0/core18', + 0x3e : '/system/chassis/motherboard/cpu0/core19', + 0x3f : '/system/chassis/motherboard/cpu0/core20', + 0x40 : '/system/chassis/motherboard/cpu0/core21', + 0x41 : '/system/chassis/motherboard/cpu0/core22', + 0x42 : '/system/chassis/motherboard/cpu0/core23', + 0x8b : '/org/openbmc/sensors/host/BootCount', + 0x8c : '/system/chassis/motherboard', + 0x8d : '/system/chassis/motherboard/refclock', + 0x8e : '/system/chassis/motherboard/pcieclock', + 0x8f : '/system/chassis/motherboard/todclock', + 0x90 : '/system/systemevent', + 0x91 : '/org/openbmc/sensors/host/OperatingSystemStatus', + 0x92 : '/system/chassis/motherboard/pcielink', +# 0x08 : '/system/powerlimit', +# 0x10 : '/system/chassis/motherboard/apss', + }, + 'GPIO_PRESENT' : {} +} + +# Miscellaneous non-poll sensor with system specific properties. +# The sensor id is the same as those defined in ID_LOOKUP['SENSOR']. +MISC_SENSORS = { +} + +# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 -- cgit v1.2.1