boards: opta: device tree cleanup

Some changes to cleanup and clarify some device tree nodes:

* removed wrong sdram2 definition
* added all internal flash slots accessible from M4
* added all internal flash slots accessible from M7
* removed CONFIG_UART_LINE_CTRL because not needed by USB CDC ACM

Signed-off-by: Federico Di Gregorio <fog@dndg.it>
diff --git a/boards/arduino/opta/arduino_opta_stm32h747xx_m4.dts b/boards/arduino/opta/arduino_opta_stm32h747xx_m4.dts
index e282575..ea58687 100644
--- a/boards/arduino/opta/arduino_opta_stm32h747xx_m4.dts
+++ b/boards/arduino/opta/arduino_opta_stm32h747xx_m4.dts
@@ -18,7 +18,7 @@
 	chosen {
 		zephyr,sram = &sram1;
 		zephyr,flash = &flash1;
-		zephyr,code-partition = &slot0_partition;
+		zephyr,code-partition = &slot1_partition;
 	};
 };
 
@@ -28,7 +28,12 @@
 		#address-cells = <1>;
 		#size-cells = <1>;
 
-		slot0_partition: partition@80000 {
+		slot0_partition: partition@0 {
+			label = "unused";
+			reg = <0x00000000 DT_SIZE_K(512)>;
+		};
+
+		slot1_partition: partition@80000 {
 			label = "image-0";
 			reg = <0x00080000 DT_SIZE_K(512)>;
 		};
diff --git a/boards/arduino/opta/arduino_opta_stm32h747xx_m7.dts b/boards/arduino/opta/arduino_opta_stm32h747xx_m7.dts
index 7ddf514..cc408d4 100644
--- a/boards/arduino/opta/arduino_opta_stm32h747xx_m7.dts
+++ b/boards/arduino/opta/arduino_opta_stm32h747xx_m7.dts
@@ -23,14 +23,6 @@
 		zephyr,flash = &flash0;
 		zephyr,code-partition = &slot0_partition;
 	};
-
-	sdram2: sdram@d0000000 {
-		compatible = "zephyr,memory-region", "mmio-sram";
-		device_type = "memory";
-		reg = <0xd0000000 DT_SIZE_M(32)>;
-		zephyr,memory-region = "SDRAM2";
-		zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_RAM) )>;
-	};
 };
 
 zephyr_udc0: &usbotg_fs {
@@ -86,6 +78,12 @@
 		#address-cells = <1>;
 		#size-cells = <1>;
 
+		boot_partition: partition@0 {
+			label = "mcu-boot";
+			reg = <0x00000000 DT_SIZE_K(256)>;
+			read-only;
+		};
+
 		slot0_partition: partition@40000 {
 			label = "image-0";
 			reg = <0x00040000 DT_SIZE_K(768)>;
diff --git a/boards/arduino/opta/arduino_opta_stm32h747xx_m7_defconfig b/boards/arduino/opta/arduino_opta_stm32h747xx_m7_defconfig
index dcb6d1e..7440b21 100644
--- a/boards/arduino/opta/arduino_opta_stm32h747xx_m7_defconfig
+++ b/boards/arduino/opta/arduino_opta_stm32h747xx_m7_defconfig
@@ -27,7 +27,6 @@
 CONFIG_SERIAL=y
 CONFIG_CONSOLE=y
 CONFIG_UART_CONSOLE=y
-CONFIG_UART_LINE_CTRL=y
 
 # Enable USB Stack (needed for the console to work)
 CONFIG_USB_DEVICE_STACK=y