| commit | 984be69cd5b40692f8b7267498533a52c02538f8 | [log] [tgz] |
|---|---|---|
| author | Shawn McCarney <shawnmm@us.ibm.com> | Tue Nov 18 16:38:29 2025 -0600 |
| committer | Shawn McCarney <shawnmm@us.ibm.com> | Tue Nov 18 17:01:40 2025 -0600 |
| tree | 75e72b22ed75e16fd2a9746694ea8d10ba53008a | |
| parent | 240d73633a33560953326d6b418e09008ee6e91b [diff] |
pseq: Rename GPIO struct used for pgood status In the phosphor-power-sequencer application, the Rail class has an optional GPIO that provides the pgood status of the rail. Currently the GPIO information is stored in a struct named 'GPIO'. This structure is specific to reading the pgood status of a rail using a GPIO on the power sequencer device. A future commit will be creating a new GPIO class that represents an arbitrary GPIO in the system. This class will support requesting, reading, writing, and releasing the GPIO. To avoid a name conflict, rename the struct to PgoodGPIO, which more clearly represents its purpose. Tested: Ran automated tests Change-Id: Ie13d1c77faa96faf6839e77a84d1499f7c239148 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", }