commit | 1992083a94b09bcdd59f806722519af0e124143f | [log] [tgz] |
---|---|---|
author | Jim Wright <jlwright@us.ibm.com> | Wed Aug 25 11:13:56 2021 -0500 |
committer | Shawn McCarney <shawnmm@us.ibm.com> | Fri Aug 27 15:13:40 2021 +0000 |
tree | 33a6f20dc212ddbce5dbfa200b1c7fba448487c7 | |
parent | fa23f7d1016d388cf531d186046b16efee4465a1 [diff] |
pseq: Add power control dbus server interface Add the PowerInterface class which provides a server interface for the "org.openbmc.control.Power" dbus service. Update meson.build file to support. The "org.openbmc.control.Power" interface is currently used by the Chassis component to control power on and off as well as by a number of other OBMC applications which use the pgood property and associated signals to determine the power state of the system. Some desire to move to a "xyz.openbmc_project.control.Power" interface has been expressed. The following is a proposed plan to accomplish this: 1. Create a compatible "org.openbmc.control.Power" application (this commit). 2. Add "xyz..." interface to this application (future commit). 3. Begin transition of existing applications to new interface (future commits). Signed-off-by: Jim Wright <jlwright@us.ibm.com> Change-Id: Ia9a6bbb58b5e439623d3931426cb91cb8948da7a
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", }