diff options
author | Potin Lai <potin.lai@quantatw.com> | 2022-10-21 12:03:24 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2022-10-24 23:46:10 +0300 |
commit | a63391b7f9e94d5e20a5174792e05fb0f5c4d1d7 (patch) | |
tree | b8bcda74dc7fc0e1429beb31e76bc4bcf7bcf902 /meta-facebook/meta-bletchley/recipes-phosphor | |
parent | c91af33ec15aafae83308343ec2824926fadeaac (diff) | |
download | openbmc-a63391b7f9e94d5e20a5174792e05fb0f5c4d1d7.tar.xz |
meta-bletchley: add ACPIPowerState interface
Add ACPIPowerState interface to phosphor-settings for each host.
Test Results:
```
root@bletchley:~# busctl call xyz.openbmc_project.ObjectMapper \
> /xyz/openbmc_project/object_mapper \
> xyz.openbmc_project.ObjectMapper GetSubTree sias / 0 1 \
> xyz.openbmc_project.Control.Power.ACPIPowerState -j
{
"type" : "a{sa{sas}}",
"data" : [
{
"/xyz/openbmc_project/control/host1/acpi_power_state" : {
"xyz.openbmc_project.Settings" : [
"org.freedesktop.DBus.Introspectable",
"org.freedesktop.DBus.Peer",
"org.freedesktop.DBus.Properties",
"xyz.openbmc_project.Control.Power.ACPIPowerState"
]
},
"/xyz/openbmc_project/control/host2/acpi_power_state" : {
"xyz.openbmc_project.Settings" : [
"org.freedesktop.DBus.Introspectable",
"org.freedesktop.DBus.Peer",
"org.freedesktop.DBus.Properties",
"xyz.openbmc_project.Control.Power.ACPIPowerState"
]
},
"/xyz/openbmc_project/control/host3/acpi_power_state" : {
"xyz.openbmc_project.Settings" : [
"org.freedesktop.DBus.Introspectable",
"org.freedesktop.DBus.Peer",
"org.freedesktop.DBus.Properties",
"xyz.openbmc_project.Control.Power.ACPIPowerState"
]
},
"/xyz/openbmc_project/control/host4/acpi_power_state" : {
"xyz.openbmc_project.Settings" : [
"org.freedesktop.DBus.Introspectable",
"org.freedesktop.DBus.Peer",
"org.freedesktop.DBus.Properties",
"xyz.openbmc_project.Control.Power.ACPIPowerState"
]
},
"/xyz/openbmc_project/control/host5/acpi_power_state" : {
"xyz.openbmc_project.Settings" : [
"org.freedesktop.DBus.Introspectable",
"org.freedesktop.DBus.Peer",
"org.freedesktop.DBus.Properties",
"xyz.openbmc_project.Control.Power.ACPIPowerState"
]
},
"/xyz/openbmc_project/control/host6/acpi_power_state" : {
"xyz.openbmc_project.Settings" : [
"org.freedesktop.DBus.Introspectable",
"org.freedesktop.DBus.Peer",
"org.freedesktop.DBus.Properties",
"xyz.openbmc_project.Control.Power.ACPIPowerState"
]
}
}
]
}
```
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Icd573faf69d818b394cccab223c56a260a55767c
Diffstat (limited to 'meta-facebook/meta-bletchley/recipes-phosphor')
2 files changed, 10 insertions, 0 deletions
diff --git a/meta-facebook/meta-bletchley/recipes-phosphor/settings/phosphor-settings-defaults-native.bbappend b/meta-facebook/meta-bletchley/recipes-phosphor/settings/phosphor-settings-defaults-native.bbappend new file mode 100644 index 0000000000..758d137f05 --- /dev/null +++ b/meta-facebook/meta-bletchley/recipes-phosphor/settings/phosphor-settings-defaults-native.bbappend @@ -0,0 +1,4 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" + +SRC_URI:append = " file://bletchley-host-acpi-power-state.yaml" +SETTINGS_HOST_TEMPLATES:append = " bletchley-host-acpi-power-state.yaml" diff --git a/meta-facebook/meta-bletchley/recipes-phosphor/settings/phosphor-settings-defaults-native/bletchley-host-acpi-power-state.yaml b/meta-facebook/meta-bletchley/recipes-phosphor/settings/phosphor-settings-defaults-native/bletchley-host-acpi-power-state.yaml new file mode 100644 index 0000000000..16b3d51019 --- /dev/null +++ b/meta-facebook/meta-bletchley/recipes-phosphor/settings/phosphor-settings-defaults-native/bletchley-host-acpi-power-state.yaml @@ -0,0 +1,6 @@ +/xyz/openbmc_project/control/host{}/acpi_power_state: +- Interface: "xyz.openbmc_project.Control.Power.ACPIPowerState" + Properties: + SysACPIStatus: + Default: ACPIPowerState::ACPI::Unknown + |