| commit | 175798c64d3afbf576d1ebc83b6b3d27e71d3e47 | [log] [tgz] |
|---|---|---|
| author | Shawn McCarney <shawnmm@us.ibm.com> | Thu Nov 20 13:50:03 2025 -0600 |
| committer | Shawn McCarney <shawnmm@us.ibm.com> | Thu Nov 20 15:05:05 2025 -0600 |
| tree | 067356da246e417a26386469bc8284ceb3e582b1 | |
| parent | 7b7a5632c594d60f4620ca14379a766a56faf846 [diff] |
pseq: Add method to Services class to create GPIO In the phosphor-power-sequencer application, add a method to the Services class to create a GPIO object. This object can be used to get/set the GPIO value. Add the method to the entire Services class hierarchy: - Services: Abstract base class - BMCServices: Real implementation of Services interface - MockServices: Mock implementation of Services interface for automated testing Tested: * Ran automated test cases Change-Id: I77120843b4124a1ad8d6617bc78cec02ce2ff557 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", }