Skip to content

Commit 4c937fd

Browse files
fabiobaltieriMaureenHelm
authored andcommitted
boards: stm32: set compatible and name for sdram nodes
Add the compatible property to the board level sdram nodes in few stm32 dts files so that the zephyr,memory-region name is used correctly in the linker script. Signed-off-by: Fabio Baltieri <[email protected]>
1 parent 2bc9cb4 commit 4c937fd

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

boards/arm/stm32f429i_disc1/stm32f429i_disc1.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
};
2323

2424
sdram2: sdram@d0000000 {
25+
compatible = "mmio-sram";
2526
device_type = "memory";
2627
reg = <0xd0000000 DT_SIZE_M(8)>;
2728
zephyr,memory-region = "SDRAM2";

boards/arm/stm32f769i_disco/stm32f769i_disco.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@
2323
};
2424

2525
sdram1: sdram@c0000000 {
26+
compatible = "mmio-sram";
2627
device_type = "memory";
2728
reg = <0xc0000000 DT_SIZE_M(16)>;
29+
zephyr,memory-region = "SDRAM1";
2830
};
2931

3032
leds {

boards/arm/stm32h747i_disco/stm32h747i_disco_m7.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
};
2323

2424
sdram2: sdram@d0000000 {
25+
compatible = "mmio-sram";
2526
device_type = "memory";
2627
reg = <0xd0000000 DT_SIZE_M(32)>;
2728
zephyr,memory-region = "SDRAM2";

dts/bindings/memory-controllers/st,stm32-fmc-sdram.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,17 @@ description: |
5656
memory device/s in DeviceTree:
5757
5858
sdram1: sdram@c0000000 {
59+
compatible = "mmio-sram";
5960
device_type = "memory";
6061
reg = <0xc000000 DT_SIZE_M(X)>;
62+
zephyr,memory-region = "SDRAM1";
6163
};
6264
6365
sdram2: sdram@d0000000 {
66+
compatible = "mmio-sram";
6467
device_type = "memory";
6568
reg = <0xd000000 DT_SIZE_M(X)>;
69+
zephyr,memory-region = "SDRAM2";
6670
};
6771
6872
It is important to use sdram1 and sdram2 node labels for bank 1 and bank 2

0 commit comments

Comments
 (0)