Add device tree overlay for Coral Boards, compile.

* Adds device tree overlay (compiled and source) for both platforms.
* RPi is expected to not need this (included on HAT EEPROM).
* Coral boards can add the dtbo to their overlays.txt to load on boot.

Change-Id: Ibc68008b24537205182db62aa40bdd6e335a6564
diff --git a/coral-enviro-devicetree/README b/coral-enviro-devicetree/README
index fc73f44..aa96282 100644
--- a/coral-enviro-devicetree/README
+++ b/coral-enviro-devicetree/README
@@ -1,11 +1,24 @@
 This device tree overlay is provided to enable the functionality of the Coral
-Environmental Sensor Board. It is already included on the HAT EEPROM included
-with the board.
+Environmental Sensor Board.
 
+For Raspberry Pi platforms:
+
+The included EEPROM is already flashed with this overlay. No additional steps are needed.
 If customization of the blob is desired, dtc is used to compile the overlay:
-dtc -@ -I dts -O dtb -o coral-enviro-board-overlay.dtbo coral-enviro-board-overlay.dts
+dtc -@ -I dts -O dtb -o coral-enviro-board.dtbo coral-enviro-board.dts
 
 It is also possible to overwrite the EEPROM. In order to do this:
 1) Short JP1 (a solder bridge) to unlock the EEPROM.
 2) Enable I2C0 access (add dtparam=i2c0=on to config.txt in the boot partiton).
 3) Rebuild and flash following instructions at https://github.com/raspberrypi/hats/tree/master/eepromutils
+
+
+For Coral platforms:
+
+The overlay can be put in the boot folder in order to automatically load on boot.
+Once added to /boot, modify overlays.txt to add coral-enviro-board
+(e.g overlays=coral-enviro-board).
+
+If customization of the blob is desired, dtc is used to compile the overlay:
+dtc -@ -I dts -O dtb -o coral-enviro-board.dtbo coral-enviro-board.dts
+
diff --git a/coral-enviro-devicetree/coral-enviro-board.dtbo b/coral-enviro-devicetree/coral-enviro-board.dtbo
new file mode 100644
index 0000000..500600d
--- /dev/null
+++ b/coral-enviro-devicetree/coral-enviro-board.dtbo
Binary files differ
diff --git a/coral-enviro-devicetree/coral-enviro-board-overlay.dts b/coral-enviro-devicetree/coral-enviro-board.dts
similarity index 79%
copy from coral-enviro-devicetree/coral-enviro-board-overlay.dts
copy to coral-enviro-devicetree/coral-enviro-board.dts
index 7a460bc..1a305de 100644
--- a/coral-enviro-devicetree/coral-enviro-board-overlay.dts
+++ b/coral-enviro-devicetree/coral-enviro-board.dts
@@ -1,5 +1,5 @@
 /*
- * coral-enviro-board-overlay.dts
+ * coral-enviro-board.dts
  * Device Tree Overlay to support Coral Environmental Sensor Board
  *
  * Copyright (C) 2019 Google LLC
@@ -20,10 +20,10 @@
 /plugin/;
 
 / {
-	compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
+	compatible = "fsl,imx8mq-phanbell", "fsl,imx8mq";
 
 	fragment@0 {
-		target = <&i2c_arm>;
+		target-path = "/i2c@30a30000";
 		__overlay__ {
 			#address-cells = <1>;
 			#size-cells = <0>;
@@ -32,9 +32,6 @@
 			opt3002@44 {
 				compatible = "ti,opt3001";
 				reg = <0x45>; /* address */
-				interrupt-parent = <&gpio>;
-				interrupts = <27 2>; /* IRQ_TYPE_EDGE_FALLING */
-				#gpio-cells = <2>;
 			};
 
 			hdc2010@40 {
@@ -60,12 +57,5 @@
 			};
 		};
 	};
-
-	fragment@1 {
-		target = <&spi0>;
-		__overlay__ {
-			status = "okay";
-		};
-	};
 };
 
diff --git a/coral-enviro-devicetree/rpi-enviro-board.dtbo b/coral-enviro-devicetree/rpi-enviro-board.dtbo
new file mode 100644
index 0000000..3ba31df
--- /dev/null
+++ b/coral-enviro-devicetree/rpi-enviro-board.dtbo
Binary files differ
diff --git a/coral-enviro-devicetree/coral-enviro-board-overlay.dts b/coral-enviro-devicetree/rpi-enviro-board.dts
similarity index 97%
rename from coral-enviro-devicetree/coral-enviro-board-overlay.dts
rename to coral-enviro-devicetree/rpi-enviro-board.dts
index 7a460bc..821733d 100644
--- a/coral-enviro-devicetree/coral-enviro-board-overlay.dts
+++ b/coral-enviro-devicetree/rpi-enviro-board.dts
@@ -1,5 +1,5 @@
 /*
- * coral-enviro-board-overlay.dts
+ * rpi-enviro-board.dts
  * Device Tree Overlay to support Coral Environmental Sensor Board
  *
  * Copyright (C) 2019 Google LLC