[PATCH v3 0/4] Add support for devices in the Energy Model