commit | cee2e20ae6ae567dab44f81924feb2f48dcc2355 | [log] [tgz] |
---|---|---|
author | Shawn McCarney <shawnmm@us.ibm.com> | Fri Aug 02 16:38:33 2024 -0500 |
committer | Shawn McCarney <shawnmm@us.ibm.com> | Thu Aug 08 14:17:40 2024 -0500 |
tree | 45b11236264ef5ec327c0ebda48e8bab65b21569 | |
parent | 3828e9516e3f4f4a661974f542fc4146a9fb0be6 [diff] |
regs: Use new compatible interface Enhance the phosphor-regulators application to use the new D-Bus interface xyz.openbmc_project.Inventory.Decorator.Compatible. The list of compatible system type names from this interface is used to find the configuration file for the current system. Rename the configuration files to match the system type names in the new D-Bus interface. Tested: * Verified phosphor-regulators loaded correct config file * When interface was available before app started * When interface was available after app started * When interface was available after configure action started * When interface was never available but default config file exists * On Rainier, Everest, and Fuji systems * Verified system could be powered on and off without error * Verified app waited up to 5 minutes during configure action for interface to become available. Verified critical error logged and power on failed if interface not found within 5 minutes. Change-Id: Icee0c59566c68730ca318fc4521f05af2546eed1 Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
This repository contains applications for configuring and monitoring devices that deliver power to the system.
Actively-maintained applications:
Legacy applications:
To build all applications in this repository:
meson setup build ninja -C build
To clean the repository and remove all build output:
rm -rf build
You can specify meson options to customize the build process. For example, you can specify:
Several applications in this repository require a PSU JSON config to run. The JSON config file provides information for:
There is an example psu.json to describe the necessary configurations.
inventoryPMBusAccessType
defines the pmbus access type, which tells the service which sysfs type to use to read the attributes. The possible values are:
/sys/bus/i2c/devices/3-0069/
/sys/bus/i2c/devices/3-0069/hwmon/hwmonX/
/sys/kernel/debug/pmbus/hwmonX/
/sys/kernel/debug/<driver>.<instance>/
/sys/kernel/debug/pmbus/hwmonX/cffps1/
fruConfigs
defines the mapping between the attribute file and the FRU inventory interface and property. The configuration example below indicates that the service will read part_number
attribute file from a directory specified by the above pmbus access type, and assign to PartNumber
property in xyz.openbmc_project.Inventory.Decorator.Asset
interface.
"fruConfigs": [ { "propertyName": "PartNumber", "fileName": "part_number", "interface": "xyz.openbmc_project.Inventory.Decorator.Asset" } ]
psuDevices
defines the kernel device dir for each PSU in inventory. The configuration example below indicates that powersupply0
's device is located in /sys/bus/i2c/devices/3-0069
.
"psuDevices": { "/xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply0" : "/sys/bus/i2c/devices/3-0069", }