Add EVT2 overlay dts

Change memory config to 2G in overlay so we can support both 1G and 2G.

Change-Id: I4d3377948b5e64b2eff7e468d4732d789e86ec9a
diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/mediatek/Makefile
index 509111f..1eb3d72 100644
--- a/arch/arm64/boot/dts/mediatek/Makefile
+++ b/arch/arm64/boot/dts/mediatek/Makefile
@@ -6,6 +6,7 @@
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt6797-x20-dev.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt7622-rfb1.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8167-coral.dtb
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt8167-coral-overlay.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8167-pumpkin.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8173-evb.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8183-evb.dtb
diff --git a/arch/arm64/boot/dts/mediatek/mt8167-coral-overlay.dts b/arch/arm64/boot/dts/mediatek/mt8167-coral-overlay.dts
new file mode 100644
index 0000000..a9e0b9d
--- /dev/null
+++ b/arch/arm64/boot/dts/mediatek/mt8167-coral-overlay.dts
@@ -0,0 +1,13 @@
+// Set EVT2 config
+/dts-v1/;
+/plugin/;
+
+/ {
+	compatible = "mediatek,mt8167";
+	fragment@0 {
+		target = <&memory>;
+			__overlay__ {
+				reg = <0 0x40000000 0 0x80000000>;
+			};
+	};
+};
diff --git a/arch/arm64/boot/dts/mediatek/mt8167-coral.dts b/arch/arm64/boot/dts/mediatek/mt8167-coral.dts
index 06fad56..eb7862d 100644
--- a/arch/arm64/boot/dts/mediatek/mt8167-coral.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8167-coral.dts
@@ -22,7 +22,7 @@
 		stdout-path = "serial0:921600n8";
 	};
 
-	memory@40000000 {
+	memory: memory@40000000 {
 		device_type = "memory";
 		reg = <0 0x40000000 0 0x40000000>;
 	};
@@ -209,6 +209,11 @@
 			pinmux = <MT8167_PIN_38_MRG_DI__FUNC_GPIO38>;
 			output-low;
 		};
+
+		pins_sys_rst {
+			pinmux = <MT8167_PIN_47_JTDO__FUNC_GPIO47>;
+			output-high;
+		};
 	};
 
 	mmc1_pins_uhs: mmc1@0 {
@@ -238,6 +243,11 @@
 			pinmux = <MT8167_PIN_38_MRG_DI__FUNC_GPIO38>;
 			output-low;
 		};
+
+		pins_sys_rst {
+			pinmux = <MT8167_PIN_47_JTDO__FUNC_GPIO47>;
+			output-high;
+		};
 	};
 
 	mmc2_pins_default: mmc2default {