Skip to content

Commit 6bcdcc3

Browse files
danieldegrassecarlescufi
authored andcommitted
dts: nxp_imx: Add zephyr,memory-region attribute to memory regions
Add zephyr,memory-region compatible and attribute to SOC memory regions, so that sections will be generated and MPU attributes can be applied. Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 66f35b2 commit 6bcdcc3

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

dts/arm/nxp/nxp_rt1060.dtsi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* region, we describe them in one 768Kb unique node.
1414
*/
1515
&ocram {
16-
compatible = "mmio-sram";
1716
reg = <0x20200000 DT_SIZE_K(768)>;
1817
};
1918

dts/arm/nxp/nxp_rt10xx.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,9 @@
8989
};
9090

9191
ocram: ocram@20200000 {
92-
compatible = "mmio-sram";
92+
compatible = "zephyr,memory-region", "mmio-sram";
9393
reg = <0x20200000 DT_SIZE_K(256)>;
94+
zephyr,memory-region = "OCRAM";
9495
};
9596
};
9697

dts/arm/nxp/nxp_rt11xx.dtsi

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -843,17 +843,20 @@
843843
};
844844

845845
ocram: ocram@20200000 {
846-
compatible = "mmio-sram";
846+
compatible = "zephyr,memory-region", "mmio-sram";
847+
zephyr,memory-region = "OCRAM";
847848
reg = <0x20200000 DT_SIZE_K(256)>;
848849
};
849850

850851
ocram1: ocram@20240000 {
851-
compatible = "mmio-sram";
852+
compatible = "zephyr,memory-region", "mmio-sram";
853+
zephyr,memory-region = "OCRAM1";
852854
reg = <0x20240000 DT_SIZE_K(512)>;
853855
};
854856

855857
ocram2: ocram@202c0000 {
856-
compatible = "mmio-sram";
858+
compatible = "zephyr,memory-region", "mmio-sram";
859+
zephyr,memory-region = "OCRAM2";
857860
reg = <0x202c0000 DT_SIZE_K(512)>;
858861
};
859862

soc/arm/nxp_imx/rt/linker.ld

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010

1111
MEMORY
1212
{
13-
#if (DT_REG_SIZE(DT_NODELABEL(ocram)) > 0) && !IS_CHOSEN_SRAM(ocram)
14-
OCRAM (wx) : ORIGIN = DT_REG_ADDR(DT_NODELABEL(ocram)), LENGTH = DT_REG_SIZE(DT_NODELABEL(ocram))
15-
#endif
1613
#if (DT_REG_SIZE(DT_NODELABEL(sdram0)) > 0) && !IS_CHOSEN_SRAM(sdram0)
1714
SDRAM (wx) : ORIGIN = DT_REG_ADDR(DT_NODELABEL(sdram0)), LENGTH = DT_REG_SIZE(DT_NODELABEL(sdram0))
1815
#endif

0 commit comments

Comments
 (0)