nicole: phosphor-ipmi-host: add vbat sensor
This brings the VBAT sensor to the sensor's list shown by the
`ipmitool sensor` command.
End-User-Impact: The `ipmitool sensor` command will now contain the VBAT
sensor.
Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
Change-Id: I6465a2d6386bf6cd271763de678cae1ee086d6ee
diff --git a/meta-yadro/meta-nicole/recipes-phosphor/configuration/nicole-yaml-config/nicole-ipmi-sensors.yaml b/meta-yadro/meta-nicole/recipes-phosphor/configuration/nicole-yaml-config/nicole-ipmi-sensors.yaml
index 20b3a4e..d12d339 100644
--- a/meta-yadro/meta-nicole/recipes-phosphor/configuration/nicole-yaml-config/nicole-ipmi-sensors.yaml
+++ b/meta-yadro/meta-nicole/recipes-phosphor/configuration/nicole-yaml-config/nicole-ipmi-sensors.yaml
@@ -739,3 +739,24 @@
sensorReadingType: 111
sensorType: 31
serviceInterface: org.freedesktop.DBus.Properties
+
+254:
+ sensorType: 2
+ path: /xyz/openbmc_project/sensors/voltage/vbat
+ sensorReadingType: 1
+ # This gives the measurement 1.800..3.585 volts with a step 0.007
+ multiplierM: 7
+ offsetB: 18
+ bExp: 2
+ rExp: -3
+ scale: 0
+ unit: xyz.openbmc_project.Sensor.Value.Unit.Volts
+ mutability: Mutability::Read
+ readingType: readingData
+ serviceInterface: org.freedesktop.DBus.Properties
+ interfaces:
+ xyz.openbmc_project.Sensor.Value:
+ Value:
+ Offsets:
+ 255:
+ type: double