Skip to content

Commit 5bc01c3

Browse files
erwangocarlescufi
authored andcommitted
dts: stm32h745: Define M4 flash controller
Define erase and write block size for M4 side flash controller. Additionally move compatible definition from package to soc file. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent f1a2050 commit 5bc01c3

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

dts/arm/st/h7/stm32h745.dtsi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
soc {
1111
flash-controller@52002000 {
1212
flash0: flash@8000000 {
13+
compatible = "soc-nv-flash";
14+
write-block-size = <32>;
15+
erase-block-size = <DT_SIZE_K(128)>;
16+
};
17+
flash1: flash@8100000 {
18+
compatible = "soc-nv-flash";
1319
write-block-size = <32>;
1420
erase-block-size = <DT_SIZE_K(128)>;
1521
};

dts/arm/st/h7/stm32h745Xi_m4.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#include <mem.h>
88
#include <st/h7/stm32h745.dtsi>
99

10+
/delete-node/ &flash0;
11+
1012
/ {
1113
cpus {
1214
/delete-node/ cpu@0;
@@ -15,7 +17,6 @@
1517
soc {
1618
flash-controller@52002000 {
1719
flash1: flash@8100000 {
18-
compatible = "soc-nv-flash";
1920
label = "FLASH_STM32";
2021
reg = <0x08100000 DT_SIZE_K(1024)>;
2122
};

dts/arm/st/h7/stm32h745Xi_m7.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#include <mem.h>
88
#include <st/h7/stm32h745.dtsi>
99

10+
/delete-node/ &flash1;
11+
1012
/ {
1113
cpus {
1214
/delete-node/ cpu@1;
@@ -20,7 +22,6 @@
2022
soc {
2123
flash-controller@52002000 {
2224
flash0: flash@8000000 {
23-
compatible = "soc-nv-flash";
2425
label = "FLASH_STM32";
2526
reg = <0x08000000 DT_SIZE_K(1024)>;
2627
};

dts/arm/st/h7/stm32h747Xi_m4.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#include <mem.h>
88
#include <st/h7/stm32h747.dtsi>
99

10+
/delete-node/ &flash0;
11+
1012
/ {
1113
cpus {
1214
/delete-node/ cpu@0;
@@ -15,7 +17,6 @@
1517
soc {
1618
flash-controller@52002000 {
1719
flash1: flash@8100000 {
18-
compatible = "soc-nv-flash";
1920
label = "FLASH_STM32";
2021
reg = <0x08100000 DT_SIZE_K(1024)>;
2122
};

dts/arm/st/h7/stm32h747Xi_m7.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#include <mem.h>
88
#include <st/h7/stm32h747.dtsi>
99

10+
/delete-node/ &flash1;
11+
1012
/ {
1113
cpus {
1214
/delete-node/ cpu@1;
@@ -15,7 +17,6 @@
1517
soc {
1618
flash-controller@52002000 {
1719
flash0: flash@8000000 {
18-
compatible = "soc-nv-flash";
1920
label = "FLASH_STM32";
2021
reg = <0x08000000 DT_SIZE_K(1024)>;
2122
};

0 commit comments

Comments
 (0)