Skip to content

Commit f7078da

Browse files
nvincent-vosslohcarlescufi
authored andcommitted
dts: flash: write/erase block size to stm32h7 devs
Define write and erase block size for supported stm32h7 devices Use a specific compatible string for stm32h7 devices for the flash driver Signed-off-by: Nicolas VINCENT <[email protected]>
1 parent fe3613d commit f7078da

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

dts/arm/st/h7/stm32h7.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
soc {
4242
flash: flash-controller@52002000 {
43-
compatible = "st,stm32-flash-controller", "st,stm32h7-flash-controller";
43+
compatible = "st,stm32h7-flash-controller";
4444
label = "FLASH_CTRL";
4545
reg = <0x52002000 0x400>;
4646
interrupts = <4 0>;

dts/arm/st/h7/stm32h723.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66
#include <st/h7/stm32h7.dtsi>
77

88
/ {
9+
soc {
10+
flash-controller@52002000 {
11+
flash0: flash@8000000 {
12+
write-block-size = <32>;
13+
erase-block-size = <DT_SIZE_K(128)>;
14+
};
15+
};
16+
};
917
/* DTCM memory directly coppled to CPU */
1018
dtcm: memory@20000000 {
1119
compatible = "arm,dtcm";

dts/arm/st/h7/stm32h743.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@
77
#include <st/h7/stm32h7.dtsi>
88

99
/ {
10+
soc {
11+
flash-controller@52002000 {
12+
flash0: flash@8000000 {
13+
write-block-size = <32>;
14+
erase-block-size = <DT_SIZE_K(128)>;
15+
};
16+
};
17+
};
1018
/* system data RAM accessible over over AXI bus */
1119
sram0: memory@24000000 {
1220
compatible = "mmio-sram";

dts/arm/st/h7/stm32h745.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@
77
#include <st/h7/stm32h7_dualcore.dtsi>
88

99
/ {
10+
soc {
11+
flash-controller@52002000 {
12+
flash0: flash@8000000 {
13+
write-block-size = <32>;
14+
erase-block-size = <DT_SIZE_K(128)>;
15+
};
16+
};
17+
};
1018
/*
1119
* The RAM memories placed here can be used by both cores M4/M7
1220
* For more information see reference manual and datasheet to STM32H745

0 commit comments

Comments
 (0)