linker: Introduce zephyr,memory-region compatible

Introduce a new "zephyr,memory-region" compatible to be used when a new
memory region must be created in the linker script from the devicetree
nodes using the compatible.

Remove also the LINKER_DT_REGION_FROM_NODE macro and add a new
LINKER_DT_REGIONS macro to cycle through all the compatible regions.

In the same PR modify the DTS files and the linker scripts.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
Carlo Caione 2022-01-20 17:51:06 +01:00 committed by Anas Nashif
commit 18ffcdcf74
75 changed files with 132 additions and 150 deletions

View file

@ -1,11 +1,16 @@
# Copyright (c) 2021, CSIRO
# SPDX-License-Identifier: Apache-2.0
# Common fields for devices resulting in linker memory regions
description: Compatible for devices resulting in linker memory regions
compatible: "zephyr,memory-region"
include: base.yaml
properties:
zephyr,memory-region:
type: string
required: false
required: true
description: |
Signify that this node should result in a dedicated linker script
memory region in the final executable. The region address and size