dts: bindings: zephyr,linker-region property

Introduce optional `zephyr,linker-region` property which signifies that
the node should result in a linker memory region and what the name of
that region should be. Property added to compatibles likely to result
in a linker memory region; 'mmio-sram', 'arm,itcm`, `arm,dtcm`,
`nxp,imx-itcm`, `nxp,imx-dtcm` and `fixed-partitions`.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
This commit is contained in:
Jordan Yates 2021-07-28 19:45:38 +10:00 committed by Carles Cufí
parent 1d44e281a6
commit 3894066f79
8 changed files with 28 additions and 6 deletions

View file

@ -4,7 +4,7 @@ description: Cortex-M DTCM (Data Tightly Coupled Memory)
compatible: "arm,dtcm"
include: base.yaml
include: [base.yaml, mem-region.yaml]
properties:
reg:

View file

@ -4,7 +4,7 @@ description: Cortex-M ITCM (Instruction Tightly Coupled Memory)
compatible: "arm,itcm"
include: base.yaml
include: [base.yaml, mem-region.yaml]
properties:
reg:

View file

@ -5,7 +5,7 @@ description: i.MX DTCM (Data Tightly Coupled Memory)
compatible: "nxp,imx-dtcm"
include: base.yaml
include: [base.yaml, mem-region.yaml]
properties:
reg:

View file

@ -5,7 +5,7 @@ description: i.MX ITCM (Instruction Tightly Coupled Memory)
compatible: "nxp,imx-itcm"
include: base.yaml
include: [base.yaml, mem-region.yaml]
properties:
reg:

View file

@ -0,0 +1,13 @@
# Copyright (c) 2021, CSIRO
# SPDX-License-Identifier: Apache-2.0
# Common fields for devices resulting in linker memory regions
properties:
zephyr,memory-region:
type: string
required: false
description: |
Signify that this node should result in a dedicated linker script
memory region in the final executable. The region address and size
is taken from the <reg> property, while the name is the value of
this property.

View file

@ -9,7 +9,7 @@ description: |
compatible: "st,stm32-backup-sram"
include: base.yaml
include: [base.yaml, mem-region.yaml]
properties:
label:

View file

@ -28,3 +28,12 @@ child-binding:
type: array
description: register space
required: true
zephyr,memory-region:
type: string
required: false
description: |
Signify that this node should result in a dedicated linker script
memory region in the final executable. The region address and size
is taken from the <reg> property, while the name is the value of
this property. This must only be added to memory-mapped partitions,
not partitions on external flash.

View file

@ -5,7 +5,7 @@ description: Generic on-chip SRAM description
compatible: "mmio-sram"
include: base.yaml
include: [base.yaml, mem-region.yaml]
properties:
reg: