commit | d4fad16ea7ab8c953aaf526f3e6fc086f880b2bf | [log] [tgz] |
---|---|---|
author | Shounak Mitra <shounak@google.com> | Mon Aug 08 21:53:41 2022 +0000 |
committer | Shounak Mitra <shounak@google.com> | Tue Aug 09 15:53:53 2022 +0000 |
tree | af8ab8349261b780ee0ef9c0dd5ac1ba73ce90d1 | |
parent | fd26ad1e38942d2b5008c40b29e89bc7d233ed94 [diff] |
inventory: sensors: Document related inventory association This change just adds the associations that are already documented here to the YAML: https://github.com/openbmc/docs/blob/master/architecture/sensor-architecture.md#association-type-2-linking-a-low-level-hardware-item-to-its-sensors Change-Id: I4dd23e842a6dd7e702f372efd0f192d28bfbf13b Signed-off-by: Shounak Mitra <shounak@google.com>
diff --git a/yaml/xyz/openbmc_project/Sensor/Value.interface.yaml b/yaml/xyz/openbmc_project/Sensor/Value.interface.yaml index fcfd47e..77cef58 100644 --- a/yaml/xyz/openbmc_project/Sensor/Value.interface.yaml +++ b/yaml/xyz/openbmc_project/Sensor/Value.interface.yaml
@@ -90,3 +90,13 @@ - name: Watts description: > Rate of energy transfer as Watts. + +associations: + - name: inventory + description: > + Sensors may implement an 'inventory' to 'sensors' association with + the inventory item related to it. + reverse_names: + - sensors + required_endpoint_interfaces: + - xyz.openbmc_project.Inventory.Item \ No newline at end of file