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>
2021-07-28 17:45:38 +08:00
|
|
|
# Copyright (c) 2021, CSIRO
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2022-01-21 00:51:06 +08:00
|
|
|
|
|
|
|
description: Compatible for devices resulting in linker memory regions
|
|
|
|
|
|
|
|
compatible: "zephyr,memory-region"
|
|
|
|
|
dts: bindings: Move zephyr,memory-region property definition
Move it to a common file named `zephyr,memory-common.yaml`, which
replaces `zephyr,memory-attr.yaml` and takes its contents as well.
This is so that another binding, e.g., `vnd,memory-region`, can support
being combined with the `zephyr,memory-region` binding like so:
node@deadbeef {
compatible = "vnd,memory-region", "zephyr,memory-region";
zephyr,memory-region = "NAME";
...
};
To allow this, edtlib would require `vnd,memory-region` to include the
property definitions from this new common file.
The same can't be done by including `zephyr,memory-region.yaml` directly
because that file marks the property in question as always required, and
it shouldn't be required whenever the `vnd,memory-region` compatible is
used on its own.
Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
2024-05-03 15:20:27 +08:00
|
|
|
include: [base.yaml, "zephyr,memory-common.yaml"]
|
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>
2021-07-28 17:45:38 +08:00
|
|
|
|
|
|
|
properties:
|
|
|
|
zephyr,memory-region:
|
2022-01-21 00:51:06 +08:00
|
|
|
required: true
|