File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 1515/ {
1616 chosen {
1717 zephyr,entropy = &rng;
18+ zephyr,flash-controller = &flash;
1819 };
1920
2021 cpus {
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
You can’t perform that action at this time.
0 commit comments