diff options
author | George Liu <liuxiwei@inspur.com> | 2019-11-05 06:46:52 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2019-11-07 17:34:17 +0300 |
commit | f5979b9b7f1394f2f1f9eef75fca4d1f096c9ebf (patch) | |
tree | f5201300b921167787a75d6c206f47b0f611edac /meta-inspur/meta-fp5280g2/recipes-phosphor/power/phosphor-power/obmc/power-supply-monitor | |
parent | de8857e9085a1871fc523ebdcfbe445e8e4da979 (diff) | |
download | openbmc-f5979b9b7f1394f2f1f9eef75fca4d1f096c9ebf.tar.xz |
fp5280g2: Add phosphor-power recipe
Add psu.json and power-supply-monitor-*.conf for fp5280g2.
Parsed PSUs asset information via pmbus driver and exposed properties to
D-BUS interface.
Tested: Verified and built successfully on fp5280g2 and obtained correct
PSUs asset information by busctl command.
busctl --no-pager introspect xyz.openbmc_project.Inventory.Manager
/xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply0
xyz.openbmc_project.Inventory.Decorator.Asset interface - - -
.BuildDate property s "" emits-change writable
.Manufacturer property s "" emits-change writable
.Model property s "PS-2162-5L" emits-change writable
.PartNumber property s "" emits-change writable
.SerialNumber property s "6L5LX01173722Z" emits-change writable
xyz.openbmc_project.Inventory.Item interface - - -
.Present property b true emits-change writable
.PrettyName property s "powersupply0" emits-change writable
xyz.openbmc_project.Inventory.Item.PowerSupply interface - - -
xyz.openbmc_project.Software.Version interface - - -
.Purpose property s "xyz.openbmc_project.Software.Version.V… emits-change writable
.Version property s "1.000-1.00" emits-change writable
(From meta-inspur rev: da7f477ed1ae83cabc291349ee6609ca1890caf5)
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Ifaad67483f7429223d2066ca233ede58dfbc3149
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-inspur/meta-fp5280g2/recipes-phosphor/power/phosphor-power/obmc/power-supply-monitor')
2 files changed, 6 insertions, 0 deletions
diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/power/phosphor-power/obmc/power-supply-monitor/power-supply-monitor-0.conf b/meta-inspur/meta-fp5280g2/recipes-phosphor/power/phosphor-power/obmc/power-supply-monitor/power-supply-monitor-0.conf new file mode 100644 index 000000000..fa80045e6 --- /dev/null +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/power/phosphor-power/obmc/power-supply-monitor/power-supply-monitor-0.conf @@ -0,0 +1,3 @@ +DEVPATH=/sys/bus/i2c/devices/11-0058 +INSTANCE=0 +INVENTORY=/system/chassis/motherboard/powersupply0 diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/power/phosphor-power/obmc/power-supply-monitor/power-supply-monitor-1.conf b/meta-inspur/meta-fp5280g2/recipes-phosphor/power/phosphor-power/obmc/power-supply-monitor/power-supply-monitor-1.conf new file mode 100644 index 000000000..de4b1194f --- /dev/null +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/power/phosphor-power/obmc/power-supply-monitor/power-supply-monitor-1.conf @@ -0,0 +1,3 @@ +DEVPATH=/sys/bus/i2c/devices/11-0059 +INSTANCE=1 +INVENTORY=/system/chassis/motherboard/powersupply1 |