devices: add isl68137
The ISL68137 device is now tested and working
Adding to the device whitelist, so Entity Manager will recognize it
Following the existing model of devices already in whitelist
Adjusted whitespace in ExportTemplate array to pass clang-format
Tested: With corresponding patches elsewhere,
all ISL68137 devices on my system were recognized by entity-manager,
and showed up in the output of busctl.
Change-Id: I9159f97d8a3b5db85ecde5e41828e0b39dbb4dcf
Signed-off-by: Josh Lehan <krellan@google.com>
diff --git a/include/devices.hpp b/include/devices.hpp
index 3250422..e873500 100644
--- a/include/devices.hpp
+++ b/include/devices.hpp
@@ -37,46 +37,48 @@
};
const boost::container::flat_map<const char*, ExportTemplate, CmpStr>
- exportTemplates{
- {{"EEPROM", ExportTemplate("eeprom $Address",
- "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
- {"24C02", ExportTemplate("24c02 $Address",
+ exportTemplates{{
+ {"EEPROM", ExportTemplate("eeprom $Address",
"/sys/bus/i2c/devices/i2c-$Bus/new_device")},
- {"24C64", ExportTemplate("24c64 $Address",
+ {"24C02", ExportTemplate("24c02 $Address",
+ "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
+ {"24C64", ExportTemplate("24c64 $Address",
+ "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
+ {"Gpio", ExportTemplate("$Index", "/sys/class/gpio/export")},
+ {"PCA9543Mux",
+ ExportTemplate("pca9543 $Address",
+ "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
+ {"PCA9544Mux",
+ ExportTemplate("pca9544 $Address",
+ "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
+ {"PCA9545Mux",
+ ExportTemplate("pca9545 $Address",
+ "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
+ {"PCA9546Mux",
+ ExportTemplate("pca9546 $Address",
+ "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
+ {"MAX31725",
+ ExportTemplate("max31725 $Address",
+ "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
+ {"pmbus", ExportTemplate("pmbus $Address",
+ "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
+ {"MAX34451",
+ ExportTemplate("max34451 $Address",
+ "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
+ {"TMP75", ExportTemplate("tmp75 $Address",
+ "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
+ {"TMP175", ExportTemplate("tmp175 $Address",
"/sys/bus/i2c/devices/i2c-$Bus/new_device")},
- {"Gpio", ExportTemplate("$Index", "/sys/class/gpio/export")},
- {"PCA9543Mux",
- ExportTemplate("pca9543 $Address",
- "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
- {"PCA9544Mux",
- ExportTemplate("pca9544 $Address",
- "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
- {"PCA9545Mux",
- ExportTemplate("pca9545 $Address",
- "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
- {"PCA9546Mux",
- ExportTemplate("pca9546 $Address",
- "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
- {"MAX31725",
- ExportTemplate("max31725 $Address",
- "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
- {"pmbus", ExportTemplate("pmbus $Address",
+ {"TMP421", ExportTemplate("tmp421 $Address",
"/sys/bus/i2c/devices/i2c-$Bus/new_device")},
- {"MAX34451",
- ExportTemplate("max34451 $Address",
- "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
- {"TMP75", ExportTemplate("tmp75 $Address",
+ {"TMP441", ExportTemplate("tmp441 $Address",
"/sys/bus/i2c/devices/i2c-$Bus/new_device")},
- {"TMP175", ExportTemplate("tmp175 $Address",
+ {"EMC1413", ExportTemplate("emc1413 $Address",
"/sys/bus/i2c/devices/i2c-$Bus/new_device")},
- {"TMP421", ExportTemplate("tmp421 $Address",
- "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
- {"TMP441", ExportTemplate("tmp441 $Address",
- "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
- {"EMC1413",
- ExportTemplate("emc1413 $Address",
- "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
- {"TMP112",
- ExportTemplate("tmp112 $Address",
- "/sys/bus/i2c/devices/i2c-$Bus/new_device")}}};
+ {"TMP112", ExportTemplate("tmp112 $Address",
+ "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
+ {"ISL68137",
+ ExportTemplate("isl68137 $Address",
+ "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
+ }};
} // namespace devices