commit | aacc2aafa5b599ca9719dcc174b966c976568ab1 | [log] [tgz] |
---|---|---|
author | Matt Spinler <spinler@us.ibm.com> | Tue May 25 09:31:35 2021 -0600 |
committer | Matt Spinler <spinler@us.ibm.com> | Tue Jun 01 08:37:56 2021 -0600 |
tree | 0a0de69378187fbb89b7bf60bb29aba762381737 | |
parent | d9c8be577d0479b12a7eb5ffe624b5f22605e4e0 [diff] |
regulators: Support a string or vector for VPD Add a 'byte_values' alternative to the 'value' entry in the compare VPD action. This is to support VPD values that are not strings, such as 'HW', a new IBM keyword that describes the version of a piece of hardware. To support this, the VPD class now treats all VPD keyword values as vectors of uint8_ts, including in its data cache. If a compare VPD action in the JSON contains a string value, it will be converted to the vector before the CompareVPDAction class is created. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I3fcabf896f4885feae1b07ee2c3da5929cf8bfa4
This repository contains applications for configuring and monitoring devices that deliver power to the system.
To build all applications in this repository:
meson 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", }