Add overlay logic to Entity Manager
Generate overlays and fixup symbols to map virtual i2c
busses to muxes. Also scan muxes in order as they seem
to get confused if we scan them out of order.
Change-Id: Iec3ed49fca22db8537e4474d9d95cab2da574aef
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/overlay_templates/pmbus.template b/overlay_templates/pmbus.template
new file mode 100644
index 0000000..11d2338
--- /dev/null
+++ b/overlay_templates/pmbus.template
@@ -0,0 +1,18 @@
+/dts-v1/;
+/plugin/;
+/ {
+ compatible = "$platform";
+ fragment@0{
+ target = <&i2c$bus>;
+ __overlay__{
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";
+ pmbus@$name {
+ compatible = "pmbus";
+ reg = <$address>;
+ oemname1 = "$name";
+ };
+ };
+ };
+};