commit | b1ab1cf010b4cb3f390d9569abfaf2770f7d9185 | [log] [tgz] |
---|---|---|
author | Bob King <Bob_King@wistron.com> | Mon May 18 18:26:26 2020 +0800 |
committer | Bob King <Bob_King@wistron.com> | Wed May 27 10:40:30 2020 +0800 |
tree | 139d95c0662766edc975d3198bd71f1dcc1bc844 | |
parent | 8d0b3ce22cc4c23855376868f4e5e6cfcd25de04 [diff] |
regulators: ActionEnvironment enhancements Define a new struct named SensorReading. This will be used the store the value read when PMBusReadSensorAction::execute() is called. Add a new data member sensorReadings. This will hold the sensor readings that are obtained Add a new method addSensorReading. It add the specified SensorReading to the sensorReadings vector. Add a new method getSensorReadings. This will be called by the SensorMonitoring object. Signed-off-by: Bob King <Bob_King@wistron.com> Change-Id: I91076227498712750187d354b76faa2d95e33aac
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", }