/openbmc/phosphor-power/phosphor-power-supply/test/ |
H A D | power_supply_tests.cpp | 10 using namespace phosphor::power::psu; 142 auto psu = std::make_unique<PowerSupply>(bus, "", 3, 0x68, "ibm-cffps", in TEST_F() local 160 auto psu = std::make_unique<PowerSupply>(bus, PSUInventoryPath, 3, 0x68, in TEST_F() local 178 auto psu = std::make_unique<PowerSupply>( in TEST_F() local 182 EXPECT_EQ(psu->isPresent(), false); in TEST_F() 183 EXPECT_EQ(psu->isFaulted(), false); in TEST_F() 184 EXPECT_EQ(psu->hasCommFault(), false); in TEST_F() 185 EXPECT_EQ(psu->hasInputFault(), false); in TEST_F() 186 EXPECT_EQ(psu->hasMFRFault(), false); in TEST_F() 187 EXPECT_EQ(psu->hasVINUVFault(), false); in TEST_F() [all …]
|
/openbmc/linux/drivers/hwmon/pmbus/ |
H A D | ibm-cffps.c | 83 struct ibm_cffps *psu = file->private_data; in ibm_cffps_debugfs_read_input_history() local 86 .addr = psu->client->addr, in ibm_cffps_debugfs_read_input_history() 87 .flags = psu->client->flags, in ibm_cffps_debugfs_read_input_history() 91 .addr = psu->client->addr, in ibm_cffps_debugfs_read_input_history() 92 .flags = psu->client->flags | I2C_M_RD, in ibm_cffps_debugfs_read_input_history() 94 .buf = psu->input_history, in ibm_cffps_debugfs_read_input_history() 99 rc = pmbus_lock_interruptible(psu->client); in ibm_cffps_debugfs_read_input_history() 103 rc = pmbus_set_page(psu->client, 0, 0xff); in ibm_cffps_debugfs_read_input_history() 105 pmbus_unlock(psu->client); in ibm_cffps_debugfs_read_input_history() 113 rc = i2c_transfer(psu->client->adapter, msg, 2); in ibm_cffps_debugfs_read_input_history() [all …]
|
H A D | q54sj108a2.c | 79 struct q54sj108a2_data *psu = to_psu(idxp, idx); in q54sj108a2_debugfs_read() local 86 rc = i2c_smbus_read_byte_data(psu->client, PMBUS_OPERATION); in q54sj108a2_debugfs_read() 93 rc = i2c_smbus_read_byte_data(psu->client, PMBUS_WRITE_PROTECT); in q54sj108a2_debugfs_read() 100 rc = i2c_smbus_read_byte_data(psu->client, PMBUS_VOUT_OV_FAULT_RESPONSE); in q54sj108a2_debugfs_read() 107 rc = i2c_smbus_read_byte_data(psu->client, PMBUS_IOUT_OC_FAULT_RESPONSE); in q54sj108a2_debugfs_read() 114 rc = i2c_smbus_read_byte_data(psu->client, PMBUS_REVISION); in q54sj108a2_debugfs_read() 121 rc = i2c_smbus_read_block_data(psu->client, PMBUS_MFR_ID, data); in q54sj108a2_debugfs_read() 126 rc = i2c_smbus_read_block_data(psu->client, PMBUS_MFR_MODEL, data); in q54sj108a2_debugfs_read() 131 rc = i2c_smbus_read_block_data(psu->client, PMBUS_MFR_REVISION, data); in q54sj108a2_debugfs_read() 136 rc = i2c_smbus_read_block_data(psu->client, PMBUS_MFR_LOCATION, data); in q54sj108a2_debugfs_read() [all …]
|
H A D | max20730.c | 113 struct max20730_debugfs_data *psu = to_psu(idxp, idx); in max20730_debugfs_read() local 120 info = pmbus_get_driver_info(psu->client); in max20730_debugfs_read() 248 ret = i2c_smbus_read_byte_data(psu->client, PMBUS_OPERATION); in max20730_debugfs_read() 254 ret = i2c_smbus_read_byte_data(psu->client, PMBUS_ON_OFF_CONFIG); in max20730_debugfs_read() 260 ret = i2c_smbus_read_word_data(psu->client, in max20730_debugfs_read() 267 ret = i2c_smbus_read_byte_data(psu->client, PMBUS_VOUT_MODE); in max20730_debugfs_read() 273 ret = i2c_smbus_read_word_data(psu->client, PMBUS_VOUT_COMMAND); in max20730_debugfs_read() 282 ret = i2c_smbus_read_word_data(psu->client, PMBUS_VOUT_MAX); in max20730_debugfs_read() 311 struct max20730_debugfs_data *psu; in max20730_init_debugfs() local 323 psu = devm_kzalloc(&client->dev, sizeof(*psu), GFP_KERNEL); in max20730_init_debugfs() [all …]
|
/openbmc/phosphor-power/phosphor-power-supply/ |
H A D | psu_manager.cpp | 236 std::find_if(psus.begin(), psus.end(), [&invpath](auto& psu) { in getPSUProperties() argument 237 return psu->getInventoryPath() == invpath; in getPSUProperties() 255 auto psu = std::make_unique<PowerSupply>( in getPSUProperties() local 260 psus.emplace_back(std::move(psu)); in getPSUProperties() 578 for (auto& psu : psus) in syncHistory() local 580 psu->clearSyncHistoryRequired(); in syncHistory() 587 std::any_of(psus.begin(), psus.end(), [](const auto& psu) { in analyze() argument 588 return psu->isSyncHistoryRequired(); in analyze() 595 for (auto& psu : psus) in analyze() local 597 psu->analyze(); in analyze() [all …]
|
H A D | psu_manager.hpp | 22 using namespace phosphor::power::psu; 118 for (auto& psu : psus) in onOffConfig() local 120 psu->onOffConfig(data); in onOffConfig() 133 for (auto& psu : psus) in clearFaults() local 135 psu->clearFaults(); in clearFaults() 258 for (auto& psu : psus) in updateInventory() local 260 psu->updateInventory(); in updateInventory() 316 bool isRequiredPSU(const PowerSupply& psu); 399 for (auto& psu : psus) in setInputVoltageRating() local 401 psu->setInputVoltageRating(); in setInputVoltageRating()
|
H A D | meson.build | 4 install_dir: get_option('datadir') / 'phosphor-psu-monitor', 8 'phosphor-psu-monitor',
|
/openbmc/linux/Documentation/hwmon/ |
H A D | corsair-psu.rst | 3 Kernel driver corsair-psu 51 curr2_input Current on the 12v psu rail 52 curr2_crit Current max critical value on the 12v psu rail 53 curr3_input Current on the 5v psu rail 54 curr3_crit Current max critical value on the 5v psu rail 55 curr4_input Current on the 3.3v psu rail 56 curr4_crit Current max critical value on the 3.3v psu rail 57 fan1_input RPM of psu fan 58 in0_input Voltage of the psu ac input 59 in1_input Voltage of the 12v psu rail [all …]
|
/openbmc/phosphor-psu-code-mgmt/vendor-example/ |
H A D | get_version.cpp | 16 std::string psu = argv[1]; in main() local 17 if (psu.size() < NUM_OF_BYTES) in main() 19 psu.append(NUM_OF_BYTES - psu.size(), '0'); //"0", 8 - psu.size()); in main() 22 printf("%s", psu.substr(psu.size() - NUM_OF_BYTES).c_str()); in main()
|
/openbmc/phosphor-power/cold-redundancy/ |
H A D | cold_redundancy.cpp | 104 for (auto& psu : powerSupplies) in ColdRedundancy() local 106 if (psu->name != psuName) in ColdRedundancy() 123 psu->state = CR::PSUState::normal; in ColdRedundancy() 127 psu->state = CR::PSUState::acLost; in ColdRedundancy() 228 for (auto& psu : powerSupplies) in createPSU() local 231 psu->bus) && in createPSU() 233 psu->address)) in createPSU() 250 for (auto& psu : powerSupplies) in createPSU() local 252 orders.push_back(psu->order); in createPSU()
|
/openbmc/openbmc/meta-phosphor/recipes-phosphor/power/ |
H A D | phosphor-power_git.bb | 19 ${PN}-psu-monitor \ 54 PSU_MONITOR_SVC = "phosphor-psu-monitor.service" 63 SYSTEMD_SERVICE:${PN}-psu-monitor = "${@bb.utils.contains('PACKAGECONFIG', 'monitor-ng', '${PSU_MON… 72 FILES:${PN}-monitor = "${bindir}/psu-monitor" 73 FILES:${PN}-psu-monitor = "${bindir}/phosphor-psu-monitor ${datadir}/phosphor-psu-monitor"
|
H A D | phosphor-psu-software-manager_git.bb | 4 HOMEPAGE = "https://github.com/openbmc/phosphor-psu-code-mgmt" 17 SRC_URI = "git://github.com/openbmc/phosphor-psu-code-mgmt;branch=master;protocol=https" 21 SYSTEMD_SERVICE:${PN} += "psu-update@.service" 50 ## The psu-update@.service from repo is an example service that only prints a log and fails 51 ## Override it in a machine layer to invoke the psu update util 52 PSU_UPDATE_SERVICE ?= "-DPSU_UPDATE_SERVICE=psu-update@.service"
|
/openbmc/openbmc/meta-ibm/recipes-phosphor/power/ |
H A D | phosphor-power_%.bbappend | 5 SRC_URI:append:df-openpower = " file://psu.json" 17 install -D ${UNPACKDIR}/psu.json ${D}${datadir}/phosphor-power/psu.json 19 FILES:${PN}:append:df-openpower = " ${datadir}/phosphor-power/psu.json"
|
/openbmc/openbmc/meta-quanta/meta-q71l/recipes-phosphor/sensors/ |
H A D | phosphor-hwmon_%.bbappend | 19 Q71L_PSUS = "0/psu@59 1/psu@58 2/psu@58 3/psu@59"
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | armada-385-atl-x530DP.dtsi | 55 line-name = "psu-bank2"; 64 compatible = "atl,dts-overlay-gpio-psu-slot"; 75 compatible = "atl,dts-overlay-gpio-psu-slot"; 105 psu@51 { 123 psu@51 {
|
/openbmc/phosphor-psu-code-mgmt/ |
H A D | README.md | 1 # phosphor-psu-code-mgmt 3 phosphor-psu-code-mgmt is a service to provide management for PSU code, 59 '-DPSU_UPDATE_SERVICE=psu-update@.service' \ 65 use `psu-update@.service` to perform the PSU firmware update, where internally 142 1. Generate a tarball of PSU firmware image by [generate-psu-tar tool][4]. 145 ./generate-psu-tar --image <psu-image> --version <version> --model <model> --manufacturer \ 146 <manufacturer> --machineName <machineName> --outfile <psu.tar> --sign 169 https://github.com/openbmc/phosphor-psu-code-mgmt/blob/master/tools/generate-psu-tar
|
H A D | meson.options | 47 # get_version <some-psu-path> 83 value: 'psu-update@.service', 90 value: '/var/lib/obmc/psu', 97 value: '/usr/share/obmc/psu',
|
/openbmc/google-ipmi-sys/ |
H A D | meson.build | 64 'psu.cpp', 92 'gbmc-psu-hardreset.target', 93 'gbmc-psu-hardreset-pre.target', 94 'gbmc-psu-hardreset-time.service',
|
H A D | gbmc-psu-hardreset-pre.target | 4 Wants=gbmc-psu-hardreset-time.service 5 After=gbmc-psu-hardreset-time.service
|
H A D | gbmc-psu-hardreset.target | 4 Wants=gbmc-psu-hardreset-pre.target 5 After=gbmc-psu-hardreset-pre.target
|
/openbmc/openbmc/meta-google/recipes-google/ipmi/ |
H A D | google-ipmi-sys_git.bb | 33 gbmc-psu-hardreset.target \ 34 gbmc-psu-hardreset-pre.target \ 35 gbmc-psu-hardreset-time.service \
|
/openbmc/openbmc/meta-fii/meta-kudo/recipes-kudo/hotswap-power-cycle/files/ |
H A D | hotswap-power-cycle.service | 3 After=gbmc-psu-hardreset.target 11 WantedBy=gbmc-psu-hardreset.target
|
/openbmc/openbmc/meta-quanta/meta-gbs/recipes-gbs/hotswap-power-cycle/files/ |
H A D | hotswap-power-cycle.service | 3 After=gbmc-psu-hardreset.target 10 WantedBy=gbmc-psu-hardreset.target
|
/openbmc/openbmc/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/hotswap-power-cycle/files/ |
H A D | hotswap-power-cycle.service | 3 After=gbmc-psu-hardreset.target 10 WantedBy=gbmc-psu-hardreset.target
|
/openbmc/openbmc/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/power/first-boot-set-psu/ |
H A D | first-boot-set-psu@.service | 7 ExecStart=/usr/bin/first-boot-set-psu.sh %i 9 SyslogIdentifier=first-boot-set-psu
|