diff --git a/boards/adi/max32655evkit/max32655evkit_max32655_m4.dts b/boards/adi/max32655evkit/max32655evkit_max32655_m4.dts index 20c6daf6001f3..4f7155760f331 100644 --- a/boards/adi/max32655evkit/max32655evkit_max32655_m4.dts +++ b/boards/adi/max32655evkit/max32655evkit_max32655_m4.dts @@ -19,7 +19,7 @@ zephyr,console = &uart0; zephyr,shell-uart = &uart0; zephyr,sram = &sram2; - zephyr,flash = &flash0; + zephyr,flash = &code_partition; }; leds { @@ -168,3 +168,20 @@ status = "okay"; }; }; + +&flash0 { + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + code_partition: partition@10000000 { + label = "image-m4"; + reg = <0x10000000 DT_SIZE_K(448)>; + }; + storage_partition: partition@70000 { + label = "storage"; + reg = <0x70000 DT_SIZE_K(64)>; + }; + }; +}; diff --git a/boards/adi/max32655fthr/max32655fthr_max32655_m4.dts b/boards/adi/max32655fthr/max32655fthr_max32655_m4.dts index 2c9d5950c9e3e..cb5906867e2f2 100644 --- a/boards/adi/max32655fthr/max32655fthr_max32655_m4.dts +++ b/boards/adi/max32655fthr/max32655fthr_max32655_m4.dts @@ -19,7 +19,7 @@ zephyr,console = &uart0; zephyr,shell-uart = &uart0; zephyr,sram = &sram2; - zephyr,flash = &flash0; + zephyr,flash = &code_partition; }; leds { @@ -199,3 +199,20 @@ status = "okay"; }; }; + +&flash0 { + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + code_partition: partition@10000000 { + label = "image-m4"; + reg = <0x10000000 DT_SIZE_K(448)>; + }; + storage_partition: partition@70000 { + label = "storage"; + reg = <0x70000 DT_SIZE_K(64)>; + }; + }; +}; diff --git a/tests/drivers/flash/common/boards/max32655evkit_max32655_m4.overlay b/tests/drivers/flash/common/boards/max32655evkit_max32655_m4.overlay deleted file mode 100644 index 9f957f022268b..0000000000000 --- a/tests/drivers/flash/common/boards/max32655evkit_max32655_m4.overlay +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (c) 2024 Analog Devices, Inc. - * - * SPDX-License-Identifier: Apache-2.0 - */ - -&flash0 { - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - code_partition: partition@0 { - reg = <0x0 DT_SIZE_K(384)>; - read-only; - }; - - storage_partition: partition@60000 { - label = "storage"; - reg = <0x60000 DT_SIZE_K(128)>; - }; - }; -}; diff --git a/tests/drivers/flash/common/boards/max32655fthr_max32655_m4.overlay b/tests/drivers/flash/common/boards/max32655fthr_max32655_m4.overlay deleted file mode 100644 index 9f957f022268b..0000000000000 --- a/tests/drivers/flash/common/boards/max32655fthr_max32655_m4.overlay +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (c) 2024 Analog Devices, Inc. - * - * SPDX-License-Identifier: Apache-2.0 - */ - -&flash0 { - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - code_partition: partition@0 { - reg = <0x0 DT_SIZE_K(384)>; - read-only; - }; - - storage_partition: partition@60000 { - label = "storage"; - reg = <0x60000 DT_SIZE_K(128)>; - }; - }; -};