dts: arm: st: h7: add max-erase-time property to the flash node

The erase time for a sector differs by a few order of magnitude for the
various SoCs of the STM32H7 family. Declare it in the device tree using
the existing max-erase-time property. For that it is necessary to add
"st,stm32-nv-flash" to the compatible node.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
Aurelien Jarno 2022-06-17 21:17:45 +02:00 committed by Anas Nashif
parent 04328a926e
commit 98a02fefc7
5 changed files with 18 additions and 6 deletions

View file

@ -13,9 +13,11 @@
soc {
flash-controller@52002000 {
flash0: flash@8000000 {
compatible = "soc-nv-flash";
compatible = "st,stm32-nv-flash", "soc-nv-flash";
write-block-size = <32>;
erase-block-size = <DT_SIZE_K(128)>;
/* maximum erase time for a 128K sector */
max-erase-time = <4000>;
label = "FLASH_STM32";
};
};

View file

@ -11,10 +11,12 @@
soc {
flash-controller@52002000 {
flash0: flash@8000000 {
compatible = "soc-nv-flash";
compatible = "st,stm32-nv-flash", "soc-nv-flash";
label = "FLASH_STM32";
write-block-size = <32>;
erase-block-size = <DT_SIZE_K(128)>;
/* maximum erase time for a 128K sector */
max-erase-time = <4000>;
};
};

View file

@ -11,14 +11,18 @@
soc {
flash-controller@52002000 {
flash0: flash@8000000 {
compatible = "soc-nv-flash";
compatible = "st,stm32-nv-flash", "soc-nv-flash";
write-block-size = <32>;
erase-block-size = <DT_SIZE_K(128)>;
/* maximum erase time for a 128K sector */
max-erase-time = <4000>;
};
flash1: flash@8100000 {
compatible = "soc-nv-flash";
compatible = "st,stm32-nv-flash", "soc-nv-flash";
write-block-size = <32>;
erase-block-size = <DT_SIZE_K(128)>;
/* maximum erase time for a 128K sector */
max-erase-time = <4000>;
};
};

View file

@ -11,9 +11,11 @@
soc {
flash-controller@52002000 {
flash0: flash@8000000 {
compatible = "soc-nv-flash";
compatible = "st,stm32-nv-flash", "soc-nv-flash";
write-block-size = <32>;
erase-block-size = <DT_SIZE_K(128)>;
/* maximum erase time for a 128K sector */
max-erase-time = <4000>;
};
};

View file

@ -11,10 +11,12 @@
soc {
flash-controller@52002000 {
flash0: flash@8000000 {
compatible = "soc-nv-flash";
compatible = "st,stm32-nv-flash", "soc-nv-flash";
label = "FLASH_STM32";
write-block-size = <16>;
erase-block-size = <DT_SIZE_K(8)>;
/* maximum erase time for a 8K sector */
max-erase-time = <3>;
};
};