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:
parent
04328a926e
commit
98a02fefc7
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -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>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -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>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -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>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue