commit | 726e1cad1749229f6109ebba72f60f2239f7eff9 | [log] [tgz] |
---|---|---|
author | Shawn McCarney <shawnmm@us.ibm.com> | Fri Jun 21 14:58:37 2024 -0500 |
committer | Shawn McCarney <shawnmm@us.ibm.com> | Fri Jun 21 14:58:37 2024 -0500 |
tree | d4630e075b978565e3f813a8ce6b09ea06d86ce5 | |
parent | 1838dbf934e4788c613b8b106f2d9cc1382d30b9 [diff] |
pseq: Add config files for Fuji systems Add phosphor-power-sequencer JSON configuration files for Fuji 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 Fuji JSON files present in /usr/share/phosphor-power-sequencer directory in firmware image * Verified old format Fuji 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: I739ca7d387af07fc0659d0e28ba366b01342a1b2 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", }