commit | 71d7fe43d181117813093ca0d47a50ff2246e2d4 | [log] [tgz] |
---|---|---|
author | Shawn McCarney <shawnmm@us.ibm.com> | Thu May 02 16:06:10 2024 -0500 |
committer | Shawn McCarney <shawnmm@us.ibm.com> | Thu May 02 17:25:14 2024 -0500 |
tree | 7d6fbbf3a5748695eed30a8516061a314edcc0c3 | |
parent | fe78c1787f0046b4d8f57131963654c61e265bba [diff] |
pseq: Create UCD90xDevice class Create the UCD90xDevice class in the phosphor-power-sequencer application. This is a base class for the UCD90x family of power sequencer devices. Tested: * Performed the following tests on Rainier and Everest systems * MFR_STATUS value obtained successfully * Verified error paths and exceptions thrown Change-Id: I430ffb95d96e228ce0245ae1c9cb63db72d590c5 Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
This repository contains applications for configuring and monitoring devices that deliver power to the system.
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/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", }