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>
55 lines
1 KiB
Text
55 lines
1 KiB
Text
/*
|
|
* Copyright (c) 2020 Henrik Brix Andersen <henrik@brixandersen.dk>
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include <arm/armv7-m.dtsi>
|
|
#include "arty_a7_arm_designstart.dtsi"
|
|
|
|
/ {
|
|
model = "Digilent Arty A7 ARM DesignStart Cortex-M3";
|
|
|
|
cpus {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
cpu0: cpu@0 {
|
|
device_type = "cpu";
|
|
compatible = "arm,cortex-m3";
|
|
reg = <0>;
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
mpu: mpu@e000ed90 {
|
|
compatible = "arm,armv7m-mpu";
|
|
reg = <0xe000ed90 0x40>;
|
|
arm,num-mpu-regions = <8>;
|
|
};
|
|
};
|
|
};
|
|
|
|
soc {
|
|
itcm: memory@0 {
|
|
compatible = "zephyr,memory-region", "arm,itcm";
|
|
reg = <0x00000000 DT_SIZE_K(32)>;
|
|
zephyr,memory-region = "ITCM";
|
|
};
|
|
|
|
dtcm: memory@20000000 {
|
|
compatible = "zephyr,memory-region", "arm,dtcm";
|
|
reg = <0x20000000 DT_SIZE_K(32)>;
|
|
zephyr,memory-region = "DTCM";
|
|
};
|
|
|
|
bram0: memory@60000000 {
|
|
compatible = "mmio-sram";
|
|
reg = <0x60000000 DT_SIZE_K(8)>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&nvic {
|
|
arm,num-irq-priority-bits = <3>;
|
|
};
|