dts: arm: nordic: move number of MPU regions in variant-specific file

Move the definition of the number of MPU regions
(num-mpu-regions) in a SoC variant-specific header
instead of the common .dtsi for nRF5340 Application
MCU. This allows us to define different SoC variants
with different number of MPU regions available.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
Ioannis Glaropoulos 2020-06-10 19:45:53 +02:00 committed by Carles Cufí
commit 1579246f32
4 changed files with 8 additions and 2 deletions

View file

@ -23,7 +23,6 @@
mpu: mpu@e000ed90 {
compatible = "arm,armv8m-mpu";
reg = <0xe000ed90 0x40>;
arm,num-mpu-regions = <16>;
};
};
};

View file

@ -15,6 +15,10 @@
reg = <0x20000000 DT_SIZE_K(512)>;
};
&mpu {
arm,num-mpu-regions = <16>;
};
/ {
soc {
compatible = "nordic,nRF5340-CPU0-QKAA", "nordic,nRF5340-CPU0", "nordic,nRF53", "simple-bus";

View file

@ -25,7 +25,6 @@
mpu: mpu@e000ed90 {
compatible = "arm,armv8m-mpu";
reg = <0xe000ed90 0x40>;
arm,num-mpu-regions = <16>;
};
};
};

View file

@ -15,6 +15,10 @@
reg = <0x20000000 DT_SIZE_K(512)>;
};
&mpu {
arm,num-mpu-regions = <16>;
};
/ {
soc {
compatible = "nordic,nRF5340-CPU0-QKAA", "nordic,nRF5340-CPU0", "nordic,nRF53", "simple-bus";