| /openbmc/bmcweb/redfish-core/schema/dmtf/json-schema/ |
| H A D | Circuit.v1_8_1.json | 4 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", 5 …"copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.or… 12 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 37 "description": "The available OEM-specific actions for this resource.", 38 …"longDescription": "This property shall contain the available OEM-specific actions for this resour… 46 …"longDescription": "This action shall control the state of the circuit breaker or over-current pro… 50 … "description": "The desired power state of the circuit if the breaker is reset successfully.", 51 … "longDescription": "This parameter shall contain the desired power state of the circuit." 55 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 71 "format": "uri-reference", [all …]
|
| H A D | Outlet.v1_4_4.json | 4 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", 5 …"copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.or… 12 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 34 "description": "The available OEM-specific actions for this resource.", 35 …"longDescription": "This property shall contain the available OEM-specific actions for this resour… 45 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 68 "description": "Line 1 current (A).", 70 …"longDescription": "This property shall contain the line current, in ampere units, for L1. The va… 81 "description": "Line 2 current (A).", 83 …"longDescription": "This property shall contain the line current, in ampere units, for L2. The va… [all …]
|
| H A D | PowerSupply.v1_6_0.json | 4 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", 5 …"copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.or… 12 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 31 "description": "The available OEM-specific actions for this resource.", 32 …"longDescription": "This property shall contain the available OEM-specific actions for this resour… 39 "description": "This type describes an efficiency rating for a power supply.", 40 "longDescription": "This type shall describe an efficiency rating for a power supply.", 42 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 57 … "description": "The rated efficiency of this power supply at the specified load.", 58 …hall contain the rated efficiency, as a percentage, `0` to `100`, of this power supply at the spec… [all …]
|
| /openbmc/phosphor-power/phosphor-power-supply/ |
| H A D | util.hpp | 7 #include <phosphor-logging/elog-errors.hpp> 8 #include <phosphor-logging/elog.hpp> 9 #include <phosphor-logging/lg2.hpp> 15 namespace phosphor::power::psu namespace 68 auto invService = phosphor::power::util::getService( in setPresence() 101 auto invService = phosphor::power::util::getService( in setAvailable() 130 auto service = phosphor::power::util::getService( in handleChassisHealthRollup() 134 phosphor::power::util::getProperty<AssociationsProperty>( in handleChassisHealthRollup() 164 phosphor::power::util::getProperty<bool>( in handleChassisHealthRollup() 176 phosphor::power::util::setProperty(ASSOC_DEF_IFACE, ASSOC_PROP, in handleChassisHealthRollup() [all …]
|
| H A D | util.cpp | 5 namespace phosphor::power::psu namespace 18 line = gpiod::find_line(namedGpio); in GPIOInterface() 19 if (!line) in GPIOInterface() 21 throw std::runtime_error("Line does not exist: " + namedGpio); in GPIOInterface() 27 std::string("Failed to find line: ") + e.what()); in GPIOInterface() 39 return line.name(); in getName() 44 int value = -1; in read() 46 if (!line) in read() 48 lg2::error("Failed line in GPIOInterface::read()"); in read() 49 throw std::runtime_error{std::string{"Failed to find line"}}; in read() [all …]
|
| /openbmc/phosphor-power/phosphor-power-sequencer/test/ |
| H A D | gpios_only_device_tests.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 31 using namespace phosphor::power::sequencer; 35 std::string powerControlGPIOName{"power-chassis-control"}; in TEST() 36 std::string powerGoodGPIOName{"power-chassis-good"}; in TEST() 45 std::string powerControlGPIOName{"power-chassis-control"}; in TEST() 46 std::string powerGoodGPIOName{"power-chassis-good"}; in TEST() 54 std::string powerControlGPIOName{"power-chassis-control"}; in TEST() 55 std::string powerGoodGPIOName{"power-chassis-good"}; in TEST() 63 std::string powerControlGPIOName{"power-chassis-control"}; in TEST() 64 std::string powerGoodGPIOName{"power-chassis-good"}; in TEST() [all …]
|
| H A D | config_file_parser_tests.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 43 using namespace phosphor::power::sequencer; 44 using namespace phosphor::power::sequencer::config_file_parser; 45 using namespace phosphor::power::sequencer::config_file_parser::internal; 46 using namespace phosphor::power::util; 278 EXPECT_EQ(chassis[0]->getNumber(), 1); in TEST() 279 EXPECT_EQ(chassis[0]->getInventoryPath(), in TEST() 281 EXPECT_EQ(chassis[1]->getNumber(), 2); in TEST() 282 EXPECT_EQ(chassis[1]->getInventoryPath(), in TEST() 353 "power_control_gpio_name": "power-chassis${chassis_number}-control", in TEST() [all …]
|
| /openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-yosemite4/plat-svc/files/ |
| H A D | yosemite4-medusa-event | 3 # The ALERT pin doesn't trigger when HSC or power module loses ENABLE with VCC present, 8 dbus-monitor --system "type='signal',interface='xyz.openbmc_project.Sensor.Threshold.Critical'" | 9 while IFS= read -r LINE; do 14 if [[ "$LINE" =~ MEDUSA_HSC([0-1])_48V ]]; then 16 script_to_run="/usr/libexec/phosphor-gpio-monitor/medusa-hsc-alert" 20 # Power module: MEDUSA_DELTA0_12V, MEDUSA_DELTA1_12V... 21 elif [[ "$LINE" =~ MEDUSA_DELTA([0-3])_12V ]]; then 23 script_to_run="/usr/libexec/phosphor-gpio-monitor/medusa-power-module-fault" 28 elif [[ "$LINE" =~ MEDUSA_MB([1-8])_HSC_12V ]]; then 30 script_to_run="/usr/libexec/phosphor-gpio-monitor/slot-hsc-fault" [all …]
|
| /openbmc/phosphor-power/phosphor-power-sequencer/config_files/ |
| H A D | Rainier.json | 3 "phosphor-power-sequencer configuration file for IBM Rainier systems" 13 "power_control_gpio_name": "power-chassis-control", 14 "power_good_gpio_name": "power-chassis-good", 51 "gpio": { "line": 72 } number 57 "gpio": { "line": 73 } number 93 "gpio": { "line": 74 } number 99 "gpio": { "line": 75 } number 105 "gpio": { "line": 76 } number 111 "gpio": { "line": 77 } number 117 "gpio": { "line": 78 } number [all …]
|
| H A D | BlueRidge.json | 3 "phosphor-power-sequencer configuration file for IBM BlueRidge systems" 13 "power_control_gpio_name": "power-chassis-control", 14 "power_good_gpio_name": "power-chassis-good", 51 "gpio": { "line": 72 } number 57 "gpio": { "line": 73 } number 93 "gpio": { "line": 74 } number 99 "gpio": { "line": 75 } number 105 "gpio": { "line": 76 } number 111 "gpio": { "line": 77 } number 117 "gpio": { "line": 78 } number [all …]
|
| H A D | Everest.json | 3 "phosphor-power-sequencer configuration file for IBM Everest systems" 13 "power_control_gpio_name": "power-chassis-control", 14 "power_good_gpio_name": "power-chassis-good", 43 "gpio": { "line": 72 } number 49 "gpio": { "line": 73 } number 56 "gpio": { "line": 74 } number 63 "gpio": { "line": 75 } number 173 "gpio": { "line": 76 } number 179 "gpio": { "line": 77 } number 186 "gpio": { "line": 78 } number [all …]
|
| H A D | Fuji.json | 3 "phosphor-power-sequencer configuration file for IBM Fuji systems" 13 "power_control_gpio_name": "power-chassis-control", 14 "power_good_gpio_name": "power-chassis-good", 43 "gpio": { "line": 72 } number 49 "gpio": { "line": 73 } number 56 "gpio": { "line": 74 } number 63 "gpio": { "line": 75 } number 173 "gpio": { "line": 76 } number 179 "gpio": { "line": 77 } number 186 "gpio": { "line": 78 } number [all …]
|
| /openbmc/openbmc-test-automation/ipmi/ |
| H A D | test_ipmi_sensor.robot | 56 ${temp_reading}= Run IPMI Standard Command dcmi get_temp_reading -N 10 62 ... Inlet air temperature case-insensitive 66 FOR ${line} IN @{ambient_temp_line} 67 ${ambient_temp_ipmi}= Set Variable ${line.split('+')[1].strip(' C')} 77 ... Evaluate abs(${ambient_temp_redfish[${index}]} - ${ipmi_temp_list[${index}]}) 84 Test Power Reading Via IPMI With Host Off 85 [Documentation] Verify power reading via IPMI with host in off state 88 Redfish Power Off stack_mode=skip 90 ${ipmi_reading}= Get IPMI Power Reading 93 ... msg=Power readin [all...] |
| /openbmc/phosphor-power/phosphor-power-sequencer/src/ |
| H A D | gpio.hpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 22 namespace phosphor::power::sequencer namespace 28 * Abstract base class for a General-Purpose Input/Output pin. 107 line = gpiod::find_line(name); in BMCGPIO() 108 if (!line) in BMCGPIO() 125 line.request({"phosphor-power-control", lineRequestType, 0}); in request() 130 return line.get_value(); in getValue() 135 line.set_value(value); in setValue() 140 line.release(); in release() 145 * GPIO line to access the pin. [all …]
|
| H A D | power_control.hpp | 24 namespace phosphor::power::sequencer namespace 31 * This class implements GPIO control of power on / off, and monitoring of the 32 * chassis power good. 45 * Creates a controller object for power on and off. 46 * @param bus D-Bus bus object 79 * The D-Bus bus object 108 * Indicates if a failure has already been found. Cleared at power on. 118 * Minimum time from cold start to power on constant 123 * Minimum time from power off to power on constant 128 * Power good [all …]
|
| /openbmc/openbmc/meta-ibm/meta-system1/recipes-phosphor/flash/bios-version/ |
| H A D | pch-standby-check.sh | 3 # Find the GPIO pin associated with "pch-ready" 4 GPIO_PIN=$(gpiofind "pch-ready") 6 if [ -z "${GPIO_PIN}" ]; then 7 echo "gpio 'pch-ready' not found in device tree. Exiting." 11 # Extract gpiochip and line offset from the GPIO_PIN 12 GPIO_CHIP=$(echo "$GPIO_PIN" | cut -d' ' -f1) # Extract gpiochip 13 GPIO_LINE=$(echo "$GPIO_PIN" | cut -d' ' -f2) # Extract line offset 15 # Poll the GPIO value until it reads 1 (indicating power sequence completion) 19 if [ "$GPIO_VALUE" -eq 0 ]; then 20 echo "PCH Standby Power Sequence Complete" [all …]
|
| /openbmc/bmcweb/redfish-core/schema/dmtf/csdl/ |
| H A D | Outlet_v1.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!----> 3 <!--################################################################################ --> 4 <!--# Redfish Schema: Outlet v1.4.4 --> 5 <!--# --> 6 <!--# For a detailed change log, see the README file contained in the DSP8010 bundle, --> 7 <!--# available at http://www.dmtf.org/standards/redfish --> 8 <!--# Copyright 2014-2025 DMTF. --> 9 <!--# For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright --> 10 <!--################################################################################ --> [all …]
|
| H A D | Circuit_v1.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!----> 3 <!--################################################################################ --> 4 <!--# Redfish Schema: Circuit v1.8.1 --> 5 <!--# --> 6 <!--# For a detailed change log, see the README file contained in the DSP8010 bundle, --> 7 <!--# available at http://www.dmtf.org/standards/redfish --> 8 <!--# Copyright 2014-2025 DMTF. --> 9 <!--# For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright --> 10 <!--################################################################################ --> [all …]
|
| /openbmc/u-boot/examples/standalone/ |
| H A D | atmel_df_pow2.c | 2 * atmel_df_pow2.c - convert Atmel Dataflashes to Power of 2 mode 6 * Licensed under the 2-clause BSD. 27 return -1; in flash_status() 48 if (ret == -1) in flash_set_pow2() 94 case 0x03: /* ^C - break */ in getline() 98 case 0x08: /* ^H - backspace */ in getline() 99 case 0x7F: /* DEL - backspace */ in getline() 102 i--; in getline() 124 printf("Actual U-Boot ABI version %lu\n", get_version()); in atmel_df_pow2() 131 char *line, *p; in atmel_df_pow2() local [all …]
|
| /openbmc/bmcweb/redfish-core/schema/dmtf/json-schema-installed/ |
| H A D | PowerSupply.v1_6_0.json | 4 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", 5 …"copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.or… 12 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 31 "description": "The available OEM-specific actions for this resource.", 32 …"longDescription": "This property shall contain the available OEM-specific actions for this resour… 39 "description": "This type describes an efficiency rating for a power supply.", 40 "longDescription": "This type shall describe an efficiency rating for a power supply.", 42 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 57 … "description": "The rated efficiency of this power supply at the specified load.", 58 …hall contain the rated efficiency, as a percentage, `0` to `100`, of this power supply at the spec… [all …]
|
| H A D | Power.v1_7_3.json | 2 "$id": "http://redfish.dmtf.org/schemas/v1/Power.v1_7_3.json", 3 "$ref": "#/definitions/Power", 4 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", 5 …"copyright": "Copyright 2014-2024 DMTF. For the full DMTF copyright policy, see http://www.dmtf.or… 12 "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 26 "#Power.PowerSupplyReset": { 31 "description": "The available OEM-specific actions for this resource.", 32 …"longDescription": "This property shall contain the available OEM-specific actions for this resour… 40 "description": "This type describes an input range for a power supply.", 41 …"longDescription": "This type shall describe an input range that the associated power supply can u… [all …]
|
| /openbmc/x86-power-control/src/ |
| H A D | power_control.cpp | 2 // Copyright (c) 2018-2025 Intel Corporation 8 // http://www.apache.org/licenses/LICENSE-2.0 19 #include <systemd/sd-journal.h> 28 #include <phosphor-logging/lg2.hpp> 46 static const std::string appName = "power-control"; 97 // power control json config 135 static gpiod::line powerButtonMask; 136 static gpiod::line resetButtonMask; 163 // Time between off and on during a power cycle 169 // Time power OK assertion on power-on [all …]
|
| /openbmc/openbmc-test-automation/lib/ |
| H A D | var_funcs.py | 40 The print-out of the resulting var dictionary is: 204 …This function is useful for parsing a line of program output or data that is in the following form: 209 Current Limit State: No Active Power Limit 222 No Active Power Limit 265 [0]: Current Limit State: No Active Power Limit 266 [1]: Exception actions: Hard Power Off & Log Event to SEL 267 [2]: Power Limit: 0 Watts 278 [current_limit_state]: No Active Power Limit 279 [exception_actions]: Hard Power Off & Log Event to SEL 288 headers[0][0]: content-length [all …]
|
| /openbmc/phosphor-buttons/ |
| H A D | README.md | 1 # phosphor-buttons 3 Phosphor-buttons has a collection of IO event handler interfaces for physical 7 inputs such as power button, reset button etc. Each button interface monitors 8 its associated IO for event changes and emits signals that the button-handler 13 ### Power Button 17 If the power is off, power on the host. 19 If the power is on, it depends on how long the press was and which options are 22 - Short press: Do a host power off 23 - Long press, as determined by the 'long-press-time-ms' meson option: Do a 24 chassis (hard) power off. [all …]
|
| /openbmc/phosphor-power/phosphor-regulators/src/ |
| H A D | error_logging.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 33 namespace phosphor::power::regulators namespace 40 "xyz.openbmc_project.Power.Regulators.Error.ConfigFile"}; in logConfigFileError() 46 // handling, like stopping a power on attempt. in logConfigFileError() 48 "xyz.openbmc_project.Power.Regulators.Error.ConfigFile.Critical"; in logConfigFileError() 58 logError("xyz.openbmc_project.Power.Error.DBus", severity, additionalData, in logDBusError() 78 logError("xyz.openbmc_project.Power.Error.I2C", severity, additionalData, in logI2CError() 85 logError("xyz.openbmc_project.Power.Error.Internal", severity, in logInternalError() 96 ? "xyz.openbmc_project.Power.Regulators.Error.PhaseFault.N" in logPhaseFault() 97 : "xyz.openbmc_project.Power.Regulators.Error.PhaseFault.NPlus1"; in logPhaseFault() [all …]
|