PSUSensor: add SY24655 device
Summary:
# Description:
Add SY24655 in dbus-sensors
# Motivation:
- Support SY24655.
Test Plan:
- Check the corresponding sensors
# Test Log:
root@bmc:~# busctl introspect xyz.openbmc_project.EntityManager \
> .../Yosemite_4_Spider_Board/SPIDER_PMON_NIC0_12V
NAME RESULT/VALUE
org.freedesktop.DBus.Introspectable -
.Introspect s
org.freedesktop.DBus.Peer -
.GetMachineId s
.Ping -
org.freedesktop.DBus.Properties -
.Get v
.GetAll a{sv}
.Set -
.PropertiesChanged -
xyz.openbmc_project.Configuration.SY24655 -
.Address 65
.Bus 14
.Labels 3 "in0" "curr1" "power1"
.Name "SPIDER_PMON_NIC0_12V"
.Type "SY24655"
.curr1_Name "SPIDER_PMON_NIC0_12V_CURR_A"
.in0_Name "SPIDER_PMON_NIC0_12V_VOLT_V"
.power1_Name "SPIDER_PMON_NIC0_12V_PWR_W"
Change-Id: I79a2c004c2418f3e8582aef6aa59ae0193b05bac
Signed-off-by: Rush Chen <rush.chen.wiwynn@gmail.com>
diff --git a/src/psu/PSUSensorMain.cpp b/src/psu/PSUSensorMain.cpp
index 3f9997c..b06546a 100644
--- a/src/psu/PSUSensorMain.cpp
+++ b/src/psu/PSUSensorMain.cpp
@@ -129,6 +129,7 @@
{"RTQ6056", I2CDeviceType{"rtq6056", false}},
{"SBRMI", I2CDeviceType{"sbrmi", true}},
{"smpro_hwmon", I2CDeviceType{"smpro", false}},
+ {"SY24655", I2CDeviceType{"sy24655", true}},
{"TDA38640", I2CDeviceType{"tda38640", true}},
{"TPS53679", I2CDeviceType{"tps53679", true}},
{"TPS546D24", I2CDeviceType{"tps546d24", true}},