Skip to content

Commit 35c3698

Browse files
AllenZhang-NXPjhedberg
authored andcommitted
dts: mcxw23x: Correct the flash0 in common dtsi
According to the RM, erasing must be done per sector. So, the start address and the size of an erase operation must be a multiple of 8192 bytes. So, the erase-block-size should be 8192 bytes. Programming can be done per phrase (start address and size a multiple of 16 bytes). So, write-block-size should be 16 bytes. Signed-off-by: Allen Zhang <[email protected]>
1 parent 8a11ef3 commit 35c3698

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dts/arm/nxp/nxp_mcxw23x_common.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@
8989
flash0: flash@0 {
9090
compatible = "soc-nv-flash";
9191
reg = <0x0 DT_SIZE_K(1016)>;
92-
erase-block-size = <512>;
93-
write-block-size = <512>;
92+
erase-block-size = <DT_SIZE_K(8)>;
93+
write-block-size = <16>;
9494
};
9595

9696
flash_reserved: flash@fe000 {

0 commit comments

Comments
 (0)