Skip to content

Commit e06bc25

Browse files
author
Jordan Yates
committed
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>
1 parent 91d4b77 commit e06bc25

File tree

8 files changed

+28
-6
lines changed

8 files changed

+28
-6
lines changed

dts/bindings/arm/arm,dtcm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Cortex-M DTCM (Data Tightly Coupled Memory)
44

55
compatible: "arm,dtcm"
66

7-
include: base.yaml
7+
include: [base.yaml, mem-region.yaml]
88

99
properties:
1010
reg:

dts/bindings/arm/arm,itcm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Cortex-M ITCM (Instruction Tightly Coupled Memory)
44

55
compatible: "arm,itcm"
66

7-
include: base.yaml
7+
include: [base.yaml, mem-region.yaml]
88

99
properties:
1010
reg:

dts/bindings/arm/nxp,imx-dtcm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: i.MX DTCM (Data Tightly Coupled Memory)
55

66
compatible: "nxp,imx-dtcm"
77

8-
include: base.yaml
8+
include: [base.yaml, mem-region.yaml]
99

1010
properties:
1111
reg:

dts/bindings/arm/nxp,imx-itcm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: i.MX ITCM (Instruction Tightly Coupled Memory)
55

66
compatible: "nxp,imx-itcm"
77

8-
include: base.yaml
8+
include: [base.yaml, mem-region.yaml]
99

1010
properties:
1111
reg:

dts/bindings/base/mem-region.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright (c) 2021, CSIRO
2+
# SPDX-License-Identifier: Apache-2.0
3+
# Common fields for devices resulting in linker memory regions
4+
5+
properties:
6+
zephyr,memory-region:
7+
type: string
8+
required: false
9+
description: |
10+
Signify that this node should result in a dedicated linker script
11+
memory region in the final executable. The region address and size
12+
is taken from the <reg> property, while the name is the value of
13+
this property.

dts/bindings/memory-controllers/st,stm32-backup-sram.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description: |
99
1010
compatible: "st,stm32-backup-sram"
1111

12-
include: base.yaml
12+
include: [base.yaml, mem-region.yaml]
1313

1414
properties:
1515
label:

dts/bindings/mtd/fixed-partitions.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,12 @@ child-binding:
2828
type: array
2929
description: register space
3030
required: true
31+
zephyr,memory-region:
32+
type: string
33+
required: false
34+
description: |
35+
Signify that this node should result in a dedicated linker script
36+
memory region in the final executable. The region address and size
37+
is taken from the <reg> property, while the name is the value of
38+
this property. This must only be added to memory-mapped partitions,
39+
not partitions on external flash.

dts/bindings/sram/mmio-sram.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Generic on-chip SRAM description
55

66
compatible: "mmio-sram"
77

8-
include: base.yaml
8+
include: [base.yaml, mem-region.yaml]
99

1010
properties:
1111
reg:

0 commit comments

Comments
 (0)