commit | ab73001a784c80b2e6bd59e21607e7849d0e7983 | [log] [tgz] |
---|---|---|
author | Shawn McCarney <shawnmm@us.ibm.com> | Thu Jun 20 17:31:16 2024 -0500 |
committer | Shawn McCarney <shawnmm@us.ibm.com> | Mon Jun 24 19:44:19 2024 +0000 |
tree | e71ac525caffe8fec0e0ebcf99b0454c32a5f98c | |
parent | 726e1cad1749229f6109ebba72f60f2239f7eff9 [diff] |
pseq: Add config files for BlueRidge systems Add phosphor-power-sequencer JSON configuration files for BlueRidge systems. Add config files in both the old and new JSON formats. The old format will be removed soon, but that has not occurred yet. Tested: * Tested in simulation environment * Verified BlueRidge JSON files present in /usr/share/phosphor-power-sequencer directory in firmware image * Verified old format BlueRidge JSON file was found and loaded successfully * Powered on chassis * Verified powered on successfully and chassis pgood was true * Verified no errors logged * Verified phosphor-power-control did not write any errors to the journal * Powered off chassis * Verified powered off successfully and chassis pgood was false * Verified no errors logged * Verified phosphor-power-control did not write any errors to the journal Change-Id: I92f8feb58557c3eabacbf3e9d7690c80c426b0a1 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", }