Skip to content

Commit 32309f8

Browse files
fogzotnashif
authored andcommitted
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 <[email protected]>
1 parent cf45ab8 commit 32309f8

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

boards/arduino/opta/arduino_opta_stm32h747xx_m4.dts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
chosen {
1919
zephyr,sram = &sram1;
2020
zephyr,flash = &flash1;
21-
zephyr,code-partition = &slot0_partition;
21+
zephyr,code-partition = &slot1_partition;
2222
};
2323
};
2424

@@ -28,7 +28,12 @@
2828
#address-cells = <1>;
2929
#size-cells = <1>;
3030

31-
slot0_partition: partition@80000 {
31+
slot0_partition: partition@0 {
32+
label = "unused";
33+
reg = <0x00000000 DT_SIZE_K(512)>;
34+
};
35+
36+
slot1_partition: partition@80000 {
3237
label = "image-0";
3338
reg = <0x00080000 DT_SIZE_K(512)>;
3439
};

boards/arduino/opta/arduino_opta_stm32h747xx_m7.dts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@
2323
zephyr,flash = &flash0;
2424
zephyr,code-partition = &slot0_partition;
2525
};
26-
27-
sdram2: sdram@d0000000 {
28-
compatible = "zephyr,memory-region", "mmio-sram";
29-
device_type = "memory";
30-
reg = <0xd0000000 DT_SIZE_M(32)>;
31-
zephyr,memory-region = "SDRAM2";
32-
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_RAM) )>;
33-
};
3426
};
3527

3628
zephyr_udc0: &usbotg_fs {
@@ -86,6 +78,12 @@ zephyr_udc0: &usbotg_fs {
8678
#address-cells = <1>;
8779
#size-cells = <1>;
8880

81+
boot_partition: partition@0 {
82+
label = "mcu-boot";
83+
reg = <0x00000000 DT_SIZE_K(256)>;
84+
read-only;
85+
};
86+
8987
slot0_partition: partition@40000 {
9088
label = "image-0";
9189
reg = <0x00040000 DT_SIZE_K(768)>;

boards/arduino/opta/arduino_opta_stm32h747xx_m7_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ CONFIG_STM32H7_BOOT_M4_AT_INIT=n
2727
CONFIG_SERIAL=y
2828
CONFIG_CONSOLE=y
2929
CONFIG_UART_CONSOLE=y
30-
CONFIG_UART_LINE_CTRL=y
3130

3231
# Enable USB Stack (needed for the console to work)
3332
CONFIG_USB_DEVICE_STACK=y

0 commit comments

Comments
 (0)