entity-manager: Add dps310 and si7020 devices
Add support for dps310 and si7020 type.
Tested:
Entity-manager can instantiate dps310 and si7020. The iio
directory and its sysfs entries, e.g., in_temp_xxx, in_pressure_xxx,
and in_humidityrelative_xxx are created successfully.
Signed-off-by: Bruce Mitchell <bruce.mitchell@linux.vnet.ibm.com>
Change-Id: Ice2b7e03dc6fdda668cc8069057c3a7748a52aeb
diff --git a/include/devices.hpp b/include/devices.hpp
index 3b24c2f..1560381 100644
--- a/include/devices.hpp
+++ b/include/devices.hpp
@@ -60,6 +60,12 @@
{"ADM1272",
ExportTemplate("adm1272 $Address", "/sys/bus/i2c/devices/i2c-$Bus",
"new_device", "delete_device", false)},
+ {"DPS310",
+ ExportTemplate("dps310 $Address", "/sys/bus/i2c/devices/i2c-$Bus",
+ "new_device", "delete_device", false)},
+ {"SI7020",
+ ExportTemplate("si7020 $Address", "/sys/bus/i2c/devices/i2c-$Bus",
+ "new_device", "delete_device", false)},
{"EEPROM",
ExportTemplate("eeprom $Address", "/sys/bus/i2c/devices/i2c-$Bus",
"new_device", "delete_device", false)},