hwmontempsensor: add support for tmp411 temp sensors
tmp411 support is handled with the tmp401 driver[1]
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fce0758f5990b34af4ffba589b23f25c700beb2f
TESTED:
Confirmed sensors of these types are initialized and
picked up by HwmonTempSensor daemon on a live system with OBMC.
'''
> busctl tree xyz.openbmc_project.HwmonTempSensor
`- /xyz
`- /xyz/openbmc_project
`- /xyz/openbmc_project/sensors
`- /xyz/openbmc_project/sensors/temperature
|- /xyz/openbmc_project/sensors/temperature/TMP411__i2c_dev_49_004c
'''
'''
>busctl introspect xyz.openbmc_project.HwmonTempSensor /xyz/openbmc_project/sensors/temperature/TMP411__i2c_dev_49_004c
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
org.freedesktop.DBus.Introspectable interface - - -
.Introspect method - s -
...
xyz.openbmc_project.Sensor.Value interface - - -
.MaxValue property d 127 emits-change
.MinValue property d -128 emits-change
.Unit property s "xyz.openbmc_project.Sensor.Value.Uni... emits-change
.Value property d 24.078 emits-change
...
'''
Change-Id: I1322b2ed968cb8fb97082caaddbf55dfcae47cb2
Signed-off-by: Chris Sides <Christopher.Sides@hpe.com>
diff --git a/src/hwmon-temp/HwmonTempMain.cpp b/src/hwmon-temp/HwmonTempMain.cpp
index 0074900..fe4f5b8 100644
--- a/src/hwmon-temp/HwmonTempMain.cpp
+++ b/src/hwmon-temp/HwmonTempMain.cpp
@@ -87,6 +87,7 @@
{"TMP100", I2CDeviceType{"tmp100", true}},
{"TMP112", I2CDeviceType{"tmp112", true}},
{"TMP175", I2CDeviceType{"tmp175", true}},
+ {"TMP411", I2CDeviceType{"tmp411", true}},
{"TMP421", I2CDeviceType{"tmp421", true}},
{"TMP432", I2CDeviceType{"tmp432", true}},
{"TMP441", I2CDeviceType{"tmp441", true}},