Skip to content

Commit 92dac91

Browse files
bjarki-andreasenkartben
authored andcommitted
dts: arm: atmel: samx7xx21: fix flash erase-blocks
The flash erase-blocks property was a bit malformed, it has 254 pages of size 8192 after the first 8 pages of size 2048 to reach the total size of 2048K. This caused issues when trying to erase the last pages of the flash, which caused the flash erase_blocks test suite to fail. Adjust the erase-blocks to match the flash layout. Signed-off-by: Bjarki Arge Andreasen <[email protected]> (cherry picked from commit 6f45f68)
1 parent 399f177 commit 92dac91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dts/arm/atmel/samx7xx21.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
flash-controller@400e0c00 {
1717
flash0: flash@400000 {
1818
reg = <0x00400000 DT_SIZE_K(2048)>;
19-
erase-blocks = <&eefc 8 2048>, <&eefc 252 8192>;
19+
erase-blocks = <&eefc 8 2048>, <&eefc 254 8192>;
2020
};
2121
};
2222
};

0 commit comments

Comments
 (0)