From 97c1d92e7790df61fc67441edbc32c32d65a59f8 Mon Sep 17 00:00:00 2001 From: Logananth Sundararaj Date: Thu, 21 Oct 2021 17:14:59 +0530 Subject: meta-yosemiteV2:Add x86-power-ctrl config files for multi host These config files contains the gpio configuartion which will be used by the x86 power control. PGood config is dbus based gpio configuration is added for all hosts. TESTED:Tested and verified in YosemiteV2. Signed-off-by: Logananth Sundararaj Change-Id: I94c12545b26ac3bae8226ac6434e61c7c1ee9e06 --- .../yosemitev2/power-config-host1.json | 52 ++++++++++++++++++++++ .../yosemitev2/power-config-host2.json | 52 ++++++++++++++++++++++ .../yosemitev2/power-config-host3.json | 52 ++++++++++++++++++++++ .../yosemitev2/power-config-host4.json | 52 ++++++++++++++++++++++ .../chassis/x86-power-control_%.bbappend | 11 +++++ 5 files changed, 219 insertions(+) create mode 100644 meta-facebook/recipes-x86/chassis/x86-power-control/yosemitev2/power-config-host1.json create mode 100644 meta-facebook/recipes-x86/chassis/x86-power-control/yosemitev2/power-config-host2.json create mode 100644 meta-facebook/recipes-x86/chassis/x86-power-control/yosemitev2/power-config-host3.json create mode 100644 meta-facebook/recipes-x86/chassis/x86-power-control/yosemitev2/power-config-host4.json (limited to 'meta-facebook') diff --git a/meta-facebook/recipes-x86/chassis/x86-power-control/yosemitev2/power-config-host1.json b/meta-facebook/recipes-x86/chassis/x86-power-control/yosemitev2/power-config-host1.json new file mode 100644 index 000000000..8c8379e1e --- /dev/null +++ b/meta-facebook/recipes-x86/chassis/x86-power-control/yosemitev2/power-config-host1.json @@ -0,0 +1,52 @@ +{ + "gpio_configs":[ + { + "Name" : "PostComplete", + "LineName" : "POST_COMPLETE", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + + { + "Name" : "SlotPower", + "LineName" : "SLOT1_POWER", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + + { + "Name" : "PowerOut", + "LineName" : "POWER_OUT1", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + + { + "Name" : "ResetOut", + "LineName" : "RESET_OUT1", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + + { + "Name" : "PowerOk", + "DbusName" : "xyz.openbmc_project.IpmbSensor", + "Path" : "/xyz/openbmc_project/gpio/volt/1_CPU_Good", + "Interface" : "xyz.openbmc_project.Chassis.Control.Power", + "Property" : "PGood", + "Type" : "DBUS" + } +], +"timing_configs":{ + "PowerPulseMs": 200, + "ForceOffPulseMs": 15000, + "ResetPulseMs": 500, + "PowerCycleMs": 5000, + "SioPowerGoodWatchdogMs": 1000, + "PsPowerOKWatchdogMs": 8000, + "GracefulPowerOffS": 300, + "WarmResetCheckMs": 500, + "PowerOffSaveMs": 7000, + "slotPowerCycleTimeMs": 200 +} +} diff --git a/meta-facebook/recipes-x86/chassis/x86-power-control/yosemitev2/power-config-host2.json b/meta-facebook/recipes-x86/chassis/x86-power-control/yosemitev2/power-config-host2.json new file mode 100644 index 000000000..ebf7bf029 --- /dev/null +++ b/meta-facebook/recipes-x86/chassis/x86-power-control/yosemitev2/power-config-host2.json @@ -0,0 +1,52 @@ +{ + "gpio_configs":[ + { + "Name" : "PostComplete", + "LineName" : "POST_COMPLETE", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + + { + "Name" : "SlotPower", + "LineName" : "SLOT1_POWER", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + + { + "Name" : "PowerOut", + "LineName" : "POWER_OUT1", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + + { + "Name" : "ResetOut", + "LineName" : "RESET_OUT1", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + + { + "Name" : "PowerOk", + "DbusName" : "xyz.openbmc_project.IpmbSensor", + "Path" : "/xyz/openbmc_project/gpio/volt/2_CPU_Good", + "Interface" : "xyz.openbmc_project.Chassis.Control.Power", + "Property" : "PGood", + "Type" : "DBUS" + } +], +"timing_configs":{ + "PowerPulseMs": 200, + "ForceOffPulseMs": 15000, + "ResetPulseMs": 500, + "PowerCycleMs": 5000, + "SioPowerGoodWatchdogMs": 1000, + "PsPowerOKWatchdogMs": 8000, + "GracefulPowerOffS": 300, + "WarmResetCheckMs": 500, + "PowerOffSaveMs": 7000, + "slotPowerCycleTimeMs": 200 +} +} diff --git a/meta-facebook/recipes-x86/chassis/x86-power-control/yosemitev2/power-config-host3.json b/meta-facebook/recipes-x86/chassis/x86-power-control/yosemitev2/power-config-host3.json new file mode 100644 index 000000000..3631dc392 --- /dev/null +++ b/meta-facebook/recipes-x86/chassis/x86-power-control/yosemitev2/power-config-host3.json @@ -0,0 +1,52 @@ +{ + "gpio_configs":[ + { + "Name" : "PostComplete", + "LineName" : "POST_COMPLETE", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + + { + "Name" : "SlotPower", + "LineName" : "SLOT1_POWER", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + + { + "Name" : "PowerOut", + "LineName" : "POWER_OUT1", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + + { + "Name" : "ResetOut", + "LineName" : "RESET_OUT1", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + + { + "Name" : "PowerOk", + "DbusName" : "xyz.openbmc_project.IpmbSensor", + "Path" : "/xyz/openbmc_project/gpio/volt/3_CPU_Good", + "Interface" : "xyz.openbmc_project.Chassis.Control.Power", + "Property" : "PGood", + "Type" : "DBUS" + } +], +"timing_configs":{ + "PowerPulseMs": 200, + "ForceOffPulseMs": 15000, + "ResetPulseMs": 500, + "PowerCycleMs": 5000, + "SioPowerGoodWatchdogMs": 1000, + "PsPowerOKWatchdogMs": 8000, + "GracefulPowerOffS": 300, + "WarmResetCheckMs": 500, + "PowerOffSaveMs": 7000, + "slotPowerCycleTimeMs": 200 +} +} diff --git a/meta-facebook/recipes-x86/chassis/x86-power-control/yosemitev2/power-config-host4.json b/meta-facebook/recipes-x86/chassis/x86-power-control/yosemitev2/power-config-host4.json new file mode 100644 index 000000000..dac58ae34 --- /dev/null +++ b/meta-facebook/recipes-x86/chassis/x86-power-control/yosemitev2/power-config-host4.json @@ -0,0 +1,52 @@ +{ + "gpio_configs":[ + { + "Name" : "PostComplete", + "LineName" : "POST_COMPLETE", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + + { + "Name" : "SlotPower", + "LineName" : "SLOT1_POWER", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + + { + "Name" : "PowerOut", + "LineName" : "POWER_OUT1", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + + { + "Name" : "ResetOut", + "LineName" : "RESET_OUT1", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + + { + "Name" : "PowerOk", + "DbusName" : "xyz.openbmc_project.IpmbSensor", + "Path" : "/xyz/openbmc_project/gpio/volt/4_CPU_Good", + "Interface" : "xyz.openbmc_project.Chassis.Control.Power", + "Property" : "PGood", + "Type" : "DBUS" + } +], +"timing_configs":{ + "PowerPulseMs": 200, + "ForceOffPulseMs": 15000, + "ResetPulseMs": 500, + "PowerCycleMs": 5000, + "SioPowerGoodWatchdogMs": 1000, + "PsPowerOKWatchdogMs": 8000, + "GracefulPowerOffS": 300, + "WarmResetCheckMs": 500, + "PowerOffSaveMs": 7000, + "slotPowerCycleTimeMs": 200 +} +} diff --git a/meta-facebook/recipes-x86/chassis/x86-power-control_%.bbappend b/meta-facebook/recipes-x86/chassis/x86-power-control_%.bbappend index c119baca9..862f2f179 100644 --- a/meta-facebook/recipes-x86/chassis/x86-power-control_%.bbappend +++ b/meta-facebook/recipes-x86/chassis/x86-power-control_%.bbappend @@ -1,2 +1,13 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" EXTRA_OECMAKE += "-DCHASSIS_SYSTEM_RESET=ON" + +SRC_URI:append:yosemitev2 = " file://power-config-host1.json" +SRC_URI:append:yosemitev2 = " file://power-config-host2.json" +SRC_URI:append:yosemitev2 = " file://power-config-host3.json" +SRC_URI:append:yosemitev2 = " file://power-config-host4.json" + +do_install:append:yosemitev2() { + install -m 0755 -d ${D}/${datadir}/${BPN} + install -m 0644 -D ${WORKDIR}/*.json \ + ${D}/${datadir}/${BPN}/ +} -- cgit v1.2.3