Skip to content

Commit db75db2

Browse files
ikmdanigalak
authored andcommitted
dts/arm: stm32l562e_dk: Adding flash support
This commit adds flash node in dtsi of stm32l562e_dk platform. Signed-off-by: Krishna Mohan Dani <[email protected]>
1 parent bbc6c66 commit db75db2

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

dts/arm/st/l5/stm32l5.dtsi

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
/ {
1616
chosen {
1717
zephyr,entropy = &rng;
18+
zephyr,flash-controller = &flash;
1819
};
1920

2021
cpus {
@@ -83,18 +84,27 @@
8384
};
8485

8586
soc {
86-
flash-controller@40022000 {
87-
compatible = "st,stm32l5-flash-controller";
87+
flash: flash-controller@40022000 {
88+
compatible = "st,stm32-flash-controller", "st,stm32l5-flash-controller";
8889
label = "FLASH_CTRL";
8990
reg = <0x40022000 0x400>;
90-
interrupts = <4 0>;
91+
interrupts = <6 0>;
92+
clocks = <&rcc STM32_CLOCK_BUS_AHB1 0x00000100>;
9193

9294
#address-cells = <1>;
9395
#size-cells = <1>;
9496

9597
flash0: flash@8000000 {
9698
compatible = "soc-nv-flash";
9799
label = "FLASH_STM32";
100+
write-block-size = <8>;
101+
erase-block-size = <2048>;
102+
103+
/* using maximum erase time(ms) for 4K page, since
104+
* datasheet does not show the maximum erase
105+
* for a 2K(dual-bank) page.
106+
*/
107+
max-erase-time = <25>;
98108
};
99109
};
100110

0 commit comments

Comments
 (0)