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>
This commit is contained in:
Federico Di Gregorio 2024-10-18 17:54:05 +02:00 committed by Anas Nashif
commit 32309f8124
3 changed files with 13 additions and 11 deletions

View file

@ -18,7 +18,7 @@
chosen { chosen {
zephyr,sram = &sram1; zephyr,sram = &sram1;
zephyr,flash = &flash1; zephyr,flash = &flash1;
zephyr,code-partition = &slot0_partition; zephyr,code-partition = &slot1_partition;
}; };
}; };
@ -28,7 +28,12 @@
#address-cells = <1>; #address-cells = <1>;
#size-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"; label = "image-0";
reg = <0x00080000 DT_SIZE_K(512)>; reg = <0x00080000 DT_SIZE_K(512)>;
}; };

View file

@ -23,14 +23,6 @@
zephyr,flash = &flash0; zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition; 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 { zephyr_udc0: &usbotg_fs {
@ -86,6 +78,12 @@ zephyr_udc0: &usbotg_fs {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
boot_partition: partition@0 {
label = "mcu-boot";
reg = <0x00000000 DT_SIZE_K(256)>;
read-only;
};
slot0_partition: partition@40000 { slot0_partition: partition@40000 {
label = "image-0"; label = "image-0";
reg = <0x00040000 DT_SIZE_K(768)>; reg = <0x00040000 DT_SIZE_K(768)>;

View file

@ -27,7 +27,6 @@ CONFIG_STM32H7_BOOT_M4_AT_INIT=n
CONFIG_SERIAL=y CONFIG_SERIAL=y
CONFIG_CONSOLE=y CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y CONFIG_UART_CONSOLE=y
CONFIG_UART_LINE_CTRL=y
# Enable USB Stack (needed for the console to work) # Enable USB Stack (needed for the console to work)
CONFIG_USB_DEVICE_STACK=y CONFIG_USB_DEVICE_STACK=y