Skip to content

Commit

Permalink
boards: arm: lpcxpresso55s16/06: add boot and slot1 flash partitions.
Browse files Browse the repository at this point in the history
Add boot_partition and slot1_aprtition to the lpcxpresso55s16
and lpcxpresso55s06 dts.

Signed-off-by: Andrej Butok <[email protected]>
  • Loading branch information
butok committed Oct 10, 2023
1 parent 4f57614 commit a8e3554
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 22 deletions.
27 changes: 15 additions & 12 deletions boards/arm/lpcxpresso55s06/lpcxpresso55s06_common.dtsi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2022 metraTec
* Copyright 2022 NXP
* Copyright 2022-2023 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand All @@ -12,12 +12,11 @@
chosen {
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &sramx;
zephyr,code-partition = &slot0_partition;
zephyr,console = &flexcomm0;
zephyr,shell-uart = &flexcomm0;
zephyr,entropy = &rng;
zephyr,flash-controller = &iap;
zephyr,code-partition = &slot0_partition;
zephyr,canbus = &can0;
};

Expand Down Expand Up @@ -118,23 +117,27 @@
};

&flash0 {
/*
* LPC flash controller requires minimum 512 byte
* write to flash, so MCUBoot is not supported. Just
* provide storage and code partition.
*/
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
slot0_partition: partition@0 {
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x0 DT_SIZE_K(32)>;
};
slot0_partition: partition@8000 {
label = "image-0";
reg = <0x00000000 DT_SIZE_K(196)>;
reg = <0x00008000 DT_SIZE_K(96)>;
};
slot1_partition: partition@20000 {
label = "image-1";
reg = <0x00020000 DT_SIZE_K(96)>;
};
storage_partition: partition@30000 {
storage_partition: partition@38000 {
label = "storage";
reg = <0x00030000 DT_SIZE_K(64)>;
reg = <0x00038000 DT_SIZE_K(20)>;
};
/* The last 12KB are reserved for PFR on the 256KB flash. */
};
};

Expand Down
26 changes: 16 additions & 10 deletions boards/arm/lpcxpresso55s16/lpcxpresso55s16_common.dtsi
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2020 Henrik Brix Andersen <[email protected]>
* Copyright 2023 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand All @@ -11,11 +12,12 @@
chosen {
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &sramx;
zephyr,code-partition = &slot0_partition;
zephyr,console = &flexcomm0;
zephyr,shell-uart = &flexcomm0;
zephyr,entropy = &rng;
zephyr,canbus = &can0;
zephyr,flash-controller = &iap;
};

aliases{
Expand Down Expand Up @@ -162,23 +164,27 @@
};

&flash0 {
/*
* LPC flash controller requires minimum 512 byte
* write to flash, so MCUBoot is not supported. Just
* provide storage and code partition.
*/
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
slot0_partition: partition@0 {
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x0 DT_SIZE_K(32)>;
};
slot0_partition: partition@8000 {
label = "image-0";
reg = <0x00000000 DT_SIZE_K(196)>;
reg = <0x00008000 DT_SIZE_K(96)>;
};
slot1_partition: partition@20000 {
label = "image-1";
reg = <0x00020000 DT_SIZE_K(96)>;
};
storage_partition: partition@30000 {
storage_partition: partition@38000 {
label = "storage";
reg = <0x00030000 DT_SIZE_K(64)>;
reg = <0x00038000 DT_SIZE_K(20)>;
};
/* The last 12KB are reserved for PFR on the 256KB flash. */
};
};

Expand Down

0 comments on commit a8e3554

Please sign in to comment.