boards: m5stack_cores3: fix board configuration

This board has a few issues handled by this PR:
- Fix DTS entries to meet necessary flash partitions
- Fix wrong kconfig entries realted to SoC model

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
diff --git a/boards/m5stack/m5stack_cores3/Kconfig b/boards/m5stack/m5stack_cores3/Kconfig
index 0fa8261..26f6eed 100644
--- a/boards/m5stack/m5stack_cores3/Kconfig
+++ b/boards/m5stack/m5stack_cores3/Kconfig
@@ -1,21 +1,7 @@
 # Copyright (c) 2024 Zhang Xingtao <zhxt@live.cn>
 # SPDX-License-Identifier: Apache-2.0
 
-if BOARD_M5STACK_CORES3_ESP32S3_PROCPU
-
 config HEAP_MEM_POOL_ADD_SIZE_BOARD
 	int
-	default $(UINT16_MAX) if WIFI && BT
-	default 51200 if WIFI
-	default 40960 if BT
-	default 4096
-
-endif # BOARD_M5STACK_CORES3_ESP32S3_PROCPU
-
-if BOARD_M5STACK_CORES3_ESP32S3_APPCPU
-
-config HEAP_MEM_POOL_ADD_SIZE_BOARD
-	int
-	default 256
-
-endif # BOARD_M5STACK_CORES3_ESP32S3_APPCPU
+	default 4096 if BOARD_M5STACK_CORES3_ESP32S3_PROCPU
+	default 256 if BOARD_M5STACK_CORES3_ESP32S3_APPCPU
diff --git a/boards/m5stack/m5stack_cores3/Kconfig.sysbuild b/boards/m5stack/m5stack_cores3/Kconfig.sysbuild
new file mode 100644
index 0000000..3a2d17a
--- /dev/null
+++ b/boards/m5stack/m5stack_cores3/Kconfig.sysbuild
@@ -0,0 +1,10 @@
+# Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
+# SPDX-License-Identifier: Apache-2.0
+
+choice BOOTLOADER
+	default BOOTLOADER_MCUBOOT
+endchoice
+
+choice BOOT_SIGNATURE_TYPE
+	default BOOT_SIGNATURE_TYPE_NONE
+endchoice
diff --git a/boards/m5stack/m5stack_cores3/m5stack_cores3_appcpu.dts b/boards/m5stack/m5stack_cores3/m5stack_cores3_appcpu.dts
index 02b85a6..236ffd0 100644
--- a/boards/m5stack/m5stack_cores3/m5stack_cores3_appcpu.dts
+++ b/boards/m5stack/m5stack_cores3/m5stack_cores3_appcpu.dts
@@ -6,6 +6,8 @@
 /dts-v1/;
 
 #include <espressif/esp32s3/esp32s3_appcpu.dtsi>
+#include <espressif/partitions_0x0_amp.dtsi>
+#include "m5stack_cores3-pinctrl.dtsi"
 
 / {
 	model = "M5Stack CoreS3 APPCPU";
@@ -15,6 +17,8 @@
 		zephyr,sram = &sram0;
 		zephyr,ipc_shm = &shm0;
 		zephyr,ipc = &ipm0;
+		zephyr,flash = &flash0;
+		zephyr,code-partition = &slot0_appcpu_partition;
 	};
 };
 
@@ -25,42 +29,3 @@
 &trng0 {
 	status = "okay";
 };
-
-&flash0 {
-	status = "okay";
-	partitions {
-		compatible = "fixed-partitions";
-		#address-cells = <1>;
-		#size-cells = <1>;
-
-		/* Reserve 60kB for the bootloader */
-		boot_partition: partition@1000 {
-			label = "mcuboot";
-			reg = <0x00001000 0x0000F000>;
-			read-only;
-		};
-
-		/* Reserve 1024kB for the application in slot 0 */
-		slot0_partition: partition@10000 {
-			label = "image-0";
-			reg = <0x00010000 0x00100000>;
-		};
-
-		/* Reserve 1024kB for the application in slot 1 */
-		slot1_partition: partition@110000 {
-			label = "image-1";
-			reg = <0x00110000 0x00100000>;
-		};
-
-		/* Reserve 256kB for the scratch partition */
-		scratch_partition: partition@210000 {
-			   label = "image-scratch";
-			   reg = <0x00210000 0x00040000>;
-		};
-
-		storage_partition: partition@250000 {
-			label = "storage";
-			reg = <0x00250000 0x00006000>;
-		};
-	};
-};
diff --git a/boards/m5stack/m5stack_cores3/m5stack_cores3_procpu.dts b/boards/m5stack/m5stack_cores3/m5stack_cores3_procpu.dts
index 9ac36cb..2042ca2 100644
--- a/boards/m5stack/m5stack_cores3/m5stack_cores3_procpu.dts
+++ b/boards/m5stack/m5stack_cores3/m5stack_cores3_procpu.dts
@@ -6,7 +6,8 @@
 
 /dts-v1/;
 
-#include <espressif/esp32s3/esp32s3.dtsi>
+#include <espressif/esp32s3/esp32s3_wroom_n16r8.dtsi>
+#include <espressif/partitions_0x0_amp.dtsi>
 #include "m5stack_cores3-pinctrl.dtsi"
 
 / {
@@ -76,43 +77,6 @@
 	status = "okay";
 };
 
-&flash0 {
-	status = "okay";
-	reg = <0x0 DT_SIZE_M(16)>;
-
-	partitions {
-		compatible = "fixed-partitions";
-		#address-cells = <1>;
-		#size-cells = <1>;
-
-		boot_partition: partition@0 {
-			label = "mcuboot";
-			reg = <0x00000000 0x0000F000>;
-			read-only;
-		};
-
-		slot0_partition: partition@10000 {
-			label = "image-0";
-			reg = <0x00010000 0x00100000>;
-		};
-
-		slot1_partition: partition@110000 {
-			label = "image-1";
-			reg = <0x00110000 0x00100000>;
-		};
-
-		scratch_partition: partition@210000 {
-			label = "image-scratch";
-			reg = <0x00210000 0x00040000>;
-		};
-
-		storage_partition: partition@250000 {
-			label = "storage";
-			reg = <0x00250000 0x00006000>;
-		};
-	};
-};
-
 &esp32_bt_hci {
 	status = "okay";
 };