Create sensors for DIMM DVFS temps

Like it does for the processor, the OCC also sends down the throttle
(DVFS) temperatures for all of the DIMM related temp sensors in the
'_max' sysfs files.

This commit makes D-Bus sensors out of them as well so that fan control
can use them.

They are named:
- dimm_intmb_dvfs_temp
- dimm_dram_dvfs_temp
- dimm_dram_extmb_dvfs_temp
- dimm_pmic_dvfs_temp
- dimm_extmb_dvfs_temp}

Tested:
On a Rainier 2U with 3 types of DIMM temps available:
$ busctl get-property org.open_power.OCC.Control
/xyz/openbmc_project/sensors/temperature/dimm_dram_dvfs_temp
xyz.openbmc_project.Sensor.Value Value
d 69

$ busctl get-property org.open_power.OCC.Control
/xyz/openbmc_project/sensors/temperature/dimm_pmic_dvfs_temp
xyz.openbmc_project.Sensor.Value Value
d 85

$ busctl get-property org.open_power.OCC.Control
/xyz/openbmc_project/sensors/temperature/dimm_intmb_dvfs_temp
xyz.openbmc_project.Sensor.Value Value
d 89

Change-Id: Ia4417fa05dc2ecef1a54110c639a8ef51891b272
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/occ_manager.cpp b/occ_manager.cpp
index 700b7af..9bd83ea 100644
--- a/occ_manager.cpp
+++ b/occ_manager.cpp
@@ -850,6 +850,9 @@
 
                 sensorPath.append("dimm" + std::to_string(instanceID) +
                                   iter->second);
+
+                dvfsTempPath = std::string{OCC_SENSORS_ROOT} + "/temperature/" +
+                               dimmDVFSSensorName.at(fruTypeValue);
             }
             else if (type == OCC_CPU_TEMP_SENSOR_TYPE)
             {
diff --git a/occ_manager.hpp b/occ_manager.hpp
index a713507..efd62c0 100644
--- a/occ_manager.hpp
+++ b/occ_manager.hpp
@@ -418,6 +418,14 @@
         {memCtrlAndDimm, "_dram_extmb_temp"},
         {PMIC, "_pmic_temp"},
         {memCtlrExSensor, "_extmb_temp"}};
+
+    /** @brief The dimm DVFS temperature sensor names map  */
+    const std::map<uint32_t, std::string> dimmDVFSSensorName = {
+        {internalMemCtlr, "dimm_intmb_dvfs_temp"},
+        {dimm, "dimm_dram_dvfs_temp"},
+        {memCtrlAndDimm, "dimm_dram_extmb_dvfs_temp"},
+        {PMIC, "dimm_pmic_dvfs_temp"},
+        {memCtlrExSensor, "dimm_extmb_dvfs_temp"}};
 #endif
 
     /** @brief Read the altitude from DBus */