hsbp-manager: add drive presence and software version
This adds support for reading the sw version and drive
presence from the hsbp cpld.
Tested:
Version is available in redfish
root@intel-obmc:~# busctl tree xyz.openbmc_project.HsbpManager --no-pager
`-/xyz
`-/xyz/openbmc_project
|-/xyz/openbmc_project/inventory
| `-/xyz/openbmc_project/inventory/item
| |-/xyz/openbmc_project/inventory/item/drive
| | |-/xyz/openbmc_project/inventory/item/drive/Drive_1
| | |-/xyz/openbmc_project/inventory/item/drive/Drive_2
| | |-/xyz/openbmc_project/inventory/item/drive/Drive_3
| | |-/xyz/openbmc_project/inventory/item/drive/Drive_4
| | |-/xyz/openbmc_project/inventory/item/drive/Drive_5
| | |-/xyz/openbmc_project/inventory/item/drive/Drive_6
| | |-/xyz/openbmc_project/inventory/item/drive/Drive_7
| | `-/xyz/openbmc_project/inventory/item/drive/Drive_8
| `-/xyz/openbmc_project/inventory/item/hsbp
| `-/xyz/openbmc_project/inventory/item/hsbp/J85894_HSBP_1
root@intel-obmc:~# busctl introspect xyz.openbmc_project.HsbpManager /xyz/openbmc_project/inventory/item/hsbp/J85894_HSBP_1 --no-pager
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
org.freedesktop.DBus.Introspectable interface - - -
.Introspect method - s -
org.freedesktop.DBus.Peer interface - - -
.GetMachineId method - s -
.Ping method - - -
org.freedesktop.DBus.Properties interface - - -
.Get method ss v -
.GetAll method s a{sv} -
.Set method ssv - -
.PropertiesChanged signal sa{sv}as - -
xyz.openbmc_project.Inventory.Item interface - - -
.Present property b true emits-change
.PrettyName property s "J85894 HSBP 1" emits-change
xyz.openbmc_project.Software.Version interface - - -
.Version property s "00.02.01" emits-change
.Purpose property s "xyz.openbmc_project.Software.Version... emits-change
Change-Id: I73fd2669f4a0e9b8e499107a960f2169f63873e3
Signed-off-by: James Feist <james.feist@linux.intel.com>
1 file changed