diff --git a/dts/arm/nxp/nxp_rt1060.dtsi b/dts/arm/nxp/nxp_rt1060.dtsi index 6f630ccc0e8..c94a1646f88 100644 --- a/dts/arm/nxp/nxp_rt1060.dtsi +++ b/dts/arm/nxp/nxp_rt1060.dtsi @@ -6,11 +6,13 @@ #include -/ { - soc { - ocram1: ocram@20280000 { - compatible = "mmio-sram"; - reg = <0x20280000 0x80000>; - }; - }; +/* i.MX rt1060 has two continuous on-chip RAM, one is part of the + * FlexRAM mapped at 0x20280000 (vs 0x20280000 on rt1050) and is + * configurable (256KB by defaults), the other one is dedicated 512KB + * ram (OCRAM2) mapped at 0x20200000. In order to have a continuous + * region, we describe them in one 768Kb unique node. + */ +&ocram0 { + compatible = "mmio-sram"; + reg = <0x20200000 0xC0000>; }; diff --git a/soc/arm/nxp_imx/rt/arm_mpu_mem_cfg.h b/soc/arm/nxp_imx/rt/arm_mpu_mem_cfg.h index 2e472048a08..25a26ab47bb 100644 --- a/soc/arm/nxp_imx/rt/arm_mpu_mem_cfg.h +++ b/soc/arm/nxp_imx/rt/arm_mpu_mem_cfg.h @@ -41,6 +41,10 @@ #define REGION_SRAM_0_SIZE REGION_128K #elif CONFIG_SRAM_SIZE == 256 #define REGION_SRAM_0_SIZE REGION_256K +#elif CONFIG_SRAM_SIZE == 512 +#define REGION_SRAM_0_SIZE REGION_512K +#elif CONFIG_SRAM_SIZE == 768 +#define REGION_SRAM_0_SIZE REGION_1M /* MPU expects power of two size */ #elif CONFIG_SRAM_SIZE == 32768 #define REGION_SRAM_0_SIZE REGION_32M #else