Skip to content

Commit 31a94a8

Browse files
petejohanson-adijhedberg
authored andcommitted
dts: arm: adi: Proper MAX32690 flash1 settings
Fix the MAX32690 flash1 node's address and erase size properties to match the datasheet. Add a test for that platform as well to verify the functionality of the FLC1 peripheral instance. Signed-off-by: Pete Johanson <[email protected]>
1 parent 2140b55 commit 31a94a8

File tree

3 files changed

+39
-3
lines changed

3 files changed

+39
-3
lines changed

dts/arm/adi/max32/max32690.dtsi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@
124124
#size-cells = <1>;
125125
status = "okay";
126126

127-
flash1: flash@10080000 {
127+
flash1: flash@10300000 {
128128
compatible = "soc-nv-flash";
129-
reg = <0x10080000 DT_SIZE_K(256)>;
129+
reg = <0x10300000 DT_SIZE_K(256)>;
130130
write-block-size = <16>;
131-
erase-block-size = <16384>;
131+
erase-block-size = <8192>;
132132
};
133133
};
134134

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Copyright (c) 2024 Analog Devices, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
chosen {
9+
zephyr,flash-controller = &flc1;
10+
zephyr,flash = &flash1;
11+
};
12+
};
13+
14+
&flash1 {
15+
status = "okay";
16+
17+
partitions {
18+
compatible = "fixed-partitions";
19+
#address-cells = <1>;
20+
#size-cells = <1>;
21+
22+
storage_partition: partition@0 {
23+
label = "storage";
24+
reg = <0x0 DT_SIZE_K(256)>;
25+
};
26+
};
27+
};

tests/drivers/flash/common/testcase.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ tests:
2020
- DTC_OVERLAY_FILE=boards/apard32690_max32690_m4_spixf_nor.overlay
2121
integration_platforms:
2222
- apard32690/max32690/m4
23+
drivers.flash.common.max32_flash1:
24+
platform_allow:
25+
- apard32690/max32690/m4
26+
- max32690evkit/max32690/m4
27+
extra_args:
28+
- DTC_OVERLAY_FILE=boards/max32690_flash1_storage_partition.overlay
29+
integration_platforms:
30+
- apard32690/max32690/m4
31+
- max32690evkit/max32690/m4
2332
drivers.flash.common.nrf_qspi_nor.size_in_bytes:
2433
platform_allow: nrf52840dk/nrf52840
2534
extra_args:

0 commit comments

Comments
 (0)