dbus-sensors: Add new psu sensor labels and sensor type
The new type ADS7830 psu sensor is used in our machine.
Add ADS7830 sensor labels and type to dbus-sensor.
Tested:Combined with related driver and entity-manager changes;
sensors properly show up in IPMI sensors.
Tested on Quanta S6Q platform.
Signed-off-by: Tim Chao <Tim.Chao@quantatw.com>
Change-Id: I90979d1c9b74e2e704f42e946a343aeb537a8bb6
diff --git a/src/PSUSensorMain.cpp b/src/PSUSensorMain.cpp
index 2933c70..1377128 100644
--- a/src/PSUSensorMain.cpp
+++ b/src/PSUSensorMain.cpp
@@ -45,6 +45,7 @@
"xyz.openbmc_project.Configuration.ADM1272",
"xyz.openbmc_project.Configuration.ADM1275",
"xyz.openbmc_project.Configuration.ADM1278",
+ "xyz.openbmc_project.Configuration.ADS7830",
"xyz.openbmc_project.Configuration.BMR490",
"xyz.openbmc_project.Configuration.DPS800",
"xyz.openbmc_project.Configuration.INA219",
@@ -78,6 +79,7 @@
"adm1272",
"adm1275",
"adm1278",
+ "ads7830",
"bmr490",
"dps800",
"ina219",
@@ -996,7 +998,14 @@
{"vout31", PSUProperty("Output Voltage", 255, 0, 3, 0)},
{"vout32", PSUProperty("Output Voltage", 255, 0, 3, 0)},
{"vmon", PSUProperty("Auxiliary Input Voltage", 255, 0, 3, 0)},
+ {"in0", PSUProperty("Output Voltage", 255, 0, 3, 0)},
{"in1", PSUProperty("Output Voltage", 255, 0, 3, 0)},
+ {"in2", PSUProperty("Output Voltage", 255, 0, 3, 0)},
+ {"in3", PSUProperty("Output Voltage", 255, 0, 3, 0)},
+ {"in4", PSUProperty("Output Voltage", 255, 0, 3, 0)},
+ {"in5", PSUProperty("Output Voltage", 255, 0, 3, 0)},
+ {"in6", PSUProperty("Output Voltage", 255, 0, 3, 0)},
+ {"in7", PSUProperty("Output Voltage", 255, 0, 3, 0)},
{"iin", PSUProperty("Input Current", 20, 0, 3, 0)},
{"iout1", PSUProperty("Output Current", 255, 0, 3, 0)},
{"iout2", PSUProperty("Output Current", 255, 0, 3, 0)},