@@ -440,9 +440,8 @@ are programmed during system boot.
440440 SRAM. (An exception to this setting is when :kconfig:option: `CONFIG_MPU_GAP_FILLING ` is disabled (Arm v8-M only);
441441 in that case no SRAM MPU programming is done so the access is determined by the default
442442 Arm memory map policies, allowing for privileged-only RWX permissions on SRAM).
443- * All the memory regions defined in the devicetree with the compatible
444- :dtcompatible: `zephyr,memory-region ` and at least the property
445- ``zephyr,memory-region-mpu `` defining the MPU permissions for the memory region.
443+ * All the memory regions defined in the devicetree with the property
444+ ``zephyr,memory-attr `` defining the MPU permissions for the memory region.
446445 See the next section for more details.
447446
448447The above MPU regions are defined in :file: `soc/arm/common/cortex_m/arm_mpu_regions.c `.
@@ -453,13 +452,12 @@ configure its own fixed MPU regions in the SoC definition.
453452Fixed MPU regions defined in devicetree
454453---------------------------------------
455454
456- The user can define memory regions to be allocated and created in the linker
457- script using nodes with the :dtcompatible: `zephyr,memory-region ` devicetree
458- compatible. When the property ``zephyr,memory-region-mpu `` is present in such
459- a node, a new MPU region will be allocated and programmed during system
460- boot.
455+ When the property ``zephyr,memory-attr `` is present in a memory node, a new MPU
456+ region will be allocated and programmed during system boot. When used with the
457+ :dtcompatible: `zephyr,memory-region ` devicetree compatible, it will result in a
458+ linker section being generated associated to that MPU region.
461459
462- The property ``zephyr,memory-region-mpu `` is a string carrying the attributes
460+ The property ``zephyr,memory-attr `` is a string carrying the attributes
463461for the MPU region. It is converted to a C token for use defining the attributes
464462of the MPU region.
465463
@@ -471,7 +469,7 @@ For example, to define a new non-cacheable memory region in devicetree:
471469 compatible = "zephyr,memory-region", "mmio-sram";
472470 reg = <0x20300000 0x100000>;
473471 zephyr,memory-region = "SRAM_NO_CACHE";
474- zephyr,memory-region-mpu = "RAM_NOCACHE";
472+ zephyr,memory-attr = "RAM_NOCACHE";
475473 };
476474
477475 This will automatically create a new MPU entry in
0 commit comments