Skip to content

Commit

Permalink
dts: common: nordic: default memory partitioning
Browse files Browse the repository at this point in the history
Add default memory partitioning for the nRF53 and nRF91 series devices.
As these partitions refer to TF-M and the TF-M layouts cannot be
modified, use the partitioning scheme from TF-M.

Signed-off-by: Jordan Yates <[email protected]>
  • Loading branch information
JordanYates authored and carlescufi committed Sep 4, 2024
1 parent bd93623 commit 51c0cb9
Show file tree
Hide file tree
Showing 73 changed files with 322 additions and 2,342 deletions.
58 changes: 2 additions & 56 deletions boards/actinius/icarus/actinius_icarus_common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -166,62 +166,8 @@
pinctrl-names = "default", "sleep";
};

&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 0x10000>;
};
slot0_partition: partition@10000 {
label = "image-0";
};
slot0_ns_partition: partition@50000 {
label = "image-0-nonsecure";
};
slot1_partition: partition@80000 {
label = "image-1";
};
slot1_ns_partition: partition@c0000 {
label = "image-1-nonsecure";
};
scratch_partition: partition@f0000 {
label = "image-scratch";
reg = <0x000f0000 0xa000>;
};
storage_partition: partition@fa000 {
label = "storage";
reg = <0x000fa000 0x00006000>;
};
};
};

/ {

reserved-memory {
#address-cells = <1>;
#size-cells = <1>;
ranges;

sram0_s: image_s@20000000 {
/* Secure image memory */
};

sram0_modem: image_modem@20016000 {
/* Modem (shared) memory */
};

sram0_ns: image_ns@20020000 {
/* Non-Secure image memory */
};
};
};

/* Include file with mappings and aliases for feather compatibility */
#include "feather_connector.dtsi"

/* Include partition configuration file */
#include "actinius_icarus_partition_conf.dtsi"
/* Include default memory partition configuration file */
#include <common/nordic/nrf91xx_partition.dtsi>
58 changes: 0 additions & 58 deletions boards/actinius/icarus/actinius_icarus_partition_conf.dtsi

This file was deleted.

58 changes: 2 additions & 56 deletions boards/actinius/icarus_bee/actinius_icarus_bee_common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -156,59 +156,5 @@
pinctrl-names = "default", "sleep";
};

&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 0x10000>;
};
slot0_partition: partition@10000 {
label = "image-0";
};
slot0_ns_partition: partition@50000 {
label = "image-0-nonsecure";
};
slot1_partition: partition@80000 {
label = "image-1";
};
slot1_ns_partition: partition@c0000 {
label = "image-1-nonsecure";
};
scratch_partition: partition@f0000 {
label = "image-scratch";
reg = <0x000f0000 0xa000>;
};
storage_partition: partition@fa000 {
label = "storage";
reg = <0x000fa000 0x00006000>;
};
};
};

/ {

reserved-memory {
#address-cells = <1>;
#size-cells = <1>;
ranges;

sram0_s: image_s@20000000 {
/* Secure image memory */
};

sram0_modem: image_modem@20016000 {
/* Modem (shared) memory */
};

sram0_ns: image_ns@20020000 {
/* Non-Secure image memory */
};
};
};

/* Include partition configuration file */
#include "actinius_icarus_bee_partition_conf.dtsi"
/* Include default memory partition configuration file */
#include <common/nordic/nrf91xx_partition.dtsi>
58 changes: 0 additions & 58 deletions boards/actinius/icarus_bee/actinius_icarus_bee_partition_conf.dtsi

This file was deleted.

58 changes: 2 additions & 56 deletions boards/actinius/icarus_som/actinius_icarus_som_common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -65,59 +65,5 @@
};
};

&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 0x10000>;
};
slot0_partition: partition@10000 {
label = "image-0";
};
slot0_ns_partition: partition@50000 {
label = "image-0-nonsecure";
};
slot1_partition: partition@80000 {
label = "image-1";
};
slot1_ns_partition: partition@c0000 {
label = "image-1-nonsecure";
};
scratch_partition: partition@f0000 {
label = "image-scratch";
reg = <0x000f0000 0xa000>;
};
storage_partition: partition@fa000 {
label = "storage";
reg = <0x000fa000 0x00006000>;
};
};
};

/ {

reserved-memory {
#address-cells = <1>;
#size-cells = <1>;
ranges;

sram0_s: image_s@20000000 {
/* Secure image memory */
};

sram0_modem: image_modem@20016000 {
/* Modem (shared) memory */
};

sram0_ns: image_ns@20020000 {
/* Non-Secure image memory */
};
};
};

/* Include partition configuration file */
#include "actinius_icarus_som_partition_conf.dtsi"
/* Include default memory partition configuration file */
#include <common/nordic/nrf91xx_partition.dtsi>
58 changes: 0 additions & 58 deletions boards/actinius/icarus_som/actinius_icarus_som_partition_conf.dtsi

This file was deleted.

Loading

0 comments on commit 51c0cb9

Please sign in to comment.